glenelkins Posted January 3, 2007 Share Posted January 3, 2007 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 -DisableAudioit works fineBut 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 More sharing options...
trq Posted January 3, 2007 Share Posted January 3, 2007 Not sure how case sensitive winblows is but you might try C:\ instead of c:\ Link to comment https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/#findComment-152498 Share on other sites More sharing options...
glenelkins Posted January 3, 2007 Author Share Posted January 3, 2007 That made no difference. I added a sleep(60) after the exec command but still its not creating the file. Also how would I test when the execution is done? Link to comment https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/#findComment-152506 Share on other sites More sharing options...
trq Posted January 3, 2007 Share Posted January 3, 2007 [quote]how would I test when the execution is done?[/quote]Just echo something after it. Im sorry, I really can't be of any more help. Havent used windows in years. Link to comment https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/#findComment-152521 Share on other sites More sharing options...
chriscloyd Posted January 3, 2007 Share Posted January 3, 2007 Linux is the qay to golol Link to comment https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/#findComment-152528 Share on other sites More sharing options...
Guest footballkid4 Posted January 4, 2007 Share Posted January 4, 2007 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 Link to comment https://forums.phpfreaks.com/topic/32757-exec-with-video-conversion/#findComment-152575 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.