VideoHelp Forum
+ Reply to Thread
Results 1 to 25 of 25
Thread
  1. I was able to upload videos from viaplay using yt-dlp, but I can't upload subtitles. any tips?
    Quote Quote  
  2. I've tried all these ways, but it's to no avail

    Code:
    C:\Ffmpeg>yt-dlp --write-subs --skip-download "https://viaplay.se/player/default/film/words-on-bathroom-walls-2020"
    [generic] words-on-bathroom-walls-2020: Requesting header
    WARNING: [generic] Falling back on generic information extractor.
    [generic] words-on-bathroom-walls-2020: Downloading webpage
    [generic] words-on-bathroom-walls-2020: Extracting information
    ERROR: Unsupported URL: https://viaplay.se/player/default/film/words-on-bathroom-walls-2020
    
    C:\Ffmpeg>yt-dlp --write-subs --skip-download "https://vod20-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/d3c72e9/20662139-1614612860501.ism/index.mpd?filter=%28FourCC%3D%3D%22AVC1%22%26%26systemBitrate%3C5200000%26%26systemBitrate%3E200000%26%26framerate%3C60%26%26maxHeight%3C721%29%7C%7C%28type%3D%3D%22audio%22%26%26%28FourCC%3D%3D%22AACL%22%29%29%7C%7C%28type%3D%3D%22textstream%22%26%26%28systemLanguage%3D%3D%22isl%22%7C%7CsystemLanguage%3D%3D%22ice%22%7C%7CsystemLanguage%3D%3D%22fin%22%7C%7CsystemLanguage%3D%3D%22swe%22%7C%7CsystemLanguage%3D%3D%22dan%22%7C%7CsystemLanguage%3D%3D%22nor%22%29%29"
    [generic] index: Requesting header
    WARNING: [generic] Falling back on generic information extractor.
    [generic] index: Downloading webpage
    [generic] index: Extracting information
    ERROR: [generic] index: This video is DRM protected
    
    C:\Ffmpeg>yt-dlp --allow-u --write-subs --skip-download "https://vod20-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/d3c72e9/20662139-1614612860501.ism/index.mpd?filter=%28FourCC%3D%3D%22AVC1%22%26%26systemBitrate%3C5200000%26%26systemBitrate%3E200000%26%26framerate%3C60%26%26maxHeight%3C721%29%7C%7C%28type%3D%3D%22audio%22%26%26%28FourCC%3D%3D%22AACL%22%29%29%7C%7C%28type%3D%3D%22textstream%22%26%26%28systemLanguage%3D%3D%22isl%22%7C%7CsystemLanguage%3D%3D%22ice%22%7C%7CsystemLanguage%3D%3D%22fin%22%7C%7CsystemLanguage%3D%3D%22swe%22%7C%7CsystemLanguage%3D%3D%22dan%22%7C%7CsystemLanguage%3D%3D%22nor%22%29%29"
    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
    [generic] index: Requesting header
    WARNING: [generic] Falling back on generic information extractor.
    [generic] index: Downloading webpage
    [generic] index: Extracting information
    [info] index: Downloading 1 format(s): video=2496356+audio_eng_2=96000
    [info] Writing video subtitles to: index [index].da.vtt
    ERROR: Unable to download video subtitles for 'da': HTTP Error 403: Forbidden
    Quote Quote  
  3. any help?
    Quote Quote  
  4. Try adding
    Code:
    --cookies-from-browser chrome
    and/or
    Code:
    --referer "insert referer here"
    Quote Quote  
  5. Originally Posted by [ss]vegeta View Post
    Try adding
    Code:
    --cookies-from-browser chrome
    and/or
    Code:
    --referer "insert referer here"
    what does the command
    Code:
     --referer "insert referer here"
    do ? where do I get the insert referer here ?
    Quote Quote  
  6. I have a premium account, if anyone can help me, please private message me
    Quote Quote  
  7. You can probably rip them via chrome, just search for .vtt
    Quote Quote  
  8. Originally Posted by BadJoker View Post
    You can probably rip them via chrome, just search for .vtt
    No, you can't.
    ful_1_text.srt

    So anyway, long story short, I couldn't get ytdlp to download.
    I went the manual way.

    These are all the links for the subtitles and I used curl to download them
    Code:
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000.dash" --output init.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-0.dash" --output reallyfirst.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-300000.dash" --output first.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-600000.dash" --output 2.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-900000.dash" --output 3.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-1200000.dash" --output 4.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-1500000.dash" --output 5.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-1800000.dash" --output 6.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-2100000.dash" --output 7.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-2400000.dash" --output 8.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-2700000.dash" --output 9.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-3000000.dash" --output 10.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-3300000.dash" --output 11.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-3600000.dash" --output 12.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-3900000.dash" --output 13.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-4200000.dash" --output 14.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-4500000.dash" --output 15.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-4800000.dash" --output 16.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-5100000.dash" --output 17.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-5400000.dash" --output 18.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-5700000.dash" --output 19.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-6000000.dash" --output 20.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-6300000.dash" --output 21.mp4
    curl "https://vod-dash-cdn6-vp.cdn.viaplay.tv/d3c72e9/20662139-1614612860501.ism/dash/20662139-1614612860501-textstream_swe=1000-6600000.dash" --output 22.mp4
    Then I joined them with type command
    Code:
    type init.mp4 reallyfirst.mp4 first.mp4 2.mp4 3.mp4 4.mp4 5.mp4 6.mp4 7.mp4 8.mp4 9.mp4 10.mp4 11.mp4 12.mp4 13.mp4 14.mp4 15.mp4 16.mp4 17.mp4 18.mp4 19.mp4 20.mp4 21.mp4 22.mp4 > ful.mp4
    I then used mp4box.exe to extract the srt
    Code:
    mp4box.exe -srt 1 ful.mp4
    Last edited by [ss]vegeta; 10th Feb 2022 at 15:11.
    Quote Quote  
  9. Make at .bat file

    @echo off


    ECHO Put Viaplay MPD Here :

    set /p MPD=

    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%

    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    pause
    and use the mpd without all the random at the end
    do not use
    but use
    Or with python (From my tool it may need a little tweaking)
    mpdurl = input('Insert MPD URL: ')
    sub = mpdurl.replace('dash', "hls").replace('mpd', "m3u8")

    def sub_download(sub_manifet):
    opts_sub = {'format': 'ba', 'output': download_path + output_name + '.SUBNAME', 'fixup': 'never', 'outtmpl': download_path + output_name + 'SUBNAME', 'writesubtitles': True, 'allsubtitles': True, 'allow_unplayable_formats': True, 'skip_download': True, 'force_generic_extractor': True, 'ignoreerrors': True, 'no_warnings': True, 'external_downloader': aria2c, 'external-downloader_args': '-x 16 -s 16 -k 1M'}
    with yt_dlp.YoutubeDL(opts_sub) as ydl:
    ydl.download([sub_manifet])
    sub_download(sub)
    Quote Quote  
  10. Originally Posted by Bonde View Post
    Make at .bat file

    @echo off


    ECHO Put Viaplay MPD Here :

    set /p MPD=

    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%

    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    pause
    Excellent, thanks. A lot easier than my way.
    Quote Quote  
  11. must be different on that site i normally just rip the vtt streams, and convert
    Quote Quote  
  12. They used to have there subtitles as sami so you would just have to search sami in your browser. But that has change
    Quote Quote  
  13. viaplay:vtt: [{languageCode: "da",…}, {languageCode: "sv",…}, {languageCode: "no",…}]
    0: {languageCode: "da",…}
    default: true
    href: "https://vod1-subs-cdn1-vp-cdn-viaplay-tv.akamaized.net/56045cb/20676155_da-1638777373033.vtt"
    languageCode: "da"
    1: {languageCode: "sv",…}
    href: "https://vod1-subs-cdn1-vp-cdn-viaplay-tv.akamaized.net/af22ee4/20676155_sv-1638777373033.vtt"
    languageCode: "sv"
    2: {languageCode: "no",…}
    href: "https://vod1-subs-cdn1-vp-cdn-viaplay-tv.akamaized.net/51b13b8/20676155_no-1638777373033.vtt"
    languageCode: "no"


    so hard to find, wow.
    Quote Quote  
  14. Originally Posted by Bonde View Post
    Make at .bat file

    @echo off


    ECHO Put Viaplay MPD Here :

    set /p MPD=

    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%

    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    pause
    and use the mpd without all the random at the end
    do not use
    but use
    I have never created .bat files. i think i'm doing something wrong. help me please
    Code:
    @echo off
    ECHO https://vod1-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/d61b2de/20680899-1629386210957.ism/index.mpd
    https://vod1-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/d61b2de/20680899-1629386210957.ism/index.mpd
    set /p MPD=
    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%
    set m3u8=%m3u8:dash=hls%
    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    ERROR: [generic] 'set m3u8=%m3u8:dash=hls%' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:set m3u8=%m3u8:dash=hls%" ) to search YouTube
    Quote Quote  
  15. https://vod1-subs-cdn1-vp-cdn-viaplay-tv.akamaized.net/51b13b8/20676155_no-1638777373033.vtt

    theese urls are returned in the BYGID url............. you dont need to grab subs from the mpd.
    Quote Quote  
  16. Originally Posted by perwann View Post
    https://vod1-subs-cdn1-vp-cdn-viaplay-tv.akamaized.net/51b13b8/20676155_no-1638777373033.vtt

    theese urls are returned in the BYGID url............. you dont need to grab subs from the mpd.
    how did you get them? can you explain, please? I don't understand anything.
    Quote Quote  
  17. Just open notepad++

    add the code
    @echo off


    ECHO Put Viaplay MPD Here :

    set /p MPD=

    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%

    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    pause
    save it as Viaplaysubs.bat And then double click it to open the bat file and insert the viaplay mpd link
    Image
    [Attachment 63287 - Click to enlarge]

    Image
    [Attachment 63288 - Click to enlarge]
    Quote Quote  
  18. Originally Posted by Bonde View Post
    Just open notepad++

    add the code
    @echo off


    ECHO Put Viaplay MPD Here :

    set /p MPD=

    set MPD=%MPD:dash=hls%
    set MPD=%MPD:mpd=m3u8%
    echo.%MPD%

    yt-dlp --write-subs --sub-langs "da, fi, no, sv," --write-auto-subs --skip-download --convert-subs srt -N 20 "%MPD%" --output "Episode01"
    pause
    save it as Viaplaysubs.bat And then double click it to open the bat file and insert the viaplay mpd link
    Image
    [Attachment 63287 - Click to enlarge]

    Image
    [Attachment 63288 - Click to enlarge]
    one more question, how do i download the english subtitles? here's the manifest file:
    Code:
    https://vod34-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/c354ac4/20646635-1643365549819.ism/index.mpd?filter=%28FourCC%3D%3D%22AVC1%22%26%26systemBitrate%3C5200000%26%26systemBitrate%3E200000%26%26framerate%3C60%26%26maxHeight%3C1081%29%7C%7C%28type%3D%3D%22audio%22%26%26%28FourCC%3D%3D%22AACL%22%29%26%26%28systemLanguage%3D%3D%22nor%22%29%29%7C%7C%28type%3D%3D%22textstream%22%26%26%28systemLanguage%3D%3D%22dan%22%7C%7CsystemLanguage%3D%3D%22eng%22%7C%7CsystemLanguage%3D%3D%22fin%22%7C%7CsystemLanguage%3D%3D%22isl%22%7C%7CsystemLanguage%3D%3D%22ice%22%7C%7CsystemLanguage%3D%3D%22nor%22%7C%7CsystemLanguage%3D%3D%22swe%22%29%29
    Quote Quote  
  19. never mind, I figured it out, I need to add en to the script. Thank you very much!!! You've been a great help!
    Quote Quote  
  20. Replace
    --sub-langs "da, fi, no, sv,"
    with
    --sub-langs "da, en, fi, no, sv,"
    should work

    you can also add
    ru = russian
    pl = polish
    nl = Nederlands
    is = icelandic
    and so on

    Edit: i was too slow
    Last edited by Bonde; 11th Feb 2022 at 11:12.
    Quote Quote  
  21. Originally Posted by perwann View Post
    BYGID url
    The hell is this?
    Quote Quote  
  22. Nvm, resolved the issue.
    Last edited by PasiP; 4th Feb 2023 at 05:30.
    Quote Quote  
  23. I doesn't seem to work anymore.
    I received an error:
    Put Viaplay MPD Here :
    https://live-dash-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/169...2900/index.mpd
    https://live-hls-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/1691...900/index.m3u8
    [generic] Extracting URL: https://live-hls-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/1691...900/index.m3u8
    [generic] index: Downloading webpage
    ERROR: [generic] None: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
    Press any key to continue . . .
    Quote Quote  
  24. Originally Posted by dyneck View Post
    I doesn't seem to work anymore.
    I received an error:
    Put Viaplay MPD Here :
    https://live-dash-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/169...2900/index.mpd
    https://live-hls-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/1691...900/index.m3u8
    [generic] Extracting URL: https://live-hls-cdn7-cf-mp.cdn.viaplay.tv/73c2bd75301d4244beab9599e80f4d60/start/1691...900/index.m3u8
    [generic] index: Downloading webpage
    ERROR: [generic] None: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
    Press any key to continue . . .
    I still works there just isn't any subtitles in your mpd.
    Try with
    Code:
    https://vod34-dash-cdn1-vp-cdn-viaplay-tv.akamaized.net/6f1a722/20770605-1688642470648.ism/index.mpd
    Quote Quote  



Similar Threads

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