After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614487 - camerabin: Set v4l2 to NULL state before changing format
camerabin: Set v4l2 to NULL state before changing format
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-31 16:22 UTC by Aleksey Lim
Modified: 2010-11-24 19:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set v4l2 to NULL state before changing format (1.10 KB, patch)
2010-03-31 16:25 UTC, Aleksey Lim
none Details | Review
do nothing if format the same (1.51 KB, patch)
2010-03-31 16:54 UTC, Aleksey Lim
none Details | Review

Description Aleksey Lim 2010-03-31 16:22:49 UTC
For now, it is impossible set different values via set-video-resolution-fps signal if camerabin is in >=READY state:

WARN v4l2 gstv4l2object.c:1920:gst_v4l2_object_set_format:<autovideosrc0-actual-src-v4l> error: Call to S_FMT failed for YUYV @ 640x480: Device or resource busy
Comment 1 Aleksey Lim 2010-03-31 16:25:55 UTC
Created attachment 157611 [details] [review]
Set v4l2 to NULL state before changing format
Comment 2 Aleksey Lim 2010-03-31 16:54:27 UTC
Created attachment 157616 [details] [review]
do nothing if format the same
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2010-04-14 12:16:39 UTC
Aleksey, there have been a lot of rewrites. The changes from bug #614958 are affecting this one. I guess your issue is still valid and this would need to be addresses in reset_video_capture_caps(). Patch even kind of applies still. Would be nice if you can confirm.
Comment 4 Thiago Sousa Santos 2010-04-14 13:24:39 UTC
Why does v4l2src need to go to NULL for changing format? Why is it busy in READY?
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2010-04-14 14:55:52 UTC
Hmm, maybe what we see is a bug in v4l2src to now reset everything back when going down to READY?
Comment 6 Thiago Sousa Santos 2010-09-21 23:09:39 UTC
Can you still reproduce this?

If so, could you provide a sample application? I've tried to make one, but maybe you're doing it differently.
Comment 7 Aleksey Lim 2010-09-22 05:21:18 UTC
(In reply to comment #6)
> Can you still reproduce this?
> 
> If so, could you provide a sample application? I've tried to make one, but
> maybe you're doing it differently.

Sorry, I've postponed my camerabin based work and can't gather all pieces together. In my mind gst-camera demo application had the same functionality (though I didn't manage to try it, it was failing all time in my case :).
Comment 8 Thiago Sousa Santos 2010-09-23 00:32:42 UTC
I just tried gst-camera and it switches the resolutions for me correctly. (Using git head of everything)
Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2010-11-19 16:15:00 UTC
It works fine for me too. Shall we close this?
Comment 10 Aleksey Lim 2010-11-24 19:52:10 UTC
Just rechecked against recent git versions, works for as well.
So, I'm closing the bug.