ffmpeg2theora is not working through php exec command

Bug #1021016 reported by Iqbal Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ffmpeg2theora
Invalid
Undecided
Unassigned

Bug Description

I am not able to run

ffmpeg2theora working on shell of server but it is not working if I use this through php.

Here is the code
<?php
$inputVideo = '/var/www/html/BDV/BDV/app/webroot/videos/1341413132.flv';
$outputVideo = '/var/www/html/BDV/BDV/app/webroot/videos/sahilvideo1012.ogv';

exec('ffmpeg2theora -o '.$outputVideo.' '.$inputVideo);// or die('Not Working');;
?>

Do I need to set any permission?

Help is deadly required!

Thanks

Revision history for this message
j^ (j) wrote :

try providing the full path to ffmpeg2theora, migth be that you have other $PATH settings.
do you get any output from exec? try capturing the output it might contain a clue as to whats going on.

Revision history for this message
Iqbal Singh (iqbal-softprodigy) wrote :

Yes, it is working fine with absolute path of theora. Thanks buddy!

Here is the working command for all internet community

exec('/usr/local/bin/ffmpeg2theora '.$inputVideo.' -o '.$outputVideo);

j^ (j)
Changed in ffmpeg2theora:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.