Is there a way when embedding subtitles to prevent them from starting automatically upon video playback through yt-dlp options?
+ Reply to Thread
Results 1 to 8 of 8
-
-
Thank you, ElCap!
You may be right... I use mostly PotPlayer, tried also VLC and PowerDVD (the latter won't show the embedded subtitles, I have no idea why).
Using the MediaInfo tool today, this is the result I got about a downloaded video:
Text
ID : 3
Format : D_WEBVTT/SUBTITLES
Codec ID : D_WEBVTT/SUBTITLES
Duration : 55 min 43 s
Title : English / English
Language : English
Default : Yes
Forced : No
I checked another video, a movie, ripped from a CD I suppose, and both the Default and Forced flags were set to No.
Default : No
Forced : No
So is it possible to achieve a result like this with yt-dlp?
The only info (setting a default subtitles track) I found was this:
(https://github.com/yt-dlp/yt-dlp/issues/3450)
--ppa "VideoRemuxer: -disposition:0 default"
But I have no idea what the options and the parameters mean.Last edited by samozaparola; 27th Aug 2023 at 01:23.
-
ffmpeg has a fine documentation on their site: https://ffmpeg.org/ffmpeg.html - search for the "-disposition" argument.
yt-dlp can reach these arguments through to ffmpeg with the --ppa option.
--ppa "EmbedSubtitle:-disposition:s:0 0" should remove the "default" flag from the embedded subtitle, and thus preventing it to show up on video display by default.
[All put together from the issue you've linked to, btw.] -
Thank you, very much Obo!
However, with the code you provided the result is unchanged:
Default : Yes
Forced : No
Does the options order matter? The code I use is:
Code:.\yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -i --merge-output-format mkv -o "E:/%(uploader)s/%(playlist)s/%(playlist_index)s. %(title)s [%(id)s].%(ext)s" --embed-metadata --embed-thumbnail --embed-chapters --write-subs --write-auto-subs --embed-subs --ppa "EmbedSubtitle:-disposition:s:0 0" --compat-options no-keep-subs https://www.youtube.com/playlist?list=PLRQJ5GpQaktH0wtce-s4cHEar_YwKVvjq
-
Thank you LZAA, but it doesn't work either. Is there any more detailed documentation about this? According to https://ffmpeg.org/ffmpeg.html the code has to be:
Code:ffmpeg -i in.mkv -c copy -disposition:s:0 0
Last edited by samozaparola; 27th Aug 2023 at 03:16. Reason: Refining problem
-
I seem to recall that the mp4 container requires a default track but it won't automatically play unless your media player is set up to do that.
Similar Threads
-
Need help for download with yt-dlp
By sibhus in forum Video Streaming DownloadingReplies: 26Last Post: 19th Feb 2024, 15:02 -
Language code for subtitles in Python script for yt-dlp
By Pavel_47 in forum Video Streaming DownloadingReplies: 15Last Post: 16th Feb 2023, 08:17 -
Help with yt-dlp
By Loryanam2 in forum Video Streaming DownloadingReplies: 1Last Post: 5th Jan 2022, 11:57 -
Problems managing embedded Subtitles
By Cilvaring in forum SubtitleReplies: 2Last Post: 17th Aug 2021, 10:41 -
Subtitles on Samsung *NU* LED TV embedded from mkv files
By WannabeZobbe in forum SubtitleReplies: 4Last Post: 15th Mar 2020, 13:25