Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/graphprint: Now, make it a Killer-Feature!
Date: Thu, 15 May 2025 18:53:01 -0300
Message-ID: <9b631832-a9d4-49da-855c-ea4e28a41be0@gmail.com> (raw)
In-Reply-To: <20250515211148.6C91C4128B8@natalya.videolan.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 4647 bytes --]

> ffmpeg | branch: master | softworkz <softworkz at hotmail.com <https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog>> | Thu May 15 23:10:02 2025 +0200| [1f2b8d7238eff4ab8a4d8d6177e250b8180d51f4] | committer: softworkz
>
> fftools/graphprint: Now, make it a Killer-Feature!
>
> remember this: -sg   <= means Show Graph
>
> Signed-off-by: softworkz <softworkz at hotmail.com <https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog>>
>
> >/http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f2b8d7238eff4ab8a4d8d6177e250b8180d51f4 
> /---
>
>   doc/ffmpeg.texi              |   4 +
>   fftools/Makefile             |   1 +
>   fftools/ffmpeg.c             |   2 +-
>   fftools/ffmpeg.h             |   1 +
>   fftools/ffmpeg_filter.c      |   2 +-
>   fftools/ffmpeg_opt.c         |   4 +
>   fftools/graph/filelauncher.c | 205 +++++++++++++++++++++++++++++++++++++++++++
>   fftools/graph/graphprint.c   |  48 +++++++++-
>   fftools/graph/graphprint.h   |  32 +++++++
>   9 files changed, 296 insertions(+), 3 deletions(-)
>
> diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
> index 35675b5309..4bcb6d6a01 100644
> --- a/doc/ffmpeg.texi
> +++ b/doc/ffmpeg.texi
> @@ -1404,6 +1404,10 @@ Writes execution graph details to the specified file in the format set via -prin
>   Sets the output format (available formats are: default, compact, csv, flat, ini, json, xml, mermaid, mermaidhtml)
>   The default format is json.
>   
> + at item <https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog> -sg (@emph{global})
> +Writes the execution graph to a temporary html file (mermaidhtml format) and
> +tries to launch it in the default browser.
> +
>   @item -progress @var{url} (@emph{global})
>   Send program-friendly progress information to @var{url}.
>   
> diff --git a/fftools/Makefile b/fftools/Makefile
> index 361a4fd574..56a2910212 100644
> --- a/fftools/Makefile
> +++ b/fftools/Makefile
> @@ -22,6 +22,7 @@ OBJS-ffmpeg +=                  \
>       fftools/ffmpeg_opt.o        \
>       fftools/ffmpeg_sched.o      \
>       fftools/graph/graphprint.o        \
> +    fftools/graph/filelauncher.o      \
>       fftools/sync_queue.o        \
>       fftools/thread_queue.o      \
>       fftools/textformat/avtextformat.o \
> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
> index 964770df23..6513e2129e 100644
> --- a/fftools/ffmpeg.c
> +++ b/fftools/ffmpeg.c
> @@ -309,7 +309,7 @@ const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL };
>   
>   static void ffmpeg_cleanup(int ret)
>   {
> -    if (print_graphs || print_graphs_file)
> +    if (print_graphs || print_graphs_file || show_graph)
>           print_filtergraphs(filtergraphs, nb_filtergraphs, input_files, nb_input_files, output_files, nb_output_files);
>   
>       if (do_benchmark) {
> diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
> index 7fbf0ad532..49fea0307d 100644
> --- a/fftools/ffmpeg.h
> +++ b/fftools/ffmpeg.h
> @@ -721,6 +721,7 @@ extern int print_graphs;
>   extern char *print_graphs_file;
>   extern char *print_graphs_format;
>   extern int auto_conversion_filters;
> +extern int show_graph;
>   
>   extern const AVIOInterruptCB int_cb;
>   
> diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
> index b774606562..e82e333b7f 100644
> --- a/fftools/ffmpeg_filter.c
> +++ b/fftools/ffmpeg_filter.c
> @@ -2985,7 +2985,7 @@ read_frames:
>   
>   finish:
>   
> -    if (print_graphs || print_graphs_file)
> +    if (print_graphs || print_graphs_file || show_graph)
>           print_filtergraph(fg, fgt.graph);
>   
>       // EOF is normal termination
> diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
> index 3d1efe32f9..24713d640f 100644
> --- a/fftools/ffmpeg_opt.c
> +++ b/fftools/ffmpeg_opt.c
> @@ -79,6 +79,7 @@ int vstats_version = 2;
>   int print_graphs = 0;
>   char *print_graphs_file = NULL;
>   char *print_graphs_format = NULL;
> +int show_graph = 0;
>   int auto_conversion_filters = 1;
>   int64_t stats_period = 500000;
>   
> @@ -1748,6 +1749,9 @@ const OptionDef options[] = {
>       { "print_graphs_format", OPT_TYPE_STRING, 0,
>           { &print_graphs_format },
>         "set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml, mermaid, mermaidhtml)", "format" },
> +    { "sg",   OPT_TYPE_BOOL, 0,
> +        { &show_graph },
> +        "create execution graph as temporary html file and try to launch it in the default browser" },

Absolutely not, wtf. Calling an external application like this?

Revert this patch or remove this effect immediately.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

  parent reply	other threads:[~2025-05-15 21:53 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250515211148.6C91C4128B8@natalya.videolan.org>
2025-05-15 21:50 ` Ramiro Polla
2025-05-15 21:59   ` softworkz .
2025-05-15 22:13     ` Ramiro Polla
2025-05-15 22:19       ` softworkz .
2025-05-15 22:33         ` softworkz .
2025-05-15 22:34         ` Mark Thompson
2025-05-15 22:43           ` softworkz .
2025-05-15 22:49             ` Ramiro Polla
2025-05-15 23:04               ` softworkz .
2025-05-15 23:29                 ` Ramiro Polla
2025-05-16  0:19                   ` softworkz .
2025-05-15 22:49           ` softworkz .
2025-05-24 15:54         ` Rémi Denis-Courmont
2025-05-25 10:50           ` softworkz .
2025-05-16  0:00     ` Marton Balint
2025-05-16  0:17       ` softworkz .
2025-05-16  0:27         ` James Almer
2025-05-16  0:32           ` softworkz .
2025-05-16  0:36             ` softworkz .
2025-05-16  0:39               ` James Almer
2025-05-16  0:45                 ` Lynne
2025-05-16  0:59                   ` softworkz .
2025-05-16  0:54         ` Michael Niedermayer
2025-05-16  1:26           ` softworkz .
2025-05-16  8:43             ` softworkz .
2025-05-16  9:41               ` softworkz .
2025-05-16  9:50                 ` Nicolas George
2025-05-16 10:10                   ` softworkz .
2025-05-16 11:10                     ` Nicolas George
2025-05-16 11:49                   ` Michael Niedermayer
2025-05-16 12:03                     ` Nicolas George
2025-05-31 21:38                       ` softworkz .
2025-05-16 13:42                     ` softworkz .
2025-05-16 13:45                       ` Nicolas George
2025-05-16  3:39           ` Romain Beauxis
2025-05-16  4:15             ` softworkz .
2025-05-16  5:06               ` softworkz .
2025-05-16  8:11           ` Marton Balint
2025-05-24 16:01           ` Rémi Denis-Courmont
2025-05-25 11:04             ` softworkz .
2025-05-15 21:53 ` James Almer [this message]
2025-05-15 21:58   ` softworkz .
2025-05-15 22:00     ` James Almer
2025-05-15 22:02       ` softworkz .
2025-05-16  2:06       ` softworkz .
2025-05-31 21:38       ` softworkz .
2025-05-16  6:22 ` Martin Storsjö
2025-05-16  6:40   ` softworkz .
2025-05-16  7:50   ` softworkz .
2025-05-16  8:13     ` Gyan Doshi
2025-05-16  8:19       ` softworkz .
2025-05-16  8:19     ` Martin Storsjö
2025-05-16  8:25       ` softworkz .
2025-05-16  8:50         ` Martin Storsjö
2025-05-16  8:55           ` softworkz .

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b631832-a9d4-49da-855c-ea4e28a41be0@gmail.com \
    --to=jamrial@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git