VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 24 of 24
  1. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Hi,

    Looking for suggestions on how to capture this live stream on TVnow.de

    It is free and non-geoblocked, at least I can watch it in the UK.

    https://www.tvnow.de/live-tv/events/utopia-stage-freitag-965762

    I haven't had to download streams for a while, seems things have changed a lot since I did with DRM stuff. I can get the MPD file and I see it's protected with Widevine but after that I'm struggling. I think I need to get a PSSH key, but not sure how?

    I think it's streamed on Youtube as well but this will be better quality.

    Thanks
    Quote Quote  
  2. search "mpd" ; from preview tab you can see pssh (filter with "pssh")
    Code:
    AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQQGDfaOySw9HrFQYlhdFrLg==
    then your key
    Code:
    4060df68ec92c3d1eb15062585d16b2e:474b67c018922a84827c9319818f7d36
    Quote Quote  
  3. the PSSH is in the MPD file
    you then need a working CDM and make a request for that PSSH with the headers (token is in the headers)
    payload itself is only raw request, token gets passed via headers

    you can also directly use lomero's key to decrypt the downloaded files
    what I described above would be if you wanted to obtain that key yourself
    Last edited by mike94; 2nd Jun 2023 at 07:55.
    Quote Quote  
  4. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by lomero View Post
    search "mpd" ; from preview tab you can see pssh (filter with "pssh")
    Code:
    AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQQGDfaOySw9HrFQYlhdFrLg==
    then your key
    Code:
    4060df68ec92c3d1eb15062585d16b2e:474b67c018922a84827c9319818f7d36
    Much appreciated. So now I just download with N_m3u8DL-RE.exe and decrpt afterwards with mp4decrpt, have I got that right?
    Quote Quote  
  5. Originally Posted by Killer3737 View Post
    Originally Posted by lomero View Post
    search "mpd" ; from preview tab you can see pssh (filter with "pssh")
    Code:
    AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQQGDfaOySw9HrFQYlhdFrLg==
    then your key
    Code:
    4060df68ec92c3d1eb15062585d16b2e:474b67c018922a84827c9319818f7d36
    Much appreciated. So now I just download with N_m3u8DL-RE.exe and decrpt afterwards with mp4decrpt, have I got that right?
    Yes, you can decrypt the video and audio files with mp4decrypt.
    Then merge the two files together (i.e. using mkvmerge or ffmpeg) to get a file with both video and audio combined.
    Quote Quote  
  6. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by mike94 View Post
    Originally Posted by Killer3737 View Post
    Originally Posted by lomero View Post
    search "mpd" ; from preview tab you can see pssh (filter with "pssh")
    Code:
    AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQQGDfaOySw9HrFQYlhdFrLg==
    then your key
    Code:
    4060df68ec92c3d1eb15062585d16b2e:474b67c018922a84827c9319818f7d36
    Much appreciated. So now I just download with N_m3u8DL-RE.exe and decrpt afterwards with mp4decrpt, have I got that right?
    Yes, you can decrypt the video and audio files with mp4decrypt.
    Then merge the two files together (i.e. using mkvmerge or ffmpeg) to get a file with both video and audio combined.
    Thanks, just did a test and the resulting solo decrypted MP4s seem to play fine, but when I try to use MKVMerge the resulting file doesn't play as video and strangely it thinks the codec is QT?

    ID : 1
    Format : V_QUICKTIME
    Codec ID : V_QUICKTIME
    Duration : 2 min 47 s
    Bit rate : 7 807 kb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 50.000 FPS
    Bits/(Pixel*Frame) : 0.075
    Stream size : 155 MiB (98%)
    Default : Yes
    Forced : No
    The decrypted MP4 said H.264 as expected, although it still says encrypted despite playing fine.

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.2
    Format settings : CABAC / 3 Ref Frames
    Format settings, CABAC : Yes
    Format settings, Reference frames : 3 frames
    Codec ID : encv / avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 2 min 47 s
    Bit rate mode : Constant
    Bit rate : 7 800 kb/s
    Maximum bit rate : 15.6 Mb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 50.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.075
    Stream size : 155 MiB (100%)
    Encryption : Encrypted
    Color range : Limited
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709
    Codec configuration box : avcC
    EDIT: MP4 out of ffmpeg was fine. Not sure what went wrong with mkv.
    Quote Quote  
  7. Glad it works now, I usually prefer ffmpeg myself:

    Code:
    ffmpeg -i decrypted.mp4 -i decrypted.m4a -vcodec copy -acodec copy your_movie.mp4
    This'll leave all your streams untouched and just merge them together into one file.
    Quote Quote  
  8. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by mike94 View Post
    Glad it works now, I usually prefer ffmpeg myself:

    Code:
    ffmpeg -i decrypted.mp4 -i decrypted.m4a -vcodec copy -acodec copy your_movie.mp4
    This'll leave all your streams untouched and just merge them together into one file.
    Yup, that's what I did. Perhaps it's one of those typical live streams with a few wonky headers that confused mkvmerge.

    But yeah, all good now ready to download the acts I want later. Thanks.
    Quote Quote  
  9. Originally Posted by mike94 View Post
    the PSSH is in the MPD file
    you then need a working CDM and make a request for that PSSH with the headers (token is in the headers)
    payload itself is only raw request, token gets passed via headers

    you can also directly use lomero's key to decrypt the downloaded files
    what I described above would be if you wanted to obtain that key yourself
    Can you please help me figure out how to obtain key so I can use it for tomorrow's RaR streams?
    I have found MPD with PSSH, but not sure what's the correct license url, is it https://widevine.tvnow.de/index/license?
    Also not sure what headers I should put into cdrm

    Thanks in advance!
    Quote Quote  
  10. Originally Posted by vikwinchester View Post
    Originally Posted by mike94 View Post
    the PSSH is in the MPD file
    you then need a working CDM and make a request for that PSSH with the headers (token is in the headers)
    payload itself is only raw request, token gets passed via headers

    you can also directly use lomero's key to decrypt the downloaded files
    what I described above would be if you wanted to obtain that key yourself
    Can you please help me figure out how to obtain key so I can use it for tomorrow's RaR streams?
    I have found MPD with PSSH, but not sure what's the correct license url, is it https://widevine.tvnow.de/index/license?
    Also not sure what headers I should put into cdrm

    Thanks in advance!
    CDRM won't work in this case, the license server blocks all requests from there.
    You can use WKS or the widevine_keys script - but you'll need your own CDM with that.

    License URL is correct, headers are those from the browser's request to that license server.
    Quote Quote  
  11. CDRM works for this service if you provide a working proxy:

    Image
    [Attachment 71446 - Click to enlarge]


    This is the proxy I used: http://user-uuid-60b5fd6021224914ae7b263c46142167:434ca58478e7@181.119.30.35:22223
    Quote Quote  
  12. Originally Posted by stabbedbybrick View Post
    CDRM works for this service if you provide a working proxy:

    Image
    [Attachment 71446 - Click to enlarge]


    This is the proxy I used: http://user-uuid-60b5fd6021224914ae7b263c46142167:434ca58478e7@181.119.30.35:22223
    Sweet, is this a regular HTTP proxy or where do you find those?
    Quote Quote  
  13. Originally Posted by Killer3737 View Post
    Yup, that's what I did. Perhaps it's one of those typical live streams with a few wonky headers that confused mkvmerge

    But yeah, all good now ready to download the acts I want later
    don't use mp4decypt and ffmpeg to mux ... useless

    use N_m3u8DL-RE all-in-one (need to have mp4decypt and ffmpeg on same folder with N_m3u8DL-RE)
    N_m3u8DL-RE -M format=mkv --key xxxx "https://mpd" --save-name xxx

    -M format=mkv or -M format=mp4
    Quote Quote  
  14. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by lomero View Post
    Originally Posted by Killer3737 View Post
    Yup, that's what I did. Perhaps it's one of those typical live streams with a few wonky headers that confused mkvmerge

    But yeah, all good now ready to download the acts I want later
    don't use mp4decypt and ffmpeg to mux ... useless

    use N_m3u8DL-RE all-in-one (need to have mp4decypt and ffmpeg on same folder with N_m3u8DL-RE)
    N_m3u8DL-RE -M format=mkv --key xxxx "https://mpd" --save-name xxx

    -M format=mkv or -M format=mp4
    Tried that and didn't get a single file output, just folders of m4s files. Added --live-real-time-merge which gave me an MP4 video and M4A audio file that were both pre-decrypted, couldn't get it to output straight to one muxed file though.

    I assume -M doesn't work because it's never actually "done".
    Quote Quote  
  15. yes, folders with m4s files is right. this is all video segments

    but end of download, ffmpeg can merge all segments into one final video file mp4 or mkv
    no need to add --live-real-time-merge the process is automatic

    only this does not work when the key is wrong, so RE can't decrypt then no mux
    but the key is right. have you mp4decrypt on same folder with RE ?
    if yes, try to use shaka. then add --use-shaka-packager to RE command
    Quote Quote  
  16. Member
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by lomero View Post
    yes, folders with m4s files is right. this is all video segments

    but end of download, ffmpeg can merge all segments into one final video file mp4 or mkv
    no need to add --live-real-time-merge the process is automatic

    only this does not work when the key is wrong, so RE can't decrypt then no mux
    but the key is right. have you mp4decrypt on same folder with RE ?
    if yes, try to use shaka. then add --use-shaka-packager to RE command
    Yes, all three exes in the same folder.

    As it's a live stream there is technically no end of download, I just stop it manually with CTRL+C, so that is probably why?
    Quote Quote  
  17. ah i'ts live

    so use
    Code:
    --live-record-limit <HH:mm:ss>
    Quote Quote  
  18. Originally Posted by lomero View Post
    ah i'ts live

    so use
    Code:
    --live-record-limit <HH:mm:ss>
    what is the best command for N_m3u8DL-RE to record a portion of ongoing Livestream? just wanna make sure I won't ended up with broken files. Can you please check if this is the correct way?

    --key XXX:XXX
    --save-name recording
    “1.mpd"
    --append-url-params
    --mp4-real-time-decryption
    --live-real-time-merge
    --live-record-limit 00:01:00
    --mux-after-done mp4
    Quote Quote  
  19. it think the best reply is <try yourself>

    some site are different. anyway some command are not relevant:
    --append-url-params
    --mp4-real-time-decryption
    --live-real-time-merge > better download all segments, decrypt and mux
    --live-record-limit 00:01:00 > with this command you can record 1 min only. it's right for test only
    --mux-after-done mp4 > i prefer -M format=mkv but it's the same

    and for mux live better use shaka > --use-shaka-packager
    Quote Quote  
  20. Originally Posted by lomero View Post
    it think the best reply is <try yourself>

    some site are different. anyway some command are not relevant:
    --append-url-params
    --mp4-real-time-decryption
    --live-real-time-merge > better download all segments, decrypt and mux
    --live-record-limit 00:01:00 > with this command you can record 1 min only. it's right for test only
    --mux-after-done mp4 > i prefer -M format=mkv but it's the same

    and for mux live better use shaka > --use-shaka-packager
    So it's better to use it just for downloading segments, and manually merge and decrypt them with mp4decrypt and mkvmerge, right?
    Quote Quote  
  21. no. RE after download process can decrypt and mux. movie or live, the same
    Quote Quote  
  22. Originally Posted by lomero View Post
    no. RE after download process can decrypt and mux. movie or live, the same
    that will be done automatically? I just need to remove “--mp4-real-time-decryption --live-real-time-merge” I guess?
    Quote Quote  
  23. again. your better way is test yourself. follow my post#19 and rip your live for 10 min only. just for test

    and report here your considerations
    Quote Quote  
  24. Originally Posted by lomero View Post
    again. your better way is test yourself. follow my post#19 and rip your live for 10 min only. just for test

    and report here your considerations
    It hasn't been started just yet. But I will try ASAP. Thank you for answering my noob questions, I really appreciate it.
    Quote Quote  



Similar Threads

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