On Mon, Jun 19, 2017 at 04:58:44PM +0000, Rod Delay wrote:
> I have inherited a C++ project that uses FFMpeg to capture audio and video 
> from JitsiMeet, what we have found is after about 10 minutes it stops writing 
> to the output file.  It's random anywhere from 5 to 10 minutes.
> 
> I was able to narrow down to a problem with the following line:
> 
> avcodec_encode_video2(videoStream->codec, &video_pkt, &videoFrame, 
> &got_input);
> So I decided to add in some logging with the following:
> 
>     av_log_set_level(AV_LOG_DEBUG);
>     av_log_set_callback(my_log_callback);
> 
> 

> void FFRecorder::my_log_callback(void *ptr, int level, const char *fmt, 
> va_list vargs)
> {
>     static char message[8192];

This is not thread safe


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to