Bug Report Settings -> Output -> Audio 320kbps ignored

vencabot

Member
Both command-line ffmpeg and mediainfo report that the audio AAC bitrate on my OBS Studio recordings is 159-163kbps (weird that it appears to be a variable value?), even though I selected 320kbps for all audio tracks (I only use one).

Files output by Handbrake or Blender show AAC audio at the bitrate that I've selected.

What gives?

Here's the 'Recording' part of the log. Notice that AAC is being recorded at 160kbps, even though I picked 320kbps:

17:13:05.952: ---------------------------------
17:13:05.957: [NVENC encoder: 'recording_h264'] settings:
17:13:05.957: rate_control: CBR
17:13:05.957: bitrate: 30000
17:13:05.957: cqp: 0
17:13:05.957: keyint: 60
17:13:05.957: preset: hq
17:13:05.957: profile: high
17:13:05.957: level: 4.2
17:13:05.957: width: 1920
17:13:05.957: height: 1080
17:13:05.957: 2-pass: true
17:13:05.957: b-frames: 2
17:13:05.957: GPU: 0
17:13:05.957:
17:13:07.505: ---------------------------------
17:13:07.506: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2
17:13:07.652: ==== Recording Start ===============================================
17:13:07.652: [ffmpeg muxer: 'adv_file_output'] Writing file 'F:/2017-08-28_17-13-05.flv'...
17:13:22.782: [ffmpeg muxer: 'adv_file_output'] Output of file 'F:/2017-08-28_17-13-05.flv' stopped
17:13:22.782: Output 'adv_file_output': stopping
17:13:22.782: Output 'adv_file_output': Total encoded frames: 896
17:13:22.782: Output 'adv_file_output': Total drawn frames: 908
17:13:22.783: ==== Recording Stop ================================================

Here's the entire log, as a pastebin, since the forum uploader doesn't seem to be working: https://pastebin.com/SFFK3nWF
 

Attachments

  • 2017-08-28 17-10-21.txt
    24.6 KB · Views: 16

R1CH

Forum Admin
Developer
The setting in Settings / Output is for streaming only. You need advanced output and configure bitrate per-track for recording, although more than 160kbps is probably unnecessary.
 

vencabot

Member
The setting in Settings / Output is for streaming only. You need advanced output and configure bitrate per-track for recording, although more than 160kbps is probably unnecessary.

Thanks for the clarification! I wish the UI made this more clear, especially since, on the Recording tab, you select tracks to record as specified on the Audio tab. Seems strange that the streaming audio would have access to higher bitrates than the recording audio; you'd think it'd be the other way around!

I've been meaning to get around to using Advanced Output, anyway, so this is just one more nudge in that direction. Thanks, again.
 
Top