Timeline for FFMPEG scale video to 720px, add black fields at the top and bottom and output 720x1280 (portrait)
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 30, 2019 at 0:35 | comment | added | Roel Van de Paar |
With thanks to video.stackexchange.com/a/16686, here is a way to make that same padding white, as well as being another example of how to scale a mobile-originating video (in vertical format) correctly to horizontal as well as adjust the video and audio speed at the same time: ffmpeg -y -i "mobile_input.mp4" -filter_complex "[0:v]setpts=1.5*PTS,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:white,setsar=1/1,setdar=16/9[v];[0:a]atempo=(1/1.5)[a]" -map "[v]" -map "[a]" output.mp4 More info then the original question... but it may help someone..
|
|
Nov 26, 2017 at 10:56 | vote | accept | mevsme | ||
Nov 26, 2017 at 4:50 | history | answered | Gyan | CC BY-SA 3.0 |