List of examples with: 'image-to-video'
Turn a still image or an image sequence into a video, with or without an audio track.
-
This FFmpeg command converts an image and audio into a WebM video.tags: #encoding #image-to-video
Featured example
Apply a retro film effect with sepia and grain overlays "Retro Video Filter" using video masking, sepia tones and advanced overlaying technics
# take input.mp4, square.png mask file and '9v9VVN1RE84.mp4' grit/film distortion video and overlay it on the frame
ffmpeg -y -f rawvideo -pix_fmt rgb32 -s 1920x1080 -i /dev/zero -r 30 -filter_complex "movie='square.png'[sqr];[0:][sqr]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[canvas];[canvas]chromakey=0x008000:blend=0:similarity=0.15[canvas2];[0:][canvas2]overlay[canvas3];movie='input.mp4',scale=1920:1080[i1];[0:][i1]overlay='if(gt(random(0), 0.2), 1, 4)':'if(gt(random(0), 0.1), 1, 2)',colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131[i2];[i2][canvas3]overlay[mix1];movie='9v9VVN1RE84.mp4',scale=1920:1080[grit_i1];[grit_i1]chromakey=0x16FF0A:blend=0.2:similarity=0.3,colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3[grit1];[0:][mix1]overlay[o1];[o1][grit1]overlay[o]" -map "[o]" -c:v libx264 -crf 31 -frames:v 300 output.mp4Animate drawtext and drawbox with the sendcmd filter
ffmpeg -y -i input.mp4 -vf 'sendcmd=f=sendcmd.txt,drawbox,drawtext' output.mp4Simulate handheld camera shake with the crop filter
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.mp4Remove background noise from audio using the arnndn filter
ffmpeg -i input.mp4 -af 'arnndn=model=./arnndn-models/std.rnnn:mix=0.8' -c:a aac -b:a 320k -c:v copy output.mp4Create a live video echo effect with the lagfun filter
# linux
ffplay -i /dev/video0 -vf 'lagfun=decay=0.98[tmp]; [tmp] hue=180*sin(t)'
# macos
ffplay -f avfoundation -i 0 -framerate 30 -vf 'lagfun=decay=0.98[tmp]; [tmp] hue=180*sin(t)'Analyze video frames, timecode and metadata with showinfo filter
ffmpeg -i input.mp4 -vf showinfo -f null -Stitch two video files side by side
ffmpeg -y -i yoga.mp4 -i sharks.mp4 -filter_complex "[0:v]pad=iw+iw:ih[v1];[v1][1:v]overlay=overlay_w:0[vid]" -an -map "[vid]" -c:v libx264 -crf 23 -preset veryfast output.mp4