[FFmpeg-devel] [PATCH] ffmpeg_filter: use nb_threads=1 on unused filtergraph
Michael Niedermayer
michael at niedermayer.cc
Sat Nov 18 22:31:48 EET 2017
On Sat, Nov 18, 2017 at 11:15:55AM -0500, DeHackEd wrote:
> On 11/18/2017 05:56 AM, Michael Niedermayer wrote:
> > On Thu, Nov 16, 2017 at 08:25:50PM -0500, DeHackEd wrote:
> >> diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
> >> index aacc185..877fd67 100644
> >> --- a/fftools/ffmpeg_filter.c
> >> +++ b/fftools/ffmpeg_filter.c
> >> @@ -340,6 +340,7 @@ int init_complex_filtergraph(FilterGraph *fg)
> >> graph = avfilter_graph_alloc();
> >> if (!graph)
> >> return AVERROR(ENOMEM);
> >> + graph->nb_threads = 1;
> >
> > if you checked that it doesnt reduce threads for simple & complex
> > graphs that are used then LGTM
> >
>
> Yes I have verified that to be the case. Test method was
> $ strace -e trace=clone ./ffmpeg_g -filter_complex 'testsrc2[out]' ...
ok, will apply
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- 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/20171118/99a7a162/attachment.sig>
More information about the ffmpeg-devel
mailing list