Practical-RIFE icon indicating copy to clipboard operation
Practical-RIFE copied to clipboard

Support copying subtitles

Open OpenSourceAnarchist opened this issue 3 years ago • 1 comments

I think a great and easy change would be to support copying existing subtitles from the original video file to the resulting interpolated one.

I'm pretty sure this can be done by simply adding -c:s copy to line 31 and line 40 of inference_video.py, though I didn't want to make a pull request in case you would want to add additional checks in case subtitle copying failed for some reason. For example, not all container formats support embedded subtitles, though I know mkv does, and possibly mp4?

OpenSourceAnarchist avatar Dec 14 '21 06:12 OpenSourceAnarchist

Use !mkvmerge --output outputwithsubs.mkv --no-video --subtitle-tracks 2 --sub-charset 2:UTF-8 '('input.mp4')' --no-audio '('rifeoutput.mp4')'

2994dd42d75b0 avatar Dec 25 '23 14:12 2994dd42d75b0