GStreamer + Hauppauge WinTV-HVR1120

Paulo Paiva paivalhao at gmail.com
Sat Apr 23 16:40:16 PDT 2011


Mallard you have lightened my day!

I did that and there it was the beautiful image from the tv card :D, 
just used -i 0 to select tv.
Now another problem arises :S

Doing: $ gst-launch v4l2src ! autovideosink
It works perfectly!

But if I want to encode it I am getting a green screen all funky :S
$ gst-launch v4l2src device=/dev/video0 ! 
video/x-raw-yuv,fourcc=YU12,width=352,height=288 ! ffmpegcolorspace ! 
queue ! videoscale ! x264enc tune=zerolatency bitrate=1050 
speed-preset=3 ! autovideosink

It has to do with the pixel format? x264 accepts raw yuv in planar 4:2:0 
correct? By doing fourcc=YU12 am I doing that?

Regards!

Paulo Paiva


On 04/23/2011 05:42 PM, Mallard wrote:
> I have a WinTV HVR950Q which works fine. The device needs a firmware 
> download at
> initialization time; I generally do a shell script as follows before 
> running gst-launch
> with a v4l2src element.
> -- 
> $ v4l2-ctl --list-devices
> $ sleep 1
> $ v4l2-ctl -d 0 --set-standard ntsc
> sleep 1
> $ v4l2-ctl -d 0 -i 2
> -- 
> This wakes the USB device up and transfers the firmware, then sets it 
> to take video input
> on the s-video port.
>
> On Ubuntu, v4l2-ctl is found in the package ivtv-utils .
>
> /mallard
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list