Skip to content
Advertisement

ffmpeg not detecting video file duration

Am using the following code to detect video duration before uploading using ffmpeg, but it doesn’t seem to work:

JavaScript

I need to echo video duration as text input to sql before uploading file to server.

Advertisement

Answer

i used https://github.com/wseemann/FFmpegMediaMetadataRetriever

with following code to retrive video duration

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement