Jump to content

exec() with video conversion


glenelkins

Recommended Posts

Hi

I am using Video To Flash Console to convert uploaded videos to swf format. The program works on windows command line such as:

C:\Program Files\GeoVid\Video to Flash Console\VFCConsole.exe -FileIn c:\hampster.wmv -FileOut c:\hampster2.swf -FLV -DisableAudio

it works fine

But if i put that into exec() it does not create the converted file
Link to comment
https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/
Share on other sites

Guest footballkid4
Change
[code]C:\Program Files\GeoVid\Video to Flash Console\VFCConsole.exe -FileIn c:\hampster.wmv -FileOut c:\hampster2.swf -FLV -DisableAudio[/code]

To
[code]C:\\Program Files\\GeoVid\\Video to Flash Console\\VFCConsole.exe -FileIn c:\\hampster.wmv -FileOut c:\\hampster2.swf -FLV -DisableAudio[/code]

Or
[code]C:/Program Files/GeoVid/Video to Flash Console/VFCConsole.exe -FileIn c:/hampster.wmv -FileOut c:/hampster2.swf -FLV -DisableAudio[/code]

In PHP, \ is a character used for escaping values.  When you have C:\Program files, the P is escaped and PHP sees it as C:rogram files

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.