<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hi to all!<BR>
I'm tryng to write a simple intranet videochat script in bash, it just connects 2 pc in a lan trough ssh and using gst-launch the script opens the remote cam and shows the image on the local pc. It's quite easy using a pipe like this:<BR>
<BR>
gst-launch v4l2src ! videoscale ! video/x-raw-yuv,width=320,height=240, framerate=30/1 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=$MyIp port=1000<BR>
(I use tcp because the router filters udp)<BR>
<BR>
That works, but if the remote pc has the cam on a device that is not /dev/vide0 the pipe can't shows the image of the web cam. I have to specify in the pipe device=/dev/video1.<BR>
So I tried the autovideosrc option, but no way the pipe is still showing the /dev/video0 device, even if in gstreamer-properties the video input device defined is the usb web cam.<BR>
<BR>
How can I do to obtain an automatic detection of the web cam device in the pipe?<BR>
<BR>
Thx a lot for your help.<BR>
<BR>
luquino.
</BODY>
</HTML>