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-18-2013, 06:47 AM
similai similai is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
similai is on a distinguished road
Default

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
Reply With Quote
  #2  
Old 02-18-2013, 12:24 PM
AmazingMatze AmazingMatze is offline
Member
 
Join Date: Sep 2011
Posts: 52
AmazingMatze is on a distinguished road
Default

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!
Reply With Quote
  #3  
Old 02-18-2013, 06:21 PM
similai similai is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
similai is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 02-19-2013, 03:04 AM
AmazingMatze AmazingMatze is offline
Member
 
Join Date: Sep 2011
Posts: 52
AmazingMatze is on a distinguished road
Default

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%)
Reply With Quote
  #5  
Old 02-20-2013, 07:43 AM
similai similai is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
similai is on a distinguished road
Default

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?
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:38 PM.


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