Setting frame size on v4l2src

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Sep 2 18:53:49 PDT 2014


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

cheers,
Nicolas


More information about the gstreamer-devel mailing list