LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-04-2010, 03:57 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
streaming a webcam


I have a USB webcam. I pointed it at something other than my face so as not to break it. I'd like to stream this to the net. Since I'm behind a firewall, and my bandwidth is limited, what I'd like to do is send one stream out to a server I have in the cloud, and make it streamable from there. The desktop where the camera is plugged in is Ubuntu and the remote server runs Debian. I'd also like to cut the frame rate on it to reduce the bandwidth, such as one frame per second. Any suggestions on which packages/programs to do that with?
 
Old 01-04-2010, 04:02 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
VLC will do it.
http://www.wikihow.com/Stream-Your-Webcam

This requires VLC to play the stream though.

note: consider ogv for making video available online - html5 compatible browsers (everything except IE) can view this format via the <video> tag with no additional fiddling about. Indeed: local ogv files will play in your browser just by rt-click > open-with browser.

Last edited by Simon Bridge; 01-04-2010 at 04:07 PM.
 
Old 01-05-2010, 09:34 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Looks like VLC might do it. I'll still have to experiment because I need to make the connection to the server via SSH over TCP (the source cannot be reached from the net). So that might be as simple as forwarding a port on SSH (listening only on 127.0.0.1 so the world can't get to it).

I'm also looking for another USB camera, supported by Linux of course, that can do HD at 1920x1080pXX where XX can be a low number (as low as 1 will be fine for me).
 
Old 01-05-2010, 07:19 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You want to stream high definition over the internet?!!
Cannot help you there - NZ has rotten bandwidth.
 
Old 01-06-2010, 11:45 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Yes, high definition ... just very low frame rate ... 1 per second or even 1 per minute.
 
Old 01-06-2010, 06:12 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Oh I get you - it's basically going to be a time lapse camera and you want hi res stills.

how about:
1. Creative Live! Cam Socialize HD
2. Logitech Portable Webcam C905
3. Logitech QuickCam Pro for Notebooks
4. Logitech Webcam C600 HD
5. Logitech Webcam Pro 9000 for Business
6. Microsoft LifeCam Cinema

I'd look into the logitech offerings at your local stores, make a list of what's available and google them.
 
Old 01-06-2010, 07:53 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Skaperen View Post
Looks like VLC might do it.
If you don't want or need to run the UI VLC has a commandline companion called 'cvlc' so you can run something like 'cvlc v4l:// --v4l-vdev=/dev/video0 --sout=#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2} --duplicate{dst=std{access=http,mux=ts,dst=$LOCAL_IP:$LOCAL_PORT}}'.


Quote:
Originally Posted by Skaperen View Post
I'll still have to experiment because I need to make the connection to the server via SSH over TCP (the source cannot be reached from the net). So that might be as simple as forwarding a port on SSH (listening only on 127.0.0.1 so the world can't get to it).
Once you've got the SSH tunnel thing going ("-L$LOCAL_PORT:$REMOTE_IP:$REMOTE_PORT") try adding your key to SSH's authentication agent and use 'autossh' instead of SSH as it'll reestablish connections automagically when b0rked.
 
  


Reply



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
[SOLVED] Streaming UVC webcam Koppie Linux - Software 1 09-05-2009 03:32 PM
Streaming a webcam / capture device fruitwerks Linux - Software 0 04-02-2009 02:12 PM
streaming webcam server gtkuntz Linux - Software 3 04-08-2006 12:27 PM
Streaming Live Video using Webcam lkittinger Linux - Software 3 01-29-2006 01:56 PM
direct streaming video with webcam rbonneau Linux - General 2 09-17-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration