Re: gstreamer and v4l2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Mar 2016 09:10:59 +0200
Ran Shalit <ranshalit@xxxxxxxxx> wrote:

> Hello,
> 
> This is a bit offtopic, so I will understand if you rather not discuss that...
> 
> I am trying to use gstreamer with v4l2 vivi device,
> I first check the capabilities with
> 
> gst-launch-1.0 --gst-debug=v4l2src:5 v4l2src device="/dev/video0" !
> fakesink 2>&1
> 
> and it gives many capabilities such as the following:
> 
> video/x-raw-yuv, format=(string)YUY2, framerate=(fraction)[1/1000,
> 1000/1], width=(int) 640, height=(int)180, interlaced=(boolean)true
>

A cleaner way to enumerate capabilities of a video device in GStreamer
is like that:

  gst-device-monitor-1.0 Video

on Debian distributions gst-device-monitor-1.0 is in the
gstreamer1.0-plugins-base-apps package.

> So I tried to run as following:
> 
> gst-launch-0.10 v4l2src device="/dev/video0" !
> video/x-raw,width=640,height=180,framerate=30 ! autovideosink
> 
> But it keeps giving me auto negotiation error -4.
> Trying to give other values did not help neither.

BTW, the need for videoconvert is more likely because of the pixelformat
rather than the frame dimensions.

Ciao ciao,
   Antonio

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux