Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I was wondering how can I get the duration from video file(.mp4) and display as the list created by views together with thumbnail and title?
I think there is no 'out of the box' solution in video module or views handler for that.
I will really appreciate some link to forum, tutorial or any helpful answer.
Thanks,
Damian
Comments
Comment #1
Milan0 CreditAttribution: Milan0 commentedDon't think you can (easily).
flvtools can store metadata, but you'll have to convert to flv first.
Comment #2
damiandab CreditAttribution: damiandab commentedYes, this is my problem, I would like to stay by mp4...
Comment #3
Milan0 CreditAttribution: Milan0 commentedI have the same problem, i think we need to be looking into the multiple file types per video solution, which is already work in progress.
this will enable you to convert to both flv and mp4, keep mp4 as main video type, and use metadata from flvtools generated values.
Comment #4
heshanlkI think you can use getId3 for mata values from a video, like duration etc. Another option is FFMPEG is allow you to get video duration (Its already in there but not used anywhere to save it on the database). I think getId3 module should work.
Any thoughts?
Comment #5
heshanlk