Closed bevand10 closed 1 year ago
Abandon as more work required to implement STAB cmd...
node readSRSU.js
SRSU.hex
<Buffer 04 50 00 00 53 52 53 55 46 42 43 4c 69 76 65 00 00 00 00 00 00 50 72 70 00 00 00 00 00 00 00 00 00 20 43 50 43 43 64 50 07 01 05 03 00 00 00 00 00 01 ... 1314 more bytes>
{ from: 0, len: 4 }
{ buflen: 1104 }
{ from: 4, len: 4 }
{ cmd: 'SRSU' }
{ from: 8, len: 64 }
{ serviceName: 'FBCLive' }
{ from: 72, len: 512 }
{ url: 'rtmps://a.rtmps.youtube.com/live2' }
{ from: 584, len: 512 }
{ key: 'p233-****-****-****-424h' }
{ from: 1096, len: 4 }
{ lowVideoBitrate: 6000000 }
{ from: 1100, len: 4 }
{ hiVideoBitrate: 6000000 }
{ from: 1104, len: 4 }
{ buflen2: 16 }
{ from: 1108, len: 4 }
{ cmd2: 'STAB' }
{ from: 1112, len: 4 }
{ lowAudioBitrate: 128000 }
{ from: 1116, len: 4 }
{ hiAudioBitrate: 128000 }
https://github.com/LibAtem/LibAtem/blob/master/LibAtem/Commands/Streaming/StreamingAudioBitratesCommand.cs is a good reference for new commands :)
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Adds extract of stream audio bitrates, alongside existing extract of video bitrates
What is the current behavior? (You can also link to an open issue here) Audio bitrates are not extracted
What is the new behavior (if this is a feature change)? Audio bitrates are extracted
Other information:
A test across a wireshark-captured SRSU packet, where the stream AV settings xml are known to be 6mbit and 128kbit, returns: