mirror of https://bitbucket.org/ausocean/av.git
whoops need to do it again, I don't know if that worked
This commit is contained in:
parent
d3d01090ed
commit
76cba026a1
|
@ -260,8 +260,7 @@ func readWriteVideo(input string, output string) error {
|
|||
deltaTime := now.Sub(prevTime) // Convert nanosecs to secs
|
||||
elapsedTime += deltaTime
|
||||
if elapsedTime > bitrateOutputDelay*time.Nanosecond {
|
||||
noOfBits := float64(clipSize * bitsInByte)
|
||||
noOfBits = noOfBits / 1024.0 //to kbps
|
||||
noOfBits := float64(clipSize * bitsInByte) / 1024.0 // to kbits
|
||||
fmt.Printf("Bitrate: %d kbps\n", int64(noOfBits/float64(deltaTime/1e9)))
|
||||
elapsedTime = time.Duration(0)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue