(noob question) AAC 512 bit audio selected but got 290 as result

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Merlijn
New User
Posts: 2
Joined: Mon Mar 27, 2023 1:50 pm

(noob question) AAC 512 bit audio selected but got 290 as result

Post by Merlijn »

Dear talents

I have selected under the tab "audio" for AAC 512 but when I encode I a bitrate of 290.. Ofcourse there is no audible quality difference but I would like to know why this is =)

Image


Image


kind regards
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by mduell »

Post the encoding log.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
Merlijn
New User
Posts: 2
Joined: Mon Mar 27, 2023 1:50 pm

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by Merlijn »

Thanks for the quick reply,
I have deleted the original but I tried again with the handbraked version (which was already 290 bits) I tried to set it at 512 again and now i got 300 in the output

kind regards

Code: Select all

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.19044.0
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 24513 MB, 
GPU Information:
  NVIDIA GeForce GTX 760 - 30.0.14.7414
Screen: 1920x1080
Temp Dir: C:\Users\Merlijn\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Merlijn\AppData\Roaming\HandBrake

-------------------------------------------

 # Starting Encode ...

[10:08:56] base preset: custom made (Modified)
[10:08:56] Remote Process started with Process ID: 13748 using port: 8037. Max Allowed Instances: 1
[10:08:56] Worker: Starting HandBrake Engine ...
[10:08:56] Worker: Starting Web Server on port 8037 ...
[10:08:57] Worker: Disconnected worker monitoring enabled!
[10:08:57] Compile-time hardening features are enabled
[10:08:57] qsv: not available on this system
[10:08:57] vcn: not available on this system
[10:08:57] nvenc: version 11.1 is available
[10:08:57] nvdec: is available
[10:08:57] hb_init: starting libhb thread
[10:08:57] Starting work at: Tue Mar 28 10:08:57 2023
[10:08:57] 1 job(s) to process
[10:08:57] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 512,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:mp3",
      "copy:truehd",
      "copy:flac",
      "copy:eac3"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\Merlijn\\Desktop\\Cast Away Square Handbraked-1.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "2",
          "height": "1078",
          "width": "1080"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "1",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Merlijn\\Desktop\\Cast Away Square handbraked.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[10:08:57] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[10:08:57]  - Intel microarchitecture Haswell
[10:08:57]  - logical processor count: 8
[10:08:57] Intel Quick Sync Video support: no
[10:08:57] hb_scan: path=C:\Users\Merlijn\Desktop\Cast Away Square handbraked.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Users\Merlijn\Desktop\Cast Away Square handbraked.mp4
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[10:08:57] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdreadlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[10:08:57] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Merlijn\Desktop\Cast Away Square handbraked.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: mp42iso2avc1mp41
    creation_time   : 2023-03-27T13:45:16.000000Z
    encoder         : HandBrake 1.6.1 2023012300
  Duration: 00:03:51.43, start: 0.000000, bitrate: 4945 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1080 [SAR 1:1 DAR 1:1], 4642 kb/s, 60 fps, 60 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-03-27T13:45:16.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 290 kb/s (default)
    Metadata:
      creation_time   : 2023-03-27T13:45:16.000000Z
      handler_name    : Stereo
      vendor_id       : [0][0][0][0]
      title           : Stereo
