VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Member
    Join Date
    Jul 2014
    Location
    Australia
    Search Comp PM
    I've tried all suggestions regarding downloading an M3U8 file with this link:

    Code:
    http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_16-14-00_2.m3u8
    using this code got from IDM:
    Code:
    ffmpeg -i "http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_23-14-00_2.m3u8" -c copy Video.mp4
    run as a batch file.

    But I get a
    Code:
     [http @ 01D98BC0] HTTP Error 403 Forbidden 
    http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_23-14-00_2.m3u8: 
    Input/output error
    Tried to:

    1. Rename the output file as Video.ts, Video.mkv.
    2. Run the command without the -c copy parameters.
    3. Directly save it using VLC, but not only 2 minutes of chunks. (Not the entire 29 Minutes video)

    Any help would be appreciated. Thanks.
    Quote Quote  
  2. Hi dmpiq ,

    Can you give us , the link where to watch the video ?

    Cheers .
    Quote Quote  
  3. Member
    Join Date
    Jul 2014
    Location
    Australia
    Search Comp PM
    Thanks for your reply.

    Here's the link:
    HTML Code:
    http://www.recordtv.com/#/watch/11465252
    Please note that in order to access it, you'll need to have a Singapore VPN or Proxy as it is region locked. Thanks.
    Quote Quote  
  4. Hi dmpiq ,

    I won't use Singapore VPN or Proxy .
    Here below what I tried previously .

    Code:
    With your link 103_2014-05_16-14-00_2.m3u8
    When VLC told error , i have caught informations , and done 2 files :
    ( NOTE : we can get the beginning for episodes from 1400 to 1430 )
    ===
    #EXTM3U
    #EXT-X-TARGETDURATION:100
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-VERSION:3
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1400-6093.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1400-6094.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1400-6095.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1400-6096.ts
    ===
    #EXTM3U
    #EXT-X-TARGETDURATION:100
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-VERSION:3
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6097.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6098.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6099.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6100.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6101.ts
    #EXTINF:10.000,
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1401-6102.ts
    ===
    Code:
    @echo on
    ffplay -i "Essai_Chunk_1400.m3u8" -x 750 -y 550
    rem CLOSE the window , for watching the next one !!!
    ffplay -i "Essai_Chunk_1401.m3u8" -x 750 -y 550
    pause
    :fin
    Cheers .
    Quote Quote  
  5. Member
    Join Date
    Jul 2014
    Location
    Australia
    Search Comp PM
    Thanks, but I don't know what to do with the code that you sent me?
    Quote Quote  
  6. Deceased
    Join Date
    Dec 2007
    Search PM
    You say that you want to download;

    Code:
    http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_16-14-00_2.m3u8
    So... then why do you use;

    Code:
    http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_23-14-00_2.m3u8
    as input to ffmpeg?

    The first one works fine as input to ffmpeg. If it is first one that you want to download, then why do you use the second one with ffmpeg?
    Last edited by blimey; 17th Jul 2014 at 02:38.
    Quote Quote  
  7. Hi dmpiq ,

    Code:
    using http://recordtv-hls-production.s3.recordtv.com/103/103_2014-05_16-14-00_2.m3u8
    ( with firefox ) i got a file 103_2014-05_16-14-00_2.m3u8
    Code:
    Essai_Chunk.m3u8 ( saving as , after having used text editor )
    ===
    #EXTM3U
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-VERSION:3
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:14
    #EXT-X-MEDIA-SEQUENCE:6093
    #EXTINF:13.32
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1400-6093.ts
    ...
    #EXTINF:10.04
    http://recordtv-hls-production.s3.recordtv.com/103/chunk-103_2-20140516_1430-6273.ts
    #EXT-X-ENDLIST
    ===
    NOTE :
    Origine for each line : chunk-103...
    Replaced by http://recordtv-hls-production.s3.recordtv.com/103/chunk-103...
    Made a batch file
    Code:
    @echo on
    ffmpeg -i "Essai_Chunk.m3u8" -vcodec copy -acodec copy -f mpegts "Essai_Chunk.ts"
    pause
    :fin
    During the process
    Code:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --en
    able-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-a
    mrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
    eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-l
    ibvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [mpegts @ 0292eb60] max_analyze_duration 5000000 reached at 5013600
    [mpegts @ 0292eb60] Could not find codec parameters for stream 0 (Unknown: none ([21][0][0][0] / 0x0
    015)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0292eb60] Estimating duration from bitrate, this may be inaccurate
    [hls,applehttp @ 003ec520] max_analyze_duration 5000000 reached at 5013600
    [hls,applehttp @ 003ec520] Could not find codec parameters for stream 0 (Unknown: none ([21][0][0][0
    ] / 0x0015)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, hls,applehttp, from 'Essai_Chunk.m3u8':
      Duration: 00:28:56.00, start: 12830.997478, bitrate: 0 kb/s
        Stream #0:0: Unknown: none ([21][0][0][0] / 0x0015)
        Stream #0:1: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9
    ], 25 fps, 25 tbr, 90k tbn, 50 tbc
        Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, s16, 139 kb/s
    [mpegts @ 032f3d00] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
    Output #0, mpegts, to 'Essai_Chunk.ts':
      Metadata:
        encoder         : Lavf54.22.100
        Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31,
    25 fps, 90k tbn, 25 tbc
        Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 139 kb/s
    Stream mapping:
      Stream #0:1 -> #0:0 (copy)
      Stream #0:2 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  199 fps=131 q=-1.0 size=    1037kB time=00:00:07.99 bitrate=1061.8kbits/s
    
    ...
    
    frame=45229 fps= 36 q=-1.0 Lsize=  228686kB time=00:30:09.10 bitrate=1035.5kbits/s
    video:177082kB audio:28819kB subtitle:0 global headers:0kB muxing overhead 11.066200%
    Got a file "Essai_Chunk.ts" , converted after in "Essai_Chunk.mp4"

    Cheers .
    Quote Quote  
  8. Member
    Join Date
    Jul 2014
    Location
    Australia
    Search Comp PM
    thanks for the help, but I got the error message:

    Code:
    Application provided invalid, non monotonically increasing dts to muxer in stream 1: 10622856 >= 10620028 av_interleaved_write_frame<>: Invalid argument
    After
    Code:
    frame=2912 fps= 61 q=-1.0 size = 12405KB time=00:01:56.45 bitrate= 872.6kbits/s
    Any idea why?
    Last edited by dmpiq; 23rd Jul 2014 at 22:25.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!