I was able to upload videos from viaplay using yt-dlp, but I can't upload subtitles. any tips?
+ Reply to Thread
Results 1 to 25 of 25
-
-
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
-
-
I have a premium account, if anyone can help me, please private message me
-
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
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
Code:mp4box.exe -srt 1 ful.mp4
-
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
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) -
must be different on that site i normally just rip the vtt streams, and convert
-
They used to have there subtitles as sami so you would just have to search sami in your browser. But that has change
-
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. -
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
-
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. -
-
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
[Attachment 63287 - Click to enlarge]
[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
-
never mind, I figured it out, I need to add en to the script. Thank you very much!!! You've been a great help!
-
Replace
--sub-langs "da, fi, no, sv,"
--sub-langs "da, en, fi, no, sv,"
you can also add
ru = russian
pl = polish
nl = Nederlands
is = icelandic
and so on
Edit: i was too slowLast edited by Bonde; 11th Feb 2022 at 11:12.
-
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 . . . -
Similar Threads
-
How do I download subtitles from Netu TV?
By lekic.nx in forum SubtitleReplies: 2Last Post: 21st Jan 2022, 14:40 -
How to rip from viaplay.no
By TheNickelodeonArchiveGuy in forum Newbie / General discussionsReplies: 0Last Post: 1st Jul 2021, 18:07 -
How do i rip episodes from viaplay?
By jessezveneberg in forum Video Streaming DownloadingReplies: 4Last Post: 14th May 2021, 11:24 -
is it possible to download from bilibili with subtitles
By flannob in forum Video Streaming DownloadingReplies: 3Last Post: 29th Dec 2020, 08:45 -
How To Download the subtitles from this site?
By JohanCarlo in forum SubtitleReplies: 0Last Post: 27th Jul 2018, 17:28