Ronald S. Bultje wrote: > > Hi, > I'm not sure if this works at all in FFmpeg from videolan's server, > but you could test that by trying "ffmpeg -threads 2 -i file.h264 -f > null -". If that uses multiple cores, your code is wrong and I can >
Yes, that works. I've seen two threads with -threads 2 and one thread without that switch. I've shown you my code almost completely. One missing thing is call to avcodec_decode_video2 One more thing - I don't use FFmpeg demuxer, but use my, in separate thread. It is based on the code from rtpdec_h264.c get_sample() method just allocates memory -- View this message in context: http://libav-api.1054858.n5.nabble.com/libav-api-Multithreading-in-H264-decoder-tp4945598p4946310.html Sent from the libav-api mailing list archive at Nabble.com. _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
