Preset audio sample rate reverts to 48 kHz

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
andrewk89
Posts: 35
Joined: Thu Jun 13, 2013 4:29 pm

Preset audio sample rate reverts to 48 kHz

Post by andrewk89 » Wed Jul 04, 2018 6:50 pm

Description of problem or question:
I created a custom preset that I use as my default. The audio uses self-compiled HE-AAC, 64 kbps bitrate, Auto sample rate. I noticed the encoded videos were using 48 kHz sample rate regardless of the source.

For the default preset, after creating it, Auto sample rate is preserved on new encodes within the current HB session. But if you exit HB and launch it again, the audio sample rate reverts to 48 kHz. All other default preset settings are correct.

Steps to reproduce the problem (If Applicable):
  • Add a video
  • Click Add a new preset
  • Edit Defaults for Audio
  • Set Sample Rate as Auto
  • Save preset
  • set Default on new preset
  • Exit HB
  • Launch HB
  • Add a video
  • Observe that the audio samplerate is "48", not "Auto" per the preset settings
HandBrake version (e.g., 1.0.0):
1.1.1 (2018061900)

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Win 10 Spring 2018

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.1.1 (2018061900) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz
Ram: 8149 MB, 
GPU Information:
  NVIDIA GeForce GTX 650 Ti - 24.21.13.9836
Screen: 1920x1080
Temp Dir: d:\Users\Andrew\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: d:\Users\Andrew\AppData\Roaming\HandBrake Team\HandBrake\1.1.1.0

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

[14:45:21] hb_init: starting libhb thread

 # Starting Scan ...

[14:45:21] CPU: Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz
[14:45:21]  - Intel microarchitecture Ivy Bridge
[14:45:21]  - logical processor count: 4
[14:45:21] Intel Quick Sync Video support: no
[14:45:21] hb_scan: path=D:\nope.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\nope.mp4
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[14:45:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:45:21] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\nope.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.40.101
  Duration: 00:33:08.53, start: 0.000000, bitrate: 1395 kb/s
    Stream #0:0(und): Video: h264 (Main) [avc1 / 0x31637661]
      yuv420p, 640x360 [PAR 1:1 DAR 16:9], 1228 kb/s
      29.97 fps, 30k tbn (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      44100 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[14:45:21] scan: decoding previews for title 1
[14:45:21] scan: audio 0x1: aac, rate=44100Hz, bitrate=160000 Unknown (AAC) (2.0 ch)
[14:45:21] scan: 10 previews, 640x360, 29.970 fps, autocrop = 0/2/0/0, aspect 16:9, PAR 1:1
[14:45:21] scan: supported video decoders: avcodec qsv
[14:45:21] libhb: scan thread found 1 valid title(s)

 # Processing Scan Information ...


 # Scan Finished ...

andrewk89
Posts: 35
Joined: Thu Jun 13, 2013 4:29 pm

Re: Preset audio sample rate reverts to 48 kHz

Post by andrewk89 » Sat Jul 21, 2018 9:51 pm

For clarification, here are some screen shots:
expected audio settings (sample rate when I created the preset): https://imgur.com/cBm21UZ
actual audio settings from preset: https://imgur.com/jyUgFGr

User avatar
s55
HandBrake Team
Posts: 9166
Joined: Sun Dec 24, 2006 1:05 pm

Re: Preset audio sample rate reverts to 48 kHz

Post by s55 » Sat Jul 21, 2018 10:17 pm

I'll take a look at it tomorrow to see if I can reproduce.

andrewk89
Posts: 35
Joined: Thu Jun 13, 2013 4:29 pm

Re: Preset audio sample rate reverts to 48 kHz

Post by andrewk89 » Fri Sep 14, 2018 11:06 pm

FYI, fixed in 1.1.2. Existing presets still revert to 48 kHz samplerate. But if you create a new preset with Auto samplerate, the setting is maintained after exit / launch.

Post Reply