I'm in the same boat now.
flv's uploads fine. 
All other formats upload nicely into video folder, but doesn't convert to fla and the flvideo folder.
Converts nicely when done manually: ffmpeg -i 57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv ../flvideo/57.flv 
phpinfo.php says:
	Code:
	ffmpeg support (ffmpeg-php)	enabled
ffmpeg-php version 	0.5.0
libavcodec version 	Lavc51.40.4
libavformat version 	Lavf51.12.1
Directive	Local Value	Master Value
ffmpeg.allow_persistent	0	0
 
Doing: php -r 'phpinfo();' | grep ffmpeg
I get the following results:
	Code:
	ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0
 Still it doesn't convert...
Debug.txt looks like this:
	Code:
	UID=1,
title='Test wmv',
description='This is a test to convert .wmv',
keyword='test',
channel='0|9|0',
space = '7',
addtime='1180032995',
adddate='2007-05-24',
vkey='1567478602',
type='public',
active=1,
filehome=''
-------------------------------------------------------------
SQL EXECUTED
LAST INSERT ID = 57
VIDEO URL = http://www.MyDomain.com/view/57/test-wmv/
VIDEO LOCATION = /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv
Uploded File Moved to: /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv
Initialize ffmpeg - Begin
Initialize ffmpeg - END
Create Thumbnail - START
Create Thumbnail - END
Get video duration - START
Get video duration - END
DURATION: 64.964
CONVERT COMMAND:
/usr/bin/local/ffmpeg -i /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/vhosts/MyDomain.com/httpdocs/flvideo/57.flv
UPDATE VIDEO SQL:
update video set
vdoname='57.wmv',
flvdoname='57.flv',
duration='64.964' WHERE VID=57
 
I just realised that the convert code that's run is wrong.
My ffmpeg is at: /usr/local/bin/ffmpeg
Where can I change this in the script ??
If I manually run this command in shell, and change the path to ffmpeg to mine, it works like a charm.
I would like the script to run this command:
	Code:
	/usr/local/bin/ffmpeg -i /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/vhosts/MyDomain.com/httpdocs/flvideo/57.flv
 Can this be changed somewhere ?
I'd appreciate any help on this...
				
			
Bookmarks