<HTML><BODY><div><div><pre style="-webkit-text-stroke-width:0px; color:#000000; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; widows:2; word-spacing:0px">Hello.</pre><div>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.</div><div> </div><div>What can be done about it?</div></div></div></BODY></HTML>