Skip to content

Instantly share code, notes, and snippets.

@m4nh
Last active August 5, 2020 14:35
Show Gist options
  • Save m4nh/b2cd4c949275150b49afb80f50bc5e29 to your computer and use it in GitHub Desktop.
Save m4nh/b2cd4c949275150b49afb80f50bc5e29 to your computer and use it in GitHub Desktop.
#ffmpeg #video from #images
# Create from folder
ffmpeg -framerate 1 -pattern_type glob -i '/tmp/ciao/*.png' -c:v libx264 -r 30 -pix_fmt yuv420p /tmp/out.mp4
# Repeat video until CTRL+c (is very dense! )
ffmpeg -stream_loop -1 -i /tmp/out.mp4 -c copy /tmp/out_repeat.mp4
# Convert into MP4 yuv420p
ffmpeg -i $INPUT_VIDEO -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $OUTPUT_VIDEO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment