On Wed, Sep 30, 2009 at 1:17 PM, Dick Marinus <dick@mrns.nl> wrote:
Hi all,

At April 30, 2006 Fredrik posted a message about using the tuner
interface from Python and I'm experiencing the same issue:

$ python
>>> import gst
>>> source = gst.element_factory_make("v4l2src",name="Pinnacle PCTV
>>> print source.get_channel()

(.:13363): GStreamer-CRITICAL **: gst_implements_interface_cast:
assertion `gst_element_implements_interface (GST_ELEMENT (from),
iface_type)' failed

** (.:13363): CRITICAL **: gst_tuner_get_channel: assertion
`GST_IS_TUNER (tuner)' failed

I've tried to set the pipeline queue to STATE_PLAYING but I still have
the same error.

I guess something is broken at the Python bindings. Could someone please
help me?

I had this same problem this week on a toy project and thaytan sent me a python script that uses GstTuner interface from v4l2src, but I still haven't looked deeply at it. I'll do it tonight and I'll update here with my findings.

One thing I noticed, though, is that GstV4l2Src is using a subclass of GstTunerChannel that is not mapped/exported in the python bindings (but I don't know much about bindings and thaytan said it worked for him, so I believe I'm doing something wrong in my code).


I'm using:

Thanks in advance,

Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
gstreamer-devel mailing list

Thiago Sousa Santos