Some codecs require the size of width and height to be a multiple of n. The resulting image will have a dimension of 320×207 pixels. # Watermark a video with a stylish large copyright symbolĬonvert -size 1200x800 -gravity West -fill black -transparent white -font Arial -pointsize 800 label:"©" -shade 240x40 copyright.pngĬonvert -fill black -transparent white -font Arial -pointsize 96 -shade 240x40 name.pngĬomposite -gravity Center -geometry -40-20 name.png copyright.png stamp.pngĬonvert stamp.png -resize 30% stamp.png # Resize the stamp as required for the videoįfmpeg -i input.mp4 -i stamp.png -filter_complex "lut=a=val*0.20 overlay=w/4:H-h" -vcodec h264 output.mp4 ffmpeg -i input.jpg -vf scale320:-1 output320.png will set the width of the output image to 320 pixels and will calculate the height of the output image according to the aspect ratio of the input image. # Watermark a video with a copyright imageĬonvert -fill grey -transparent white -font Arial -pointsize 72 label:"©2019 Somebody" -shade 120x45 name.pngįfmpeg -i input.mkv -i name.png -filter_complex "lut=a=val*0.4 overlay=(W-w)/2:(H-h)/2" output.mp4 # Convert a video in portrait to landscape with blurred sidesįfmpeg -i input.mp4 -lavfi 'scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1 overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16' -vb 800K output.mp4įfmpeg -i input.mkv -vf "drawtext=fontfile=Arial.ttf: text='©2019 Somebody': x=(w-tw)/2: y=h/2: fontcolor=white: box=1: fontsize=36: boxcolor=0x00000099" output.mp4 # Overlay a video resized to 640x480 onto a background video in the bottom right cornerįfmpeg -i shot0020.avi -i cropped.mp4 -filter_complex " scale=640:480 overlay=640:480" result.mp4 The default zfactor value of 1 should display an image mostly filled by. # Interpolate video frames for a higher frame rateįfmpeg -i source.mp4 -filter:v minterpolate -r 25 result.mp4įfmpeg -i source.mp4 -vf minterpolate=50,tblend=all_mode=average,framestep=2 result.mp4 The zoom keyword scales the size of the simulation box as it appears in the image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |