[FFmpeg-devel] questions about multi-thread issues for ffmpeg
applemax82 at 163.com
Thu Sep 8 10:59:56 EEST 2016
I have made one simple transcoding program by using ffmpeg lib, where several av transcoding tasks are done in one process and each task corresponds to one thread.
But some ffmpeg function will report error, and sometimes the multi-thread version of transcoding program will crash abnormally.
For example, av_guess_format("mp4", NULL, NULL) returns error accidentally with several concurrent tasks. And transcoding program will crash, when calling av_interleaved_write_frame ().
does ffmpeg support multi-thread in this case? If not, which ffmpeg functions should be synchronized by application developer?
More information about the ffmpeg-devel