PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 30th, 2008, 07:25 AM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
Thumbs up Webcam stream on website

heya, how would you stream a webcam video onto a website?

iv had a search on google and cant find any useful information

if you have any code or links to help i would be very grateful.



Many thanks

Reply With Quote
  #2  
Old August 30th, 2008, 08:34 AM
banks's Avatar
banks banks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bristol, UK
Posts: 479 banks User rank is Corporal (100 - 500 Reputation Level)banks User rank is Corporal (100 - 500 Reputation Level)banks User rank is Corporal (100 - 500 Reputation Level)banks User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 12 m 30 sec
Reputation Power: 8
I just did a google search for "php webcam' and it came up with several solutions. What exactly can't you find? Do you have special requirements that these solutions don't provide?

If you have a specific problem then it would be easier to make suggestions but as far as I can see there are several php scripts available that will deal with webcam images.

[edit]I just re-read your post and spotted that you said "video" i guess most of the solutions on google are about updating still shots periodically.

If you want full moving video then PHP isn't going to do a lot for you. You should research video streaming techniques. I'm no expert but generally you will neeed software on your computer than will encode the video and upload it to a streaming server (not a standard web server) this isn't really anythign to do with PHP.

If I've still missed the point then please explain what you are trying to do more fully.

I hope this helps. [/edit]
__________________

Last edited by banks : August 30th, 2008 at 08:38 AM. Reason: re-read post

Reply With Quote
  #3  
Old August 30th, 2008, 08:38 AM
jsampsonPC's Avatar
jsampsonPC jsampsonPC is offline
stick a scissor in you eye
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2004
Location: Pensacola, Florida
Posts: 1,572 jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 15 h 19 m 57 sec
Reputation Power: 434
Go sign up for an account at www.ustream.tv. Then you'll sign into their site, and start streaming. They'll give you some HTML to paste onto your website so that visitors to your page can see your live video/audio.
Comments on this post
banks agrees: Far more useful than my generic comments...
__________________
FREE Web Development Videos | PHP Reference | MySQL Reference | jQuery Documentation

Markup Validation | CSS Validation | Web Developers, get FireBug & IE Developer Toolbar

When seeking help:
Submit clear questions and code. Use syntax highlighting.
Be patient, and respectful. Don't abuse your access to
professional guidance - nobody here is obligated to answer
your questions, be thankful that they do.

Are you a good person?

Reply With Quote
  #4  
Old August 30th, 2008, 08:38 AM
mikeyskona mikeyskona is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Location: Plymouth UK
Posts: 964 mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 41071 Folding Title: Beginner FolderFolding Points: 41071 Folding Title: Beginner FolderFolding Points: 41071 Folding Title: Beginner Folder
Time spent in forums: 1 Week 9 h 22 m 45 sec
Reputation Power: 150
I got the same results as banks.

The only thing i can see being an issue there is you want a "smooth" stream of the cam, in which case searching for "webcam server" or "flash webcam" on google would give you better results.

My own solution for Webcam images (16 cams to be exact) was to use flash, and flash communications server. But that's expensive, if it's not for a commercial project, probably wouldn't do you any good

HTH

Mike.

Reply With Quote
  #5  
Old August 30th, 2008, 10:45 AM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
cheers

thanks for all your help its much appreciated, i want it so that users can add their own webcams to my website, which are then streamed off it

thanks

Reply With Quote
  #6  
Old August 30th, 2008, 11:08 AM
jsampsonPC's Avatar
jsampsonPC jsampsonPC is offline
stick a scissor in you eye
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2004
Location: Pensacola, Florida
Posts: 1,572 jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)jsampsonPC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 15 h 19 m 57 sec
Reputation Power: 434
Then you need to purchase a high-dollar media streaming server. Or, tell your users to setup ustream accounts, and then store their stream-HTML in your database.

Reply With Quote
  #7  
Old August 30th, 2008, 11:14 AM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Contributing User
Click here for more information.
 
Join Date: Dec 2004
Posts: 2,518 E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 3rd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 2 Days 3 h 17 m 31 sec
Reputation Power: 1180
Yeah, you can't do multimedia streaming with PHP. You will need to use flash or java.

Reply With Quote
  #8  
Old August 30th, 2008, 11:47 AM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
ok, had a look around found yahoo! live which looks pretty good for streaming webcams in embeds.

think will go down the media streaming route though
found adobe flash media, so downloading a trial at minute so i can use flash.

Wheres the best place for media servers, as i heard you have some experience

Many thanks for your help

Reply With Quote
  #9  
