mirror of
https://github.com/levogevo/ffmpeg-av1-builder.git
synced 2026-01-15 16:56:18 +00:00
cleanup TIME
This commit is contained in:
@@ -133,9 +133,9 @@ do
|
|||||||
# encode
|
# encode
|
||||||
export TIMEFORMAT=%R
|
export TIMEFORMAT=%R
|
||||||
FFMPEG_CMD="ffmpeg -i $INPUT_DIR/$input -pix_fmt yuv420p10le -c:v $encoder $PARAMS $OUTPUT"
|
FFMPEG_CMD="ffmpeg -i $INPUT_DIR/$input -pix_fmt yuv420p10le -c:v $encoder $PARAMS $OUTPUT"
|
||||||
(time $FFMPEG_CMD) |& tee TIME
|
(time $FFMPEG_CMD) |& tee "$BENCHMARK_DIR"/TIME
|
||||||
TIME_DIFF="$(cat TIME | tail -n 1)"
|
TIME_DIFF="$(cat "$BENCHMARK_DIR"/TIME | tail -n 1)"
|
||||||
rm TIME
|
rm "$BENCHMARK_DIR"/TIME
|
||||||
echo -e "\ttime taken: $TIME_DIFF seconds" >> "$LOG"
|
echo -e "\ttime taken: $TIME_DIFF seconds" >> "$LOG"
|
||||||
echo -e "\tsize: $(du -h "$OUTPUT" | cut -f1)" >> "$LOG"
|
echo -e "\tsize: $(du -h "$OUTPUT" | cut -f1)" >> "$LOG"
|
||||||
CSV_LINE="${encoder},${preset},${crf},${input},${TIME_DIFF},$(du "$OUTPUT" | cut -f1)"
|
CSV_LINE="${encoder},${preset},${crf},${input},${TIME_DIFF},$(du "$OUTPUT" | cut -f1)"
|
||||||
|
|||||||
Reference in New Issue
Block a user