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 02-12-2008, 01:27 PM   #1 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default time of the video

hi guys
im crating a script something like youtube
and i want to know how to code a features that shows how much time is on the video !!!!
thanks ;)
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-12-2008, 01:56 PM   #2 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 25
Thanks: 8
cosmok is on a distinguished road
Default

How about using an existing free player like this: Flowplayer | Flash Video Player for the Web
cosmok is offline  
Reply With Quote
Old 02-12-2008, 02:10 PM   #3 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

hi but how do i use it to display videos stored on the database
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-12-2008, 02:14 PM   #4 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

and i want the player to be able to red WAV videos
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-12-2008, 02:16 PM   #5 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 25
Thanks: 8
cosmok is on a distinguished road
Default

do u have video stored as BLOBs in a MySQL table? If that is the case, I have no idea on how to implement what you want to achieve.
cosmok is offline  
Reply With Quote
Old 02-12-2008, 02:47 PM   #6 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

i have videos stored as LINKS
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-12-2008, 03:09 PM   #7 (permalink)
The Wanderer
 
Join Date: Jan 2008
Posts: 14
Thanks: 2
owenj2o is on a distinguished road
Default

I don't think this is possable in PHP. If your using flash to play the video try looking into Actionscript video functions.
owenj2o is offline  
Reply With Quote
Old 02-12-2008, 04:09 PM   #8 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Please look into FFmpeg

php ffmpeg - Google Search
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
The Following 2 Users Say Thank You to Haris For This Useful Post:
codefreek (02-14-2008), owenj2o (02-12-2008)
Old 02-12-2008, 05:01 PM   #9 (permalink)
The Wanderer
 
Join Date: Jan 2008
Posts: 14
Thanks: 2
owenj2o is on a distinguished road
Default

Proved me wrong =)
owenj2o is offline  
Reply With Quote
Old 02-12-2008, 06:18 PM   #10 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

Quote:
Originally Posted by owenj2o View Post
I don't think this is possable in PHP. If your using flash to play the video try looking into Actionscript video functions.
lol i dont know how to prove u something but
is there a way to do it
bcz i wanna the WAV videos and other videos format to be working using a nice player
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-12-2008, 06:42 PM   #11 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

If the encoded FLVs have the correct meta tags attached then Flash can extract the time information with ease. Otherwise you'll have to pass in the time information via an embed parameter.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 02-12-2008, 10:07 PM   #12 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

I got FFMPEG, it's a bunch of C Source Files.
__________________
VillageIdiot can have my babbies ;d

Last edited by Orc : 02-12-2008 at 10:31 PM.
Orc is offline  
Reply With Quote
Old 02-12-2008, 11:24 PM   #13 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

thanks guys , but what i need is a player to show videos
like youtube
i put the link of the wmv video
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-13-2008, 12:05 AM   #14 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by webtuto View Post
thanks guys , but what i need is a player to show videos
like youtube
i put the link of the wmv video
You want to allow to upload videos into a player? You need a codec, otherwise you have to edit every video you want in flash for the player.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 02-13-2008, 12:09 AM   #15 (permalink)
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

yeah how to use that codec ?
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
Old 02-13-2008, 08:13 PM   #16 (permalink)
The Contributor
 
Devels's Avatar
 
Join Date: Nov 2007
Posts: 27
Thanks: 2
Devels is on a distinguished road
Default

You need to convert the videos to the flv format, this flv file contains metadata like the duration. You can convert the videos using FFmpeg.
Then use a flash player to play the flv video.

Most interesting is if someone in this great community has also experience with FFmpeg?
Devels is offline  
Reply With Quote
Old 02-14-2008, 06:18 PM   #17 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Quote:
Originally Posted by Devels View Post
You need to convert the videos to the flv format, this flv file contains metadata like the duration. You can convert the videos using FFmpeg.
Then use a flash player to play the flv video.

Most interesting is if someone in this great community has also experience with FFmpeg?
I am currently downloading and installing ffmpeg on windows, as we speak.

I'll hopefully have a lot of experience when I complete this client project. :)
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 02-14-2008, 08:02 PM   #18 (permalink)
The Contributor
 
Devels's Avatar
 
Join Date: Nov 2007
Posts: 27
Thanks: 2
Devels is on a distinguished road
Default

Another interesting topic to mention is, ffmpeg is opensource, but on an commercial level the company On2 is offering a much better codec, you will see the diferrence on the quality of the motion picture. That is just my experience.
Devels 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 05:09 AM.

 
     

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