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 ESMTPS id B31A54C5C1 for ; Fri, 7 Feb 2025 14:34:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 44F5468BA9D; Fri, 7 Feb 2025 16:34:44 +0200 (EET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B815568B510 for ; Fri, 7 Feb 2025 16:34:32 +0200 (EET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-21f2339dcfdso34273955ad.1; Fri, 07 Feb 2025 06:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738938871; x=1739543671; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=4wTTaeWd550C9To5e+6hq1ZwU7F73QM4/LdQ2oEEpAM=; b=P7BDZGqDmtn8OD4B8cHltA2zo9WZAotB+vvPbdYgJVgsAm1i0oHSr2U5glocT7m9fF OiSNFlbgb3Wkx72Xf8paGYLxXci5NHFXaxyDPvwmuCpxBGtCNcRi3920sPREmVcwf//f UDavctOGq9krzDE6+W/KCn+AK1I133+CqownVbUWsy7CznjBvry74ekgtBzMF8QJeRWp 1sy0+TAq2Gtos3W24PAgUcg29SknKZN3nO6/i6Cl8z06yA7/Fhx/2K+quaonAaUr2w39 /GDfPv7j6eQOkxMCG245/jEdcC7+Hvml3QXJlVgWtyyE7ryrKCIQI26DyIOwkGsa83Uq ZgHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738938871; x=1739543671; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4wTTaeWd550C9To5e+6hq1ZwU7F73QM4/LdQ2oEEpAM=; b=eXYwfJ9Ei7UCVh3JYlifrpOh12u/mFxNDXEB29qAPiXFAyXbIWl9rlQQGjXMtpZaOk jFBl1pvcvYjP1xBMMqsAssjHVTMUIMXE0A0oYWfbCPG/mxwUvfsJ25+kgMRPwskNcjid 28pNpmUR2iunsDxMcRz3of4gsyXGArF20glkOqP53HQ5F0jSwTSo4cL65KQw9w65qWLW bw8j8MeH75hjWgoBah6JyCPcycnoCZ92PL6utNc1aEw8hAYWPy2pBdLq4MiybmN/7MGT 2kFOCGSVIzNCZQaKNKxbQuh2fwrRPaHqGh9cxaPSVI4lBNbjSx2eusSleRfVGuUMcF/j 70vQ== X-Forwarded-Encrypted: i=1; AJvYcCWLPY9Q3fRAOZ4Xx7bPPn3BpL1E7MwxI/DKIy0bcSuxN9tNa8gvCGxosRMa6GMYqQ4en1l7QKN+1KsQesnJlbrZqisaqwiCmms=@ffmpeg.org X-Gm-Message-State: AOJu0YzSQCS6I+xD9DXl2uyRt8XBxk6T/vBW7gGc71PjplpWh/nn/xLB JtKaFHABfS2GmT71FB7/NOkD1NwoznpkwiG26KmF0o44TJGN79auo/6Uiw== X-Gm-Gg: ASbGncvb9ygTyo2xwpZWs+VQJk37iM8CbkmmavzzXBSeEiMEnE8v1Nb5j/5Q69NH+fq c+mPaQbeNUWRcUi9ifMHKnpEzzflHJBU8KtDVNHCJSUyBcNdkhv9WMp8L5FrNnbYG98JbkyFbcr yHTJ0R3IhmKb6L7Flq9FeTgNFcpSNf4Tl3IqR6CvJYIsS80n5Simg6KTs8MvAl44mZDgCiaseou yDuNUV+/LoMnav/IAj94daSK3raEhXOqq2Fb/5rdrsZmSuTkIf7WWnivS0mKj9O/vELmvUFcx0m iFEVxmieLGaOK9Z/eMy8xRBIsk5jd4PSRA== X-Google-Smtp-Source: AGHT+IFauHoODP58WAxArbv7zqPiHh03ana37eytRiHc2xSI/ZWE7dw7a6nZ7pD21Dikd/Xzh5k4LQ== X-Received: by 2002:a17:902:cf05:b0:21f:58fd:d215 with SMTP id d9443c01a7336-21f58fdd3f8mr30390245ad.11.1738938870735; Fri, 07 Feb 2025 06:34:30 -0800 (PST) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21f3650e689sm31278455ad.48.2025.02.07.06.34.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2025 06:34:30 -0800 (PST) Message-Id: In-Reply-To: References: From: ffmpegagent Date: Fri, 07 Feb 2025 14:34:26 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v6 0/3] Add option to log timing 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: Michael Niedermayer , softworkz , Soft Works , Marth64 , Tobias Rapp 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: This commit adds two logging flags: 'time' and 'datetime'. Usage: ffmpeg -loglevel +time or ffmpeg -loglevel +datetime Update V1 * Fix merge conflicts Update V2 * Rebased Update V3 * Fix print timing on exit (as reported by Michael Niedermayer) Update V4 * Rename variable * Rename flags to time and datetime (as suggested by Marth64) Update V5 * Fix commit message (as noted by epirat07) Update V6 * Handle empty quiet messages in log.c rather than clearing log flags in ffmpeg.c (as suggested by Tobias Rapp) softworkz (3): avutil/log: support logging of date and time information fftools/opt_common: add time and datetime log flags doc/fftools-common-opts: document log timing flags doc/APIchanges | 3 +++ doc/fftools-common-opts.texi | 4 ++++ fftools/opt_common.c | 12 ++++++++++++ libavutil/log.c | 32 +++++++++++++++++++++++++++++--- libavutil/log.h | 10 ++++++++++ libavutil/version.h | 2 +- 6 files changed, 59 insertions(+), 4 deletions(-) base-commit: 4ba9ae7742a6f8a29d6486e25ff5709a075edb5b Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-37%2Fsoftworkz%2Fsubmit_logtiming-v6 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-37/softworkz/submit_logtiming-v6 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/37 Range-diff vs v5: 1: dae6bd3210 ! 1: 4c5bf1c03b avutil/log: support logging of date and time information @@ libavutil/log.c: static void format_line(void *avcl, int level, const char *fmt, if(type) type[1] = get_category(avcl); } -+ if (*print_prefix && (flags & (AV_LOG_PRINT_TIME | AV_LOG_PRINT_DATETIME))) ++ if (*print_prefix && (level > AV_LOG_QUIET) && (flags & (AV_LOG_PRINT_TIME | AV_LOG_PRINT_DATETIME))) + format_date_now(&part[4], flags & AV_LOG_PRINT_DATETIME); + if (*print_prefix && (level > AV_LOG_QUIET) && (flags & AV_LOG_PRINT_LEVEL)) 2: 63ab3a9411 ! 2: 81d9e24908 fftools/opt_common: add time and datetime log flags @@ Commit message ffmpeg -loglevel +datetime - Setting av_log_set_flags(0) in term_exit in ffmpeg.c prevents - timing to be printed when exiting. - Signed-off-by: softworkz - ## fftools/ffmpeg.c ## -@@ fftools/ffmpeg.c: static void term_exit_sigsafe(void) - - void term_exit(void) - { -+ av_log_set_flags(0); - av_log(NULL, AV_LOG_QUIET, "%s", ""); - term_exit_sigsafe(); - } - ## fftools/opt_common.c ## @@ fftools/opt_common.c: int opt_loglevel(void *optctx, const char *opt, const char *arg) } else { 3: 038cbf45ed = 3: a3522a2116 doc/fftools-common-opts: document log timing flags -- ffmpeg-codebot _______________________________________________ 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".