[FFmpeg-user] custom call

Francois Visagie francois.visagie at gmail.com
Mon Aug 29 08:20:34 EEST 2016


> -----Original Message-----
> From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of
> oscar at medinasgroup.com
> Sent: 28 August 2016 17:03
> To: ffmpeg-user at ffmpeg.org
> Subject: [FFmpeg-user] custom call
> 
> Hello
> 
> I have a video sharing site (cumulus clips script) were people can upload
> videos; I have the video size limit to 550MB which is about 5 minutes or 5
> hours but that is not good for Me! I will like to have it so that the videos can't
> be more than 5 minutes (If it is, it will prevent the user from uploading it!), I
> was told at cumulus that this is possible by doing this:
> 
> "Add a custom call to ffmpeg to retrieve video's duration as soon as it is
> uploaded"

One way is to call 'ffprobe <input_file>' and parse for the value of 'Duration'.

> 
> I hope to have been clear
> 
> Thank you in advance
> 
> Oscar Medina
> 
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org
> with subject "unsubscribe".



More information about the ffmpeg-user mailing list