[FFmpeg-devel] [PATCH] Improved the performance of 1 decode + N filter graphs and adaptive bitrate.

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jan 9 22:50:51 EET 2019


2019-01-09 21:50 GMT+01:00, Shaofei Wang <shaofei.wang at intel.com>:

> +        //if (ost->source_index >= 0)
> +        //    *filtered_frame=
> *input_streams[ost->source_index]->decoded_frame; //for me_threshold

Is there a reason why this is commented?

> @@ -2179,7 +2285,15 @@ static int ifilter_send_frame(InputFilter *ifilter,
> AVFrame *frame)
>              }
>          }
>
> +#if HAVE_THREADS
> +        if (!abr_pipeline) {

The following is less ugly:
    if (HAVE_THREADS && !abr_pipeline)
Same below, you can define the new variables unconditionally.

But why does your code not work with FFmpeg's  thread emulation?

Carl Eugen


More information about the ffmpeg-devel mailing list