mirror of
https://github.com/levogevo/ffmpeg-av1-builder.git
synced 2026-01-15 16:56:18 +00:00
don't use separate lines/col, just use BASH built ins
This commit is contained in:
@@ -239,14 +239,9 @@ plot() {
|
||||
echo -e "$GRAIN\t$AVG_BITRATE" >> "$PLOT"
|
||||
done
|
||||
|
||||
# set terminal size
|
||||
TERMINAL="$(tty)"
|
||||
COLUMNS=$(stty -a <"$TERMINAL" | grep -Po '(?<=columns )\d+')
|
||||
ROWS=$(stty -a <"$TERMINAL" | grep -Po '(?<=rows )\d+')
|
||||
|
||||
# plot data
|
||||
gnuplot -p -e " \
|
||||
set terminal dumb size $COLUMNS, $ROWS; \
|
||||
set terminal dumb size $COLUMNS, $LINES; \
|
||||
set autoscale; \
|
||||
set style line 1 \
|
||||
linecolor rgb '#0060ad' \
|
||||
@@ -262,4 +257,4 @@ get_avg_bitrate "$INPUT"
|
||||
segment_video
|
||||
encode_segments
|
||||
test "$PLOT" == 'true' && test -f "$GRAIN_LOG" && \
|
||||
{ plot ; }
|
||||
{ plot ; }
|
||||
|
||||
Reference in New Issue
Block a user