[Libav-user] Fast parsing of H.264 video stream using libavcodec

Gonzalo ggarra13 at gmail.com
Thu Jul 21 01:17:02 CEST 2016



El 20/07/16 a las 18:58, Puneet Kapoor escribiĆ³:
>
> If you could share some examples of multi-threaded libav user code, it 
> would be helpful.
>
> Thanks
>
Google for "dranger ffmpeg".  The original page is a tutorial page, but 
it is a tad out of date.  Some other repositories contain updated code.

Some demuxers may support multithreaded operation, albeit for most 
operations you gain little.  For that, you can use:

   AVDictionary* info = NULL;
   av_dict_set(&info, "threads", "auto", 0);

   avcodec_open2( video_ctx, video_codec, &info );

-- 
Gonzalo GarramuƱo
ggarra13 at gmail.com



More information about the Libav-user mailing list