Conditional Video Encoding (720p video in, 720p/480p out; 1080p in, 1080p/720p/480p out)

Archived from the Transloadit support forum. Originally posted on August 30, 2011; details may be outdated, see our docs for current behavior. Original thread

Is there any way to conditionally detect the input video resolution/quality and transcode it for multiple formats, but never upscaling? Similar to what youtube does on upload by creating 720p/480p/360p/240p for a 720p video or 1080p and lower for a 1080p video but never upscaling a 480p video to say, 720p?

The main reason for asking is to get the video into a standard size for the quality supplied by the user. If they’re going for 720p video, I want it at least encoded at 720p and in the standard size for that quality.

I would like to avoid having to upload the video to our server first to analyze and select the proper template, then upload to transloadit.

The multiple formats are not as important as the above issue.

Hey slickplaid,

unfortunately it is not possible right now to encode video based on certain conditions or circumstances. We have a filter robot in the works that would most likely allow this, but it’s still far off from being released.

We however allow to overwrite certain parts of your template via the params field of your form. So maybe you could offer a checkbox to your users that reflects the quality of the video they are about to upload. Then depending on their choice you can inject different bitrate and size values to your encoding steps.

Would this be an option?

Sorry for the inconvenience. : /

Tim

Tim,

I think that’ll work just fine. I can always just have a HD checkbox and pick a SD or HD video conversion template. I’m just making sure I’m not missing something.

Thanks!
slickplaid

Alright, let me know how it goes.
Until then I will close the topic here. Feel free to reopen if required.

Kind regards,
Tim

Closed