<div dir="ltr"><div><div><div>Heya !<br><br></div>Prior to the brand new version of Python which include the new asyncio module, I wanted to play a bit around a server/client streaming architecture using multifdsink and fdsrc.<br>
<br></div>If I use udpsink/udpsrc and tcpsink/tcpsrc, streamings work as expected. But if I use created socket (TCP connection) from Python asyncio module (or just with the Python socket module), I can't make it work anymore:<br>
<br></div><div>The sender sends gstreamer buffer to multifdsink. By looking at the client socket, I can see the buffer flowing. By putting a filesink just behing the fdsrc, the dump is not null. But once I put any element behind the fdsrc (like an encoder for instance), the filesink is null.<br>
<br></div><div>I read this blog entry [1], and I'm pretty sure that the file descriptor is not freed, I still keep a reference to it. The author use gdppay/gdpdepay around the socket sink/src element. I did that and there were no buffer from gdpdepay (filesink file is empty, but it's not if I put it right after the fdsrc).<br>
<br></div><div>Python scripts are attached (Python3.4 only !).<br><br></div><div>Thank you very much !<br></div><div>Adrien<br></div><div><br>[1] <a href="http://base-art.net/Articles/107/">http://base-art.net/Articles/107/</a><br>
</div></div>