Log in

View Full Version : FFmpeg. How to get correct -padtop and -padbottom values?


AlexeyS
16th November 2007, 13:11
Hello,

I'm trying to create script that will resize and encode video clips, uploaded by my site's visitors.

There will be videos with:
- 16:9 aspect ratio, which will be converted to 4:3, so I will need to add black bars at the top and at the bottom of the video automatically.
- videos that already have black bars, I think I should remove them.

I wonder, is it possible to get correct -padtop and -padbottom values automatically on linux server without GUI (only command line available)? Will FFmpeg help me with that? Or maybe some other tool?