[Libav-user] variable scope into callback av_log_set_callback and multi threading

Dan Egnor egnor at ofb.net
Mon Mar 14 20:53:52 EET 2022

On Mon, Mar 14, 2022 at 11:28 AM Algarve Branqueira <branqueira at gmail.com>

> the application connects to 10 cameras therefore 10 java threads therefore
> in JNI also 10 C threads.
> these 10 threads can create multiple threads each for its processing.
> Now for some reason we see a problem in the logs during decoding or
> encoding.
> 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.

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??!

-- egnor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220314/47f26b65/attachment.htm>

More information about the Libav-user mailing list