Setting frame size on v4l2src

Keith Lawson keith at nowhere.ca
Tue Sep 2 15:23:29 PDT 2014


On Tue, Sep 02, 2014 at 12:12:22AM +0200, Hungerburg wrote:
> 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
> 

I probably worded that wrong. I'm really trying to set the video resolution to 640x480. When I put the cap in I get the error below. When I exclude it I get video at 528x480:  

http://www.nowhere.ca/test.ogg


> > 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.
> _______________________________________________
> 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