[Libav-user] Is avcodec_send_frame thread-safe for a single AVFrame ?
wolverin
wolverin82 at mail.ru
Sat Jun 22 14:20:49 EEST 2024
Hello.
I'm doing video transcoding live stream. The H264 input stream from the usb camera, I decided to encode the same AVFrame in different threads for streaming x264 with low bitrate and for jpg snapshots, but at some points avcodec_send_frame is successful, at others it returns error -22, and sometimes even Segmentation fault.
What can be done about it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20240622/23caac11/attachment.htm>
More information about the Libav-user
mailing list