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 08-11-2010, 04:50 PM
cheche cheche is offline
Junior Member
 
Join Date: Aug 2010
Posts: 2
cheche is on a distinguished road
Default

rtmpdump fails if download takes too long: Download may be incomplete...,try resuming


if a download takes too long rtmpdump exits with this message:
Quote:
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: 68763
20194.415 kB / 134.13 sec (59.5%)
Download may be incomplete (downloaded about 59.50%), try resuming
errno 32 is EPIPE. the error appears both compiled with openssl or gnutls (not tested with polarssl).
the Wireshark trace looks like this:


if i play the video with the player on the website it doesn't cut the connection.
rtmpe link:
rtmpe://cp10740.edgefcs.net/ondemand/mtvnshrdstor/_!/mtvi/bands/j/juvenile/drop_that_thang_full_640x360_1200.mp4
swf player:
http://media.mtvnservices.com/mgid:uma:video:mtv.com:526372

thanks in advance
Reply With Quote
  #2  
Old 08-12-2010, 06:03 AM
cheche cheche is offline
Junior Member
 
Join Date: Aug 2010
Posts: 2
cheche is on a distinguished road
Default

Re: rtmpdump fails if download takes too long: Download may be incomplete...,try resu


if i resume the download the file is corrupted
thanks in advance
Reply With Quote
  #3  
Old 09-17-2010, 03:31 PM
Ed999 Ed999 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 115
Ed999 is on a distinguished road
Default

Re: rtmpdump fails if download takes too long: Download may be incomplete...,try resu


I am using RTMPDUMP v2.1d on Windows 98. Later versions of the software may differ, particularly if run on a different Operating System.

The RTMPDUMP program provides a number of options that might help you with the type of problem described above.

The obvious switch to add to the Command line is --resume to force a resumption of a partially downloaded RTMP file. But you can also use it with the --timeout 10 switch, to reduce the length of time before the connection times out (in this example, it would time out after 10 seconds of inactivity).

The significance of the --timeout switch is that, in my experience (others may differ), letting the connection sit open for the default period of 120 seconds is an open invitation to the RTMPDUMP program to crash. The shorter the timeout period, the fewer times it crashes on me.

A typical crash closes the file being downloaded improperly, typically corrupting either the file header or the last frame that was downloaded before the cut-off occured. If the crash only corrupts the last frame, you can use the --resume switch by also adding the switch --skip 1 to skip the last 1 frame when resuming. You can try any number, e.g. --skip 10 will skip the final 10 frames when resuming. This will get your download going again.

If the crash corrupts the file header, so that it gives a (false) file size that is greater than the file size on the RTMP server, then you can't resume the download under any conditions, because the server deems you to have got the full file already.

However, I recommend this trick: if your download stops, copy the file to another directory (e.g. to the Desktop) before trying to resume. If you are successful on the resume, you've now got a partial download up your sleeve. Do this EVERY TIME the download breaks!

If the download now crashes, you have made yourself a file that you can use to resume from the point where the last non-fatal break occured. Just delete the broken partial download file, and then copy (note: COPY, do NOT move!) the last backup from the Desktop, to replace it. This way you don't go back to the beginning every time. You've always got in hand a partial download to resume with.

I find that, on average, only about one break in six is a fatal crash (only of RTMPDUMP, not of Windows!) that corrupts the file. So I find this trick quite effective.
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 01:45 AM.


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