I'm processing user videos with differing aspect ratios. It seems FFMPEG only allows you to specify a fixed resolution. I want the output res to be appropriate for the input res. Similarly, I'd like FFMPEG to intelligently set the output bitrate based on the input video: obviously it shouldn't be any bigger than the input.
I can get the properties of a video with,
ffmpeg -i example.flv
But this requires some ugly parsing of the output, so I'm wondering if FFMPEG or some other tool has a more direct facility.
Basically, I have the Youtube problem: crap comes in, reasonably uniform quality should come out.