From 933aa694ab2bdbe06517758d54a2a950cd5ee3fe Mon Sep 17 00:00:00 2001 From: Levon Date: Thu, 23 May 2024 19:27:22 -0500 Subject: [PATCH] cleanup TIME --- scripts/benchmark.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 2770e0d..6c35c41 100755 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -133,9 +133,9 @@ do # encode export TIMEFORMAT=%R FFMPEG_CMD="ffmpeg -i $INPUT_DIR/$input -pix_fmt yuv420p10le -c:v $encoder $PARAMS $OUTPUT" - (time $FFMPEG_CMD) |& tee TIME - TIME_DIFF="$(cat TIME | tail -n 1)" - rm TIME + (time $FFMPEG_CMD) |& tee "$BENCHMARK_DIR"/TIME + TIME_DIFF="$(cat "$BENCHMARK_DIR"/TIME | tail -n 1)" + rm "$BENCHMARK_DIR"/TIME echo -e "\ttime taken: $TIME_DIFF seconds" >> "$LOG" echo -e "\tsize: $(du -h "$OUTPUT" | cut -f1)" >> "$LOG" CSV_LINE="${encoder},${preset},${crf},${input},${TIME_DIFF},$(du "$OUTPUT" | cut -f1)"