Tuesday 26 March 2019

audio - Change framerate on MKV container


I got a problem with playback of some MKV containers (89 items, totalling 196,3 GB).


The audio+video are encoded in 25 fps, but the subs are totally out of sync - these are encoded on 23.976 fps.


My question: Is there anyway i can batch change/reencode the framerate on these movies to 23.976?



Answer



You can try recoding the video and audio to a different frame rate while keeping the subtitles as they are:


ffmpeg -i input.mkv -c:v libx264 -crf 21 -c:a aac -strict experimental -b:a 128k -r 23.98 -c:s copy output.mkv

The CRF sets the video quality. Choose something lower for even better quality, like 18. 23 is the default for x264.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...