![]() |
Use N800 webcam as a Linux Desktop webcam
This post is about using the N800 webcam as a Desktop webcam on a Linux system (personnaly, I never use the emdedded N800 webcam on the tablet, but I was interested in using it on my Desktop with amsn).
The way to do it is to use the gstreamer to send the webcam data over the network, then to use again gstreamer and the vloopback on the desktop side to emulate a v4l2 device. In this message, $N800_HOST and $DESKTOP_HOST are the n800 and desktop IP. N800 and Desktop computer are on the same wifi LAN. 1. N800, send the image over network You need first to install the package : gstreamer0.10-plugins-extra Then, you can ensure that the following command doesn't throw any error. This command blocks, you can then stop with ctrl-C : Code:
gst-launch-0.10 -v v4l2src ! 'video/x-raw-yuv,width=320,height=240,framerate=8/1' ! ffmpegcolorspace ! jpegenc ! tcpserversink host=$DESKTOP_HOST port=5434 You need to compile the vloopback module. This module can be found on this page : http://www.lavrsen.dk/twiki/pub/Moti...ack-1.1.tar.gz You need to patch this source because there aren't compatible with Linux > 2.6.24, so download also this patch : http://data.likide.homelinux.org/vloopback-1.1.patch Go to the folder where you have put these files, ensure you have the correct tools to build linux module (gcc and linux headers files), then : Code:
tar xzf vloopback-1.1.tar.gz Code:
cp vloopback.ko /lib/modules/`uname --release` Change the permission of these files Code:
chmod 777 /dev/video* To send the data into the the vloopback device, you need a specific gstreamer plugin. Download it here : http://data.likide.homelinux.org/gst...ack-0.1.tar.gz Compile it (you need the gstreamer devel packages) : Code:
./configure Code:
cp src/.libs/libgstvloopbacksink.so /usr/lib/gstreamer-0.10 gst-inspect-0.10 |grep vloopbacksink 4. Plug all the elements Run the command seen in 1. (N800) On the desktop, run : Code:
gst-launch -v tcpclientsrc host=$N800_HOST port=5434 ! jpegdec ! vloopbacksink location=/dev/video0 Code:
xawtv -c /dev/video1 You can use amsn with /dev/video1 as the webcam source. Known issues
|
Re: Use N800 webcam as a Linux Desktop webcam
Interesting post. I've been looking into ways to take a regular webcam on a regular Linux box and turn it into a time lapse camera that takes a picture every couple of seconds and stores it on the drive so I can make a movie out of it. :)
|
Re: Use N800 webcam as a Linux Desktop webcam
|
Re: Use N800 webcam as a Linux Desktop webcam
Quote:
|
Re: Use N800 webcam as a Linux Desktop webcam
Quote:
|
Re: Use N800 webcam as a Linux Desktop webcam
Quote:
Cool work with the net-forwarding, though. :) |
Re: Use N800 webcam as a Linux Desktop webcam
Hi!
Have Black Screen after xawtv -c /dev/video1 or just xawtv ATI HD3300 Ubuntu 8.10 What is the problem can be? Tnx. |
Re: Use N800 webcam as a Linux Desktop webcam
Some trix, but problem don`t solved completely:
1)added Load "v4l" in /etc/X11/xorg.conf 2) After BlackScreen I press Ctrl+Alt+F1 and then Ctrl+Alt+F7 - return to normal screen with camview. VLC Media player works too :) |
Re: Use N800 webcam as a Linux Desktop webcam
Quote:
|
Re: Use N800 webcam as a Linux Desktop webcam
thanks for the nice tip :)
you can also use mplayer instead of xawtv on the host to view the stream from the webcam. Code:
mplayer tv:// -fps 15 -tv device=/dev/video1:driver=v4l:input=1:width=320:height=240 |
All times are GMT. The time now is 23:52. |
vBulletin® Version 3.8.8