Changing v4l2src's capabilities without stopping the pipeline

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Changing v4l2src's capabilities without stopping the pipeline

Tamas Korodi-2
Hi Guys,

I would like to write an application, which captures video from a webcam, with v4l2src, and displays it with an xvimagesink.
I use the next pipeline v4l2src -> capsfilter -> xvimagesink. My webcam can produce 320x240 and 640x480 images, with capsfilter I request 320x240 first. Later I would like to change the resolution to 640x480 on the fly. I tried to reach this by the following steps:
- Block the v4l2src's src pad
- Unlink capsfilter from v4l2src and xvimagesink
- Set capsfilter's state to NULL
- Create a new capsfilter with 640x480 resolution
- Link the new capsfilter to xvimagesink, and link v4l2src to the new capsfilter
- Set the new capsfilter's state to PAUSED
- Unblock v4l2src's src pad.

it doesn't work for me. How can I solve this problem?

Thanks for the answers!

BR,
Tamas

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel