Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Help with better syntax for audio stream dump

(http://stream-recorder.com/forum/showthread.php?t=14917)

charos 01-08-2013 09:22 AM

Help with better syntax for audio stream dump


 
Hi!

I need to capture an audio live stream for 2 hours with RTMPDump v2.4 GIT-2011-07-11 (Compiled by KSV) . After a lot of searches , trial & errrors I have the following syntax:
Code:

rtmpdump -r "rtmp://cp126784.live.edgefcs.net/live/" --live -v -y "enlevko@73167"  --swfVfy "http://enlefko.fm/sites/all/themes/enleyko/flash/EnLefko_RTMPPlayer.swf"    --stop 7200  -o tzoum.mp4a
The problem is that the stream dump is not consistent. Sometimes it just stays at
Quote:

Connecting ...
INFO: Connected...
Other times I get
Quote:

INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 4
Other times I get the notorious
Quote:

Received FLV packet before play()!
But many times it works ok. Is there something wrong with my syntax?

svnpenn 01-08-2013 09:26 AM

Re: Help with better syntax for audio stream dump


 
Quote:

Originally Posted by Forum rules v1.1
If you truly want definitive answers quickly and without
delay, please include link(s) to the web-page(s) with video(s)


stream-recorder.com/forum/announcement.php?f=4

charos 01-08-2013 10:04 AM

Re: Help with better syntax for audio stream dump


 
My bad , I thought the url was pretty obvious from the --swfVfy parameter.
Site: http://enlefko.fm/
Player is Jplayer port of Drupal
swf object info taken by page source : swfobject.embedSWF("/sites/all/themes/enleyko/flash/EnLefko_RTMPPlayer.swf?1"

rtmexlporer attempt to parse data from rtmpsrv :
Code:

rtmdump -r "rtmp://cp126784.live.edgefcs.net/live/enlevko@73167" -a "live/enlevko@73167" -f "WIN 11,5,502,135" -W "http://enlefko.fm/sites/all/themes/enleyko/flash/EnLefko_RTMPPlayer.swf?1" -p "http://enlefko.fm/" -y "enlevko@73167" -o enlevko@73167.flv
RTMPDump v2.3
Connecting ...
INFO:Connected
ERROR: Closing connection: Netstream.Play.StreamNotFound

So rtmpexlorer doesn't correctly identify the stream file due to "enlevko@73167". So I had to find a correct syntax, thus the syntax on my first post:
Code:

C:\rtmpdump-2.4>rtmpdump -r "rtmp://cp126784.live.edgefcs.net/live/"  --swfVfy "
http://enlefko.fm//sites/all/themes/enleyko/flash/EnLefko_RTMPPlayer.swf"  --liv
e -v -y "enlevko@73167"  --stop 7200  -o tzoum.mp4
RTMPDump v2.4 GIT-2011-07-11 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
For duration: 7200.000 sec
INFO: Metadata:
INFO:  author                En Lefko 87.7
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Fri Nov 30 16:10:26 2012
INFO:  audiodevice          Rear Line In (Conexant HD Audio
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      94.00
INFO:  audiocodecid          mp4a
INFO:  audiodatarate        64.00
21.771 kB / 2.48 sec

But dump is not consistent and because I need to schedule this command, I want it to be failproof. Any help is greatly appreciated.

chap 01-08-2013 10:37 AM

Re: Help with better syntax for audio stream dump


 
Code:

rtmpdump -r "rtmp://cp126784.live.edgefcs.net/live/enlevko@73167/enlevko@73167" -o "enlevko@73167.flv"
Code:

rtmpdump
-r "rtmp://cp126784.live.edgefcs.net/live/enlevko@73167/enlevko@73167" -o "enlev
ko@73167.flv"
RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  author                  En Lefko 87.7
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname              Custom
INFO:  creationdate            Fri Nov 30 16:10:26 2012
INFO:  audiodevice            Rear Line In (Conexant HD Audio
INFO:  audiosamplerate        44100.00
INFO:  audiochannels          2.00
INFO:  audioinputvolume        94.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          64.00
9.116 kB / 1.00 sec
 -


svnpenn 01-08-2013 10:39 AM

Re: Help with better syntax for audio stream dump


 
If you have Bash, I have a workaround for the "Received FLV packet before play()!"

charos 01-08-2013 10:43 AM

Re: Help with better syntax for audio stream dump


 
I have a VPS with CentOS and I just build it from source, rtmpdump runs fine so I can make use of a bash script!

svnpenn 01-08-2013 10:49 PM

Re: Help with better syntax for audio stream dump


 
You can use this script to stop RtmpDump after certain period of time, without using "--stop"

github.com/svnpenn/a/blob/master/rtmp-stop.sh

Code:

rtmp-stop.sh 10 rtmpdump -r "rtmp://cp126784.live.edgefcs.net/live/en
levko@73167/enlevko@73167" -o "enlevko@73167.flv" -v
RTMPDump v2.4-81-g2872601
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license
: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  author                En Lefko 87.7
INFO:  presetname            Custom
INFO:  creationdate          Fri Nov 30 16:10:26 2012
INFO:  audiodevice          Rear Line In (Conexant HD Audio
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      94.00
INFO:  audiocodecid          mp4a
INFO:  audiodatarate        64.00
86.005 kB / 10.01 sec


charos 01-10-2013 07:46 PM

Re: Help with better syntax for audio stream dump


 
thanks! I'll give it a go!


All times are GMT -6. The time now is 10:53 PM.