Playstation Eye + gstreamer examples

Here are a few examples of using the Playstation Eye with gstreamer:

Streaming live video from the camera at 1fps.
gst-launch -v v4l2src ! ffmpegcolorspace ! video/x-raw-yuv,width=640,height=480,framerate=\(fraction\)30/1 ! queue ! videorate ! video/x-raw-yuv,framerate=1/1 ! jpegenc ! multipartmux ! tcpserversink host=192.168.1.105 port=5000
This can be captured in VLC:
vlc tcp://192.168.1.106:5000

Single image capture:
gst-launch v4l2src num-buffers=1 ! video/x-raw-yuv,width=640,height=480,framerate=30/1 ! ffmpegcolorspace ! videorate ! video/x-raw-rgb,framerate=1/1 ! ffmpegcolorspace ! pngenc snapshot=true ! filesink location=test.png
I noticed that the PSEYE ignores the “num-buffers=1″ parameter so I use the snapshot flag on pngenc instead.

avatar

About Dave

"if it's not on fire, it's usually a software problem"