I have a website that uses the Video module to allow users to upload videos. I want to limit the duration(both minimum and maximum) of the video that the user uploads.

For Example:

Users cannot upload videos that are more than 10mins and less than 5mins. So the duration of their videos should be in-between 5 to 10mins.

Thanks in advance...


You can't do that at the moment, but you can set up your presets to limit the length of the transcoded video. I hope that is sufficient for you.

| improve this answer | |
  • Thanks... Is there any other way to limit the length of the uploaded video (using custom code)? – Sharan Jun 12 '12 at 20:14
  • If you are using FFmpeg, you could develop a validator that invokes FFmpeg and reads the length. – Jorrit Schippers Jun 13 '12 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.