[10:08:57] scan: decoding previews for title 1
[10:08:57] scan: audio 0x1: aac, rate=48000Hz, bitrate=290133 English (AAC LC) (2.0 ch) (290 kbps)
[10:08:57] scan: 10 previews, 1080x1080, 60.000 fps, autocrop = 2/0/0/0, aspect 1.00:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[10:08:57] scan: supported video decoders: avcodec nvdec
[10:08:57] libhb: scan thread found 1 valid title(s)
[10:08:57] Skipping subtitle scan.  No suitable subtitle tracks.
[10:08:57] Starting Task: Encoding Pass
[10:08:57] work: track 1, dithering not supported by codec
[10:08:57] work: only 1 chapter, disabling chapter markers
[10:08:57] job configuration:
[10:08:57]  * source
[10:08:57]    + C:\Users\Merlijn\Desktop\Cast Away Square handbraked.mp4
[10:08:57]    + title 1, chapter(s) 1 to 1
[10:08:57]    + container: mov,mp4,m4a,3gp,3g2,mj2
[10:08:57]    + data rate: 4945 kbps
[10:08:57]  * destination
[10:08:57]    + C:\Users\Merlijn\Desktop\Cast Away Square Handbraked-1.mp4
[10:08:57]    + container: MPEG-4 (libavformat)
[10:08:57]      + align initial A/V stream timestamps
[10:08:57]  * video track
[10:08:57]    + decoder: h264 8-bit (yuv420p)
[10:08:57]      + bitrate 4642 kbps
[10:08:57]    + filters
[10:08:57]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[10:08:57]      + Decomb (mode=39)
[10:08:57]      + Framerate Shaper (mode=1:rate=27000000/450000)
[10:08:57]        + frame rate: 60.000 fps -> constant 60.000 fps
[10:08:57]      + Crop and Scale (width=1080:height=1078:crop-top=2:crop-bottom=0:crop-left=0:crop-right=0)
[10:08:57]        + source: 1080 * 1080, crop (2/0/0/0): 1080 * 1078, scale: 1080 * 1078
[10:08:57]    + Output geometry
[10:08:57]      + storage dimensions: 1080 x 1078
[10:08:57]      + pixel aspect ratio: 1 : 1
[10:08:57]      + display dimensions: 1080 x 1078
[10:08:57]    + encoder: H.264 (libx264)
[10:08:57]      + preset:  fast
[10:08:57]      + profile: main
[10:08:57]      + level:   4.0
[10:08:57]      + quality: 22.00 (RF)
[10:08:57]      + color profile: 1-1-1
[10:08:57]      + chroma location: left
[10:08:57]  * audio track 1
[10:08:57]    + name: Stereo
[10:08:57]    + decoder: English (AAC LC) (2.0 ch) (290 kbps) (track 1, id 0x1)
[10:08:57]      + bitrate: 290 kbps, samplerate: 48000 Hz
[10:08:57]    + mixdown: Stereo
[10:08:57]    + encoder: AAC (libavcodec)
[10:08:57]      + bitrate: 512 kbps, samplerate: 48000 Hz
[10:08:57] sync: expecting 13886 video frames
[10:08:57] encx264: min-keyint: 60, keyint: 600
[10:08:57] encx264: encoding at constant RF 22.000000
[10:08:57] apply_h264_level [warning]: framerate (60.000) too high for level 4.0 at 1080x1078 (max. 53.149)
[10:08:57] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [warning]: MB rate (277440) > level limit (245760)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[10:08:57] sync: first pts video is 0
[10:08:57] sync: "Chapter 1" (1) at frame 1 time 0
[10:08:57] sync: first pts audio 0x1 is 0
[10:11:50] reader: done. 1 scr changes
[10:11:51] work: average encoding speed for job is 79.759140 fps
[10:11:51] comb detect: heavy 0 | light 4 | uncombed 13882 | total 13886
[10:11:51] decomb: deinterlaced 0 | blended 4 | unfiltered 13882 | total 13886
[10:11:51] vfr: 13886 frames output, 0 dropped and 0 duped for CFR/PFR
[10:11:51] vfr: lost time: 0 (0 frames)
[10:11:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:11:51] aac-decoder done: 10847 frames, 0 decoder errors
[10:11:51] h264-decoder done: 13886 frames, 0 decoder errors
[10:11:52] sync: got 13886 frames, 13886 expected
[10:11:52] sync: framerate min 60.000 fps, max 60.000 fps, avg 60.000 fps
x264 [info]: frame I:25    Avg QP:19.74  size: 62914
x264 [info]: frame P:4636  Avg QP:22.67  size: 10497
x264 [info]: frame B:9225  Avg QP:24.06  size:  1967
x264 [info]: consecutive B-frames:  0.3% 16.3% 51.2% 32.2%
x264 [info]: mb I  I16..4: 47.9%  0.0% 52.1%
x264 [info]: mb P  I16..4:  7.5%  0.0%  0.6%  P16..4: 42.6%  8.3%  4.8%  0.0%  0.0%    skip:36.3%
x264 [info]: mb B  I16..4:  1.9%  0.0%  0.0%  B16..8: 10.5%  1.2%  0.0%  direct: 6.3%  skip:80.1%  L0:37.4% L1:59.5% BI: 3.1%
x264 [info]: coded y,uvDC,uvAC intra: 6.1% 62.4% 2.8% inter: 4.2% 18.1% 0.0%
x264 [info]: i16 v,h,dc,p: 41% 26% 22% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 28% 25%  4%  5%  3% 11%  6%  4%
x264 [info]: i8c dc,h,v,p: 58% 19% 20%  3%
x264 [info]: Weighted P-Frames: Y:1.4% UV:0.6%
x264 [info]: ref P L0: 70.8% 29.2%
x264 [info]: ref B L0: 73.5% 26.5%
x264 [info]: ref B L1: 97.2%  2.8%
x264 [info]: kb/s:2363.77
[10:11:52] mux: track 0, 13886 frames, 68380922 bytes, 2363.57 kbps, fifo 4096
[10:11:52] mux: track 1, 10848 frames, 8663196 bytes, 299.44 kbps, fifo 2048
[10:11:52] Finished work at: Tue Mar 28 10:11:52 2023
[10:11:52] libhb: work result = 0

 # Job Completed!
Last edited by Anonymous on Tue Mar 28, 2023 2:47 pm, edited 1 time in total.
Reason: [code]Log contents here[/code]
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by mduell »

Its because your audio is only 2ch (stereo).
Deleted User 11865

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by Deleted User 11865 »

512 Kbps is very high for a 2-channel AAC file, some encoders won't even let you request a bitrate that high; for example, in Constrained VBR rate control mode with a 48 kHz sample rate, Apple's encoder is limited to 320 Kbps for 2-channel.

Even if you use an encoder that allows for a higher target, the characteristics of the source file sometimes make it so it won't ever reach the target (happens more often with TV or movies than it would for all-music content, for example).

Your source audio track is already AAC anyway, you should be using AAC passthrough.

Any re-encode (using a lossy format like AAC) will lower the quality of the audio, regardless of settings, so going from a 290 Kbps AAC audio track to a 512 Kbps AAC audio track (even if it ends up at 300 Kbps in your case) only serves to make the output file larger for no benefit.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: (noob question) AAC 512 bit audio selected but got 290 as result

Post by mduell »

Rodeo wrote: Tue Mar 28, 2023 2:46 pmYour source audio track is already AAC anyway, you should be using AAC passthrough.
That's just him demoing again re-handbraking the same file, since he deleted the source already.
Post Reply