-
+
Plays a graphical output showing decibel levels of an input file
ffplay -f lavfi "amovie='input.mp3',astats=metadata=1:reset=1,adrawgraph=lavfi.astats.Overall.Peak_level:max=0:min=-30.0:size=700x256:bg=Black[out]"
- ffplay
- starts the command
- -f lavfi
- tells ffmpeg to use the Libavfilter input virtual device [more]
- "
- quotation mark to start command
- - movie='input.mp3'
- declares audio file source to apply filter
- - ,
- comma signifies closing of video source assertion and ready for filter assertion
-
+ - movie='input.mp3'
- declares audio source file on which to apply filter
+ - ,
- comma signifies the end of audio source section and the beginning of the filter section
+ - astats=metadata=1
- tells the astats filter to ouput metadata that can be passed to another filter (in this case adrawgraph)
+ - :
- divides beteen options of the same filter
+ - reset=1
- tells the filter to calculate the stats on every frame (increasing this number would calculate stats for groups of frames)
+ - ,
- comma divides one filter in the chain from another
+ - adrawgraph=lavfi.astats.Overall.Peak_level:max=0:min=-30.0
- draws a graph using the overall peak volume calculated by the astats filter. It sets the max for the graph to 0 (dB) and the minimum to -30 (dB). For more options on data points that can be graphed see [more]
+ - size=700x256:bg=Black
- sets the background color and size of the output
+ - [out]
- ends the filterchain and sets the output
- "
- quotation mark to close command