views:

68

answers:

3

hi

how can i add a ffplay.exe (ffmpeg) video to php script.can i use exec() to access the ffplay.please help me out.thanks in advance.

+2  A: 

You can't play video with PHP. You need to embed it somehow. Usually this is done with flash. Try jwplayer.

Aaron Harun
+1  A: 

If you want to do video processing in PHP you probably could do something similar.

If you want to have a PHP page display a video to a user then you are going down the wrong track. You have to use either Flash, Silverlight or HTML 5, and PHP will just print out the relevant syntax.

Graphain
A: 

you can use exec() to execute ffplay.exe and there are few other commands for executing external programs in PHP Refer: http://www.chipmunkninja.com/Program-Execution-in-PHP:-exec-m@