Comment 2 for bug 1100594

Revision history for this message
Jeff Lane  (bladernr) wrote :

Daniel pointed out part of the problem here... there are three things that need to be sorted out:

1: the requires: for camera/still needs to be cleaned up (the requires for gir1.2 is listed twice)

2: when fswebcam isn't installed we're falling back to gstreamer, but in this case that caused an exception to occur inside the exception handling for the fswebcam call. To fix this, we should just set a fallback-to-gstreamer flag in the exception handling for the fswebcam call then put an if flag=true: bit to do the actual fallback code. This should produce less confusing tracebacks.

3: ffmpegcolorspace was removed from gir1.2 1.0 and replaced with videoconvert... so we need to address this. so that could mean a third fallback.

Better, check for the version and set appropriate variables at the beginning of the scritpt:
<roadmr> bladernr: it's just "videoconverter or ffmpegcolorspace" and "video/x-raw or video/x-raw-yuv". That's the only change needed in local tests
<roadmr> bladernr: this was useful in figuring things out: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-porting-1.0.html
<roadmr> bladernr: right after "from gi.repository import Gst", we can check Gst.version(), it's a tuple