Old August 30th, 2008, 01:41 PM
Prizzle Prizzle is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 138 Prizzle User rank is Sergeant (500 - 2000 Reputation Level)Prizzle User rank is Sergeant (500 - 2000 Reputation Level)Prizzle User rank is Sergeant (500 - 2000 Reputation Level)Prizzle User rank is Sergeant (500 - 2000 Reputation Level)Prizzle User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 5 m 4 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Are you trying to stream live and high or low definition?

Reply With Quote
  #10  
Old August 30th, 2008, 05:05 PM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
heya

live and medium defintion

regards

Reply With Quote
  #11  
Old August 30th, 2008, 06:05 PM
JavaNinja's Avatar
JavaNinja JavaNinja is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: in the ether
Posts: 975 JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 14 h 23 m 14 sec
Reputation Power: 147
If you have a lot of money lying around then go with those media streaming hosts.

I would say, go through a steep learning curve and read about the Flash Media Server (FMS) or Wowza (half price of the FMS) and put these on a Dedicated server or a VPS. I wouldn't even go near Java (JMF) with a barge poll for this!

How many webcams do you want on your site. I think the limit of FMS is a 100 connections at a time, the trial may only give you 10.

Reply With Quote
  #12  
Old August 30th, 2008, 06:19 PM
mikeyskona mikeyskona is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Location: Plymouth UK
Posts: 964 mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)mikeyskona User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 41071 Folding Title: Beginner FolderFolding Points: 41071 Folding Title: Beginner FolderFolding Points: 41071 Folding Title: Beginner Folder
Time spent in forums: 1 Week 9 h 22 m 45 sec
Reputation Power: 150
Quote:
Originally Posted by JavaNinja
If you have a lot of money lying around then go with those media streaming hosts.

I would say, go through a steep learning curve and read about the Flash Media Server (FMS) or Wowza (half price of the FMS) and put these on a Dedicated server or a VPS. I wouldn't even go near Java (JMF) with a barge poll for this!

How many webcams do you want on your site. I think the limit of FMS is a 100 connections at a time, the trial may only give you 10.


You forgot to Mention Red5 (which i only found out about today!) .. Opensource Flash Comms server (written in Java i think)

Reply With Quote
  #13  
Old August 30th, 2008, 06:27 PM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
Thumbs up

yeah, it seems very complex - i might just apply the still picture approach as it is cheaper and easier

though think ill learn flash in the background so i might be able to do it in the future.

Ive tried a few of the still camera products, they seem a bit dodgey though crashing a lot.

currently developing a mySQL & PHP entry field for users where they have the oppourtunity to put a link in from Yahoo! Live

then so it is embedded.

Least Ill get the basics sorted as i keep on seem to be coming across brick walls at the minute learning new programming!

Thanks everybody

Reply With Quote
  #14  
Old August 30th, 2008, 06:36 PM
JavaNinja's Avatar
JavaNinja JavaNinja is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: in the ether
Posts: 975 JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level)JavaNinja User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 14 h 23 m 14 sec
Reputation Power: 147
Quote:
Originally Posted by mikeyskona
You forgot to Mention Red5 (which i only found out about today!) .. Opensource Flash Comms server (written in Java i think)
lol yeh, Red5 is in it's early stages, version 0.7 at the moment and it is written in Java - your front end can be anything (I advice against Java front ends!). The guys at osFlash have been working hard on it. They also have other great, cool, fantastic projects! Well worth checking them out.

Reply With Quote
  #15  
Old August 31st, 2008, 07:53 AM
ford2008 ford2008 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 159 ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level)ford2008 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 8 h 7 m 6 sec
Reputation Power: 16
Thumbs up

Java Ninja,

when you talk about 100 connections, would that be 100 connections to one media stream? like one webcam on the server?

Ive embedded the link but the embed doesnt come out right,
It comes out like:

http://live.yahoo.com/swf/player/null - when embed occurs,
think it might be a problem with the code i reckon..


PHP Code:
<td width="100%" class="picselectmain" align="center">
<? if (
$setts["advacant_media"]==&& $item_details['advacant_link']!=""){
$webcam=explode("",$item_details['advacant_link']);
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="412" height="363" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="http://live.yahoo.com/swf/player/<?=$webcam[1];?>" /><embed src="http://live.yahoo.com/swf/player/<?=$webcam[1];?>" width="412" height="363" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object>
<? } else { $ad_video_main_box; }
?> 


Cheers

Last edited by ford2008 : August 31st, 2008 at 08:41 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Webcam stream on website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT