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 02-21-2012, 09:27 AM
n.p. n.p. is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
n.p. is on a distinguished road
Default

Trouble with a file


I am looking at the main video on this page:

Code:
http://eestilaul.err.ee/videod/245a451c-d909-4ff4-8257-eb204316ec51
It was difficult getting the URLs, because the server runs on port 80 (so I couldn't use rtmpsrv and rtmpsuck - I wish they had options to change ports), but I eventually came up with:

Code:
rtmpdump --flashVer 'LNX 11,1,102,55' --rtmp rtmp://media.err.ee:80/etvsaated/2012.02.18_-_21.35-22.45_-_Eesti_Laul_2012.mp4 --swfUrl http://eestilaul.err.ee/js/players/flowplayer/flowp.layer_bwcheck_final.swf --pageUrl http://eestilaul.err.ee/videod/245a451c-d909-4ff4-8257-eb204316ec51 --flv 2012.02.18_-_21.35-22.45_-_Eesti_Laul_2012.mp4
For some strange reason, the first time I try gives an "ERROR: RTMP_Connect1, handshake failed" error, but it works (sort of) the second time (any thoughts on that?).

The problem is, I can't get more than sixty seconds (and then it restarts without truncating the file) at a time without using the "-v" (live) option. The live option gets around that problem, but then the dump dies every time at around eleven minutes (90 MB downloaded). And (of course), resume won't work with a "live" stream (even though this one isn't really live). So is there any way I can save this stream (I am using Linux if that is not obvious)? Thank you for your help.
Reply With Quote
  #2  
Old 02-21-2012, 11:34 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Trouble with a file


Code:
rtmpdump --rtmp rtmp://media.err.ee:80/etvsaated/2012.02.18_-_21.35-22.45_-_Eesti_Laul_2012.mp4  --flv 2012.02.18_-_21.35-22.45_-_Eesti_Laul_2012.mp4 -v
use rtmpdump http://bit.ly/xJ3Zwl

Code:
--rtmp rtmp://media.err.ee:80/etvsaated/2012.02.18_-_21.35-22.45_-_Eesti_Laul_20
12.mp4  --flv 2012.02.18_-_21.35-22.45_-_Eesti_Laul_2012.mp4 -v
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: trackinfo:
INFO:   timescale             48000.00
INFO:   length                210378752.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
INFO:   timescale             25.00
INFO:   length                109571.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   audiochannels         2.00
INFO:   audiosamplerate       48000.00
INFO:   videoframerate        25.00
INFO:   aacaot                2.00
INFO:   avclevel              30.00
INFO:   avcprofile            77.00
INFO:   audiocodecid          mp4a
INFO:   videocodecid          avc1
INFO:   width                 704.00
INFO:   height                396.00
INFO:   frameWidth            704.00
INFO:   frameHeight           396.00
INFO:   displayWidth          704.00
INFO:   displayHeight         396.00
INFO:   moovposition          616923165.00
INFO:   duration              4382.89
174532.125 kB / 1259.58 sec (28.7%)
Reply With Quote
  #3  
Old 02-21-2012, 05:27 PM
n.p. n.p. is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
n.p. is on a distinguished road
Default

Re: Trouble with a file


Read the suggested thread and learn that there are patches to the source code.
Go to the github mirror thinking that it will be easier to find the source code there.
Download the newest file.
Go to a search engine to figure out how to unpack a .7z file.
Learn that the p7zip package for my system comes with a bloated gui.
Download the source for the p7zip program and compile it.
Unpack the .7z file.
Unpack the official rtmpdump source code.
Attempt to apply the patch.
Notice that 21 hunks fail (about half of them).
Try think of an alternative to going through all of those hunks by hand.
Finally see the "Download as tar.gz" button prominently displayed in the middle of the github page.
Download and unpack the already patched source code.
Attempt to compile (fails with undefined references to sqrt, atan, and exp).
Back to the search engines to try to figure out what is going on.
Learn that I need to have -lm in my linker flags.
Try adding "-lm" to the command line (in XLDFLAGS), but that didn't work.
Edit the Makefile and add "-lm" to the end of the "LDFLAGS=-Wall $(XLDFLAGS)" line.
Successfully compile the patched rtmpdump.
Attempt to run the modified program (it keeps crashing after one and a half seconds).
Remember to LD_PRELOAD the modified librtmp.so, so it gets used instead of the system one.
Run the modified program.
See the stream restart every few seconds.
Remember (again) to add the -v flag.
Run the modified program again.
Learn that it stops at the same place as the unmodified program.

Code:
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: trackinfo:
INFO:   timescale             48000.00
INFO:   length                210378752.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
INFO:   timescale             25.00
INFO:   length                109571.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   audiochannels         2.00
INFO:   audiosamplerate       48000.00
INFO:   videoframerate        25.00
INFO:   aacaot                2.00
INFO:   avclevel              30.00
INFO:   avcprofile            77.00
INFO:   audiocodecid          mp4a
INFO:   videocodecid          avc1
INFO:   width                 704.00
INFO:   height                396.00
INFO:   frameWidth            704.00
INFO:   frameHeight           396.00
INFO:   displayWidth          704.00
INFO:   displayHeight         396.00
INFO:   moovposition          616923165.00
INFO:   duration              4382.89
91078.496 kB / 658.45 sec (15.0%)
Caught signal: 13, cleaning up, just a second...
ERROR: WriteN, RTMP send error 32 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 14672
91117.962 kB / 658.79 sec (15.0%)
Download may be incomplete (downloaded about 15.00%), try resuming
Basically it stops in the same place (plus or minus two seconds) every time.
Reply With Quote
  #4  
Old 02-26-2012, 05:12 AM
n.p. n.p. is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
n.p. is on a distinguished road
Default

Re: Trouble with a file


Can anyone help me with this?

I ran it again with the --debug parameter, and it dies like this (at the same place):

Code:
[...]

91066.163 kB / 658.36 sec (15.0%)
DEBUG2: RTMP_ReadPacket: fd=4
DEBUG2:   0000:  46 00 00 15 00 01 8d 08                            F.......          
DEBUG2:   0000:  af 01 21 0a 55 4c 22 47  07 41 c0 59 08 32 43 ce   ..!.UL"G.A.Y.2C.  

[...]

DEBUG2:   0180:  51 af 8a 7d c9 cc a6 3a  3c 57 4b 44 07            Q..}...:<WKD.     
DEBUG2: RTMP_ReadPacket: fd=4
DEBUG2:   0000:  46 00 00 15 00 01 81 08                            F.......          
DEBUG2:   0000:  af 01 21 0a 55 3d 3d 96  a5 40 91 10 22 47 5d 76   ..!.U==..@.."G]v  

[...]

DEBUG2:   0170:  3d 96 f2 1d fb f1 1f bf  d6 4c b9 49 d5 60 bd 03   =........L.I.`..  
DEBUG2:   0180:  80                                                 .                 
DEBUG2: RTMP_ReadPacket: fd=4
DEBUG2:   0000:  47 00 00 28 00 1d 29 09                            G..(..).          
DEBUG2:   0000:  27 01 00 00 50 00 00 00  15 06 05 11 03 87 f4 4e   '...P..........N  

[...]

DEBUG2:   0fe0:  dd 74 df 1d 8d 3f 6d 62  f3 01 34 bb 7f 20 30 db   .t...?mb..4.. 0.  
DEBUG2:   0ff0:  15 df 51 d8 ff bd f1 a9  82 5d 7c 4a a3 30 d9 81   ..Q......]|J.0..  
DEBUG2: RTMP_ReadPacket: fd=4
DEBUG2:   0000:  c7                                                 .                 
DEBUG: RTMPSockBuf_Fill, recv returned -1. GetSockError(): 104 (Connection reset by peer)
DEBUG2: RTMP_SendPacket: fd=4, size=34
DEBUG2:   0000:  43 00 00 00 00 00 22 14                            C.....".          
DEBUG2:   0000:  02 00 0c 64 65 6c 65 74  65 53 74 72 65 61 6d 00   ...deleteStream.  
DEBUG2:   0010:  40 14 00 00 00 00 00 00  05 00 3f f0 00 00 00 00   @.........?.....  
DEBUG2:   0020:  00 00                                              ..                
Caught signal: 13, cleaning up, just a second...
ERROR: WriteN, RTMP send error 32 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 7465
91066.956 kB / 658.39 sec (15.0%)
DEBUG: RTMP_Read returned: 0
Download may be incomplete (downloaded about 15.00%), try resuming
DEBUG: Closing connection.
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 11:27 AM.


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