Setting frame size on v4l2src

Keith Lawson keith at nowhere.ca
Wed Sep 3 15:10:29 PDT 2014


On Tue, Sep 02, 2014 at 09:53:49PM -0400, Nicolas Dufresne wrote:
> 
> Le 2014-09-02 19:35, Keith Lawson a écrit :
> >$ gst-launch-1.0 -ev v4l2src device=/dev/video0  ! 'video/x-raw,format=YUY2,width=640,height=480,framerate=30/1'  ! tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue  ! theoraenc ! queue ! oggmux ! filesink location=test.ogg
> >0:00:00.245632232 23324      0x1ed4700 ERROR           GST_PIPELINE ./grammar.y:613:gst_parse_perform_link: could not link queue1 to theoraenc0
> >WARNING: erroneous pipeline: could not link queue1 to theoraenc0
> Just add videoconvert in front of theoraenc, as theoraenc need I420,
> where you give it YUY2. Also, add videorate to ensure you have
> perfectly fixed rate, as this is required by ogg container (most
> webcam give a little bit lower rate in low light).

That's the bread crumb I was missing! Think I need to re-read the docs now that I'm using 1.0. For the record here's my working pipeline now (switched from ogg to webm): 

gst-launch-1.0 -e v4l2src device=/dev/video0 norm=NTSC  ! 'video/x-raw,format=YUY2,width=640,height=480,framerate=15/1'  ! tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue  ! videoconvert ! videorate ! vp8enc threads=4 ! queue ! webmmux ! filesink location=test.webm

Now to translate this to Perl code...

> 
> cheers,
> Nicolas
> _______________________________________________
> 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