autovideosrc showing striped images

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

autovideosrc showing striped images

xargon
I am running gstreamer 1.8.1 on my ARM device and have a simple command as follows:

gst-launch-1.0 -v autovideosrc ! xvimagesync -e -sync=false

However, the camera shows a striped pattern and it seems that the width, height and framerate that was negotiated is not correct (it should be 1920 X 1080 with 30 frames per second).

Attached is the image highlighting the problem. Does anyone have any idea what I can do to alleviate it? I get the same image when I am using some gstreamer-based software like cheese for example.

The screenshot image with the output and the gstreamer output can be seen here: https://i.imgur.com/3kdnPGp.png
Reply | Threaded
Open this post in threaded view
|

Re: autovideosrc showing striped images

Arjen Veenhuizen
I think you have to manually specify the caps on the source, e.g.:
gst-launch-1.0 -v -e autovideosrc ! capsfilter caps="video/x-raw,format=I420,width=1920,height=1080,framerate=(fraction)30/1" ! xvimagesync sync=false 

Not sure about the format though, this depends on the type of your camera. I could imagine that it outputs RGB.
Reply | Threaded
Open this post in threaded view
|

Re: autovideosrc showing striped images

xargon
Thanks for the reply! I tried this as well with all different possible formats as listed in the docs and it comes back with "reason not-negotiated (-4) error".