Categories
Snaps
Search
Register
Contact
API
ffmpeg metadata
ffmpeg metadata
<?php function duration($videofile) { ob_start(); passthru("ffmpeg.exe -i \"". $videofile . "\" 2>&1"); $duration = ob_get_contents(); ob_end_clean(); preg_match('/Duration: (.*?),/', $duration, $matches); $duration = $matches[1]; return($duration); } ?>
Usage
use bellow function
Comments
Add your comment
Search
Login
Coder: azizce
View more snaps from azizce
View azizce's profile
Rate this snap
Rating:
0
/ 5 (
0
votes) 1136 views
Custom class generator
Selected snaps:
None selected yet.
Hot PHP snaps
PHP image slideshow auto
PHP pagination class
Bootstrap PHP code
Clean URL
PHP ffmpeg Upload Script
Rijndael 256 bit encryption using mcrypt
generate a preview image from an FLV file on-the-fly, or to save
Median calculator
Partners
PHP Site
PHPSnips
Comments