You are not logged in.

#1 2010-08-22 09:52:24

oilgame
Member
Registered: 2010-01-19
Posts: 41

Need help with creating virtual v4l2 device

Hey.

I'm trying trying to use computer x's webcamera on computer y.

I can view computer x's webcamera on computer y by running these commands:

x$ gst-launch-0.10 v4l2src device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=10.0.0.240 port=5000
y$ gst-launch-0.10 tcpclientsrc host=10.0.0.240 port=5000 ! multipartdemux ! jpegdec ! autovideosink

I just don't understand how to create v4l2-device to computer y from that, so I could use it on chats and another programs.

Thanks.

Offline

#2 2010-08-22 18:31:57

oilgame
Member
Registered: 2010-01-19
Posts: 41

Re: Need help with creating virtual v4l2 device

Found that there is v4l2sink.

I tryed this, but it fails:

[oilgame@oilgame-desktop http]$ gst-launch-0.10 tcpclientsrc host=10.0.0.240 port=5000 ! multipartdemux ! jpegdec ! v4l2sink device=/dev/video0
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Cannot identify device '/dev/video0'.
Additional debug info:
v4l2_calls.c(488): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:
system error: No such file or directory
Setting pipeline to NULL ...
Freeing pipeline ...
[oilgame@oilgame-desktop http]$

So should I first create blank v4l2-device and how?

Offline

Board footer

Powered by FluxBB