mIRC Homepage
Posted By: quartz length of an mp4 file in seconds - 10/01/20 02:41 AM
(maximum of 60 seconds)

is there any $file extension that will do this?
Posted By: SykO Re: length of an mp4 file in seconds - 10/01/20 03:55 AM
You can use
Code
$sound().length
which will return the length in milliseconds. You can use
Code
$calc
to turn that into seconds. Finally, you can use
Code
$duration
to return a more readable output.

Note: The $sound documentation says that the file should be mp3, ogg, or wma, but I have tested this with an mp4 and it has return the correct value. So, I would recommend looking up some dll or other alternatives, if this does not work for you.
© mIRC Discussion Forums