Forum Moderators: coopster

Message Too Old, No Replies

Play video like youtube

         

vanik

6:05 am on Jul 3, 2008 (gmt 0)

10+ Year Member



Hi all,
I upload the images and videofiles into database and i stored the temp name for the files in the database and in the dir..When i want to display image i get the name from the db and i can display the image like <img src="../uploads/<?=$timage?>>.It was successed.I also stored the videos in the dir.When i want to play that it takes the media player as default.

Here is how can i display the video in my application.Can you please help me.I want to play the video like youtube.

dreamcatcher

7:42 am on Jul 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need a flash video player. And you`ll also need to make sure your video files are in .flv format. There are loads of flash video players around, so try a search on Google.

NomikOS

6:41 pm on Jul 3, 2008 (gmt 0)

10+ Year Member



this class: videoPlayer.class from [phpclasses.org ] is a good start for video applications. I learned a lot from him.

vanik

9:32 am on Jul 4, 2008 (gmt 0)

10+ Year Member



Hi
Thankyou somuch for your reply.Now i play the video successfully from db but it is only in .flv videos.Actually i convert my files which are in various formats to flv files by using a converter.But i did this outof file.How can i convert to .flv files within my file means it can be done automatically.Can you please help me about this?

dreamcatcher

2:02 pm on Jul 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think FFMPEG might be what you are looking for.

[en.wikipedia.org...]

Can be accomplished using PHP:
[ffmpeg-php.sourceforge.net...]

dc

vanik

12:22 pm on Jul 5, 2008 (gmt 0)

10+ Year Member



Hi

I downloaded FFMPEG and i convert it into flv files in cmd prompt.But how we access it from php means how we connect the ffmpeg and php.I searched for this but i didnt found exact answer.Which type of ffmpeg-php classes i can use?Please help me?