Skip to content

Instantly share code, notes, and snippets.

@nitheeshkm
Last active March 15, 2024 17:10
Show Gist options
  • Save nitheeshkm/d25dc9c9276100a9a97fa1a4f5946407 to your computer and use it in GitHub Desktop.
Save nitheeshkm/d25dc9c9276100a9a97fa1a4f5946407 to your computer and use it in GitHub Desktop.
Convert QHD@60 video into HD@240 FPS using ffmpeg
ffmpeg -i input_quad_hd.MOV -filter_complex "\
[0:v]split=4[v1][v2][v3][v4]; \
[v1]crop=iw/2:ih/2:0:0[v1_crop]; \
[v2]crop=iw/2:ih/2:ow:0[v2_crop]; \
[v3]crop=iw/2:ih/2:0:oh[v3_crop]; \
[v4]crop=iw/2:ih/2:ow:oh[v4_crop]" \
-map "[v1_crop]" -map "[v2_crop]" -map "[v3_crop]" -map "[v4_crop]" \
-r 240 -c:v prores_ks -profile:v 3 \
output_hd_240fps.MOV
ffmpeg -i output_hd_240fps.MOV -filter:v "setpts=4.0*PTS" -c:v prores_ks -profile:v 3 output_hd_60.MOV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment