Hi guys,

I would like to know if it is possible to extract the duration of an FLV video file using the FFMPEG Wrapper module and how I can do that?

Any help will be highly appreciated!

Cheers,

Comments

sndev’s picture

ffmpeg_wrapper_file_duration(path, timecode, output) is the function that is used.

WildKitten’s picture

subscribe

arthurf’s picture

In ffmpeg_wrapper 2.x you have two options:

ffmpeg_wrapper_get_file_duration($filepath)

or for more complete information

ffmpeg_wrapper_get_file_data($filepath)