VideoHelp Forum

+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Hello:
    I tried to use the yt-dlp to download a few similar M3U8 links and save to local hard drive, but almost all the download failed.
    The commands look like this:
    yt-dlp https://m3u8.1proxy.xyz/media/g_05/playlist_gtom.m3u8 --downloader ffmpeg --downloader-args "ffmpeg:-t 3300" --referer "https://bingsport.com/" -o g05.mp4

    yt-dlp https://m3u8.1proxy.xyz/media/g_10/playlist_gtom.m3u8 --downloader ffmpeg --downloader-args "ffmpeg:-t 3300" --referer "https://bingsport.com/" -o g10.mp4

    yt-dlp https://m3u8.1proxy.xyz/media/g_13/playlist_gtom.m3u8 --downloader ffmpeg --downloader-args "ffmpeg:-t 3300" --referer "https://bingsport.com/" -o g13.mp4

    The M3U8 links could change over the times, but most of the time, there will be some M3U8 links available. But I got the following errors, then download failed to continue:

    [aac_adtstoasc @ 00000184051bc040] Error parsing ADTS frame header!=2295.5kbits/s speed=1.01x
    [mp4 @ 000001840565eac0] Error applying bitstream filters to an output packet for stream #1: Invalid data found when processing input
    av_interleaved_write_frame(): Invalid data found when processing input
    frame=15576 fps= 27 q=-1.0 Lsize= 166145kB time=00:09:50.20 bitrate=2306.1kbits/s speed=1.01x
    video:159196kB audio:6455kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.297871%
    Conversion failed!

    ERROR: ffmpeg exited with code 1
    ......

    [mpegts @ 000002a9694f8f80] PES packet size mismatch
    [mpegts @ 000002a9694f8f80] Packet corrupt (stream = 1, dts = 8020642230).
    [aac_adtstoasc @ 000002a969933c00] Error parsing ADTS frame header!=2058.0kbits/s speed=1.02x
    [mp4 @ 000002a969940540] Error applying bitstream filters to an output packet for stream #1: Invalid data found when processing input
    av_interleaved_write_frame(): Invalid data found when processing input
    frame=15120 fps= 30 q=-1.0 Lsize= 129671kB time=00:08:33.58 bitrate=2068.3kbits/s speed=1.02x
    video:122977kB audio:6255kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.339391%
    Conversion failed!

    ERROR: ffmpeg exited with code 1

    Any suggestion that how I can add some parameter to keep the download continue?
    Thanks,
    Last edited by zydjohn; 20th Nov 2021 at 15:57. Reason: add more data
    Quote Quote  
  2. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Code:
    streamlink --http-header "Referer=https://bingsport.com/" --stream-segment-threads 10 --hls-duration 00:00:3300 "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8" best -o g03.ts
    or

    Code:
    streamlink --http-header "Referer=https://bingsport.com/" --stream-segment-threads 10 --hls-duration 00:55:00 "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8" best -o g03.ts
    Quote Quote  
  3. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Hello:
    Thanks for your reply, I have downloaded streamlink for Windows form this URL: https://www.videohelp.com/download/streamlink-3.0.1.exe
    Then I installed and put its path in system PATH variable, then I tried to run any command, I got error message, like this:
    D:\Videos\Download>streamlink --can-handle-url "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8"
    usage: streamlink [OPTIONS] <URL> [STREAM]
    streamlink: error: unrecognized arguments: --rtmp-rtmpdump=rtmpdump.exe
    Do I have to install other software to make it working in my Windows 10 (Version 21H2) PC?
    Quote Quote  
  4. Originally Posted by zydjohn View Post
    Hello:
    Thanks for your reply, I have downloaded streamlink for Windows form this URL: https://www.videohelp.com/download/streamlink-3.0.1.exe
    Then I installed and put its path in system PATH variable, then I tried to run any command, I got error message, like this:
    D:\Videos\Download>streamlink --can-handle-url "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8"
    usage: streamlink [OPTIONS] <URL> [STREAM]
    streamlink: error: unrecognized arguments: --rtmp-rtmpdump=rtmpdump.exe
    Do I have to install other software to make it working in my Windows 10 (Version 21H2) PC?
    Try an older version of Streamlink, like 2.4.0
    In version 3 they dropped support/switches connected with rtmpdump or something.
    Quote Quote  
  5. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by zydjohn View Post
    Hello:
    Thanks for your reply, I have downloaded streamlink for Windows form this URL: https://www.videohelp.com/download/streamlink-3.0.1.exe
    Then I installed and put its path in system PATH variable, then I tried to run any command, I got error message, like this:
    D:\Videos\Download>streamlink --can-handle-url "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8"
    usage: streamlink [OPTIONS] <URL> [STREAM]
    streamlink: error: unrecognized arguments: --rtmp-rtmpdump=rtmpdump.exe
    Do I have to install other software to make it working in my Windows 10 (Version 21H2) PC?
    Sorry, I forgot to say that with newest versions you could get that error. Install the 2.4.0 as [ss]vegeta suggested.

    Originally Posted by [ss]vegeta View Post
    In version 3 they dropped support/switches connected with rtmpdump or something.
    Exactly.
    Quote Quote  
  6. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Hello:
    Thanks for your help. I tried one small M3U8 link, it seems working now.
    But I need to test a bigger live link.
    However, I don't understand why streamlink 3.0.1 is worse than the old version 2.4.0?
    If they dropped support for rtmpdump, then it is better not showing the error, right?
    Thanks,
    Quote Quote  
  7. Originally Posted by zydjohn View Post
    However, I don't understand why streamlink 3.0.1 is worse than the old version 2.4.0?
    If something worked with the older version and doesn't work with the new version, it doesn't mean it's worse.
    It might be worse for you.
    It's probably easier and cleaner for developers.
    Maybe the best explanation you'll get is here
    https://github.com/streamlink/streamlink/issues/4040
    Quote Quote  
  8. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Thanks for your explain.
    Do you think they will release new version to clean up all the messy stuff and make things better?
    Quote Quote  
  9. Originally Posted by zydjohn View Post
    Do you think they will release new version to clean up all the messy stuff and make things better?
    No, they'll never satisfy your needs.
    Quote Quote  
  10. Originally Posted by zydjohn View Post
    Do you think they will release new version to clean up all the messy stuff and make things better?
    Ask the developers on Github, I'm sure your question will be well received.
    https://github.com/streamlink/streamlink/issues
    Discord welcome - codehound#0348
    Quote Quote  
  11. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Hello:
    I did some tests, and they worked yesterday. But today, it seems almost all streamlink download failed before timeout (like 3300 seconds).
    Any suggestions?
    One example:
    streamlink --http-header "Referer=https://bingsport.com/" --stream-segment-threads 10 --hls-duration 00:55:00 "https://m3u8.1proxy.xyz/media/g_03/playlist_gtom.m3u8" best -o g03.mp4
    By the way, I figured out how to use new version (like 3.0.1/3.0.2) streamlink.
    After installtion, just edit configuration file, and comment out (#) any lines contains rtmpdump.
    But I didn't try to use new version to download yet.
    Quote Quote