ffmpeg related issue |
[eluser]amitswba[/eluser]
Hello All, I have use ffmpeg for creating thumbnail of any video file. and it is working properly when i directly type on Dos prompt. but it is not working when i execute command from php code. for that i write the following code: $s = getcwd()."/upload/robot_av.avi"; $d = getcwd()."/upload/robot_av.jpg"; $a = shell_exec($ffmpegPath . "-i ".$s." -ab 56 -ar 22050 -b 500 -r 25 -s 320x240 -y ".$d); anyone know about that then please help me. Thanks in advance. Amit
[eluser]pistolPete[/eluser]
[quote author="amitswba" date="1255458383"]...but it is not working when i execute command from php code.[/quote] You need to provide a better error description, e.g.: - Which operating system do you use? - Are all paths correct? - Do you get any error messages? - Is safe_mode enabled / disabled?
[eluser]amitswba[/eluser]
Thanks for the reply . Below are the configuration of our server. Apache version 1.3.37 (Unix) PHP version 5.2.5 MySQL version 5.0.81-community-log Architecture i686 Operating system Linux all paths are correct. No error Message. safe mode is disable. I will try to enable safe mode and for this i will change in to php.ini with the following code ini_set('safe_mode', 'On'); but safe mode is not enabled. one more thing can u please tell me how to restart apache server. Please reply me as soon as possible. Thanks Amit
[eluser]pistolPete[/eluser]
[quote author="amitswba" date="1255514532"]one more thing can u please tell me how to restart apache server.[/quote] http://www.electrictoolbox.com/article/a...rt-apache/ http://httpd.apache.org/docs/1.3/stopping.html safe_mode needs to remain disabled! It might be a permissions problem, have a look at e.g. http://www.phpfreaks.com/forums/index.ph...c=222161.0
[eluser]amitswba[/eluser]
i have already set permission 777 for the folder. i upload ffmpeg.exe on same location where system folder is uploaded. so it is right place or i will change the place of ffmpeg and place where public_html is located. Thanks Amit.
[eluser]pistolPete[/eluser]
You said above that you have a linux server, and now you want to run a windows executable? google: Install ffmpeg linux
[eluser]amitswba[/eluser]
Hello, Again thanks for reply. i have upload ffmpeg.exe by cute ftp. and set the path of ffmpeg on exec function but it is not working. if u do that type of code then please give me the code then i will try with your code. Amit
[eluser]pistolPete[/eluser]
You CAN'T run windows executables (which ffmpeg.exe obviously is) on linux! You either need to get the linux binaries or compile it yourself.
[eluser]amitswba[/eluser]
That means ffmpeg for linux is diffrent to windows ffmpeg. and we are not directly upload ffmpeg via ftp. is it coorect?
[eluser]pistolPete[/eluser]
[quote author="amitswba" date="1255533847"]That means ffmpeg for linux is diffrent to windows ffmpeg. and we are not directly upload ffmpeg via ftp.[/quote] Simply put you could say so. |
Welcome Guest, Not a member yet? Register Sign In |