mifi / lossless-cut

The swiss army knife of lossless video/audio editing
https://losslesscut.app/
GNU General Public License v2.0
26.68k stars 1.28k forks source link

Add option to display subtitle by default when creating MP4 file #1913

Closed RedRabbit88 closed 7 months ago

RedRabbit88 commented 7 months ago

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Description

I'm not sure if this is possible, or if there is a limitation with the MP4 container, but I am trying to convert from MKV to an MP4 container - with SRT subtitles - but would like the subtitles to display by default.

When playing back the resultant video in VLC, videos created by LosslessCut (both MKV and MP4) retain the subtitles, but only MKV plays them by default (so MP4 files require the subs to be enabled manually).

Is it possible to flag subtitles to show by default with created MP4 files? Many thanks for any insight.

mifi commented 7 months ago

you mean a flag telling the player to activate the subtitle by default, without the user having to maunally do so?

Have you tried the "disposition" in the track panel? default or forced

relevant:

RedRabbit88 commented 7 months ago

Yes, that's exactly what I mean. I have tried setting 'disposition' to both default and forced - neither show the subs by default (but can be activated manually by the user). With MKVs, this works precisely as expected / desired - just not MP4s, from what I can see.

mifi commented 7 months ago

hmm, i just tried to add a subtitle to an mp4 file and set the disposition to "default", and for me it automatically enables teh subtitle when i use finder preview, quicktime player or IINA, but not in VLC. leads me to believe it's a problem with VLC. as far as I can see from my research, disposition is the right thing to use, so I don't know how else to solve this, so I'm closing until some new information comes up.