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 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... 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. 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? 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 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?? 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 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
Archived
This topic is now archived and is closed to further replies.