verahert
9th May 2016, 21:45
Hello, i'm trying to encode some bluray h264 remux 1920x1080 resolution to 1280x536 cropping top/bottom black bars. Actually i'm using this line for encoding:
ffmpeg -i input.mkv -c:v libx264 -preset slower -b:v 1200k -vf crop=1920:804:0:140 -vf scale=1280x536,setsar=1/1 -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -c:a libfdk_aac -b:a 100k -ac 2 output.mp4
I'm doing something wrong because the final result of the video is in 1280x536 resolution but ffmpeg doesn't crop the black bars and the video is stretched losing aspect ratio.
Could you please anybody help me with the correct commands to crop/resize 1920x1080 H264 remux to 1280x536 without top/bottom bars?
Thanks!
ffmpeg -i input.mkv -c:v libx264 -preset slower -b:v 1200k -vf crop=1920:804:0:140 -vf scale=1280x536,setsar=1/1 -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -c:a libfdk_aac -b:a 100k -ac 2 output.mp4
I'm doing something wrong because the final result of the video is in 1280x536 resolution but ffmpeg doesn't crop the black bars and the video is stretched losing aspect ratio.
Could you please anybody help me with the correct commands to crop/resize 1920x1080 H264 remux to 1280x536 without top/bottom bars?
Thanks!