Hi,<div><br></div><div>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 <a href="mailto:bot@gmail.com">bot@gmail.com</a> from <a href="mailto:me@gmail.com">me@gmail.com</a>).</div>

<div><br></div><div>So I started with the example call.py from python-telepathy examples. It works well and I can see the stream from videotestsrc.</div><div><br></div><div>Then I changed</div><div><div>#            src = gst.element_factory_make (&quot;videotestsrc&quot;)</div>

<div>#            src.set_property(&quot;is-live&quot;, True)</div><div>to</div><div>#            src = gst.element_factory_make (&quot;v4l2src&quot;)</div><div>#            src.set_property(&quot;device&quot;, &quot;/dev/video1&quot;)</div>

</div><div><br></div><div>not working, black screen on receiver end</div><div><br></div><div>I have also tried</div><div><div>#            src = gst.parse_bin_from_description(&quot;v4l2src device=/dev/video1&quot;, True)</div>

<div>and</div><div>#            src = gst.parse_bin_from_description(&quot;v4l2src device=/dev/video1 ! queue ! decodebin&quot;, True)</div></div><div>and</div><div><div>#            src = gst.element_factory_make (&quot;filesrc&quot;)</div>

<div>#            src.set_property(&quot;is-live&quot;, True)</div><div>#            src.set_property(&quot;location&quot;, &quot;me.ogg&quot;)</div></div><div><br></div><div>neither is working.</div><div><br></div><div>
The last lines I usually get from the script output are:</div>
<div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs: called</div><div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs: adding remote codec H263 [34]</div><div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs: adding remote codec THEORA [96]</div>

<div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) set_remote_codecs: adding remote codec H263-1998 [97]</div><div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) _tf_stream_try_sending_codecs: called (send_local:0 send_supported:1)</div>

<div>(call.py:23900): tp-fs-DEBUG: stream 2 0x17d0220 (video) _tf_stream_try_sending_codecs: Ignoring new codecs because we&#39;re sending, but we&#39;re not ready </div><div><br></div><div>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.</div>

<div><br></div><div>Any pointers will be appreciated.</div><div><br></div><div>Regards</div><div>Stefan Krastanov</div>