From 7ff09c4b82c9c56450a9716e869eaa149b378a23 Mon Sep 17 00:00:00 2001 From: richardsonjack Date: Fri, 24 Nov 2017 10:08:29 +1030 Subject: [PATCH] Output in kbps --- revid/revid.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/revid/revid.go b/revid/revid.go index 9b7d6b2b..066e0610 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -261,7 +261,8 @@ func readWriteVideo(input string, output string) error { bitRateOutCount += deltaTime if bitRateOutCount > bitrateOutputDelay { noOfBits := clipSize * bitsInByte - fmt.Printf("Bitrate: %d bps\n", int64(float64(noOfBits)/deltaTime)) + noOfBits = noOfBits/(1024*1) //to kbps + fmt.Printf("Bitrate: %d kbps\n", int64(float64(noOfBits)/deltaTime)) bitRateOutCount = 0.0 } clipSize = 0