Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Force a fixed frame rate ===== Some devices seem to record both the screen and camera with variable frame rates. //COUGH// APPLE //COUGH//. FFmpeg handles some frame rates differently. If you do -r, it depends on container. For MP4, it WILL make it a fixed rate by dropping or duplicating. For MKV, it won't. It will ONLY DROP frames if the input frame rate is above the specified one. If the output is higher it WON'T duplicate frames. For force a frame rate with dropping/duplication, use <code> -vf fps=fps=ntsc </code> eg: <code> parallel --ungroup -j 4 -q -a files ffmpeg -i "{}" -c:v libx264 -crf 26 -vf fps=fps=ntsc -c:a libvorbis -q:a 4 -ac 1 -y -threads 4 "{.}.mkv" </code> where the ntsc can be replaced with a fraction. The parallel bit is just to run this on every file in the text file files. Good for mass-converting. 4×4 threads = 16, which is the #CPU cores I have. scripts/ffmpeg/force_fixed_frame_rate.txt Last modified: 2022-04-13 15:15by Tony