Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Setting max width and max height

  • Setting max width and max height

    Posted by Brandon Tate on February 16, 2011 at 4:08 pm

    Is there a way to set the maximum width and maximum height when converting a video? I’d like to maintain the aspect ratio. I’d like the video to not change size unless it is larger than the given max width/height. Is that possible via command line?


    Thanks,
    Brandon

    Michael Rampe replied 15 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    February 16, 2011 at 10:23 pm

    [Brandon Tate] ” I’d like the video to not change size unless it is larger than the given max width/height. Is that possible via command line?”

    Yes but not in a single command. I have a script that does this by doing an input analysis to identify the size, running some very simple logic to determine if it is larger than what is required and setting/using variables to write the FFmpeg command size options based on the results of the logic.

    [Brandon Tate] ” I’d like to maintain the aspect ratio.”

    Display aspect ratio or pixel aspect ratio?

    Michael

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy