VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Aug 2023
    Location
    Bulgaria
    Search PM
    Is there a way when embedding subtitles to prevent them from starting automatically upon video playback through yt-dlp options?
    Quote Quote  
  2. sounds like more of a player issue than yt-dlp.
    what player are you using?
    have you tried other players like vlc, potplayer, etc?
    do they have the same issue?
    do you have a shortened video that you can upload for people to test with?
    Quote Quote  
  3. Member
    Join Date
    Aug 2023
    Location
    Bulgaria
    Search PM
    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.
    Quote Quote  
  4. 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.]
    Quote Quote  
  5. Member
    Join Date
    Aug 2023
    Location
    Bulgaria
    Search PM
    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
    Quote Quote  
  6. ..
    Code:
    '--ppa "VideoRemuxer: -disposition:s:0 default"'
    Quote Quote  
  7. Member
    Join Date
    Aug 2023
    Location
    Bulgaria
    Search PM
    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
    But it doesn't work either way.
    Last edited by samozaparola; 27th Aug 2023 at 03:16. Reason: Refining problem
    Quote Quote  
  8. Member
    Join Date
    Dec 2022
    Location
    Lesotho
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

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