overlay, crop & scale with ffmpeg is soooo easy! sample as below.
ffmpeg -y -i $1 -vf "movie=$2 [info];[in][info] overlay=10:10:enable='between(t,02,04)' [overdone];[overdone] scale=1280x720 [out]" -movflags faststart -crf 18 -c:v libx264 -c:a copy -threads 0 -t 00:00:05 $source.overlay.mp4
沒有留言:
張貼留言