How to Preserve Audio Quality?

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
Neongrayjoy
Posts: 3
Joined: Wed Apr 21, 2021 8:42 am

How to Preserve Audio Quality?

Post by Neongrayjoy »

How do I compress the video without compressing the audio? Whenever I try to compress a video the audio ends up sounding artifacty. Not sure what to change in the settings to leave the audio track alone.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: How to Preserve Audio Quality?

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
Neongrayjoy
Posts: 3
Joined: Wed Apr 21, 2021 8:42 am

Re: How to Preserve Audio Quality?

Post by Neongrayjoy »

Thanks, here it is:

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Ram: 7969 MB, 
GPU Information:
  Intel(R) UHD Graphics - 27.20.100.9168
Screen: 1920x1080
Temp Dir: C:\Users\61431\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\61431\AppData\Roaming\HandBrake

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


# Starting Encode ...

[05:44:19] base preset: Fast 1080p30
[17:44:19] hb_init: starting libhb thread
[17:44:19] Starting work at: Thu Apr 08 17:44:19 2021
[17:44:19] 1 job(s) to process
[17:44:19] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\61431\\Videos\\Voicecomparison-1.m4v",
    "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": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\61431\\Videos\\Movavi Library\\voicecomparison.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.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[17:44:19] CPU: Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
