Re: [FFmpeg-devel] How to use threads inside custom encoder

2023-03-12 Thread Andreas Rheinhardt
Ronald S. Bultje: > Hi, > > On Thu, Feb 23, 2023 at 1:28 PM Alex <3.1...@ukr.net> wrote: > >> Hi! >> I write custom encoder codec and want to use threads to speed up encoding >> process. I know what ffmpeg have frame level threads and slices threads, >> but in my case best option is to use frame

Re: [FFmpeg-devel] How to use threads inside custom encoder

2023-02-24 Thread Ronald S. Bultje
Hi, On Thu, Feb 23, 2023 at 1:28 PM Alex <3.1...@ukr.net> wrote: > Hi! > I write custom encoder codec and want to use threads to speed up encoding > process. I know what ffmpeg have frame level threads and slices threads, > but in my case best option is to use frame level threads > with FF_CODEC_

[FFmpeg-devel] How to use threads inside custom encoder

2023-02-23 Thread Alex
Hi! I write custom encoder codec and want to use threads to speed up encoding process. I know what ffmpeg have frame level threads and slices threads, but in my case best option is to use frame level threads with FF_CODEC_ENCODE_CB() function. But I have couple of questions: 1) Then I add AV_CO