Using ffmpeg.exe, we can convert a media file into flv format, with a little code as below:
<?php
exec('ffmpeg -i abc.mpg abc.flv');
?>
The above code converts the "abc.mpg" file into "abc.flv" file.
Note that the "ffmpeg.exe" file must be present in the directory where this code is run.
<?php
exec('ffmpeg -i abc.mpg abc.flv');
?>
The above code converts the "abc.mpg" file into "abc.flv" file.
Note that the "ffmpeg.exe" file must be present in the directory where this code is run.
Comments
Post a Comment