TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-03-2008, 03:00 AM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default creation of video streaming on website

hello,

i want to make one page that will let me stream a video just the way that youtube and related sites stream them. so far i understand that the files are in flv format, and how youtube convertes avi files or mpg files to flv is a mystery to me. what im wondering is does youtube store the vidoes in its database or does it store it in a directory somewhere. (i know you might not know but what are your guesses or maybe the best way of doing it). also once stored in the database what method is used to retreive it and display the video within a flash player like youtube has.

thank you.
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 10-03-2008, 01:54 PM   #2 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

For converting videos to flv, there is ffmpeg. Any website like youtube fetches the info from a database, using a query. Then you just embed a player into your page and play the movie. It's not very hard at all.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 10-04-2008, 07:42 AM   #3 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

thanks, i figured it out. now the only problem im having is trying to figure out how to place a small screenshot or thumbnail on the video such as youtube does?
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 10-04-2008, 08:35 AM   #4 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

again, you can use ffmpeg to make a screen capture of a movie frame (I suggest taking a capture of the middle frame of the movie, so you don't get black screens - lots of movies begin and end with a black background). Also, ffmpeg can capture some info for you (such as the FLV metadata - total movie length, movie resolution and such).
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:24 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design