stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
597 stars 99 forks source link

Setting bitrate and name on audio tracks seems broken #1367

Open aza547 opened 9 months ago

aza547 commented 9 months ago

Hi,

I'm trying to set the audio bitrate when using the advanced recording API.

As per here: https://github.com/stream-labs/obs-studio-node/pull/1128 I'm trying to apply settings to the audio tracks.

  • Advanced Output Settings I'm not gonna expend much here since the concepts are pretty similar to the Simple output explained above. The main difference is regarding the audio encoders. On this mode Audio tracks are used rather than audio encoders directly.

Perhaps I'm doing something wrong, but it appears to me that the arguments are being ignored.

The below screenshot shows me setting the bitrate to 1000 in the create method, but it being ignored. That looks like the default value from here.

image

I can then set it directly which works for the bitrate on the client side:

image

...however a recording shows no change to the bitrate. So I suspect my change has not been pushed to the server side. See mediainfo screenshot below:

image

Strangely my audio bitrate always seems to be capped at 132kB/s. Not sure where that number comes from.