VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Mar 2003
    Location
    United Kingdom
    Search Comp PM
    I'm trying to download videos from a password protected site (bobnational.net) using RTMPDumpHelper. I don't know if this is supported or not, but I figured that because its a proxy server any authentication information ought to be passed on, so if anything's going to work this should. But I get an error when the video starts to play:

    Code:
    RTMP Proxy Server v2.4
    (c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL
    
    Streaming on rtmp://0.0.0.0:1935
    WARNING: Trying different position for client digest!
    Processing connect
    app: vod2
    flashVer: WIN 21,0,0,213
    swfUrl: http://bobnational.net/assets/7208e68/ImagenPlayer.swf
    tcUrl: rtmp://swinstream.bobnational.net:1935/vod2
    pageUrl: http://bobnational.net/record/_2wIeIBIe7A5hDILIkIlJOy
    ERROR: RTMP_ReadPacket, failed to read RTMP packet header
    Closing connection... done!
    Any suggestions how to get the video downloaded?
    Quote Quote  
  2. Member
    Join Date
    Mar 2003
    Location
    United Kingdom
    Search Comp PM
    Hmm. Never mind, RTMPExplorer was able to get it working. No idea what it did differently...
    Quote Quote  
  3. Member
    Join Date
    Mar 2003
    Location
    United Kingdom
    Search Comp PM
    Looks like I spoke too soon.

    Code:
    RTMP Server 2.4 git-6230845 2011-9-25
    (c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL
    
    Streaming on rtmp://0.0.0.0:1935
    WARNING: Trying different position for client digest!
    
    rtmpdump -r "rtmp://swinstream.bobnational.net:1935/vod2" -a "vod2" -f "WIN 21,0
    ,0,213" -W "http://bobnational.net/assets/7208e68/ImagenPlayer.swf" -p "http://b
    obnational.net/record/_2wIeIBIe7A5hDILIkIlJOy" -y "flv:flv/1CC1DEF481F4/2012/040
    3/1144/000/000000/000000" -o 000000.flv
    
    Closing connection... done!
    
    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:   creator               Cambridge Imaging Systems Ltd
    INFO:   metadatacreator       Cambridge Imaging Systems Ltd
    INFO:   hasKeyframes          TRUE
    INFO:   hasVideo              TRUE
    INFO:   hasAudio              TRUE
    INFO:   hasMetadata           TRUE
    INFO:   canSeekToEnd          FALSE
    INFO:   duration              3959.77
    INFO:   datasize              577326053.00
    INFO:   videosize             511147949.00
    INFO:   framerate             25.00
    INFO:   videodatarate         1006.33
    INFO:   videocodecid          7.00
    INFO:   width                 512.00
    INFO:   height                288.00
    INFO:   audiosize             65175792.00
    INFO:   audiodatarate         125.30
    INFO:   audiocodecid          2.00
    INFO:   audiosamplerate       3.00
    INFO:   audiosamplesize       1.00
    INFO:   stereo                TRUE
    INFO:   filesize              577475221.00
    INFO:   lasttimestamp         3959.77
    INFO:   lastkeyframetimestamp 3959.52
    INFO:   lastkeyframelocation  577460637.00
    INFO: keyframes:
    INFO: filepositions:
    INFO: times:
    563940.633 kB / 3959.77 sec (99.9%)
    Download complete
    
    admin@tmp ~/Desktop/rtmpdump/explore
    $ ffmpeg -i 000000.flv
    ffmpeg version N-79630-g9ac154d Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.3.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 22.101 / 55. 22.101
      libavcodec     57. 38.100 / 57. 38.100
      libavformat    57. 34.103 / 57. 34.103
      libavdevice    57.  0.101 / 57.  0.101
      libavfilter     6. 44.100 /  6. 44.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  0.101 /  2.  0.101
      libpostproc    54.  0.100 / 54.  0.100
    000000.flv: Invalid data found when processing input
    Any ideas why I'd be getting a(n apparently) corrupt output file from rtmpdump?

    Edit:
    Huh. Even *file* doesn't understand it...
    Code:
    admin@tmp ~/Desktop/rtmpdump/explore
    $ file 000000.flv
    000000.flv: data
    Suspect it's missing its headers or something.
    Last edited by julesh; 25th Apr 2016 at 15:19.
    Quote Quote  
  4. Originally Posted by julesh View Post
    Suspect it's missing its headers or something.
    Yes, that is right. For whatever reason, rtmpdump is not writing the first 13 bytes of the header. I'd have to investigate further to figure out why.

    rtmpdump is writing this:

    Click image for larger version

Name:	header_1.jpg
Views:	205
Size:	181.4 KB
ID:	36776

    Should be this:

    Click image for larger version

Name:	header_2.jpg
Views:	153
Size:	181.0 KB
ID:	36777

    Once the 13 bytes are inserted, the video will play ok.
    Quote Quote  
  5. Member
    Join Date
    Mar 2003
    Location
    United Kingdom
    Search Comp PM
    Thanks, fired up xvi32 and it works great!
    Quote Quote  



Similar Threads