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

rtmpdumphelper can download but rtmpdump command line can't

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

similai 02-18-2013 05:47 AM

rtmpdumphelper can download but rtmpdump command line can't


 
The url is -
http://www.koolearn.com/lecture/0/12...method=forward


Since I can download the mp4 file from this site via rtmpdumphelper, I cannot download the file from the rtmpdump command line.
Anybody can help?

The command I used is -
Code:

rtmpdump -r rtmp://fms.koolearn.com/vod2/ -W http://www.koolearn.com/jsp/courseweb/StrobeMediaPlayback/player_mp4_damoban_jiami_1205_do.swf -p http://www.koolearn.com/lecture/0/120688/0/585902?_method=forward -y mp4:ky/2014ky/kyyy/20
14kyyy_jc_yd_17.mp4 -o 2014kyyy_jc_yd_17.mp4


AmazingMatze 02-18-2013 11:24 AM

Re: rtmpdumphelper can download but rtmpdump command line can't


 
Code:

rtmpdump -r "rtmp://fms.koolearn.com/vod2/" -a "vod2/" -f "WIN 11,6,602,168" -W "http://www.koolearn.com/jsp/courseweb/StrobeMediaPlayback/player_mp4_damoban_jiami_1205_do.swf" -p "http://www.koolearn.com/lecture/0/120688/0/585902?_method=forward" -C S:0 -C S:8F97E588EC4BDDC9057A8D254B2BAAA7.tomcatb -C S:1361211527651 -C S:5a220c79636b5e86d61c3f3215693f22 -y "mp4:ky/2014ky/kyyy/2014kyyy_jc_yd_17.mp4" -o "2014kyyy_jc_yd_17.mp4.flv"
Use RTMPDumpHelper & RTMPSuck (KSV Version). It will automatically retrieve the correct commandline parameters!

similai 02-18-2013 05:21 PM

Re: rtmpdumphelper can download but rtmpdump command line can't


 
Thanks, AmazingMatze.
But, this command didn't download the full video, it stop at about 1.5%.

The error message:

976.703 kB / 18.44 sec (1.7%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
978.521 kB / 18.44 sec (1.7%)
Download may be incomplete (downloaded about 1.70%), try resuming

AmazingMatze 02-19-2013 02:04 AM

Re: rtmpdumphelper can download but rtmpdump command line can't


 
Ok, this seems to be a bit more tricky. I guess, technically it could be done with RTMPDump. Better stick to your current setup of RTMPDumpHelper & RTMPSuck. - Nonetheless I tried the following batch with varying success. As you can see, I got it to download about 20% of the file. But resuming seems to fail unpredictably. That's why I had to execute the batch several times.

Start_Resume.bat
Code:

@echo off

set /a i=0

rtmpdump -T "token" -R -r "rtmp://fms.koolearn.com/vod2/" -a "vod2/" -f "WIN 11,6,602,168" -W "http://www.koolearn.com/jsp/courseweb/StrobeMediaPlayback/player_mp4_damoban_jiami_1205_do.swf" -p "http://www.koolearn.com/lecture/0/120688/0/585902?_method=forward" -C S:0 -C S:8F97E588EC4BDDC9057A8D254B2BAAA7.tomcatb -C S:1361211527651 -C S:5a220c79636b5e86d61c3f3215693f22 -y "mp4:ky/2014ky/kyyy/2014kyyy_jc_yd_17.mp4" -o "2014kyyy_jc_yd_17.mp4.flv"
echo.
echo Resume?
echo.
pause

:resume
cls
set /a i=%i%+1
echo Download attempt No. %i%:
echo.
rtmpdump -e -T "token" -R -r "rtmp://fms.koolearn.com/vod2/" -a "vod2/" -f "WIN 11,6,602,168" -W "http://www.koolearn.com/jsp/courseweb/StrobeMediaPlayback/player_mp4_damoban_jiami_1205_do.swf" -p "http://www.koolearn.com/lecture/0/120688/0/585902?_method=forward" -C S:0 -C S:8F97E588EC4BDDC9057A8D254B2BAAA7.tomcatb -C S:1361211527651 -C S:5a220c79636b5e86d61c3f3215693f22 -y "mp4:ky/2014ky/kyyy/2014kyyy_jc_yd_17.mp4" -o "2014kyyy_jc_yd_17.mp4.flv"
rem // max attempts = 100
if %i%==100 goto stop
goto resume

:stop
cls
echo %i% resume attempts...
echo.
pause

Code:

Download attempt No. 31:

RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Resuming download at: 11410.727 kB / 230.000 sec (21.2%)
  in approximately realtime (disabled BUFX speedup hack)
INFO: Metadata:
INFO:  duration                1080.98
INFO:  moovPosition            32.00
INFO:  width                  640.00
INFO:  height                  360.00
INFO:  videocodecid            avc1
INFO:  audiocodecid            mp4a
INFO:  avcprofile              100.00
INFO:  avclevel                13.00
INFO:  aacaot                  2.00
INFO:  videoframerate          25.00
INFO:  audiosamplerate        44100.00
INFO:  audiochannels          2.00
INFO: trackinfo:
INFO:  length                  27023000.00
INFO:  timescale              25000.00
INFO:  language                und
INFO: sampledescription:
INFO:  sampletype              avc1
INFO:  length                  47671296.00
INFO:  timescale              44100.00
INFO:  language                und
INFO: sampledescription:
INFO:  sampletype              mp4a
WARNING: Stream does not start with requested frame, ignoring data...
WARNING: Stream does not start with requested frame, ignoring data...
11625.893 kB / 234.76 sec (21.7%)


similai 02-20-2013 06:43 AM

Re: rtmpdumphelper can download but rtmpdump command line can't


 
Thank you,AmazingMatze. RTMPDumpHelper & rtmpsuck is the best solution. I tried your batch file but failed after 100 rounds. I'm curious about what makes rtmpdump commandline won't work with -e parameter? Is there any change on the stream packet, so it can only be downloaded via browser->rtmpsuck->rtmpdump?


All times are GMT -6. The time now is 03:38 AM.