VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Hi. I try download DRM and merge video, but yt-dlp only downloading files, i want ffmpeg decrypt videos and merging with yt dlp.
    Code:
    C:\Users\Alexander>python -myt_dlp -v --allow-unplayable-formats -N 5 --ppa "ffmpeg:-encryption_key 582c965daf1db8ca5d324e11f08c9098:6223ce375dac6eaed559c5d0a4d45b06" -o "C:\Biathlon\test.mp4" "URL"
    [debug] Command-line config: ['-v', '--allow-unplayable-formats', '-N', '5', '--ppa', 'ffmpeg:-encryption_key 582c965daf1db8ca5d324e11f08c9098:6223ce375dac6eaed559c5d0a4d45b06', '-o', 'C:\\Biathlon\\test.mp4', 'URL']
    WARNING: You have asked for UNPLAYABLE formats to be listed/downloaded. This is a developer option intended for debugging.
             If you experience any issues while using this option, DO NOT open a bug report
    [debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8, error utf-8, screen utf-8
    [debug] yt-dlp version nightly@2025.03.16.232921 from yt-dlp/yt-dlp-nightly-builds [2ee3a0aff] (pip)
    [debug] Python 3.13.0 (CPython AMD64 64bit) - Windows-11-10.0.26100-SP0 (OpenSSL 3.0.15 3 Sep 2024)
    [debug] exe versions: ffmpeg 2025-02-17-git-b92577405b-full_build-www.gyan.dev (setts), ffprobe 2025-02-17-git-b92577405b-full_build-www.gyan.dev
    [debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, mutagen-1.47.0, requests-2.32.3, sqlite3-3.45.3, urllib3-2.2.3, websockets-13.1
    [debug] Proxy map: {'http': 'http://127.0.0.1:10808', 'https': 'http://127.0.0.1:10808', 'ftp': 'http://127.0.0.1:10808'}
    [debug] Request Handlers: urllib, requests, websockets
    [debug] Extractor Plugins: GetPOT (YoutubeIE)
    [debug] Plugin directories: C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp_plugins
    [debug] Loaded 1847 extractors
    [generic] Extracting URL: URL
    [generic] Manifest: Downloading webpage
    WARNING: [generic] Falling back on generic information extractor
    [generic] Manifest: Extracting information
    [debug] Identified a DASH manifest
    [debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
    [debug] Default format spec: bestvideo*+bestaudio/best
    [info] Manifest: Downloading 1 format(s): 20+25
    WARNING: You have requested merging of multiple formats while also allowing unplayable formats to be downloaded. The formats won't be merged to prevent data corruption.
    [debug] Invoking dashsegments downloader on "URL"
    [dashsegments] Total fragments: 2453
    [download] Destination: C:\Biathlon\test.f20.mp4
    [debug] File locking is not supported. Proceeding without locking
    [download]  36.2% of ~   4.30GiB at   43.36MiB/s ETA 01:06 (frag 888/2453)[download] Got error: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2580). Retrying (1/10)...
    [download] 100% of    4.29GiB in 00:01:39 at 44.08MiB/s
    [debug] Invoking dashsegments downloader on "URL"
    [dashsegments] Total fragments: 2453
    [download] Destination: C:\Biathlon\test.f25.m4a
    [download] 100% of  240.74MiB in 00:00:25 at 9.46MiB/s
    
    C:\Users\Alexander>
    Quote Quote  
  2. Use N-M3u8_RE instead yt-dlp
    Quote Quote  
  3. I don't believe that ffmpeg understands the format that you are passing the keys. If you insist on using yt-dlp, this plugin might be useful: https://github.com/aarubui/yt-dlp-mp4decrypt

    Disclaimer: I've not tried the plugin myself, but the code looks really good.
    Quote Quote  



Similar Threads

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