Log in

View Full Version : ffmpeg padding to retain aspect ratio


gwaitsi
2nd November 2013, 21:40
I converted a bunch of DVD a long time ago to mkv+h264+aac+srt (cropped and AR put in mkv) and they worked great when played back on any PC device.

Now i want to stream them to my PS3 it seems it is unreliable to transcode aac -> ac3 with an m2ts stream. The only can i can seem to do it reliably is to use remux the files into m2ts to begin with.

The issue i have with my old files, is the AR is not read my m2ts and so the videos need to be re-padded to retain the correct aspect ration.

eg. one video is 704x448. it came from a PAL DVD with 2:35 aspect ratio with black bars at top and bottom of a 16:9 screen.

I don't want to re-encode the whole video again, just add the black bars, but i can seem to figure out how to make ffmpeg do it.

appreciate some guidance.