<br><div class="gmail_quote">On 7 August 2012 18:00, Jason Garrett-Glaser <span dir="ltr"><<a href="mailto:jason@x264.com" target="_blank">jason@x264.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Aug 7, 2012 at 4:59 AM, Killian De Smedt <<a href="mailto:killiands@gmail.com">killiands@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> Today I tried to setup my encoding system using nalu_process to handle NAL<br>
> unit encoding and transmission. However, my application can handle multiple<br>
> (dynamic) streams, but I have no way to differentiate between them in the<br>
> actual nalu_process call. After some discussion on IRC it turned out I could<br>
> only do this by creating a new function per stream. While I can use this as<br>
> a workaround (nr of streams = low), this does seem like a dirty solution and<br>
> it leads to code bloat because I have to create systems to allocate streams<br>
> to a static callback.<br>
<br>
</div>Have you tried using the x264_t pointer to indicate, or is that too<br>
hacky? I'd be happy to add an extra way if that wasn't enough, but I'd<br>
like to know why that isn't sufficient first.<br>
<br></blockquote><div><br>I thought of this also (mapping the x264 pointer to my stream), but someone on IRC (BugMaster) told me that the x264_t pointer I receive in nalu_process could differ from the main one used to call encoder_encode, due to worker threads. If this is not the case and this value uniquely identifies my stream, this solution would be sufficient for me.<br>

<br>Thank you,<br><br>Killian<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jason<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
</blockquote></div><br><br>