Maintaining Surround Sound 5.1

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
trektomaz
New User
Posts: 1
Joined: Fri Aug 25, 2017 8:16 pm

Maintaining Surround Sound 5.1

Post by trektomaz »

Hello,
I have been using Handbrake for years but have always encoded with 2 ch stereo. I am interested in maintaining 5.1 ch Surround Sound in my encode but am running into trouble.

Using Auto Passthrough

1. DTS-HD MA or DTS passthrough downmixes to 2 channel
2. TrueHD 7.1 downmixes to 5.1 whie AC3 passthrough works

I have had some success by converting using 5.1 channel downmix. If I do it this way is it better to do it using AAC or AC3? Wondering why the passthrough is not really working. I have tried different passthrough's option 1 above on Ac3 passthrough leaves no Audio at all.

I am using the mp4 container for iOS compatibility

Handbrake 1.07, Windows 10
MacBook Pro late 2016
Core i7
16GB RAM

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Ram: 16280 MB,
GPU Information:
AMD Radeon Pro 455 - 21.19.128.7
Screen: 1920x1080
Temp Dir: C:\Users\tom\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\tom\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[14:48:15] hb_init: starting libhb thread
[14:48:15] 1 job(s) to process
[14:48:15] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 640,
"DRC": 0.0,
"Encoder": 65536,
"Gain": 0.0,
"Mixdown": 7,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
1073807360,
1073743872,
1074003968,
1073750016,
1090519040,
1074790400,
1074266112,
1107296256
],
"FallbackEncoder": 2048
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
},
{
"Name": "Chapter 2"
},
{
"Name": "Chapter 3"
},
{
"Name": "Chapter 4"
},
{
"Name": "Chapter 5"
},
{
"Name": "Chapter 6"
},
{
"Name": "Chapter 7"
},
{
"Name": "Chapter 8"
},
{
"Name": "Chapter 9"
},
{
"Name": "Chapter 10"
},
{
"Name": "Chapter 11"
},
{
"Name": "Chapter 12"
},
{
"Name": "Chapter 13"
},
{
"Name": "Chapter 14"
},
{
"Name": "Chapter 15"
},
{
"Name": "Chapter 16"
}
],
"ChapterMarkers": true,
"File": "D:\\Tom\\OneDrive\\Desktop\\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 131072
},
"Filters": {
"FilterList": [
{
"ID": 11,
"Settings": {
"crop-bottom": "140",
"crop-left": "0",
"crop-right": "0",
"crop-top": "140",
"height": "800",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900900"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "D:\\MKV\\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": 65536,
"Level": "4.0",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "veryfast",
"Profile": "main",
"Quality": 23.0,
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[14:48:15] CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
[14:48:15] - Intel microarchitecture Skylake
[14:48:15] - logical processor count: 8
[14:48:15] Intel Quick Sync Video support: no
[14:48:15] hb_scan: path=D:\MKV\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\MKV\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[14:48:15] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[14:48:15] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\MKV\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv':
Metadata:
title : Indiana Jones and the Kingdom of the Crystal Skull
Duration: 02:02:31.38, start: 0.000000, bitrate: N/A
Chapter #0:0: start 0.000000, end 440.481708
Metadata:
title : Chapter 01
Chapter #0:1: start 440.481708, end 790.498042
Metadata:
title : Chapter 02
Chapter #0:2: start 790.498042, end 1302.926625
Metadata:
title : Chapter 03
Chapter #0:3: start 1302.926625, end 1658.365042
Metadata:
title : Chapter 04
Chapter #0:4: start 1658.365042, end 2217.506958
Metadata:
title : Chapter 05
Chapter #0:5: start 2217.506958, end 2793.916125
Metadata:
title : Chapter 06
Chapter #0:6: start 2793.916125, end 3336.458125
Metadata:
title : Chapter 07
Chapter #0:7: start 3336.458125, end 3945.483208
Metadata:
title : Chapter 08
Chapter #0:8: start 3945.483208, end 4327.031042
Metadata:
title : Chapter 09
Chapter #0:9: start 4327.031042, end 4911.907000
Metadata:
title : Chapter 10
Chapter #0:10: start 4911.907000, end 5352.013333
Metadata:
title : Chapter 11
Chapter #0:11: start 5352.013333, end 5763.174083
Metadata:
title : Chapter 12
Chapter #0:12: start 5763.174083, end 6262.214292
Metadata:
title : Chapter 13
Chapter #0:13: start 6262.214292, end 6668.161500
Metadata:
title : Chapter 14
Chapter #0:14: start 6668.161500, end 6953.947000
Metadata:
title : Chapter 15
Chapter #0:15: start 6953.947000, end 7351.385708
Metadata:
title : Chapter 16
Stream #0:0(eng): Video: h264 (High)
yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
23.98 fps, 1k tbn
Metadata:
BPS-eng : 33496913
DURATION-eng : 02:02:31.385708333
NUMBER_OF_FRAMES-eng: 176257
NUMBER_OF_BYTES-eng: 30781087994
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-08-25 19:53:09
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(eng): Audio: dts (DTS)
48000 Hz, 5.1, fltp, 1536 kb/s (default)
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 02:02:31.392000000
NUMBER_OF_FRAMES-eng: 689193
NUMBER_OF_BYTES-eng: 1386656316
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-08-25 19:53:09
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: ac3
48000 Hz, 5.1, fltp, 640 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 640000
DURATION-eng : 02:02:31.392000000
NUMBER_OF_FRAMES-eng: 229731
NUMBER_OF_BYTES-eng: 588111360
SOURCE_ID-eng : 001104
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-08-25 19:53:09
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 26993
DURATION-eng : 01:54:50.237520833
NUMBER_OF_FRAMES-eng: 2084
NUMBER_OF_BYTES-eng: 23248723
SOURCE_ID-eng : 001200
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-08-25 19:53:09
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 29536
DURATION-eng : 01:55:33.489062500
NUMBER_OF_FRAMES-eng: 2396
NUMBER_OF_BYTES-eng: 25598967
SOURCE_ID-eng : 001201
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-08-25 19:53:09
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[14:48:15] scan: decoding previews for title 1
[14:48:15] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[14:48:15] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[14:48:17] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1
[14:48:17] scan: supported video decoders: avcodec qsv
[14:48:17] libhb: scan thread found 1 valid title(s)
[14:48:17] starting job
[14:48:17] work: only 1 chapter, disabling chapter markers
[14:48:17] job configuration:
[14:48:17] * source
[14:48:17] + D:\MKV\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv
[14:48:17] + title 1, chapter(s) 1 to 1
[14:48:17] + container: matroska,webm
[14:48:17] * destination
[14:48:17] + D:\Tom\OneDrive\Desktop\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mp4
[14:48:17] + container: MPEG-4 (libavformat)
[14:48:17] * video track
[14:48:17] + decoder: h264
[14:48:17] + filters
[14:48:17] + Framerate Shaper (mode=2:rate=27000000/900900)
[14:48:17] + frame rate: 23.976 fps -> peak rate limited to 29.970 fps
[14:48:17] + Crop and Scale (width=1920:height=800:crop-top=140:crop-bottom=140:crop-left=0:crop-right=0)
[14:48:17] + source: 1920 * 1080, crop (140/140/0/0): 1920 * 800, scale: 1920 * 800
[14:48:17] + Output geometry
[14:48:17] + storage dimensions: 1920 x 800
[14:48:17] + pixel aspect ratio: 1 : 1
[14:48:17] + display dimensions: 1920 x 800
[14:48:17] * Foreign Audio Search: Render/Burn-in, Forced Only
[14:48:17] + subtitle, English (track 3, id 0x3) Picture [PGS]
[14:48:17] + subtitle, English (track 4, id 0x4) Picture [PGS]
[14:48:17] sync: expecting 10560 video frames
[14:48:18] reader: end of chapter 1 (media 1) reached at media chapter 2
[14:48:18] reader: done. 1 scr changes
[14:48:18] work: average encoding speed for job is 0.000000 fps
[14:48:18] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[14:48:18] vfr: lost time: 0 (0 frames)
[14:48:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:48:18] h264-decoder done: 0 frames, 0 decoder errors
[14:48:18] sync: got 0 frames, 10560 expected
[14:48:18] Subtitle track 3 (id 0x3) 'English': 47 hits (0 forced)
[14:48:18] Subtitle track 4 (id 0x4) 'English': 61 hits (0 forced)
[14:48:18] No candidate detected during subtitle scan
[14:48:18] starting job
[14:48:18] work: track 1, dithering not supported by codec
[14:48:18] work: only 1 chapter, disabling chapter markers
[14:48:18] job configuration:
[14:48:18] * source
[14:48:18] + D:\MKV\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mkv
[14:48:18] + title 1, chapter(s) 1 to 1
[14:48:18] + container: matroska,webm
[14:48:18] * destination
[14:48:18] + D:\Tom\OneDrive\Desktop\Indiana_Jones_and_the_Kingdom_of_the_Crystal_Skull_t00.mp4
[14:48:18] + container: MPEG-4 (libavformat)
[14:48:18] * video track
[14:48:18] + decoder: h264
[14:48:18] + filters
[14:48:18] + Framerate Shaper (mode=2:rate=27000000/900900)
[14:48:18] + frame rate: 23.976 fps -> peak rate limited to 29.970 fps
[14:48:18] + Crop and Scale (width=1920:height=800:crop-top=140:crop-bottom=140:crop-left=0:crop-right=0)
[14:48:18] + source: 1920 * 1080, crop (140/140/0/0): 1920 * 800, scale: 1920 * 800
[14:48:18] + Output geometry
[14:48:18] + storage dimensions: 1920 x 800
[14:48:18] + pixel aspect ratio: 1 : 1
[14:48:18] + display dimensions: 1920 x 800
[14:48:18] + encoder: H.264 (libx264)
[14:48:18] + preset: veryfast
[14:48:18] + profile: main
[14:48:18] + level: 4.0
[14:48:18] + quality: 23.00 (RF)
[14:48:18] * audio track 1
[14:48:18] + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[14:48:18] + bitrate: 1536 kbps, samplerate: 48000 Hz
[14:48:18] + mixdown: 5.1 Channels
[14:48:18] + encoder: AAC (libavcodec)
[14:48:18] + bitrate: 640 kbps, samplerate: 48000 Hz
[14:48:18] sync: expecting 10560 video frames
[14:48:18] encx264: min-keyint: 24, keyint: 240
[14:48:18] encx264: encoding at constant RF 23.000000
[14:48:18] encx264: unparsed options: level=4.0:trellis=0:mixed-refs=0:ref=1:8x8dct=0:weightp=1:subme=2:vbv-bufsize=25000:rc-lookahead=10:vbv-maxrate=20000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[14:48:18] sync: first pts video is 0
[14:48:18] sync: "Chapter 1" (1) at frame 1 time 0
[14:48:18] sync: first pts audio 0x1 is 0
[14:50:33] reader: end of chapter 1 (media 1) reached at media chapter 2
[14:50:33] reader: done. 1 scr changes
[14:50:34] work: average encoding speed for job is 77.529037 fps
[14:50:35] vfr: 10562 frames output, 0 dropped and 0 duped for CFR/PFR
[14:50:35] vfr: lost time: 0 (0 frames)
[14:50:35] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:50:35] dca-decoder done: 41296 frames, 0 decoder errors
[14:50:35] h264-decoder done: 10562 frames, 0 decoder errors
[14:50:35] sync: got 10562 frames, 10560 expected
[14:50:35] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:100 Avg QP:21.19 size:116686
x264 [info]: frame P:3013 Avg QP:24.28 size: 29350
x264 [info]: frame B:7449 Avg QP:25.64 size: 8833
x264 [info]: consecutive B-frames: 4.7% 2.5% 3.6% 89.1%
x264 [info]: mb I I16..4: 46.6% 0.0% 53.4%
x264 [info]: mb P I16..4: 23.1% 0.0% 3.8% P16..4: 28.5% 14.0% 5.8% 0.0% 0.0% skip:24.9%
x264 [info]: mb B I16..4: 5.5% 0.0% 0.3% B16..8: 17.0% 5.3% 0.5% direct: 7.8% skip:63.7% L0:37.6% L1:48.2% BI:14.2%
x264 [info]: coded y,uvDC,uvAC intra: 42.7% 32.7% 6.5% inter: 10.4% 7.5% 0.1%
x264 [info]: i16 v,h,dc,p: 31% 27% 30% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 23% 23% 6% 6% 6% 7% 5% 6%
x264 [info]: i8c dc,h,v,p: 57% 23% 17% 3%
x264 [info]: Weighted P-Frames: Y:4.1% UV:2.0%
x264 [info]: kb/s:3012.72
[14:50:35] mux: track 0, 10562 frames, 165892962 bytes, 3012.65 kbps, fifo 1024
[14:50:35] mux: track 1, 20648 frames, 34397802 bytes, 624.67 kbps, fifo 2048
[14:50:35] libhb: work result = 0

# Encode Completed ...
Larry.
Posts: 27
Joined: Mon Aug 28, 2017 12:29 am

Re: Maintaining Surround Sound 5.1

Post by Larry. »

I would say AC3 - Bitrate = 640 - Mix down = 5.1 which will retain all channels and no real quality loss compared to AAC.

Also for the pass through related issues check out this thread.

viewtopic.php?f=11&t=36845

Hope that helps.
Post Reply