Plots a graph showing the variation of the bitrate as well as up to 75 I-Frames throughout your video. The average bitrate is shown on the legend. In addition to this, the minimum, maximum and standard deviation is shown above the graph. See the example below:
- Python 3.6+
pip install -r requirements.txt
- FFprobe in your PATH.
usage: main.py [-h] -i INPUT_VIDEO_PATH [-f {xml,json}]
optional arguments:
-h, --help show this help message and exit
-i INPUT_VIDEO_PATH, --input-video-path INPUT_VIDEO_PATH
Enter the path of the input video.
A relative or absolute path can bespecified.
-f {xml,json}, --output-format {xml,json}
Specify the output format for the file written
by FFProbe. (default: 'xml')
Example: python main.py -i video.mp4 -f json
This forces FFprobe to write its output in JSON (default is XML) and saves it as <video_file_name>.json. The graph will be saved as <video_file_name>.png.
Special thanks to @CrypticSignal for helping me along the way.