javacv
javacv copied to clipboard
FFmpegFrameRecorder to push stream to Nginx multithreads
When using FFmpegFrameRecorder to push stream to Nginx multithreads, this error occurs after a while and causes the program to crash. I saw no significant increase in the memory used by the Java threads, and no other Java errors were reported in the terminal.
It's confusing to me.
FFmpeg is not too thread-safe. Please don't try to use the same instance of FFmpegFrameRecorder across threads.
I created a new FrameRecorder instance in each thread, and the program crashed over a period of time, but at random.
FFmpeg is not too thread-safe. Please don't try to use the same instance of FFmpegFrameRecorder across threads.
The codecs that you are using might not be thread-safe, even across different instances. Try to use other codecs.
The codecs that you are using might not be thread-safe, even across different instances. Try to use other codecs. I will try. Thank you.