Skip to content
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

no subtitles when converting to supported format #984

Open
taozi1996 opened this issue Jan 16, 2022 · 7 comments
Open

no subtitles when converting to supported format #984

taozi1996 opened this issue Jan 16, 2022 · 7 comments

Comments

@taozi1996
Copy link
Contributor

taozi1996 commented Jan 16, 2022

I think if the video file contain subtitle streams, the subtitles should be preserved when converting the video.
ffmpeg use
-map 0:s? -c:s copy

@mifi
Copy link
Owner

mifi commented Jan 16, 2022

The problem is that not all formats support all subtitle codecs. So this is likely to cause the operation to fail. Doesnt subtitles show up in losslesscut after converting to supported format?

@taozi1996
Copy link
Contributor Author

The problem is that not all formats support all subtitle codecs. So this is likely to cause the operation to fail. Doesnt subtitles show up in losslesscut after converting to supported format?

Now losslesscut convert to supported format and the format is Matroska.Matroska support most kinds of subtitle.

@mifi
Copy link
Owner

mifi commented Jan 16, 2022

Not on macos (mp4). We could add a condition in the code, but what is the motivation for this feature request?

@taozi1996
Copy link
Contributor Author

Not on macos (mp4). We could add a condition in the code, but what is the motivation for this feature request?

For subtitle viewing.

@mifi
Copy link
Owner

mifi commented Jan 18, 2022

I just tested remuxing a video (mp4) with subtitle codec mov_text to mkv and it fails with:

Subtitle codec 94213 is not supported
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented

@taozi1996
Copy link
Contributor Author

taozi1996 commented Jan 18, 2022

I just tested remuxing a video (mp4) with subtitle codec mov_text to mkv and it fails with:

Subtitle codec 94213 is not supported
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented

mov_text
can use
ffmpeg -i input.mp4 -map 0:v -c:v copy -map 0:a -c:a copy -map 0:s? -c:s srt -ignore_unknown output.mkv

@mifi
Copy link
Owner

mifi commented Jan 18, 2022

True. could be combined with this issue: #418

@mifi mifi changed the title convert to supported format no subtitles when converting to supported format Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants