[FFmpeg-devel] AV_LOG_DEBUG Fixes Problem?

Michael Niedermayer michael at niedermayer.cc
Mon Jun 19 23:00:26 EEST 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170619/02ec4fdf/attachment.sig>


More information about the ffmpeg-devel mailing list