Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: ffmpeg - php?

  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ffmpeg - php?

    anyone have any experience using ffmpeg-php to convert various video formats to FLV ?

    batch processing?

    anything?
    God helps those who help others.

  • #2
    New Coder
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    49
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Well, I guess you would have to loop thru the files and convert them one by one.

    ex:
    PHP Code:
    foreach($array as $filename) {

        
    $to_flv preg_replace('/(avi|mpeg|wmv)$/''flv'$filename);
        
    exec("START c:/ffmpeg/ffmpeg -i $filename $to_flv");




  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •