

ffmpeg -i input.mp4 -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=30'" output.mp4Ĭrop a video ffmpeg -i input.mp4 -filter:v "crop:1920:1080:100:50" output.mp4Ĭreate timelaps ffmpeg -framerate 30 -pattern_type glob -i "folder-with-photos/*.JPG" -s:v 1440x1080 -c:v libx264 -crf 17 -pix_fmt yuv420p my-timelapse.mp4įfmpeg -r 30 -f image2 -patern_type glob -j "photos/*.jpg" output. etc) use the following command: ffmpeg -r 60 -f image2 -s 1920x1080 -i pic04d.png -vcodec libx264 -crf 25 -pixfmt yuv420p test.mp4 where the 04d means that zeros will be padded until the length of the string is 4 i.e 0001 0020 0030 2000 and so on. Rm -f one.ts two.ts Smoothing out a video. 4.1 Numbered with leading zeroes 4.2 Percent in filename 4.3 Numbered without leading zeroes 4.4 Not numbered or no regular pattern 4.5 Quote the glob. To take a list of images that are padded with zeros ( pic0001.png, pic0002.png. There are two methods within ffmpeg that can be used to concatenate files of the same type: the concat demuxer the concat protocol The demuxer is more flexible it requires the same codecs, but different container formats can be used and it can be used with any container formats, while the protocol only works with a select few containers. patterntype glob: to allow for selecting all JPGs using.


Lossless video from images ffmpeg -framerate 10 -i image%05d.png -c:v copy output.mkv CRF Notes "-crf": for x264 range is 0-51 (0=lossless, 51=worst), 23 is default, consider 18 to be visually lossless Benchmark/Measure time taken ffmpeg -benchmark -pattern_type glob -f image2 -i "photos/*.jpg" -c:v libx264 -r 30 -crf 18 output.mp4 Get media file info ffmpeg -i video.avi Join/concatenate two MP4 videos ffmpeg -i one.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts one.tsįfmpeg -i two.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts two.tsįfmpeg -i "concat:one.ts|two.ts" -c copy -bsf:a aac_adtstoasc combined.mp4 Using FFMpeg to combine multiple live video sources, for example webcams, and re-stream.
