FFmpeg by Example: A Hub for Creative Uses

FFmpeg by Example is a dedicated documentation platform that highlights the diverse applications of FFmpeg. Have an innovative idea to contribute? Share your insights with the community!

Erratic Camera Movement Effect Using Crop Filter

Utilize the following FFmpeg command to create an erratic camera movement effect:

ffmpeg -f lavfi -i testsrc=duration=30:size=1280x720:rate=30 -vf 'crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(t*1.25):(in_h-out_h)/2+((in_h-out_h)/2)*sin(t*1.625)' -c:v libx264 -q:v 1 output.mp4

Try it out online or copy the command to your clipboard.

Explore More Examples

Recode Your Video with a Modern Codec

Tags: #h265, #encoding

Convert OGG Files with Metadata to M4a for iPod

Tags: #ipod, #m4a, #ogg

Copy Metadata From One Mp3 to Another

Tags: #metadata, #mp3, #id3v2

Extract Multiple Video Clips With One Input

Tags: #cut, #multiple-outputs

List All Supported Audio/Video Encoders With FFmpeg

Tags: #metadata, #no-video

Analyze Video Frames, Timecode and Metadata with Showinfo Filter

Tags: #showinfo, #metadata, #frames

“Drawtext” and “Drawbox” Using “Sendcmd” Manifest

Tags: #sendcmd, #drawtext, #overlay

Extract Raw Keyframe and Non-Keyframes Out of a Video

Tags: #video-extract

Print a Data Channel to STDOUT Using Ffmpeg

Tags: #no-video, #metadata

Cut Audio Files by Sample by Atrim

Tags: #mp3

Support the project by donating a coffee here. Made with love by Gariany and the FFmpeg Discord Community.