<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">---------- Forwarded message ----------<br>From: Mallard <<a href="mailto:mallard@quacken.com">mallard@quacken.com</a>><br>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>Date: Sat, 23 Apr 2011 12:42:01 -0400<br>Subject: Re: GStreamer + Hauppauge WinTV-HVR1120 (Paulo Paiva)<br>I have a WinTV HVR950Q which works fine. The device needs a firmware download at<br>
initialization time; I generally do a shell script as follows before running gst-launch<br>
with a v4l2src element.<br>
--<br>
$ v4l2-ctl --list-devices<br>
$ sleep 1<br>
$ v4l2-ctl -d 0 --set-standard ntsc<br>
sleep 1<br>
$ v4l2-ctl -d 0 -i 2<br>
--<br>
This wakes the USB device up and transfers the firmware, then sets it to take video input<br>
on the s-video port.<br>
<br>
On Ubuntu, v4l2-ctl is found in the package ivtv-utils .<br>
<br>
/mallard<br></blockquote><div><br>This is useful, but is not a general solution as the mapping of inputs to number is card/device dependent. While it is useful if you never change capture devices it doesn't really help an application that expects to use a "random" v4l2 capture device.<br>
<br>The gst tuner interface is supposed to be the way to do it, but I'm finding it unreliable at changing the norm form the PAL default on power up to the NTSC mode I need. It seems to change the norm but the pipeline fails to start after the change. If I rerun the program it works the second time since the unsuccessful first run changed the norm.<br>
<br>Using v4l2-ctl -s ntsc in an "onboot" cron script is a workaround. If you use PAL video shouldn't be an issue, I've yet to encounter a v4l or v4l2 device that defaults to NTSC on power up.<br><br>As far as I know there is no way to select the video input or norm in a gst-launch command.<br>
<br>v4l2-ctl -n will list the card input function and number so you can see what number is the input you want.<br><br>Playing with v4l2-ctrl and the four capture devices currently active on my system I see the gst tuner interface<br>
seems to have set Video Standard = 0x0000b000 NTSC-M/M-JP/M-KR whereas v4l2-ctl -s ntsc-M sets 0x00001000. I wonder if this has anything to do with the pipeline not starting?<br></div>