[Techtalk] Dazzle DCV100

Alison Chaiken alchaiken at gmail.com
Sat Sep 24 07:46:15 UTC 2011


>> OK - further testing. It seems that if you stop and then restart a
>> stream VLC can't connect to the V4L2.

I worked on a medical Linux streaming application last spring and found that
the best option was to use the CLI, since, as always, the error messages
that  VLC doesn't show are helpful.   From one of my scripts:

#!/bin/bash
#alison at tomales ;-) sudo v4l-conf -c /dev/video1
#v4l-conf: using X11 display :0.0
#dga: version 2.0
#WARNING: No DGA direct video mode for this display.
#mode: 1280x800, depth=24, bpp=32, bpl=5120, base=unknown
#/dev/video1 [v4l2]: no overlay support

echo "Setting properties . . ."
sudo v4lctl setinput Composite
sudo v4lctl setnorm NTSC-M
echo "current input should be Composite and current norm should be NTSC-M:"
v4lctl list -c /dev/video1
#sudo gstreamer-properties
echo "opening video stream . . ."
# see
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/h
tml/gst-plugins-good-plugins-v4l2src.html for list of settable properties of
v4l2src besi
des "device"
# similarly for udpsink:
http://developer.gnome.org/gst-plugins-libs/0.10/gst-plugins-goo
d-plugins-udpsink.html
#The "host" property
#  "host"                     gchar*                : Read / Write
#The host/IP/Multicast group to send the packets to.
#Default value: "localhost"
#The "port" property
#  "port"                     gint                  : Read / Write
#The port to send the packets to.
#Allowed values: [0,65535]
#Default value: 4951
#http://tcp-udp-ports.com/ports4900-5000.htm
#Port 4951 tcp pwgwims PWG WIMS
#Port 4951 udp pwgwims PWG WIMS
sudo gst-launch v4l2src device=/dev/video1 ! xvimagesink

cvlc, the CLI version of VLC, is also useful, but appeared to be completely
undocumented.     Ping me if you want a tarball of all the scripts.

-- 
Alison Chaiken
(650) 279-5600  (cell)
       http://www.exerciseforthereader.org/
"What you do for a living is not be creative, what you do is ship." -- Seth
Godin, vimeo.com/5895898


More information about the Techtalk mailing list