[FEATURE REQUEST] Fix YouTube's autogenerated subtitles doubling #433
Labels
enhancement
New feature or request
yt-dlp related
Not a bug about the app but with the yt-dlp library
Is your feature request available in yt-dlp? Please describe.
Not available.
When you download automatic subtitles from YouTube, the resulting subtitle is a rolling subtitle - every time a new line is added, the previous one is moved up a line - if there's more than two lines, the first one disappears. Think Star Wars intro, but with only two lines:
A subtitle converted from VTT to SRT by yt-dlp would look something like this
The problem with this is that it's really hard to read, since you expect both lines to change, and it becomes really distracting.
Describe the solution you'd like
Maybe some flag "Fix YouTube autogenerated subtitles doubling" in settings?
Users at github and superuser.com suggests some fixes for ytdl:
1)
yt-dlp --embed-subs --merge-output-format mkv -f 'bv+ba' --write-auto-subs --sub-langs 'en' 'https://youtu.be/3_HG33-IYaY' --sub-format ttml --convert-subs srt --exec 'before_dl:fn=$(echo %(_filename)s| sed "s/%(ext)s/en.srt/g") && ffmpeg -fix_sub_duration -i "$fn" -c:s text "$fn".tmp.srt && mv "$fn".tmp.srt "$fn"'
The text was updated successfully, but these errors were encountered: