I saw many discussions on how to do this with ffmpeg, but how can I do it with melt command line?
I'm using the below command to merge video and audio and to resize any video to 1280x720 which is working great with many videos in different sizes/ratios
/usr/bin/melt "colour:black" out=15 "input.mp4" -mix 15 -mixer luma -audio-track "sound.mp4" -profile hdv_720_30p -progress -consumer avformat:"output.mp4" vcodec="libx264" vb="5000k" acodec="aac" ab="128k" frequency=44100 deinterlace=1
I saw this filter https://www.mltframework.org/plugins/FilterPillar_echo/ which will do exactly what I want, but it requires that I know the width/height and the position (X/Y) of the video after the resizing that is done by the above command, which I have no idea how to calculate or get
Customize to your needs, please try the
boxblur
filter it might help