Plot Audio/Video streams for better insights
Project description
plot-av
Plot details of Audio/Video streams of media files to help you gain better insights of them.
Installation
$ pip install plot-av
Usage
# basic use
$ plot-av -i test.mp4
# help
$ plot-av -h
usage: plot-av [-h] -i INPUT [-vn | -an | -map STREAMS_SELECTION] [--dpi DPI] [--plots PLOTS] [--interval INTERVAL] [--log LOGLEVEL]
plot audio/video streams.
options:
-h, --help show this help message and exit
-i INPUT input file url (default: None)
-vn disable video stream (default: False)
-an disable audio stream (default: False)
-map STREAMS_SELECTION
manually select streams, pattern 'input_index:stream_type:stream_index', e.g. '0:v:0', '0:a:0' (default: None)
--dpi DPI resolution of the figure. If not provided, defaults to 100 by matplotlib. (default: None)
--plots PLOTS subplots to show, seperate by ','. options: dts,pts,size,bitrate,fps,avsync,dts_delta,duration (default: dts,pts,size,bitrate,fps,avsync,dts_delta,duration)
--interval INTERVAL calculation interval in seconds for statistics metrics, such as bitrate, fps, etc. (default: 1.0)
--log LOGLEVEL log level (default: None)
More examples
- Draw your interested subplots only
$ plot-av -i test.mp4 --plots dts,pts
- Draw video or audio only
# disable video
$ plot-av -i test.mp4 -vn
# disable audio
$ plot-av -i test.mp4 -an
- Manually select streams from mutiple inputs
$ plot-av -i test1.mp4 -i test2.mp4 -map 0:v:0 -map 1:a:0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plot_av-0.1.4.tar.gz
(123.0 kB
view details)
Built Distribution
plot_av-0.1.4-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file plot_av-0.1.4.tar.gz
.
File metadata
- Download URL: plot_av-0.1.4.tar.gz
- Upload date:
- Size: 123.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be3fce4fd997faba2997d2fad1b5ecd461da54f03b14c71b444f2319a12053b |
|
MD5 | aa7b578f212e1ffaf21fdf421c763a24 |
|
BLAKE2b-256 | 91c597d2707723e6aa936fe87d27b3e964ca98fae8c237a7acd9f57e3b8c4560 |
File details
Details for the file plot_av-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: plot_av-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49731c2d20ac16c5fb9f1b0855f11cd424e9d0bd9574e13994b4b9965470dd09 |
|
MD5 | a05465473d92454597d93931ccca6839 |
|
BLAKE2b-256 | e2d183a027c05fe664eee9f225be2f4c3995c477ba34924c6d2b203bf0d39d9f |