rutube.ru dumping stopped working: ERROR: RTMP_ReadPacket, failed to read RTMP packet header
xp sp3, rtmpdump 2.3, confirmed on several videos rtmpdump params obtained from rtmpsrv download starts, but after ~2MB there is an error: "ERROR: RTMP_ReadPacket, failed to read RTMP packet header" rtmpdump pegs the cpu/core and nothing more is downloaded example: http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc rtmpdump command: rtmpdump -r "rtmp://video-1-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 10,3,180,65" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1302852600&s=48aa7c24f91beb34c8394e339c239c33&blid=10b34437e24fb557ae0525243039e3d3" -o 5aecd537dc35d7723f00f93db4c4eafc.flv
How we can get rtmpdump parameters for any stream from this video hosting? Couldn't find anything interesting in the html source code. I think problem may be in playpath parameter.
xp sp3, rtmpdump 2.3, confirmed on several videos
rtmpdump params obtained from rtmpsrv
download starts, but after ~2MB there is an error: "ERROR: RTMP_ReadPacket, failed to read RTMP packet header" rtmpdump pegs the cpu/core and nothing more is downloaded
example: http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc
rtmpdump command: rtmpdump -r "rtmp://video-1-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 10,3,180,65" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1302852600& s=48aa7c24f91beb34c8394e339c239c33&blid=10b34437e24fb557ae0525243039e3d3" -o 5aecd537dc35d7723f00f93db4c4eafc.flv
On 4/15/2011 3:58 AM, Oleg G wrote:
How we can get rtmpdump parameters for any stream from this video hosting? Couldn't find anything interesting in the html source code. I think problem may be in playpath parameter.
The params can be obtained with rtmpsrv. Also the Firefox Unplug extension can show rtmp urls on rutube. There is no indication that there's anything wrong with the playpath. rtmpsrv shows exactly what the flash player requests, and it's confirmed by the fact that the downloads starts and ~2MB of the correct video is retrieved before the error.
Here is my rtmpdump command, which I got with rtmppsrv for this video: rtmpdump -r "rtmp://video-102-1.rutube.ru:1935/vod/" -a "vod/" \ -f "LNX 10,3,162,29" \ -W "http://rutube.ru/player.swf" \ -p "http://rutube.ru/tracks/4322127.html" \ -y \ "mp4:rutube/vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?t=1302862131&h=lunOhu9HfsGf9tpRkQKvlg==&blid=79cc6fbcd0cbb2bb85cb92cb5d705ac4"\ -o test.flv This command downloads full video. So. I think it could be problems of video-1-14.rutube.ru server. As for 100% cpu usage, you could try patch from Peter Miller: http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-April/001356.html
On 4/15/2011 3:58 AM, Oleg G wrote:
How we can get rtmpdump parameters for any stream from this video hosting? Couldn't find anything interesting in the html source code. I think problem may be in playpath parameter.
The params can be obtained with rtmpsrv. Also the Firefox Unplug extension can show rtmp urls on rutube. There is no indication that there's anything wrong with the playpath. rtmpsrv shows exactly what the flash player requests, and it's confirmed by the fact that the downloads starts and ~2MB of the correct video is retrieved before the error.
On 4/15/2011 6:32 AM, Oleg G wrote:
Here is my rtmpdump command, which I got with rtmppsrv for this video: rtmpdump -r "rtmp://video-102-1.rutube.ru:1935/vod/" -a "vod/" \ -f "LNX 10,3,162,29" \ -W "http://rutube.ru/player.swf" \ -p "http://rutube.ru/tracks/4322127.html" \ -y \ "mp4:rutube/vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?t=1302862131&h=lunOhu9HfsGf9tpRkQKvlg==&blid=79cc6fbcd0cbb2bb85cb92cb5d705ac4"\ -o test.flv
This command downloads full video. So. I think it could be problems of video-1-14.rutube.ru server. I tried your server, it did not have my original problem but was not entirely normal either. The transfer was interrupted and resumed by rtmpdump itself numerous times. Eventually it finished, having downloaded ~62MB, which is definitely much larger than the actual size of this 2 min video. And it didn't play well, skipped around, in vlc.
Did you see these resumes? What size did you download? I suppose it may behave differently based on region. Where are you downloading from? I am in the US. Anyways, the above is a different issue, are you able to repro the original problem with my command line: rtmpdump -r "rtmp://video-1-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 10,3,180,65" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1302852600&s=48aa7c24f91beb34c8394e339c239c33&blid=10b34437e24fb557ae0525243039e3d3" -o 5aecd537dc35d7723f00f93db4c4eafc.flv
I tried your server, it did not have my original problem but was not entirely normal either. The transfer was interrupted and resumed by rtmpdump itself numerous times. Eventually it finished, having downloaded ~62MB, which is definitely much larger than the actual size of this 2 min video. And it didn't play well, skipped around, in vlc. Did you see these resumes? What size did you download? I suppose it may behave differently based on region. ~20MB for me. And yes, video is played with repetitions in some places. As I can see while downloading server sends many times sequence of the commands:
NetStream.Pause.Notify NetStream.Unpause.Notify NetStream.Play.Start I think this cause a problem with repetitions while playing. But when we use player from the site I can see that there is no NetStream.Pause.Notify and other commands from this sequence in the stream. So, behavior of the server is different for their player and for rtmpdump.
Where are you downloading from? I am in the US. Russia
Anyways, the above is a different issue, are you able to repro the original problem with my command line Yes, same problem.
Oleg G wrote:
I tried your server, it did not have my original problem but was not entirely normal either. The transfer was interrupted and resumed by rtmpdump itself numerous times. Eventually it finished, having downloaded ~62MB, which is definitely much larger than the actual size of this 2 min video. And it didn't play well, skipped around, in vlc. Did you see these resumes? What size did you download? I suppose it may behave differently based on region. ~20MB for me. And yes, video is played with repetitions in some places. As I can see while downloading server sends many times sequence of the commands:
NetStream.Pause.Notify NetStream.Unpause.Notify NetStream.Play.Start
Those are an indication that rtmpdump detected a timeout from the server. rtmpdump sends a Pause followed by an Unpause when it detects a timeout, because that usually wakes the server back up. In this case, the server has responded to those two commands and has then said that Playback is starting again.
I think this cause a problem with repetitions while playing.
Should not happen, since the Pause/Unpause commands all specify what timestamp to stop and start at, and rtmpdump strips out any duplicate frames.
But when we use player from the site I can see that there is no NetStream.Pause.Notify and other commands from this sequence in the stream. So, behavior of the server is different for their player and for rtmpdump.
Then you really need to see why the stream is timing out in the first place. Probably the server doesn't like the large buffersize that rtmpdump uses by default, and you'll need to use a smaller buffer (and thus download more slowly).
Where are you downloading from? I am in the US. Russia
Anyways, the above is a different issue, are you able to repro the original problem with my command line Yes, same problem.
Howard Chu, can you please comment on the issue I reported, you should be able to repro it: rtmpdump -W "http://rutube.ru/player.swf" -r "rtmp://video-1-14.rutube.ru/rutube_vod_2/" -a "rutube_vod_2/" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1303040095&s=518919031a04c702dffd2033fc15e622&blid=fd69745a03c8e8883e012b4878643a3c" -o "test.flv" "ERROR: RTMP_ReadPacket , failed to read RTMP packet header" after downloading ~2mb, followed by a cpu spinning hang. Thanks.
On 4/17/2011 6:40 AM, al_9x@yahoo.com wrote:
Howard Chu,
can you please comment on the issue I reported, you should be able to repro it:
rtmpdump -W "http://rutube.ru/player.swf" -r "rtmp://video-1-14.rutube.ru/rutube_vod_2/" -a "rutube_vod_2/" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1303040095&s=518919031a04c702dffd2033fc15e622&blid=fd69745a03c8e8883e012b4878643a3c" -o "test.flv"
"ERROR: RTMP_ReadPacket , failed to read RTMP packet header" after downloading ~2mb, followed by a cpu spinning hang.
Thanks.
Can any rtmpdump dev please comment on this problem?
You forgot to provide the location of the .swf file via the "-W" option. That's why the video stops at 30 seconds. On 4/23/11, al_9x@yahoo.com <al_9x@yahoo.com> wrote:
On 4/17/2011 6:40 AM, al_9x@yahoo.com wrote:
Howard Chu,
can you please comment on the issue I reported, you should be able to repro it:
rtmpdump -W "http://rutube.ru/player.swf" -r "rtmp://video-1-14.rutube.ru/rutube_vod_2/" -a "rutube_vod_2/" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1303040095&s=518919031a04c702dffd2033fc15e622&blid=fd69745a03c8e8883e012b4878643a3c"
-o "test.flv"
"ERROR: RTMP_ReadPacket , failed to read RTMP packet header" after downloading ~2mb, followed by a cpu spinning hang.
Thanks.
Can any rtmpdump dev please comment on this problem?
_______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
What I mean is, provide the *correct* location of the .swf file. Using rtmpdump with the "-A" option gives similar results; the servers stops sending new data at about the 30 sec mark.
On 4/24/2011 5:16 PM, pnixte@gmail.com wrote:
What I mean is, provide the *correct* location of the .swf file.
"http://rutube.ru/player.swf" is the correct location and it's confirmed by rtmpsrv.
Suddenly adding `--live' option solved the problem with repetitions for me.
On 4/15/2011 6:32 AM, Oleg G wrote:
Here is my rtmpdump command, which I got with rtmppsrv for this video: rtmpdump -r "rtmp://video-102-1.rutube.ru:1935/vod/" -a "vod/" \ -f "LNX 10,3,162,29" \ -W "http://rutube.ru/player.swf" \ -p "http://rutube.ru/tracks/4322127.html" \ -y \ "mp4:rutube/vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?t=1302862131&h=lunOhu9HfsGf9tpRkQKvlg==&blid=79cc6fbcd0cbb2bb85cb92cb5d705ac4"\ -o test.flv
This command downloads full video. So. I think it could be problems of video-1-14.rutube.ru server. I tried your server, it did not have my original problem but was not entirely normal either. The transfer was interrupted and resumed by rtmpdump itself numerous times. Eventually it finished, having downloaded ~62MB, which is definitely much larger than the actual size of this 2 min video. And it didn't play well, skipped around, in vlc.
Did you see these resumes? What size did you download? I suppose it may behave differently based on region. Where are you downloading from? I am in the US.
Anyways, the above is a different issue, are you able to repro the original problem with my command line:
rtmpdump -r "rtmp://video-1-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 10,3,180,65" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1302852600&s=48aa7c24f91beb34c8394e339c239c33&blid=10b34437e24fb557ae0525243039e3d3" -o 5aecd537dc35d7723f00f93db4c4eafc.flv
_______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
On Fri, 2011-04-15 at 02:33 -0400, al_9x@yahoo.com wrote:
download starts, but after ~2MB there is an error: "ERROR: RTMP_ReadPacket, failed to read RTMP packet header" rtmpdump pegs the cpu/core and nothing more is downloaded
Yes, this is a problem I was seeing, too. I posted a patch last week. -- Peter Miller <peter.miller.aus@gmail.com>
On 4/15/2011 2:33 AM, al_9x@yahoo.com wrote:
xp sp3, rtmpdump 2.3, confirmed on several videos
rtmpdump params obtained from rtmpsrv
download starts, but after ~2MB there is an error: "ERROR: RTMP_ReadPacket, failed to read RTMP packet header" rtmpdump pegs the cpu/core and nothing more is downloaded
example: http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc
rtmpdump command: rtmpdump -r "rtmp://video-1-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 10,3,180,65" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1302852600&s=48aa7c24f91beb34c8394e339c239c33&blid=10b34437e24fb557ae0525243039e3d3" -o 5aecd537dc35d7723f00f93db4c4eafc.flv
Thought I'd see if perhaps this started working, no. Using rtmpdump-20110925-git-6230845-win32: rtmpdump -r "rtmp:// video-12-14.rutube.ru:1935/rutube_vod_2/" -a "rutube_vod_2/" -f "WIN 11,0,1,152" -W "http://rutube.ru/player.swf" -p "http://rutube.ru/tracks/4322127.html?v=5aecd537dc35d7723f00f93db4c4eafc" -y "mp4:vol23/movies/5a/ec/5aecd537dc35d7723f00f93db4c4eafc.mp4?e=1320479647&s=135b5c241a50270f112ba8cc4e0bb4cd" -o 5aecd537dc35d7723f00f93db4c4eafc.flv RTMPDump 2.4 git-6230845 2011-9-25 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL Connecting ... INFO: Connected... Starting download at: 0.000 kB INFO: Metadata: INFO: duration 141.87 INFO: moovPosition 40.00 INFO: width 496.00 INFO: height 368.00 INFO: videocodecid avc1 INFO: audiocodecid mp4a INFO: avcprofile 66.00 INFO: avclevel 21.00 INFO: aacaot 2.00 INFO: videoframerate 15.00 INFO: audiosamplerate 44100.00 INFO: audiochannels 2.00 INFO: tags: INFO: -¬too Lavf52.93.0 INFO: trackinfo: INFO: length 2128.00 INFO: timescale 15.00 INFO: language eng INFO: sampledescription: INFO: sampletype avc1 INFO: length 6254592.00 INFO: timescale 44100.00 INFO: language eng INFO: sampledescription: INFO: sampletype mp4a 1159.504 kB / 18.00 sec (12.6%) ERROR: RTMP_ReadPacket, failed to read RTMP packet header 1185.545 kB / 18.00 sec (12.6%) INFO: Connection timed out, trying to resume. Resuming download at: 1185.545 kB ERROR: RTMP_ReadPacket, failed to read RTMP packet header 1185.545 kB / 0.00 sec INFO: Connection timed out, trying to resume. ERROR: RTMP_ReadPacket, failed to read RTMP packet header ERROR: Failed to resume the stream Download may be incomplete (downloaded about 0.00%), try resuming ___________________________________________________________ Can anyone working on rtmpdump explain why? Is it fixable?
participants (5)
-
al_9x@yahoo.com -
Howard Chu -
Oleg G -
Peter Miller -
pnixte@gmail.com