VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 47 of 47
Thread
  1. Well i knew can be output into different formats , (on pipe as example) and grab from there by vlc, all process download, decrypt on fly and output done by ffmpeg.

    And my supposition vas exact !
    here the result of "play" :
    Code:
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000022b8dd02900] Failed to seek for auxiliary info, will only parse senc atoms for encryption info
    error : unterminated entity reference end=END&device=MPD-LIVE-PC-Widevine-HD-ENC&primaryToken=ip=xxxxx~st=1654xxxxx~exp=1654xxxxx~acl=/
    i try to save into mp4.... but with no success. I knew aria select best value ( in my case 1280x720) but i supose ffmpeg cant do.
    Maybe i need other kind of extraction for link.
    if you can give me a hand we can discuss also on discord, if you want or private, io dontr want to disturb other persons who are not interessed.
    aria wil download the file, but need to ask for next input , are sequences of 60 (iso8601) st-end and so on.
    Last edited by libero08; 2nd Jun 2022 at 11:22.
    Quote Quote  
  2. i think it would be a bit slow but anyway this should restream directly from mpd
    Code:
    ffmpeg -cenc_decryption_key 000000privatekey0000000 -i https://private_live_stream.mpd -map 0:5 -map 0:6 -vcodec copy -acodec copy -f mpegts udp://127.0.0.1:1234
    and to play

    Code:
    ffplay udp://127.0.0.1:1234
    credit to rome guy.
    discord=notaghost9997
    Quote Quote  
  3. syntax are correct @nothagost, but private_mpd seems to be not ok.!
    i will appreciate some help. Can i contact you pvt on discord without get ban?


    EDIT:


    Practicaly i'm stuckt on parsing info, wrong constructions of recquest i think .
    Some one give me some tips but notning more.
    Last edited by libero08; 2nd Jun 2022 at 17:08.
    Quote Quote  
  4. I am testing this new ffmped decode functionality, and I am noticing that Windows version works reasonably well and stable.

    However, linux version makes troubles. it is giving me these errors repeated 1000 times, causing video to stutter and cpu consumption to go up.


    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877675, current: 11846340; changing to 11877676. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877676, current: 11850210; changing to 11877677. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877677, current: 11854080; changing to 11877678. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877678, current: 11857860; changing to 11877679. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877679, current: 11861730; changing to 11877680. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877680, current: 11865600; changing to 11877681. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877681, current: 11869380; changing to 11877682. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877682, current: 11873250; changing to 11877683. This may result in incorrect timestamps in the output file.
    [mpegts @ 0x8fee5c0] Non-monotonous DTS in output stream 0:1; previous: 11877683, current: 11877120; changing to 11877684. This may result in incorrect timestamps in the output file.

    Whatever I tried with various switches did not help.

    here is command line i used:

    ffmpeg -f dash -cenc_decryption_key c8dea2b6a77123b519de306284d2314f -fflags +genpts -i 'https://cdn1-hrt.cdn.eurovisioncdn.net/hrtliveorigin/hrt5.smil/1/manifest.mpd?DVR' -user_agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0' -vcodec copy -acodec copy -f mpegts udp://127.0.0.1:1234
    Quote Quote  
  5. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by notaghost View Post
    make sure it is latest https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-2022-06-01-git-c6364b711b-essentials_build.7z


    Code:
    ffmpeg version 2022-06-01-git-c6364b711b-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
      built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
      libavutil      57. 26.100 / 57. 26.100
      libavcodec     59. 32.102 / 59. 32.102
      libavformat    59. 24.100 / 59. 24.100
      libavdevice    59.  6.100 / 59.  6.100
      libavfilter     8. 40.100 /  8. 40.100
      libswscale      6.  6.100 /  6.  6.100
      libswresample   4.  6.100 /  4.  6.100
      libpostproc    56.  5.100 / 56.  5.100
    Brilliant, thanks for sharing
    Quote Quote  
  6. Hello, anyone know how to solve this error? *** buffer overflow detected ***: terminated

    Code: ffplay -cenc_decryption_key b017bcd42e250cc993cf3fa5822c1094 https://tkprp13po7.map.azionedge.net/Content/dsc/Live/Channel(SPOCARHD)/manifest.mpd -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox"

    Quote Quote  
  7. Member DINAM's Avatar
    Join Date
    Sep 2021
    Location
    Rusia
    Search Comp PM
    The keys of this Brazilian service are dynamic, they die very quickly, it is not worth extracting them, it is better to license in another way, not with clearkey for that service.


    Originally Posted by Khall View Post
    Hello, anyone know how to solve this error? *** buffer overflow detected ***: terminated

    Code: ffplay -cenc_decryption_key b017bcd42e250cc993cf3fa5822c1094 https://tkprp13po7.map.azionedge.net/Content/dsc/Live/Channel(SPOCARHD)/manifest.mpd -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox"

    Quote Quote  
  8. Originally Posted by notaghost View Post
    i think it would be a bit slow but anyway this should restream directly from mpd
    Code:
    ffmpeg -cenc_decryption_key 000000privatekey0000000 -i https://private_live_stream.mpd -map 0:5 -map 0:6 -vcodec copy -acodec copy -f mpegts udp://127.0.0.1:1234
    and to play

    Code:
    ffplay udp://127.0.0.1:1234
    credit to rome guy.
    Okey this is a way to restream from mpd whit drm, but in the -cenc_decryption_key 000000privatekey0000000 can we use clearkey?
    Quote Quote  
  9. Member
    Join Date
    Aug 2022
    Location
    Usa
    Search PM
    what to do if mpd has multiple cenc keys?
    Quote Quote  
  10. FFMPEG custom build for linux? Which supports `cenc_decryption_key` flag?
    Quote Quote  
  11. Hello, this is my first post on the forum. I always read a lot but I can't understand and do everything so I am asking for help from more experienced users for advice. I'm thinking of using FFmpeg to decode Widevine DRM, is there a build of FFmpeg currently available? It would be very convenient as one tool for downloading and decoding. A similar FFmpeg compilation with support for the -cenc_decryption_key flag has already been discussed in this thread, but I don't know where to download it for testing.
    Quote Quote  
  12. Originally Posted by Kanakaloka View Post
    I'm thinking of using FFmpeg to decode Widevine DRM, is there a build of FFmpeg currently available? It would be very convenient as one tool for downloading and decoding. A similar FFmpeg compilation with support for the -cenc_decryption_key flag has already been discussed in this thread, but I don't know where to download it for testing.
    did you try searching?
    https://forum.videohelp.com/threads/407505-How-To-Download-live-tv-MPD-DRM-Protect
    post #26 in this thread is literally a link to download ffmpeg with cenc support
    https://forum.videohelp.com/threads/404058-Widevine-Decrypt-Live-Stream-Player#post2658306
    Last edited by ElCap; 13th Jan 2023 at 02:54.
    Quote Quote  
  13. Originally Posted by
    did you try searching?
    [url
    https://forum.videohelp.com/threads/407505-How-To-Download-live-tv-MPD-DRM-Protect[/url]
    post #26 in this thread is literally a link to download ffmpeg with cenc support
    https://forum.videohelp.com/threads/404058-Widevine-Decrypt-Live-Stream-Player#post2658306
    Thanks for the reply, I will try to search the forum more thoroughly. Can I ask for a link for linux with a working function -cenc_decryption_key ?
    Quote Quote  
  14. Originally Posted by ElCap View Post
    install ffmpeg 5
    FFmpeg with the function cenc_decryption_key is a great tool, I would like to compare it with Strymlink but with the release with the function ffmpeg-dkey, but I can't find it under linux, do you know where I can download it?
    Quote Quote  
  15. Member
    Join Date
    Jan 2023
    Location
    Portugal
    Search PM
    -cenc_decryption_key 000000privatekey0000000

    This only decrypts video? The key should not be key:kid?
    Quote Quote  
  16. Originally Posted by lfer94 View Post
    This chrome extension can play drm-protected live streams if you add "?&ck={"KID":"Key"}" at the end of the mpd.
    [...]
    Honestly, it's a bit useless because it doesn't work in external players like VLC, but maybe this method could be adapted to another tools
    Thank you lfer94 for sharing this extension with us!
    I would like to share with you this extension, too: https://github.com/sharkiller/Reproductor-MPD-M3U8

    As for the problem of playing an encrypted video in an external player, a friend suggested using this Android app called Network Stream (Video) Player.

    One way to play such video is to load an M3U playlist. You can follow this template:
    Code:
    #EXTM3U
    #EXTINF:1, <video_name>
    #KODIPROP:inputstreamaddon=inputstream.adaptive
    #KODIPROP:inputstream.adaptive.manifest_type=mpd
    #KODIPROP:inputstream.adaptive.license_type=clearkey
    #KODIPROP:inputstream.adaptive.license_key={"keys": [{"kty": "oct","k": "<key1_b64>","kid": "<kid1_b64>"},{"kty": "oct","k": "<key2_b64>","kid": "<kid2_b64>"}],"type": "temporary"}
    #EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36 Firefox/73.0
    https://link/to/stream.mpd
    The advantage of using this method is that it can allow you to enter multiple keys if needed.

    In the case of one key, you can input the KeyID:Key pair (in hex) in the DRM License URL field.

    EDIT:
    In the case of two keys or more, you can input (for now) the Clearkey JSON response in the DRM License URL field.
    Code:
    {"keys": [{"kty": "oct","k": "<key1_b64>","kid": "<kid1_b64>"},{"kty": "oct","k": "<key2_b64>","kid": "<kid2_b64>"}],"type": "temporary"}
    Last edited by MaZED_UP; 23rd Mar 2023 at 11:16.
    Quote Quote  



Similar Threads

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