[Telepathy] Simple video streaming, problems with examples from python-telepathy

krastanov.stefan at gmail.com krastanov.stefan at gmail.com
Fri Jan 7 09:23:23 PST 2011


Hi,

What I am trying to do is to stream webcam video behind NAT. For educational
purposes (and for nat traversal) I wanted to use Jingle (just calling
bot at gmail.com from me at gmail.com).

So I started with the example call.py from python-telepathy examples. It
works well and I can see the stream from videotestsrc.

Then I changed
#            src = gst.element_factory_make ("videotestsrc")
#            src.set_property("is-live", True)
to
#            src = gst.element_factory_make ("v4l2src")
#            src.set_property("device", "/dev/video1")

not working, black screen on receiver end

I have also tried
#            src = gst.parse_bin_from_description("v4l2src
device=/dev/video1", True)
and
#            src = gst.parse_bin_from_description("v4l2src
device=/dev/video1 ! queue ! decodebin", True)
and
#            src = gst.element_factory_make ("filesrc")
#            src.set_property("is-live", True)
#            src.set_property("location", "me.ogg")

neither is working.

The last lines I usually get from the script output are:
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs:
called
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs:
adding remote codec H263 [34]
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs:
adding remote codec THEORA [96]
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs:
adding remote codec H263-1998 [97]
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video)
_tf_stream_try_sending_codecs: called (send_local:0 send_supported:1)
(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video)
_tf_stream_try_sending_codecs: Ignoring new codecs because we're sending,
but we're not ready

I have _very_ poor understanding of the api and of gstreamer pipes so I
suppose that I am making a very stupid mistake. But I have spent some time
on it without success and I have not find a solution or any clear
documentation.

Any pointers will be appreciated.

Regards
Stefan Krastanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/telepathy/attachments/20110107/469ac5ba/attachment.html>


More information about the telepathy mailing list