[17:44:19]  - Intel microarchitecture Ice Lake
[17:44:19]  - logical processor count: 8
[17:44:19] Intel Quick Sync Video support: yes
[17:44:19]  - Intel Media SDK hardware: API 1.30 (minimum: 1.3)
[17:44:19]  - H.264 encoder: yes
[17:44:19]     - preferred implementation: hardware (any) via D3D11
[17:44:19]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[17:44:19]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[17:44:19]     - preferred implementation: hardware (any) via D3D11
[17:44:19]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[17:44:19] hb_scan: path=C:\Users\61431\Videos\Movavi Library\voicecomparison.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\61431\Videos\Movavi Library\voicecomparison.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
src/libbluray/bluray.c:2585: nav_get_title_list(C:\Users\61431\Videos\Movavi Library\voicecomparison.mp4\) failed
[17:44:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[17:44:19] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\61431\Videos\Movavi Library\voicecomparison.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
  Duration: 00:29:50.99, start: 0.000000, bitrate: 8455 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 8255 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[17:44:19] scan: decoding previews for title 1
[17:44:19] scan: audio 0x1: aac, rate=44100Hz, bitrate=192691 Unknown (AAC LC) (2.0 ch) (192 kbps)
[17:44:19] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:44:19] scan: supported video decoders: avcodec qsv
[17:44:19] libhb: scan thread found 1 valid title(s)
[17:44:19] Skipping subtitle scan.  No suitable subtitle tracks.
[17:44:19] Starting Task: Encoding Pass
[17:44:19] Skipping crop/scale filter
[17:44:19] work: only 1 chapter, disabling chapter markers
[17:44:19] job configuration:
[17:44:19]  * source
[17:44:19]    + C:\Users\61431\Videos\Movavi Library\voicecomparison.mp4
[17:44:19]    + title 1, chapter(s) 1 to 1
[17:44:19]    + container: mov,mp4,m4a,3gp,3g2,mj2
[17:44:19]    + data rate: 8455 kbps
[17:44:19]  * destination
[17:44:19]    + C:\Users\61431\Videos\Voicecomparison-1.m4v
[17:44:19]    + container: MPEG-4 (libavformat)
[17:44:19]      + align initial A/V stream timestamps
[17:44:19]  * video track
[17:44:19]    + decoder: h264
[17:44:19]      + bitrate 8255 kbps
[17:44:19]    + filters
[17:44:19]      + 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)
[17:44:19]      + Decomb (mode=39)
[17:44:19]      + Framerate Shaper (mode=2:rate=27000000/900000)
[17:44:19]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[17:44:19]    + Output geometry
[17:44:19]      + storage dimensions: 1920 x 1080
[17:44:19]      + pixel aspect ratio: 1 : 1
[17:44:19]      + display dimensions: 1920 x 1080
[17:44:19]    + encoder: H.264 (libx264)
[17:44:19]      + preset:  fast
[17:44:19]      + profile: main
[17:44:19]      + level:   4.0
[17:44:19]      + quality: 22.00 (RF)
[17:44:19]      + color profile: 1-1-1
[17:44:19]  * audio track 1
[17:44:19]    + decoder: Unknown (AAC LC) (2.0 ch) (192 kbps) (track 1, id 0x1)
[17:44:19]      + bitrate: 192 kbps, samplerate: 44100 Hz
[17:44:19]    + mixdown: Stereo
[17:44:19]    + dither: none
[17:44:19]    + encoder: AAC (libavcodec)
[17:44:19]      + bitrate: 160 kbps, samplerate: 44100 Hz
[17:44:19] sync: expecting 53676 video frames
[17:44:19] encx264: min-keyint: 30, keyint: 300
[17:44:19] encx264: encoding at constant RF 22.000000
[17:44:19] 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 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[17:44:20] sync: first pts video is 0
[17:44:20] sync: "Chapter 1" (1) at frame 1 time 0
[17:44:20] sync: first pts audio 0x1 is 0
[18:18:45] reader: done. 1 scr changes
[18:18:49] work: average encoding speed for job is 25.951025 fps
[18:18:50] comb detect: heavy 8 | light 292 | uncombed 53377 | total 53677
[18:18:50] decomb: deinterlaced 8 | blended 292 | unfiltered 53377 | total 53677
[18:18:50] vfr: 53677 frames output, 0 dropped and 0 duped for CFR/PFR
[18:18:50] vfr: lost time: 0 (0 frames)
[18:18:50] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:18:50] aac-decoder done: 77130 frames, 0 decoder errors
[18:18:50] h264-decoder done: 53677 frames, 0 decoder errors
[18:18:50] sync: got 53677 frames, 53676 expected
[18:18:50] sync: framerate min 29.970 fps, max 29.971 fps, avg 29.970 fps
x264 [info]: frame I:182   Avg QP:16.99  size:142691
x264 [info]: frame P:14654 Avg QP:19.93  size: 30566
x264 [info]: frame B:38841 Avg QP:21.82  size:  7755
x264 [info]: consecutive B-frames:  2.2%  2.7%  3.6% 91.5%
x264 [info]: mb I  I16..4: 45.6%  0.0% 54.4%
x264 [info]: mb P  I16..4: 14.4%  0.0%  1.9%  P16..4: 45.5%  9.7%  6.0%  0.0%  0.0%    skip:22.5%
x264 [info]: mb B  I16..4:  3.0%  0.0%  0.2%  B16..8: 19.2%  2.7%  0.1%  direct:14.6%  skip:60.2%  L0:51.3% L1:44.1% BI: 4.6%
x264 [info]: coded y,uvDC,uvAC intra: 21.4% 59.7% 9.6% inter: 5.7% 28.9% 0.1%
x264 [info]: i16 v,h,dc,p: 41% 24% 21% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 25%  4%  6%  5%  5%  4%  3%
x264 [info]: i8c dc,h,v,p: 53% 19% 25%  3%
x264 [info]: Weighted P-Frames: Y:14.4% UV:6.4%
x264 [info]: ref P L0: 64.7% 35.3%
x264 [info]: ref B L0: 81.2% 18.8%
x264 [info]: ref B L1: 94.2%  5.8%
x264 [info]: kb/s:3462.20
[18:18:50] mux: track 0, 53677 frames, 775101202 bytes, 3462.10 kbps, fifo 1024
[18:18:50] mux: track 1, 77131 frames, 35905137 bytes, 160.38 kbps, fifo 2048
[18:18:50] Finished work at: Thu Apr 08 18:18:50 2021
[18:18:50] libhb: work result = 0

# Encode Completed ...

rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: How to Preserve Audio Quality?

Post by rollin_eng »

Use passthrough for your audio.
Neongrayjoy
Posts: 3
Joined: Wed Apr 21, 2021 8:42 am

Re: How to Preserve Audio Quality?

Post by Neongrayjoy »

That worked, thanks!
Post Reply