From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8F01F47EB3 for ; Thu, 30 Nov 2023 13:35:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9E42268CF9E; Thu, 30 Nov 2023 15:35:07 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B559768CEE0 for ; Thu, 30 Nov 2023 15:35:00 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 6B4FD2405ED for ; Thu, 30 Nov 2023 14:35:00 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id I2OkBsUTzU5j for ; Thu, 30 Nov 2023 14:34:59 +0100 (CET) Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id C0A1B24043D for ; Thu, 30 Nov 2023 14:34:59 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id 9C4EE1601B9; Thu, 30 Nov 2023 14:34:59 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20231130130826.GP3543730@pb2> References: <20231124222616.GH3543730@pb2> <20231125203314.29181-1-anton@khirnov.net> <20231130130826.GP3543730@pb2> Mail-Followup-To: FFmpeg development discussions and patches Date: Thu, 30 Nov 2023 14:34:59 +0100 Message-ID: <170135129961.8914.10968061903168088055@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 13/13 v2] fftools/ffmpeg: convert to a threaded architecture X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Quoting Michael Niedermayer (2023-11-30 14:08:26) > On Sat, Nov 25, 2023 at 09:32:06PM +0100, Anton Khirnov wrote: > > Change the main loop and every component (demuxers, decoders, filters, > > encoders, muxers) to use the previously added transcode scheduler. Every > > instance of every such component was already running in a separate > > thread, but now they can actually run in parallel. > > > > Changes the results of ffmpeg-fix_sub_duration_heartbeat - tested by > > JEEB to be more correct and deterministic. > > --- > > fftools/ffmpeg.c | 374 +-------- > > fftools/ffmpeg.h | 97 +-- > > fftools/ffmpeg_dec.c | 321 ++------ > > fftools/ffmpeg_demux.c | 268 ++++--- > > fftools/ffmpeg_enc.c | 368 ++------- > > fftools/ffmpeg_filter.c | 722 +++++------------- > > fftools/ffmpeg_mux.c | 324 ++------ > > fftools/ffmpeg_mux.h | 24 +- > > fftools/ffmpeg_mux_init.c | 88 +-- > > fftools/ffmpeg_opt.c | 6 +- > > .../fate/ffmpeg-fix_sub_duration_heartbeat | 36 +- > > 11 files changed, 598 insertions(+), 2030 deletions(-) > > I tried > ./ffmpeg -f lavfi -i testsrc2 -bsf:v noise -bitexact -t 2 /tmp/.y4m > > with merged ffmpeg_threading into master > > and it gets stuck > > Stream #0:0 -> #0:0 (wrapped_avframe (native) -> wrapped_avframe (native)) > Press [q] to stop, [?] for help > [noise @ 0x55e8fbaea340] Wrapped AVFrame noising is unsupported > [vost#0:0/wrapped_avframe @ 0x55e8fbae9840] Error initializing bitstream filter: noise > [vf#0:0 @ 0x55e8fbaea880] Error sending frames to consumers: Not yet implemented in FFmpeg, patches welcome > [vf#0:0 @ 0x55e8fbaea880] Task finished with error code: -1163346256 (Not yet implemented in FFmpeg, patches welcome) > [vf#0:0 @ 0x55e8fbaea880] Terminating thread with return code -1163346256 (Not yet implemented in FFmpeg, patches welcome) Sorry, seems I forgot to update my branch. Did that now, it should not get suck anymore. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".