Setting frame size on v4l2src

Hungerburg pch13 at myzel.net
Mon Sep 1 15:12:22 PDT 2014


Am 2014-09-01 um 21:55 schrieb Keith Lawson:
>
>
> Hello,
>
> I'm working on a gstreamer application intended to simultaneously
> playback and save video from a Pinnacle Dazzle. I'm having troubles with
> my caps filter. If I run the following pipeline video displays but it's
> not the correct resolution so the aspect ratio looks off:

In you caps below, I did not see that you were actually setting 
aspect-ratio. I only see, that you are trying to set width and height. 
Aspect-ratio is another parameter by itself. HTH.

Peter

> So I'm trying to correct that with a caps filter. v4l2-ctl tells me it
> supports 640x480:
>
> gst-launch -v v4l2src device=/dev/video0 !
> 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! xvimagesink
> Setting pipeline to PAUSED ...
> ERROR: Pipeline doesn't want to pause.
> ERROR: FROM ELEMENT /GSTPIPELINE:PIPELINE0/GSTV4L2SRC:V4L2SRC0: COULD
> NOT NEGOTIATE FORMAT
> Additional debug info:
> gstbasesrc.c(2830): gst_base_src_start ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> Check your filtered caps, if any
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> I've seen other threads[1] on the mailing list about these types of
> issues with the Dazzles but can't seem to find a working solution.
> v4l2-ctl doesn't seem to be listing all supported formats and the video
> capture format is different sometimes. Am I missing something in
> configuring the capture card to produce the correct output before I
> start the gstreamer pipeline or is the filter cap supposed to do that?
>
> Thanks,
>
> Keith.


More information about the gstreamer-devel mailing list