Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-08-2013, 10:22 AM
charos charos is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
charos is on a distinguished road
Default

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?

Last edited by charos : 01-08-2013 at 10:24 AM. Reason: Added info
Reply With Quote
  #2  
Old 01-08-2013, 10:26 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 01-08-2013, 11:04 AM
charos charos is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
charos is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 01-08-2013, 11:37 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

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
 -
Reply With Quote
  #5  
Old 01-08-2013, 11:39 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Help with better syntax for audio stream dump


If you have Bash, I have a workaround for the "Received FLV packet before play()!"
Reply With Quote
  #6  
Old 01-08-2013, 11:43 AM
charos charos is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
charos is on a distinguished road
Default

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!
Reply With Quote
  #7  
Old 01-08-2013, 11:49 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #8  
Old 01-10-2013, 08:46 PM
charos charos is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
charos is on a distinguished road
Default

Re: Help with better syntax for audio stream dump


thanks! I'll give it a go!
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:50 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons