Jump to content

Simple ffmpeg cmd working in windows cmd promt but not with shell_exec()


lostnucleus

Recommended Posts

Hello php people

 

I tried this simple cmd of ffmpeg with php

 echo shell_exec('c:/users/rootadmin/ffmpeg/ffmpeg.exe -i c:/kitty.avi'); 

 

it didnt work (no ouput echoed), but when i copy and paste the same cmd in windows cmd promt it worked perfectly.

 

Please Identify the problem , i have already wasted hrs on this .

thanks in Advance.

but when i copy and paste the same cmd in windows cmd promt it worked perfectly

 

I'm afraid it wouldn't have. Windows uses forward slashes to define directories.

 

echo shell_exec('c:\users\rootadmin\ffmpeg\ffmpeg.exe -i c:\kitty.avi');

but when i copy and paste the same cmd in windows cmd promt it worked perfectly

 

I'm afraid it wouldn't have. Windows uses forward slashes to define directories.

 

echo shell_exec('c:\users\rootadmin\ffmpeg\ffmpeg.exe -i c:\kitty.avi');

 

i tried your way but situation still the same , maybe windows uses both type of slashes for same purpose :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.