Closed allenlinli closed 4 years ago
rtmpStream.videoSettings[.bitrate] means a average bitrate
A actualBitrate property to provide the real bitrate, if there is such a thing.
rtmpStream.info.currentBytesPerSecond https://github.com/shogo4405/HaishinKit.swift/blob/master/Sources/RTMP/RTMPStreamInfo.swift#L9
Great! I understood. Thank you for the explanation.
Is your feature request related to a problem? Please describe. No. I wonder if the actual video bitrate is different from the bitrate we are setting in
RTMPStream
(withrtmpStream.videoSettings[H264Encoder.Option.bitrate]
)? Because the bitrate our server receive (700 Kbps) is different from the bitrate I set (1000 Kbps) in RTMPStream.Describe the solution you'd like A
actualBitrate
property to provide the real bitrate, if there is such a thing.Describe alternatives you've considered
Additional context AudioConverter has a property
actualBitrate
, it could be the reference.