It's a parser from ffmpeg command to graphviz. Some of ffmpeg's command are really complicated not only for debug, but for reading.
This tool was created to simplify process of debugging by visualization of filter graph
- Output files format
-f
option(format:-f <format> <output>
)- Filename with
.
. In this case you should add all options after which comes word with.
in config file.
- You have to map all outputs(except filter chain case)
- All file's names in filter chain/graph should be in format:
[name]
mode:
you can writedot_parse
mod to parse output files with.
bad_options:
write all mapping/global options(use space separator) which comes word with.
(but not output files)log_options:
write all filter options(use space separator) which are writing log in file
Build ffmpegParser(needed files you can see at CmakeLists) and then run
./ffmpegParser file_with_command.txt config.txt
You will get graphviz formatted output in stdout
You should install graphviz, use
brew install graphviz
(MacOS)
sudo apt install graphviz
(Ubuntu)
Build ffmpegParser(needed files you can see at CmakeLists) and then run
./ffmpegParser file_with_command.txt config.txt | dot -Tsvg > output.svg
You will get picture .svg
with graph