[FFmpeg-devel] [PATCH 10/24] fftools/ffmpeg_filter: move filtering to a separate thread

Michael Niedermayer michael at niedermayer.cc
Sat Nov 4 21:54:21 EET 2023


On Sat, Nov 04, 2023 at 08:56:19AM +0100, Anton Khirnov wrote:
> As previously for decoding, this is merely "scaffolding" for moving to a
> fully threaded architecture and does not yet make filtering truly
> parallel - the main thread will currently wait for the filtering thread
> to finish its work before continuing. That will change in future commits
> after encoders are also moved to threads and a thread-aware scheduler is
> added.
> ---
>  fftools/ffmpeg.h        |   9 +-
>  fftools/ffmpeg_dec.c    |  39 +-
>  fftools/ffmpeg_filter.c | 825 ++++++++++++++++++++++++++++++++++------
>  3 files changed, 730 insertions(+), 143 deletions(-)

causes assertion failure in:
make -j32 && echo 'Call 0 ping'  | ./ffmpeg -nostats -i ~/videos/mm-short.mpg -vf nullsink,color=green -bitexact -vframes 1 -f null -

Assertion stream_idx < tq->nb_streams failed at fftools/thread_queue.c:125

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231104/9004e657/attachment.sig>


More information about the ffmpeg-devel mailing list