<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 14 mars 2022 à 19:54, Dan Egnor <<a href="mailto:egnor@ofb.net">egnor@ofb.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Mon, Mar 14, 2022 at 11:28 AM Algarve Branqueira <<a href="mailto:branqueira@gmail.com" target="_blank">branqueira@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">the application connects to 10 cameras therefore 10 java threads therefore in JNI also 10 C threads.<br></div><div class="gmail_quote"><br>these 10 threads can create multiple threads each for its processing.<br><br>Now for some reason we see a problem in the logs during decoding or encoding.<br>even if it's a thread created by the main thread of ffmpeg, it can be interesting to know what is the name of the original Java thread to go back to the right camera.<br></div></div></blockquote><div><br></div><div>Oh yes, I know it would be *nice* to attribute a log event to a particular instance in many cases, but as far as I know that's quite difficult to accomplish. So... good luck??!</div><div><br></div></div></div></blockquote><div><br></div>searching a bit aside from modifying the ffmpeg code (it's not a good idea because it will always modifying for all update ffmpeg, beurg)<br>I don't see an acceptable solution to hook on "pthread_create", I tried with dlsym(RTLD_NEXT, "pthread_create") but so far it doesn't work :)<br>I forgot a few things lol<br><br><div>thanks again </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>-- egnor</div></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div></div>