<p>I maintain a Windows build of graph2dot and other tools at <a href="https://www.gyan.dev/ffmpeg/builds/" rel="nofollow noreferrer">https://www.gyan.dev/ffmpeg/builds/</a>. Look in the tools section.</p>

CC BY-SA 4.0
2017-03-28T12:57:15.300Z
2020-10-22T04:58:06.660Z
2020-10-22T04:58:06.660Z
Gyan
<p>I don't use Windows, but in Linux you can <a href="https://ffmpeg.org/download.html" rel="noreferrer">download</a> the FFmpeg source, then:</p>

<pre><code>cd ffmpeg
./configure
make
make tools/graph2dot
</code></pre>

<p>Then you can use it:</p>

<pre><code>echo "nullsrc,scale=640:360,nullsink" | tools/graph2dot -o graph.tmp
dot -Tpng graph.tmp -o graph.png
</code></pre>

<p>Resulting in:</p>

<p><a href="https://i.sstatic.net/Mrw71.png" rel="noreferrer"><img src="https://i.sstatic.net/Mrw71.png" alt="enter image description here"></a></p>

<p>Not Windows specific, but maybe helpful for any Linux user who also wants to use this tool.</p>

CC BY-SA 3.0
2017-03-30T07:43:34.067Z
I should note that I get an error for `make tools/graph2dot` on Windows with mingw-w64 with a vanilla source tree: "target not defined" or something like that. This is just after I built ff* binaries. I had to add graph2dot to the start of TOOLS and then `make alltools`.
Gyan
CC BY-SA 4.0
2021-09-06T07:09:44.597Z
Note: for Windows build, use `make tools/graph2dot.exe`.
ipid
CC BY-SA 3.0
2017-03-27T04:47:17.203Z
2017-03-27T04:47:17.203Z
llogan
<p>In FFmpeg Filters Documentation is the section <a href="http://ffmpeg.org/ffmpeg-filters.html#graph2dot" rel="noreferrer">3 graph2dot</a> is this about <code>graph2dot</code> program:</p>

<blockquote>
  <p>The graph2dot program included in the FFmpeg tools directory can be used to parse a filtergraph description and issue a corresponding textual representation in the dot language. </p>
</blockquote>

<p>I have FFmpeg from <a href="https://ffmpeg.zeranoe.com/builds/" rel="noreferrer">Zeranoe's build</a> (Windows, 64-bit, static) and I have no <code>tools</code> directory. </p>

<p>So I tried find this program by Google for downloading it but without success.</p>

<p>Is this part of the documentation <em>obsolete</em> or is it possible to obtain this program?</p>

<ffmpeg>
FFmpeg graph2dot tool
MarianD
# FFmpeg graph2dot tool

(Asked by: username_0 on 2017-03-26)

In FFmpeg Filters Documentation is the section [3 graph2dot](http://ffmpeg.org/ffmpeg-filters.html#graph2dot) is this about `graph2dot` program:

> The graph2dot program included in the FFmpeg tools directory can be used to parse a filtergraph description and issue a corresponding textual representation in the dot language.

I have FFmpeg from [Zeranoe's build](https://ffmpeg.zeranoe.com/builds/) (Windows, 64-bit, static) and I have no `tools` directory.

So I tried find this program by Google for downloading it but without success.

Is this part of the documentation *obsolete* or is it possible to obtain this program?

**Tags:** ffmpeg


---

## 2 answers

### Answer by username_2 on 2017-03-27. Score: 7 | Accepted answer

I don't use Windows, but in Linux you can download the FFmpeg source, then:
cd ffmpeg
./configure
make
make tools/graph2dot

Then you can use it:
echo "nullsrc,scale=640:360,nullsink" | tools/graph2dot -o graph.tmp
dot -Tpng graph.tmp -o graph.png

Resulting in:

Not Windows specific, but maybe helpful for any Linux user who also wants to use this tool.

> **Comments:**
> **username_1**: I should note that I get an error for `make tools/graph2dot` on Windows with mingw-w64 with a vanilla source tree: "target not defined" or something like that. This is just after I built ff* binaries. I had to add graph2dot to the start of TOOLS and then `make alltools`.  
> **username_3**: Note: for Windows build, use `make tools/graph2dot.exe`.  

---

### Answer by username_1 on 2017-03-28. Score: 5

I maintain a Windows build of graph2dot and other tools at <https://www.gyan.dev/ffmpeg/builds/>. Look in the tools section.


---

