Last active
August 5, 2020 14:35
-
-
Save m4nh/b2cd4c949275150b49afb80f50bc5e29 to your computer and use it in GitHub Desktop.
#ffmpeg #video from #images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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