Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--embed-subs and --write-auto-sub not working correctly when downloading #1582

Closed
6 tasks done
bladeosen opened this issue Nov 7, 2021 · 2 comments
Closed
6 tasks done
Labels
invalid This doesn't seem right

Comments

@bladeosen
Copy link

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.10.22. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

Subtitles not download and embed with command yt-dlp --all-subs --embed-auto-subs --hls-prefer-ffmpeg in new version but in versions previus yes working (for sample in version yt-dlp 2021.08.02)

Verbose log

C:\Users\chris\Desktop\pro>yt-dlp -Uv --all-subs --embed-subs --write-auto-subs --hls-prefer-ffmpeg https://www.viki.com/tv/37010c-best-mistake
[debug] Command-line config: ['-Uv', '--all-subs', '--embed-subs', '--write-auto-subs', '--hls-prefer-ffmpeg', 'https://www.viki.com/tv/37010c-best-mistake']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252[debug] yt-dlp version 2021.10.22 (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
yt-dlp is up to date (2021.10.22)
[debug] [viki:channel] Extracting URL: https://www.viki.com/tv/37010c-best-mistake
[viki:channel] 37010c: Downloading channel JSON
[download] Downloading playlist: Best Mistake
[viki:channel] 37010c: Downloading Episodes JSON page 1
[viki:channel] 37010c: Downloading Movies JSON page 1
[viki:channel] 37010c: Downloading Clips JSON page 1
[viki:channel] 37010c: Downloading Trailers JSON page 1
[viki:channel] playlist Best Mistake: Downloading 21 videos
[download] Downloading video 1 of 21
[debug] [viki] Extracting URL: https://www.viki.com/videos/1163427v
[viki] 1163427v: Downloading video JSON
[viki] 1163427v: Downloading video streams JSON
[viki] 1163427v: Downloading initial MPD manifest
[viki] 1163427v: Downloading MPD manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1163427v: Downloading 1 format(s): 0+9
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1163427v/dash/1163427v_dash_high_1080p_63ed8a_2003130631_track1_dashinit.mp4"
[download] Resuming download at byte 142605312
[download] Destination: Best Mistake - Episode 1 [1163427v].f0.mp4
[download] 100% of 143.10MiB in 00:00
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1163427v/dash/1163427v_dash_high_720p_2fa353_2003130621_track2_dashinit.mp4"
[download] Destination: Best Mistake - Episode 1 [1163427v].f9.m4a
[download] 100% of 12.20MiB in 00:00
[Merger] Merging formats into "Best Mistake - Episode 1 [1163427v].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Best Mistake - Episode 1 [1163427v].f0.mp4" -i "file:Best Mistake - Episode 1 [1163427v].f9.m4a" -c copy -map "0:v:0" -map "1:a:0" "file:Best Mistake - Episode 1 [1163427v].temp.mp4"
Deleting original file Best Mistake - Episode 1 [1163427v].f9.m4a (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].f0.mp4 (pass -k to keep)
[EmbedSubtitle] There aren't any subtitles to embed
@bladeosen bladeosen added bug Bug that is not site-specific triage Untriaged issue labels Nov 7, 2021
@bladeosen
Copy link
Author

bladeosen commented Nov 7, 2021

Version yt-dlp 2021.08.02 working:

Verbose log

C:\Users\chris\Desktop\pro>yt-dlp --verbose --all-subs --embed-subs --write-auto-subs --hls-prefer-ffmpeg https://www.viki.com/tv/37010c-best-mistake
[debug] Command-line config: ['--verbose', '--all-subs', '--embed-subs', '--write-auto-subs', '--hls-prefer-ffmpeg', 'https://www.viki.com/tv/37010c-best-mistake']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.08.02 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0, phantomjs 2.1.1
[debug] Proxy map: {}
[debug] [viki:channel] Extracting URL: https://www.viki.com/tv/37010c-best-mistake
[viki:channel] 37010c: Downloading channel JSON
[download] Downloading playlist: Best Mistake
[viki:channel] 37010c: Downloading Episodes JSON page 1
[viki:channel] 37010c: Downloading Movies JSON page 1
[viki:channel] 37010c: Downloading Clips JSON page 1
[viki:channel] 37010c: Downloading Trailers JSON page 1
[viki:channel] playlist Best Mistake: Downloading 21 videos
[download] Downloading video 1 of 21
[debug] [viki] Extracting URL: https://www.viki.com/videos/1163427v
[viki] 1163427v: Downloading video JSON
[viki] 1163427v: Downloading video streams JSON
[viki] 1163427v: Downloading initial MPD manifest
[viki] 1163427v: Downloading MPD manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Downloading subtitles: ar, de, el, en, es, fi, fr, hi, hu, it, ka, ko, mk, nl, no, pl, pt, ro, sk, tr
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1163427v: Downloading 1 format(s): 0+9
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].ar.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/ar.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].ar.vtt
[download] 100% of 11.33KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].de.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/de.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].de.vtt
[download] 100% of 9.83KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].el.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/el.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].el.vtt
[download] 100% of 12.38KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].en.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/en.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].en.vtt
[download] 100% of 9.06KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].es.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/es.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].es.vtt
[download] 100% of 9.40KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].fi.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/fi.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].fi.vtt
[download] 100% of 9.37KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].fr.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/fr.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].fr.vtt
[download] 100% of 9.80KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].hi.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/hi.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].hi.vtt
[download] 100% of 13.41KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].hu.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/hu.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].hu.vtt
[download] 100% of 9.57KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].it.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/it.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].it.vtt
[download] 100% of 9.45KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].ka.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/ka.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].ka.vtt
[download] 100% of 13.93KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].ko.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/ko.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].ko.vtt
[download] 100% of 9.49KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].mk.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/mk.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].mk.vtt
[download] 100% of 11.50KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].nl.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/nl.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].nl.vtt
[download] 100% of 9.32KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].no.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/no.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].no.vtt
[download] 100% of 9.41KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].pl.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/pl.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].pl.vtt
[download] 100% of 9.26KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].pt.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/pt.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].pt.vtt
[download] 100% of 9.42KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].ro.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/ro.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].ro.vtt
[download] 100% of 9.06KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].sk.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/sk.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].sk.vtt
[download] 100% of 9.23KiB in 00:00
[info] Writing video subtitles to: Best Mistake - Episode 1 [1163427v].tr.vtt
[debug] Invoking downloader on "https://api.viki.io/v4/videos/1163427v/auth_subtitles/tr.vtt?app=100005a&stream_id=105272174"
[download] Destination: Best Mistake - Episode 1 [1163427v].tr.vtt
[download] 100% of 9.24KiB in 00:00
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1163427v/dash/1163427v_dash_high_1080p_63ed8a_2003130631_track1_dashinit.mp4"
[download] Destination: Best Mistake - Episode 1 [1163427v].f0.mp4
[download] 100% of 143.10MiB in 00:02
[debug] Invoking downloader on "https://m-content6-viki.s.llnwi.net/1163427v/dash/1163427v_dash_high_720p_2fa353_2003130621_track2_dashinit.mp4"
[download] Destination: Best Mistake - Episode 1 [1163427v].mp4.f9
[download] 100% of 12.20MiB in 00:00
[Merger] Merging formats into "Best Mistake - Episode 1 [1163427v].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Best Mistake - Episode 1 [1163427v].f0.mp4" -i "file:Best Mistake - Episode 1 [1163427v].mp4.f9" -c copy -map "0:v:0" -map "1:a:0" "file:Best Mistake - Episode 1 [1163427v].temp.mp4"
Deleting original file Best Mistake - Episode 1 [1163427v].f0.mp4 (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].mp4.f9 (pass -k to keep)
[EmbedSubtitle] Embedding subtitles in "Best Mistake - Episode 1 [1163427v].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Best Mistake - Episode 1 [1163427v].mp4" -i "file:Best Mistake - Episode 1 [1163427v].ar.vtt" -i "file:Best Mistake - Episode 1 [1163427v].de.vtt" -i "file:Best Mistake - Episode 1 [1163427v].el.vtt" -i "file:Best Mistake - Episode 1 [1163427v].en.vtt" -i "file:Best Mistake - Episode 1 [1163427v].es.vtt" -i "file:Best Mistake - Episode 1 [1163427v].fi.vtt" -i "file:Best Mistake - Episode 1 [1163427v].fr.vtt" -i "file:Best Mistake - Episode 1 [1163427v].hi.vtt" -i "file:Best Mistake - Episode 1 [1163427v].hu.vtt" -i "file:Best Mistake - Episode 1 [1163427v].it.vtt" -i "file:Best Mistake - Episode 1 [1163427v].ka.vtt" -i "file:Best Mistake - Episode 1 [1163427v].ko.vtt" -i "file:Best Mistake - Episode 1 [1163427v].mk.vtt" -i "file:Best Mistake - Episode 1 [1163427v].nl.vtt" -i "file:Best Mistake - Episode 1 [1163427v].no.vtt" -i "file:Best Mistake - Episode 1 [1163427v].pl.vtt" -i "file:Best Mistake - Episode 1 [1163427v].pt.vtt" -i "file:Best Mistake - Episode 1 [1163427v].ro.vtt" -i "file:Best Mistake - Episode 1 [1163427v].sk.vtt" -i "file:Best Mistake - Episode 1 [1163427v].tr.vtt" -c copy -map 0 -dn -map "-0:s" -map "-0:d" "-c:s" mov_text -map "1:0" "-metadata:s:s:0" "language=ara" -map "2:0" "-metadata:s:s:1" "language=deu" -map "3:0" "-metadata:s:s:2" "language=ell" -map "4:0" "-metadata:s:s:3" "language=eng" -map "5:0" "-metadata:s:s:4" "language=spa" -map "6:0" "-metadata:s:s:5" "language=fin" -map "7:0" "-metadata:s:s:6" "language=fra" -map "8:0" "-metadata:s:s:7" "language=hin" -map "9:0" "-metadata:s:s:8" "language=hun" -map "10:0" "-metadata:s:s:9" "language=ita" -map "11:0" "-metadata:s:s:10" "language=kat" -map "12:0" "-metadata:s:s:11" "language=kor" -map "13:0" "-metadata:s:s:12" "language=mkd" -map "14:0" "-metadata:s:s:13" "language=nld" -map "15:0" "-metadata:s:s:14" "language=nor" -map "16:0" "-metadata:s:s:15" "language=pol" -map "17:0" "-metadata:s:s:16" "language=por" -map "18:0" "-metadata:s:s:17" "language=ron" -map "19:0" "-metadata:s:s:18" "language=slk" -map "20:0" "-metadata:s:s:19" "language=tur" "file:Best Mistake - Episode 1 [1163427v].temp.mp4"
Deleting original file Best Mistake - Episode 1 [1163427v].hi.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].es.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].hu.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].no.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].ka.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].en.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].de.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].ko.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].ro.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].fr.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].nl.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].it.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].fi.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].pl.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].el.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].ar.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].tr.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].pt.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].sk.vtt (pass -k to keep)
Deleting original file Best Mistake - Episode 1 [1163427v].mk.vtt (pass -k to keep)

@pukkandan
Copy link
Member

This was a bug in the older version. --all-subs --write-automatic-subs --embed-subs implies that you only want to download and embed all the automatic subs.

  • Add a --write-sub to your command to download the normal subs as well (--write-sub --write-auto-sub --embed-sub --all-sub) OR
  • If you don't want to keep the normal subs, but only embed them (the way the older version behaved), remove --write-automatic-subs instead (--embed-sub --all-sub) OR
  • If you want to embed and delete the auto subs too (which dont exist for viki btw), use --all-subs --write-subs --write-auto-subs --embed-subs --compat-options no-keep-subs

@pukkandan pukkandan added invalid This doesn't seem right and removed bug Bug that is not site-specific triage Untriaged issue labels Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants