Skip to content

Commit aac8e8c

Browse files
authoredJan 6, 2025
Update .vbv_plotbuffer.sh
1 parent c339a23 commit aac8e8c

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed
 

‎vbv-plotbuffer/.vbv_plotbuffer.sh

+21-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,25 @@
22
#shellcheck shell=bash
33
#set -x # Uncomment for debug
44

5-
printf '%s\n%s\n%s\n%s\n' '########################################' 'This is an EXPERIMENTAL script.' 'Logic has not been verified' '########################################'
5+
########################################
6+
# Could be enhanced with...
7+
# - plotting time as well as frame number (top axis)
8+
# - plotting framesize (since we already have framesize)
9+
# - plotting frametype IPB, keyframe. Much like FFmpeg plotframes or https://github.com/rodrigopolo/plotframes
10+
# - if you know the framerate, it should be possible to calculate the bitrate across a GOP. See also https://github.com/InB4DevOps/bitrate-viewer
11+
# - Could this method be used to acheve the same as vbv.pl? https://akuvian.org/src/x264/vbv.pl
12+
# AT&T Video Optimizer has a buffer occupancy https://developer.att.com/video-optimizer/docs
13+
# https://github.com/zeroepoch/plotbitrate
14+
# https://github.com/fifonik/FFBitrateViewer
15+
# How could you vizualize underflow/overflow
16+
# plotframes
17+
# plotbitrate
18+
# plotbuffer
19+
# https://github.com/CrypticSignal/bitrate-plotter
20+
# https://github.com/XuebingZhao/BitratePlotter
21+
########################################
22+
23+
printf '%s\n%s\n%s\n%s\n' '########################################' 'This is an EXPERIMENTAL script.' 'Results have not been verified' '########################################'
624

725
infile=$1
826
# infile="./out.mkv"
@@ -62,4 +80,6 @@ EOF
6280

6381
printf '%s: %s\n' 'Plot saved to' "${plotfile}"
6482

83+
open -a Safari "${plotfile}"
84+
6585
exit 0

0 commit comments

Comments
 (0)
Please sign in to comment.