首页 > 其他分享 >ffmpeg graph2dot

ffmpeg graph2dot

时间:2024-11-11 09:21:30浏览次数:1  
标签:ffmpeg graph graph2dot GRAPH dot string

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.

Invoke the command:

graph2dot -h
to see how to use graph2dot.

You can then pass the dot description to the dot program (from the graphviz suite of programs) and obtain a graphical representation of the filtergraph.

For example the sequence of commands:

echo GRAPH_DESCRIPTION | \
tools/graph2dot -o graph.tmp && \
dot -Tpng graph.tmp -o graph.png && \
display graph.png
can be used to create and display an image representing the graph described by the GRAPH_DESCRIPTION string. Note that this string must be a complete self-contained graph, with its inputs and outputs explicitly defined. For example if your command line is of the form:

ffmpeg -i infile -vf scale=640:360 outfile
your GRAPH_DESCRIPTION string will need to be of the form:

nullsrc,scale=640:360,nullsink
you may also need to set the nullsrc parameters and add a format filter in order to simulate a specific input file.

https://www.octfgroup.com/

标签:ffmpeg,graph,graph2dot,GRAPH,dot,string
From: https://www.cnblogs.com/sathcal/p/18539075

相关文章

  • ffmpeg Filtergraph description
    Afiltergraphisadirectedgraphofconnectedfilters.Itcancontaincycles,andtherecanbemultiplelinksbetweenapairoffilters.Eachlinkhasoneinputpadononesideconnectingittoonefilterfromwhichittakesitsinput,andoneoutputpad......
  • ffmpeg Timeline editing
    Somefilterssupportagenericenableoption.Forthefilterssupportingtimelineediting,thisoptioncanbesettoanexpressionwhichisevaluatedbeforesendingaframetothefilter.Iftheevaluationisnon-zero,thefilterwillbeenabled,otherwis......
  • ffmpeg Library public interfaces
    EverylibraryinFFmpegprovidesasetofpublicAPIsinitsinstalledheaders,whicharethoselistedinthevariableHEADERSinthatlibrary’sMakefile.Allidentifiersdefinedinthoseheaders(exceptforthoseexplicitlydocumentedotherwise),andcor......
  • ffmpeg Adding new interfaces
    nynewpublicidentifiersininstalledheadersareconsiderednewAPI-thisincludesnewfunctions,structs,macros,enumvalues,typedefs,newfieldsinexistingstructs,newinstalledheaders,etc.ConsiderthefollowingguidelineswhenaddingnewAPIs......
  • ffmpeg Removing interfaces
    Duetoabovementionedcompatibilityguarantees,removingAPIsisaninvolvedprocessthatshouldonlybeundertakenwithgoodreason.Typicallyadeficient,restrictive,orotherwiseinadequateAPIisreplacedbyasuperiorone,thoughitdoesattimesha......
  • ffmpeg Vim configuration
    InordertoconfigureVimtofollowFFmpegformattingconventions,pastethefollowingsnippetintoyour.vimrc:"indentationrulesforFFmpeg:4spaces,notabssetexpandtabsetshiftwidth=4setsofttabstop=4setcindentsetcinoptions=(0"Allowt......
  • ffmpeg Comments
    UsetheJavaDoc/Doxygenformat(seeexamplesbelow)sothatcodedocumentationcanbegeneratedautomatically.Allnontrivialfunctionsshouldhaveacommentabovethemexplainingwhatthefunctiondoes,evenifitisjustonesentence.Allstructuresand......
  • ffmpeg Naming conventions
    Namesoffunctions,variables,andstructmembersmustbelowercase,usingunderscores(_)toseparatewords.Forexample,‘avfilter_get_video_buffer’isanacceptablefunctionnameand‘AVFilterGetVideo’isnot.Struct,union,enum,andtypedeffedtypen......
  • ffmpeg Code behaviour
    CorrectnessThecodemustbevalid.Itmustnotcrash,abort,accessinvalidpointers,leakmemory,causedataracesorsignedintegeroverflow,orotherwisecauseundefinedbehaviour.Errorcodesshouldbecheckedand,whenapplicable,forwardedtotheca......
  • ffmpeg Patches/Committing
    LicensesforpatchesmustbecompatiblewithFFmpeg.ContributionsshouldbelicensedundertheLGPL2.1,includingan"oranylaterversion"clause,or,ifyoupreferagift-stylelicense,theISCorMITlicense.GPL2includingan"orany......