-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow converting subtitle codec #418
Comments
Ohh. Yea I guess subtitle conversion is not necessary a lossy operation, and is probably very fast even though it is a re-encoding, so we might look into that. |
@mifi where in the code is this best done? i was wondering how one could get the command line executed so that their duration is set to 0. this is an ffmpeg bug? |
@soloturn I'm not sure I understand what you mean by duration set to 0 |
the subtitle is displayed for 0 seconds. so it is there but not displayed. |
I trhink you can do something like this https://superuser.com/questions/1090989/changing-subtitle-format-with-ffmpeg |
cool thank you! it works like this. first convert:
then cut with losslesscut. all audio tracks are preserved, and subtitles have correct duration and thus show up. |
- manually copy disposition when concat (ffmpeg doesnt automatically) - auto-convert any subtitle to mov_text when output is mp4 #418
when cutting an mp4 with mov_text subtitles it does it, the result has the stream, but neither vlc or mpv are able to display it. more reliable is matroska. trying to convert to matroska produced an error though:
https://newspaint.wordpress.com/2018/06/24/subtitle-codec-94213-is-not-supported/, says: Or, to retain the subtitle information in the Matroska container, it can be converted to the subrip format using the
-c:s srt
option.and this actually makes it work:
The text was updated successfully, but these errors were encountered: