How to user ffmpeg 
You can use ffmpeg to convert video file like mpeg, avi to flv like you tube.
I Php this is very just check in your server that ffmpeg is enable or not if this is not enable dont hesitate to tell your sever provider or
your client to enable that you are ready to use that.
To check whether ffmpeg is enable just user  in the a test file if ffmpeg is there then that shows it is enable.
just use 
exec("/usr/bin/ffmpeg -y -i  test.mpeg  -s 446x336 -ar 44100 -ab 12 test.flv") to make flv
and 
exect("usr/bin/ffmpeg -i test.mpeg -an -ss 00:00:00 -t 00:00:01 -r 1 -y -s 120x72 test.jpg");
to make thumbnail of that video
After that to play flv just go to site 
http://www.flowplayer.org/documentation/configuration.html
and read how to use flowplyer, download latest flowplayer from here and enjoy making youtube like feature.
Saturday, February 14, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment