VideoHelp Forum




+ Reply to Thread
Results 1 to 26 of 26
  1. Hello,

    I've trying to download : https://www.rts.ch/play/tv/les-goldberg/video/geoff-la-bonne-pate-episode-1323-saison-...video:13449307

    Find the mpd : https://rtsvod-euwe.akamaized.net/ef624779-c07b-477a-b497-9486c7ad2205/RTSVOD-52d04d05...ncryption=cenc)
    Find the cenc : AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISELmBMV Ot6kPxmGvQJzW/h7w=
    Licence : https://srg.live.ott.irdeto.com/licenseServer/widevine/v1/SRG/license?contentId=RTSVOD

    But impossible to find the key

    And I've an error with yt-dlp when I try to download the audio : ERROR: string index out of range

    Can you help me ?
    Thanks
    Quote Quote  
  2. Hi,

    Originally Posted by screamjojo View Post
    Find the cenc : AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISELmBMV Ot6kPxmGvQJzW/h7w=

    But impossible to find the key
    Where are you getting that PSSH from? Use https://greasyfork.org/en/scripts/373903-eme-logger which will get you the right PSSH, which can be used to get the key:

    Code:
    C:\Users\me>set HTTP_PROXY=http://127.0.0.1:8081
    
    C:\Users\me>set HTTPS_PROXY=http://127.0.0.1:8081
    
    C:\Users\me>pywidevine license "******************************************************************************************_l3.wvd" "AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEOP49yKlqEy4iA5hMgvU0ms=" "https://srg.live.ott.irdeto.com/licenseServer/widevine/v1/SRG/license?contentId=RTSVOD"
    INFO:root:pywidevine version 1.5.0 Copyright (c) 2022 rlaphoenix
    INFO:root:https://github.com/rlaphoenix/pywidevine
    INFO:license:[+] Loaded Device (**** L3)
    INFO:license:[+] Loaded CDM
    INFO:license:[+] Opened CDM Session: ********************************
    INFO:license:[+] Created License Request Message (Challenge)
    INFO:license:[+] Got License Message
    INFO:license:[+] License Parsed Successfully
    INFO:license:[SIGNING] 00000000000000000000000000000000:********************************************************************************************************************************
    INFO:license:[CONTENT] e3f8f722a5a84cb8880e61320bd4d26b:db7be836c7b86876b1c77e104ca57353
    And I've an error with yt-dlp when I try to download the audio : ERROR: string index out of range
    I couldn't get yt-dlp to work ("ERROR: [generic] manifest(format=mpd-time-csf,encryption=cenc): No video formats found!;") unless I took out "(format=mpd-time-csf,encryption=cenc)" from the URL but N_m3u8DL-RE works with the original MPD URL:

    Code:
    C:\Users\me>N_m3u8DL-RE.exe --custom-proxy "http://127.0.0.1:8081" --key e3f8f722a5a84cb8880e61320bd4d26b:db7be836c7b86876b1c77e104ca57353 "https://rtsvod-euwe.akamaized.net/ef624779-c07b-477a-b497-9486c7ad2205/RTSVOD-52d04d05-320f.ism/manifest(format=mpd-time-csf,encryption=cenc)"
    INFO  : Loading URL: https://rtsvod-euwe.akamaized.net/ef624779-c07b-477a-b497-9486c7ad2205/RTSVOD-52d04d05-320f.ism/manifest(format=mpd-time-csf,encryption=cenc)
    INFO  : Content Matched: Dynamic Adaptive Streaming over HTTP
    INFO  : Parsing streams...
    INFO  : Extracted, there are 9 streams, with 4 basic streams, 4 audio streams, 1 subtitle streams
    INFO  : Vid *CENC 960x540 | 2000 Kbps | 1_V_video_3 | avc1.4D401F | 619 Segments | ~20m37s
    INFO  : Vid *CENC 640x360 | 1200 Kbps | 1_V_video_1 | avc1.4D401F | 619 Segments | ~20m37s
    INFO  : Vid *CENC 484x272 | 500 Kbps | 1_V_video_2 | avc1.4D401F | 619 Segments | ~20m37s
    INFO  : Vid *CENC 320x180 | 250 Kbps | 1_V_video_4 | avc1.42C00D | 619 Segments | ~20m37s
    INFO  : Aud *CENC 5_A_audio_fra_1 | 128 Kbps | mp4a.40.2 | fr | 618 Segments | ~20m37s
    INFO  : Aud *CENC 5_A_audio_fra_2 | 128 Kbps | mp4a.40.2 | fr | 618 Segments | ~20m37s
    INFO  : Aud *CENC 5_A_audio_fra_3 | 128 Kbps | mp4a.40.2 | fr | 618 Segments | ~20m37s
    INFO  : Aud *CENC 5_A_audio_fra_4 | 128 Kbps | mp4a.40.2 | fr | 618 Segments | ~20m37s
    INFO  : Sub fr | text_fra_sdh | 1 Segment | ~20m37s
    INFO  : Parsing streams...
    INFO  : Selected streams:
    INFO  : Vid *CENC 960x540 | 2000 Kbps | 1_V_video_3 | avc1.4D401F | 619 Segments | ~20m37s
    INFO  : Vid *CENC 320x180 | 250 Kbps | 1_V_video_4 | avc1.42C00D | 619 Segments | ~20m37s
    INFO  : Aud *CENC 5_A_audio_fra_1 | 128 Kbps | mp4a.40.2 | fr | 618 Segments | ~20m37s
    INFO  : Sub fr | text_fra_sdh | 1 Segment | ~20m37s
    INFO  : Save Name: manifest(format=mpd-time-csf,encryption=cenc)_2022-10-13_19-40-39
    INFO  : Start downloading...Vid 960x540 | 2000 Kbps | 1_V_video_3 | avc1.4D401F
    WARN  : When CENC encryption is detected, binary merging is automatically enabled
    WARN  : Type: cenc
    WARN  : PSSH(WV): EhDj+PcipahMuIgOYTIL1NJr
    WARN  : KID: e3f8f722a5a84cb8880e61320bd4d26b
    INFO...
    INFO  : [0x1]: Video, h264 (avc1), 960x540
    INFO  : Binary merging...
    INFO  : Decrypting...
    INFO  : Start downloading...Vid 320x180 | 250 Kbps | 1_V_video_4 | avc1.42C00D
    WARN  : Type: cenc
    WARN  : PSSH(WV): EhDj+PcipahMuIgOYTIL1NJr
    WARN  : KID: e3f8f722a5a84cb8880e61320bd4d26b
    INFO...
    INFO  : [0x1]: Video, h264 (avc1), 320x180
    WARN  : manifest(format=mpd-time-csf,encryption=cenc)_2022-10-13_19-40-39.mp4 =>
    manifest(format=mpd-time-csf,encryption=cenc)_2022-10-13_19-40-39.copy.mp4------------------ 100%    -     00:00:00
    INFO  : Binary merging...
    INFO  : Decrypting...
    INFO  : Start downloading...Aud 5_A_audio_fra_1 | 128 Kbps | mp4a.40.2 | fr
    WARN  : Type: cenc
    WARN  : PSSH(WV): EhDj+PcipahMuIgOYTIL1NJr
    WARN  : KID: e3f8f722a5a84cb8880e61320bd4d26b
    INFO...
    INFO  : [0x5]: Audio, aac (mp4a), 128 kb/s
    INFO  : Binary merging...
    INFO  : Decrypting...
    INFO  : Start downloading...Sub fr | text_fra_sdh
    INFO...
    INFO  : NaN: Subtitle, webvtt
    WARN  : Extracting VTT(raw) subtitle...
    INFO  : Binary merging...
    INFO  : Done
    Obviously if you're using a VPN or are in Switzerland, take out the proxy mentions.

    EDIT: after doing what I should've done in the first place and searched this forum, I find out yt-dlp can download unencrypted videos from RTS:

    Code:
    C:\Users\me>yt-dlp --proxy "http://127.0.0.1:8081" --allow-u -F "https://www.rts.ch/play/tv/les-goldberg/video/geoff-la-bonne-pate-episode-1323-saison-7?urn=urn:rts:video:13449307"
    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
    [SRGSSR] 13449307: Downloading JSON metadata
    [SRGSSR] 13449307: Downloading m3u8 information
    [info] Available formats for 13449307:
    ID                                 EXT RESOLUTION │   FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC      ABR MORE INFO
    
    ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    HLS-H264-HD-audio-audio_fra_128000 mp4 audio only │                  m3u8  │ audio only        unknown         [fr] audio_fra_128000
    HLS-H264-HD-138                    mp4 audio only │ ~ 21.00MiB  139k m3u8  │ audio only        mp4a.40.2  139k
    HLS-H264-HD-402                    mp4 320x180    │ ~ 60.87MiB  403k m3u8  │ avc1.42c00d  403k video only
    HLS-H264-HD-658                    mp4 484x272    │ ~ 99.49MiB  658k m3u8  │ avc1.4d401f  658k video only
    HLS-H264-HD-1374                   mp4 640x360    │ ~207.64MiB 1374k m3u8  │ avc1.4d401f 1374k video only
    HLS-H264-HD-2191                   mp4 960x540    │ ~331.17MiB 2192k m3u8  │ avc1.4d401f 2192k video only
    Last edited by AbortRetryFail; 13th Oct 2022 at 14:19. Reason: Well, eff me
    Quote Quote  
  3. Whaou thank you so much, it's perfect !!
    Great job

    Edit : Do you think a better resolution is possible ? I saw 960x540, It's not even 720p...
    Last edited by screamjojo; 13th Oct 2022 at 18:17.
    Quote Quote  
  4. Originally Posted by screamjojo View Post
    Edit : Do you think a better resolution is possible ? I saw 960x540, It's not even 720p...
    Someone else on this forum may know a way - my knowledge is pretty basic - but from what I saw, I would have to say no. I opened the link with Edge and got the same manifest with the < 720p resolution. RTS only appear to use Widevine for American dramas (and optionally so at that); everything else is served up through m3us and 1080p is offered with those shows, so I guess it's intentional?

    Yeah, this is intentional: if you filter for "mediaComposition" in devtools, you'll find the JSON where the streams' manifests are defined. Not one of the manifests will give you anything above 960x540
    Last edited by AbortRetryFail; 14th Oct 2022 at 05:45.
    Quote Quote  
  5. Ok thanks for the search
    Quote Quote  
  6. Hi, is there an easier way to download streams from RTS.ch ?
    Quote Quote  
  7. Originally Posted by quark View Post
    Hi, is there an easier way to download streams from RTS.ch ?
    Depends what you mean by easier. In terms of the encryption, it doesn't get much easier. PSSH and license is easily found within the MPD, so a script could definitely be made to automate things.

    If you mean easier in the sense of just using a simple downloader, then no.
    Quote Quote  
  8. Thank you. Is there perhaps a similar piece of software with a GUI ?
    Quote Quote  
  9. As far as I know, there is no GUI that handles decryption for this site.
    Quote Quote  
  10. Originally Posted by quark View Post
    Thank you. Is there perhaps a similar piece of software with a GUI ?
    it seem this site not have encryption. so simply play your video, search m3u8 link from network tab and use one app from here:
    https://www.videohelp.com/software/sections/video-streaming-downloaders

    like yt-dlp-gui, TVDownloader, TUBE4, MediaDownloader

    Image
    [Attachment 70231 - Click to enlarge]
    Quote Quote  
  11. Thank you for all this choice. I'll try them (possibly all) and report if I succeed in downloading from RTS play and which one is best.
    Quote Quote  
  12. So far, no luck. I tried MediaDownloader, TVdownloader & StreamFab. I used a VPN to locate in Switzerland. The video will play fine in the browser, but won't download using any of these pieces of software. Here are some of the errors reported. Looks like the video http://www.rts.ch/play/tv/yellowstone/video/cent-ans-ce-nest-rien-episode-18-saison-5?...video:13885651 is DRM protected. Any idea ?

    Image
    [Attachment 70239 - Click to enlarge]


    Image
    [Attachment 70240 - Click to enlarge]
    @
    Quote Quote  
  13. what is DRM ??
    Quote Quote  
  14. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    work fine with N_m3u8DL-RE
    Code:
     N_m3u8DL-RE -M format=mkv --key 6952cdae0cf84c9187d900392dbaea47:ea359c4cc49908f323706d28766b1d29 "https://rtsvod-euwe.akamaized.net/6056b401-ff9a-4610-b653-a68cfab57021/RTSVOD-e859d165-b1b2.ism/manifest.mpd" --save-name video
    Quote Quote  
  15. Finally succeeded with Streamfab after fiddling a little !

    Image
    [Attachment 70250 - Click to enlarge]
    Image Attached Thumbnails Click image for larger version

