LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-23-2007, 02:51 PM   #1
skullmunky
Member
 
Registered: Aug 2003
Posts: 42

Rep: Reputation: 15
webcam/video stream advice


after a lot of reading i think i know how to do this, but thought i'd check in here first before buying parts since it's my first time trying it.

i want to set up a streaming webcam. high framerate is more important than resolution or video quality. the webcam does need to be a composite video source, rather than using a USB or firewire webcam, so capture is part of the project.

my first attempt was using a firewire (1394) capture box. with this i can use coriander to capture, no problem, and save frames out to a jpg, then just javascript refreshes to keep pulling the new frames. the problem is that at any delay below about 2 seconds the refresh stops working. i figured maybe this is because the file is too big, but coriander doesn't seem to have an option for resolution and jpeg quality so because it's firewire it's always 640x480.

i've been trying to use the vloopback module to get video4linux applications like xawtv, kdetv, webcam, etc. to recognize it, but haven't had much luck. i install and modprobe the module, i get a /dev/video0 and /dev/video1 device, but kdetv (for instance) complains that it can't capture from videoloopback 0.

so: my guess is that firewire is not the way to go, and i should get a capture card. looking at video4linux resources, it looks like i should get the hauppauge winTV 250 or 350 .. ?

then, my theory is to either (a) continue the same approach, of saving jpegs, just smaller and faster ones now... or (b) to use vlc as a streaming server. if i do that, is it possible to make the stream viewable in a plugin in a webpage, not just in the vlc client? preferably in a way that would let people using mac and windows see it too

thanks,

--skullmunky
 
Old 04-24-2007, 08:43 PM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I'm not an expert in this area, but you don't seem to have any better advice so far!

I think that any (linux-supported) TV capture card with video input would do what you want. Some of the Hauppauges (maybe the ones you mention) have hardware MPEG encoders, but pretty much any PC <5 years old should be able to encode the video in software if it has nothing else to do. I've had no trouble recording from a VCR.

Then you may be able to use some existing video4linux tool to get it onto a webpage. Try this search on Freshmeat.
 
Old 04-24-2007, 11:15 PM   #3
skullmunky
Member
 
Registered: Aug 2003
Posts: 42

Original Poster
Rep: Reputation: 15
thanks - Spook looks terrific, i'm going to give that a try tomorrow.

i've got a basic webcam framegrab capture setup working now, which isn't too bad; i'm thinking of getting a hauppauge card so i can use a composite input, but that leads me to another question:

anyone know if i can use the hauppauge cards to capture jpeg stills (for example, with the 'webcam' program). or, do they only have mpeg streams?
 
Old 04-25-2007, 02:53 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Xawtv comes with a utility called 'streamer'. Example usage: capture ten frames, two per second:

streamer -t 10 -r 2 -o foobar00.jpeg

Many other formats available also. I'm not familiar with the Hauppage cards. There are many alternatives also with composite input. Good place to check for latest info is video4linux/xawtv site http://linux.bytesex.org/ .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What program can I use to record webcam video stream? Balarabay1 Linux - Software 1 12-30-2006 06:20 PM
not able to receive webcam stream on kopete+yahoo bullwinkle Linux - Desktop 0 10-10-2006 04:35 PM
Can you play this webcam stream? acid_kewpie Linux - Software 4 07-18-2006 11:25 AM
publish webcam stream video on website paul_mat Linux - Software 1 06-22-2006 10:19 PM
need advice to buy a webcam sourian Linux - General 18 01-27-2005 09:59 AM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration