> -----Original Message----- > From: ffmpeg-user [mailto:[email protected]] On Behalf Of > [email protected] > Sent: 28 August 2016 17:03 > To: [email protected] > 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 > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email [email protected] > with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
