DanDaBeginner Posted September 21, 2007 Share Posted September 21, 2007 hello guys..need your help...I have a project that somehow a replica of youtube.. now my problem is user can upload a .wmv file and it needs to be converted to .flv or .swf to be able to play with my flash player (just like in youtube)... do you know some software that does this? (preferably a free). and can execute by PHP.. something like imagemagick, because it can be run in PHP. i.e. system(imagemagick code)... any help would be greatly appreciated... thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/ Share on other sites More sharing options...
DanDaBeginner Posted September 21, 2007 Author Share Posted September 21, 2007 if you have a better idea please post it... I believe i can't be done with PHP that's why im looking for a software that somehow can be execute through PHP..maybe with the function of system or exec... please help... Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-352378 Share on other sites More sharing options...
scarhand Posted September 21, 2007 Share Posted September 21, 2007 You need a video to FLV encoder. I just searched google for one and came up with a ton of results. Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-352471 Share on other sites More sharing options...
DanDaBeginner Posted September 24, 2007 Author Share Posted September 24, 2007 thanks scarhand .. I know theres a lot of software/ encoder there.. but my question is can you run the software through PHP? Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-353896 Share on other sites More sharing options...
rarebit Posted September 24, 2007 Share Posted September 24, 2007 By using exec() you can run anything... i'd say use ffmpeg.... http://uk3.php.net/manual/en/ref.exec.php Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-353906 Share on other sites More sharing options...
DanDaBeginner Posted September 25, 2007 Author Share Posted September 25, 2007 thanks.. but if im going to use a software and run it through exec() how would the software know which file to convert, what will be the dimension.. etc?? Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-354853 Share on other sites More sharing options...
jaymc Posted September 25, 2007 Share Posted September 25, 2007 exec("theconvert.exe -f -height=300 -width=500 -format=swf -file=uploaded.wmv") of course those values will be dynamic variables, thats not a real program, thats just an example of how some programs function from command line and use flags to pass information to it Quote Link to comment https://forums.phpfreaks.com/topic/70152-solved-wmv-to-flvswf-by-php/#findComment-354905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.