VideoHelp Forum




+ Reply to Thread
Results 1 to 17 of 17
  1. I want to download an encrypted video with streamlink with the following command.

    Code:
    streamlink  --hls-live-restart -o test.mp4 "https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc-083bb0.mpd?encoding=segmentBase&amznDtid=AOAGZA014O5RE" best
    shortly before the download finishes (at around 26GB), I get the following error:

    Code:
    [19:48:27,437][stream.dash][debug] Download of segment: https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc_video_117_0_5791117.mp4 complete
    [download][test.mp4] Written 25.97 GB (2h24m58s @ 1.0 MB/s)                                                         
    [19:49:27,503][stream.ffmpegmux][error] Pipe copy aborted: \\.\pipe\ffmpeg-12796-364
    [19:49:27,518][stream.ffmpegmux][error] Pipe copy aborted: \\.\pipe\ffmpeg-12796-967
    Anyone knows what this means? I tried to dig around, but coulnd't come up with anything.

    I am on Windows 10, Streamlink 1.7.0 and FFmpeg 4.3.1.

    Thanks!
    Quote Quote  
  2. Content encrypted.
    Quote Quote  
  3. I know. I only want to download the encrypted video. No harm.
    Quote Quote  
  4. Remove ffmpeg.exe from the Streamlink directory.
    Quote Quote  
  5. Then I get

    Code:
    C:\Users\pw>streamlink  --hls-live-restart -o test.mp4 "https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc-083bb0.mpd?encoding=segmentBase&amznDtid=AOAGZA014O5RE" 720p
    [cli][info] Found matching plugin dash for URL https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc-083bb0.mpd?encoding=segmentBase&amznDtid=AOAGZA014O5RE
    [cli][info] Available streams: 288p (worst), 396p, 540p, 720p, 1080p (best)
    [cli][info] Opening stream: 720p (dash)
    [cli][error] Try 1/1: Could not open stream <Stream()> (Could not open stream: cannot use FFMPEG)
    error: Could not open stream <Stream()>, tried 1 times, exiting
    Is this what you expected?
    Quote Quote  
  6. So it doesn't work without FFmpeg. I cannot suggest anything else.
    Quote Quote  
  7. Thanks though. Since the error comes from an `OSError` (I checked the source code), it may work on another operating system. I will try later and report back.
    Quote Quote  
  8. Deceased
    Join Date
    Dec 2007
    Search PM
    Originally Posted by Beta2k View Post
    --hls-live-restart!
    Why are you using the above command line parameter?

    The url is to dash sources, not hls.

    Streamlink is coded to skip encrypted sources. Even if those checks are patched out, streamlink will not properly save the drm headers.

    Youtube-dl is also coded to skip encrypted sources, but when those checks in youtube-dl are patched out, such modified version of youtube-dl will properly save the drm headers.
    Quote Quote  
  9. Originally Posted by blimey View Post
    Originally Posted by Beta2k View Post
    --hls-live-restart!
    Why are you using the above command line parameter?

    The url is to dash sources, not hls.

    Streamlink is coded to skip encrypted sources. Even if those checks are patched out, streamlink will not properly save the drm headers.

    Youtube-dl is also coded to skip encrypted sources, but when those checks in youtube-dl are patched out, such modified version of youtube-dl will properly save the drm headers.
    thanks that makes sense.

    weirdly, streamlink did not say that it won't download because the source encrypted. maybe has something to do with --hls-live-restart?
    Quote Quote  
  10. This playlist 'Streamlink' downloads.
    Quote Quote  
  11. Deceased
    Join Date
    Dec 2007
    Search PM
    deleted per codehound
    Last edited by blimey; 30th Nov 2020 at 15:33.
    Quote Quote  
  12. Originally Posted by blimey View Post

    Regardless of any output filename extension specified to streamlink, streamlink will write the downloaded contents to a matroska container format.
    Incorrect.
    Quote Quote  
  13. Deceased
    Join Date
    Dec 2007
    Search PM
    Originally Posted by codehound View Post
    Incorrect.
    Your argument is quite convincing, but can you provide a concrete counterexample for the url provided by the OP:

    Code:
    https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc-083bb0.mpd
    Provide any streamlink command line example that will produce an output file (using the above url as input) that is not written in the matroska container format (when viewed with a hex editor or other method of directly viewing the raw hex/binary contents of the output file).
    Quote Quote  
  14. Originally Posted by blimey View Post
    Originally Posted by codehound View Post
    Incorrect.
    Your argument is quite convincing, but can you provide a concrete counterexample for the url provided by the OP:

    Code:
    https://aivottjab-a.akamaihd.net/IAD/jab-assets/jab-prod-iad/out/v1/732334e942a4465b8af9b21077d4e61d/cenc-083bb0.mpd
    Provide any streamlink command line example that will produce an output file (using the above url as input) that is not written in the matroska container format (when viewed with a hex editor or other method of directly viewing the raw hex/binary contents of the output file).
    I just saw your sweeping statement further down the post, and felt the need to correct it. As any streamlink newbies could take that at face value....
    Quote Quote  
  15. All right - 'matroska' container.
    Quote Quote  
  16. Deceased
    Join Date
    Dec 2007
    Search PM
    Originally Posted by codehound View Post
    I just saw your sweeping statement further down the post, and felt the need to correct it. As any streamlink newbies could take that at face value....
    I have deleted the post, giving you full credit, of course.

    If you were worried that someone would read the post out of context, you could have provided that context yourself.

    Originally Posted by codehound View Post
    Incorrect.
    Your reply above, even though just a single word, is rather sweeping as well.

    If anyone else wants to verify that dash input sources are written to the matroska container format (when saved to a file), just look at the streamlink source code.
    Quote Quote  
  17. Fairplay, blimey...

    I don't wish to get into a clash with you either.

    I mainly use streamlink and yt-dl on ubuntu and I have seen this pipe error | on Windows before but never on ubuntu. Maybe a clue for OP (?)

    Plus I dont think many streamlink newbies will be delving too far into the source code.

    And I cant understand the logic of wanting to DL a cenc encrypted video as-is either...unless I'm missing something.

    And the hls-live-restart used to be brilliant on Live youtube sports streams till they moved to dash. Sometimes jumping back hours.
    Last edited by codehound; 30th Nov 2020 at 18:10.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!