From time 00:03 to 00:06 without reencoding(fast)
ffmpeg -i infile.mp4 -ss 00:03 -to 00:06 -c copy outfile.mp4
ffmpeg -f concat -i filesToJoin.txt combined.mp4
// filesToJoin.txt content
// file infile1.mp4
// file infile2.mp4
mov to mp4
ffmpeg -i infile.mov outfile.mp4
Convert video to GIF
The dirty way
ffmpeg -i infile.mp4 -vf "fps=10,scale=320:-2:flags=lanczos" outfile.gif
GIF color issues might be there as gif has only 256 color pallette. To create better gif, first create color pallette and use that to create gif.
Overlay a logo
ffmpeg -i video_clip.mp4 -i logo.png -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" video.mp4
Using ffmpeg-generate-video-preview to create screenshots collage
generate-video-preview infile.mp4 previewCollage.jpg --width 160 --rows 5 --cols 6 --padding 4 --margin 4
- Learn ffmpeg the hard way
- ffmpeg for social media
- awesome-ffmpeg
- editly : minimal command line video editing
- vidgear; video processing with access to multiple libraries e.g. opencv, ffmpeg
- auto-motion
- scripts by donald feury
- some ffmpeg video editing commands
- seeking in ffmpeg
- concatenate videos in ffmpeg
- deinterlacing algo in ffmpeg
- preset ffmpeg
- .ass subtitles ffmpeg
- ffmpeg cheatsheet by steven2358
- Adding subtitle to the video