Name:	Capture.JPG
Views:	113
Size:	65.7 KB
ID:	70249  

    Quote Quote  
  16. Hello I'm kind of new and want to download the following video:

    https://www.rts.ch/play/tv/-/video/football-fc-wil-stade-lausanne-ouchy?urn=urn:???:wi...eo:rts:1783306

    Is there anyone who can help me to download the complete video?
    Quote Quote  
  17. your video can be easily downloaded with N_m3u8DL-RE

    Code:
    N_m3u8DL-RE "https://srgssrch.akamaized.net/hls/live/2022012/srgssr-hls-stream12-ch-dvr/master.m3u8?start=1694798430&end=1694809541&hdnts=exp%3D1694871990%7Eacl%3D%2Fhls%2Flive%2F2022012%2Fsrgssr-hls-stream12-ch-dvr%2F*%7Ehmac%3D9ca2dfcbf8746be12fe8a906e578fd9e36eb1bf2665872363114e3092b135925" --header "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" --header "Referer: https://www.rts.ch/" --save-name "master"
    your video

    https://www.transfernow.net/dl/20230916ASDpJvvM
    Quote Quote  
  18. Hello,

    What are License URL and Headers for RTS using GetWVKeys ?

    Thanks
    Quote Quote  
  19. Originally Posted by Smelfra View Post
    Hello,

    What are License URL and Headers for RTS using GetWVKeys ?

    Thanks
    Provide an example url.
    Quote Quote  
  20. Originally Posted by Smelfra View Post
    License URL:
    Code:
    https://srg.live.ott.irdeto.com/licenseServer/widevine/v1/SRG/license?contentId=RTSVOD
    PSSH:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEIWrxz6/k0JZg7KyN/qd6HU=
    You don't need any headers for this request.

    Key:
    Code:
    --key 85abc73ebf93425983b2b237fa9de875:a168a6b3299e65ecce014b5428ec3d44
    Quote Quote  
  21. Originally Posted by white_snake View Post
    Originally Posted by Smelfra View Post
    License URL:
    Code:
    https://srg.live.ott.irdeto.com/licenseServer/widevine/v1/SRG/license?contentId=RTSVOD
    PSSH:
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEIWrxz6/k0JZg7KyN/qd6HU=
    You don't need any headers for this request.

    Key:
    Code:
    --key 85abc73ebf93425983b2b237fa9de875:a168a6b3299e65ecce014b5428ec3d44


    Thanks very much !
    Quote Quote  
  22. Code:
    --key 00888f2f07f74cdab93c7d6fb6352ee6:85ceb68e503f9f6dfc05c5dac9f88ec3
    --key b15834f163cb4c50b82b566749135cbf:d328d75b0a03169570302107f40000f0
    Quote Quote  



Similar Threads

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