Video Encoding: Setting a limit on video duration lenght

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

How can I set a limit for my encoded videos? For example I want to set a 4 minute maximum limit on the videos and if I upload a 7 minute video which exceeds this limit, I want the last 3 minutes to be cut off. Is this possible?

Hi Amir,

you can use the ffmpeg parameter -t:

"ffmpeg": {
  "t": 240
}

Stop writing the output after its duration reaches duration. duration may be a number in seconds, or in hh:mm:ss[.xxx] form.

Kind regards,
Karl Skomski

Closing this for now.