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 8EA9E474F3 for ; Sun, 10 Dec 2023 02:58:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 28FA368CF31; Sun, 10 Dec 2023 04:57:58 +0200 (EET) Received: from mail-yw1-f228.google.com (mail-yw1-f228.google.com [209.85.128.228]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B6B1A68CF34 for ; Sun, 10 Dec 2023 04:57:51 +0200 (EET) Received: by mail-yw1-f228.google.com with SMTP id 00721157ae682-5cd81e76164so32175567b3.1 for ; Sat, 09 Dec 2023 18:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1702177070; x=1702781870; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w5e9E0SQx4pIUH4Eqf7BHDp/JRdHpYjbwGfLqclKCt4=; b=I0uJ72XQVqGIN3bYwZt99OWknAroiAYblqDyLnTuMcTZeLOEKXiPRMKkJUXdlO7FO4 4IrubEulZ2ErkMOU/rNUHICXBnq1tZmj66M9+T8V8JyF9TGXv5I3GYPlCBs6gQjo4noT fUcoVqM2wQDApUWkqGUWpxIZcGKW02Y2UUCNnWueOndGEV+Q38ninbIDN4Pcvtxdl6oB MGfwbWuf2XAxj7nrvxqu2tPN0HcI9VLZOaeaXDvkW3HDPbt85BJ7YRkFIJR25zMqN3IF jkKwTKHUltXqvDMQ2icNu7YeKaSjNZKJZm5JUQBNpvVX3kmzwTl2T6+at32Ru9elB0Z+ Z5Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702177070; x=1702781870; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w5e9E0SQx4pIUH4Eqf7BHDp/JRdHpYjbwGfLqclKCt4=; b=oGllF0knF0x+tcH/Rkc5BC/Xp7o3UwHIy17GqDC+Mwbd3abWp6AGQNRkjM51vRxvSu 4t6LWZkbGV2cyY+jPrdF09gOWZwNgW5gGCUqrFbg9FoxfY29LBSBoDinx/l6BacUTWwE mBWTw+EEF3MqXVVq7IKb0hv5Dgld1bDH37aXjVCkm8qQ9fLWYGgToaqYD7fr4Hu+WKko sxPwfrcjWsnBHsB0MIvysBp22T7DvX4/MY9zbRbbw4PWPfGrJifVXKxGjfo80yBONsEU BBxaYFBrYD39QowTH7+WpWM7D8mag68P1JlQSEOnF79jxEgDCzx+BrPsl6PofTdTko82 nwtA== X-Gm-Message-State: AOJu0YyAkWg4hF0K17n4h8EDBh8N56n5ZinRGidskJT/JGFRSQYZNatX 7lnION/6pcTIjiWJ2ipfR9wnajttc9HHfjJuzhA05LEElw8XQpWeMrMzbQ== X-Google-Smtp-Source: AGHT+IFwzQrUBeqSdo+w4taepMOpa9gNc09RwHe2pYkMy1ZHcgJaIcBmt/tADNgV04dhFKP3Q1lxOF5QWhE2 X-Received: by 2002:a81:838d:0:b0:5d8:2322:a284 with SMTP id t135-20020a81838d000000b005d82322a284mr1937603ywf.40.1702177070032; Sat, 09 Dec 2023 18:57:50 -0800 (PST) Received: from wsx-cc1-001.. (c-76-141-0-17.hsd1.il.comcast.net. [76.141.0.17]) by smtp-relay.gmail.com with ESMTPS id l2-20020a819402000000b005d0105c0d8bsm532178ywg.13.2023.12.09.18.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 18:57:50 -0800 (PST) X-Relaying-Domain: proxyid.net From: Marth64 To: ffmpeg-devel@ffmpeg.org Date: Sat, 9 Dec 2023 20:57:09 -0600 Message-Id: <20231210025708.866512-1-marth64@proxyid.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] doc/ffprobe: add a useful one-liner example to get essential input information as JSON 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: Marth64 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: Signed-off-by: Marth64 This could be useful for folks who are just learning ffmpeg or have simple needs for parsing input information as JSON. --- doc/ffprobe.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/ffprobe.texi b/doc/ffprobe.texi index b74ff650ac..ed88e619f6 100644 --- a/doc/ffprobe.texi +++ b/doc/ffprobe.texi @@ -572,6 +572,12 @@ printed on a single line. Default value is 0. For more information about JSON, see @url{http://www.json.org/}. +@subsection Examples +Output format, stream, and chapter information of an input as JSON: +@example +ffprobe -of json -show_format -show_streams -show_chapters INPUT +@end example + @section xml XML based format. -- 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".