Best way to get duration of a video file without play it?
#1
Exclamation 
Hi, I want to know the duration of a video file (I have the path of the file) without play the file.
What is the better way to do it?
Thanks a lot.
Reply
#2
Its not possible to know the duration of a video file without play it?
Reply
#3
It should be in the database - runtime field i think.
Reply
#4
prae5 Wrote:It should be in the database - runtime field i think.
In the db I only found a field with runtime taken from scraper (XX minutes) but, this field, is not always reliability and, sometimes, we have a path from a video file split in various files ( stack:// ).
I want to know exactly the duration of a file with the path.
Now, in my plugin I play the file, I use getTotalTime() and stop the file but Im trying to find a better way for this.
Thanks.
Reply
#5
the extracted runtime is stored in the streamdetails table.
Reply

Logout Mark Read Team Forum Stats Members Help
Best way to get duration of a video file without play it?0