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 1095149E27 for ; Tue, 12 Mar 2024 10:57:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2C88068D0BA; Tue, 12 Mar 2024 12:57:06 +0200 (EET) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A886B68C240 for ; Tue, 12 Mar 2024 12:56:57 +0200 (EET) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a45c006ab82so626835566b.3 for ; Tue, 12 Mar 2024 03:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710241016; x=1710845816; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YhAq/oyDhKPzwYrQ83hqGCsfVg34cmWRyrMDQuxDnhw=; b=cg+v+LDQfB5/d8KB0TGOzAvXP5ujfRzFYrk202tysN/v/0HdcHd6lZETD8YdUZn+aA vxJ1aIBZw8Zal0vMBOK4Jp5mMch9ccgJRVTU6dJnuXxi/h2Qn3zK0bQtiQWx3mfCgbfC sY7y5l8i/kxdnIpLgEpMLVCHFEsR8crAY7bqpg36XFVl+yLOOgeEcjFlev64FNQSkR5S bj3ZHNHjLSDJjyqLG3pUzbnPS1EYfMGoUdPx7B7hd9hSWPjHiILsfFW1lj42QmOxJTUP np4bfywU2JzNZt5JNM7UYLtX62oldjhJHFoOcWygIRov41NFJB9xSNE0E+L2v3hndj8t IlXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710241016; x=1710845816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YhAq/oyDhKPzwYrQ83hqGCsfVg34cmWRyrMDQuxDnhw=; b=pmi74evBnhxSIiDmNv3W/7KL1r+itgIjKUCCK/5GnFDe+DLKpPR/StW3cJONP76l+F UFMjP0Rn86LkiAE5qEQS7cQKis1TA27boq2/n2p5JxCMinKzYiJ0VlqIrPqCK/e8/W6L BAV7g7tZLeRXeHLSNd3qpu4exjv+ifnZ9Gs6YCh65W0JphR7e1JMxCWwEBgCH+XplbZV mmgKbrXy5zBpOBL93sY/r3OXFsTWMFbLYY3PDc1JptVCfeurGv9AlaJFHY0ECD0C8SS/ GtMHF3QapLjOPuTh6z5jMWD2iL/+h4NUmJ9+4H891nCaApAZdlFcv0ETpOUgEc9eF7vH QB9Q== X-Gm-Message-State: AOJu0YwbYtnT9bK2X4juRGttubP2/p95tHsKljGNaz1yoLrPqHF9cQtq f5oZfiguzanzN8SPrcVmmBT6qxHI4C3TJ1TUY6DiAIPltT6xqmPpkvs5TIiP X-Google-Smtp-Source: AGHT+IFrrw6OYL2kaXjvGTreAjGaxfkfLOBVtfd6juK6iqN9IZWCDtPrrl8/EngMC3ta8rn7Q18WDg== X-Received: by 2002:a17:907:a092:b0:a46:4526:86e0 with SMTP id hu18-20020a170907a09200b00a46452686e0mr1147321ejc.37.1710241016190; Tue, 12 Mar 2024 03:56:56 -0700 (PDT) Received: from mariano ([188.210.239.79]) by smtp.gmail.com with ESMTPSA id ag14-20020a1709069a8e00b00a462e166b9bsm1548825ejc.112.2024.03.12.03.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 03:56:55 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id 408C5BFCE2; Tue, 12 Mar 2024 11:56:54 +0100 (CET) From: Stefano Sabatini To: FFmpeg development discussions and patches Date: Tue, 12 Mar 2024 11:56:54 +0100 Message-Id: <20240312105654.342835-3-stefasab@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240312105654.342835-1-stefasab@gmail.com> References: <20240312105654.342835-1-stefasab@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] doc/muxers: add fifo_test 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 Cc: Stefano Sabatini 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: --- doc/muxers.texi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 0aaef2b520..ccbb741992 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -1556,6 +1556,36 @@ ffmpeg -re -i ... -c:v libx264 -c:a aac -f fifo -fifo_format flv \ -map 0:v -map 0:a rtmp://example.com/live/stream_name @end example +@anchor{fifo_test} +@section fifo_test +@ref{fifo} muxer test muxer. + +This is a testing muxer, it is supposed to be used only to test the +@ref{fifo} muxer. + +@subsection Options +@table @option +@item print_deinit_summary @var{bool} +print summary when deinitializing muxer, default is @code{true} + +@item write_header_ret @var{int} +set @code{write_header()} return value + +@item write_trailer_ret @var{int} +set @code{write_trailer()} return value +@end table + +@subsection Example + +Use @command{ffmpeg} to write to a file using the @samp{fifo} muxer +using the internal @samp{fifo_test} muxer, simulate a write header +error using the @option{write_header_ret} option: +@example +ffmpeg -re -i ... -c:v libx264 -c:a aac -f fifo -fifo_format fifo_test -format_opts write_header_ret=-22 \ + -map 0:v -map 0:a \ + -drop_pkts_on_overflow 1 -attempt_recovery 1 -recovery_wait_time 1 out.test +@end example + @section flv Adobe Flash Video Format muxer. -- 2.34.1 _______________________________________________ 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".