mirror of https://bitbucket.org/ausocean/av.git
Output in kbps
This commit is contained in:
parent
2c6d1442af
commit
7ff09c4b82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue