My input video is of dimension 720x1280. The output I am getting from the command below is 1920x1080.
The problem that I am facing is, a good 720p video is losing its quality and the output video is deteriorated.
ffmpeg -i inter.mpg -filter_complex "[0]scale=hd1080,setsar=1,boxblur=20:20[b]; [0]scale=-1:1080[v];[b][v]overlay=(W-w)/2" inter_1920x1080.mpg
I am ok to scale up my video size to match the 1280 height if downsizing the height is causing the issue. But, is there a way to add custom value to the 'scale'?
Ref: I have referred to this answer from Gyan.
I tried with the following command now-
ffmpeg -i 6691602248444677381.mp4 -c:v -filter_complex "[0]scale=hd1080,setsar=1,boxblur=20:20[b]; [0]scale=-1:1080[v];[b][v]overlay=(W-w)/2" -b:v 800k output.mp4
I am getting the following error -
[NULL @ 0x7fa2af800000] Unable to find a suitable output format for '[0]scale=hd1080,setsar=1,boxblur=20:20[b]; [0]scale=-1:1080[v];[b][v]overlay=(W-w)/2'
[0]scale=hd1080,setsar=1,boxblur=20:20[b]; [0]scale=-1:1080[v];[b][v]overlay=(W-w)/2: Invalid argument