Force AC3 (or other format) passthru

Discuss encoding for devices and presets.
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
sfenwick
New User
Posts: 1
Joined: Fri Dec 27, 2019 8:43 pm

Force AC3 (or other format) passthru

Post by sfenwick »

Description of problem or question:

I have a bunch of content that has AAC-LC as the #0 audio track, and AC3 as #1. I only want the AC3 track to propagate to the output; I especially don't want the AAC track to be the default track.


Steps to reproduce the problem (If Applicable):
If I set Selection Behavior to be "First Matching", I only get the AAC track. If I set it to "All Matching", I get both, with AAC at the start.



HandBrake version (e.g., 1.0.0):
This seems to happen with both 1.2.2 and 1.3.0



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

MacOS 10.11.6


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

Code: Select all

HandBrake Activity Log for Session: 2019-12-27T20:52:47Z
Handbrake Version: 1.3.0 (2019110900)
[12:52:47] macgui: Handbrake Version: 1.3.0 (2019110900)
[12:52:48] hb_init: starting libhb thread
[12:52:48] Compile-time hardening features are enabled
[12:52:48] hb_init: starting libhb thread
[12:52:52] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[12:52:52] CPU: Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz
[12:52:52]  - logical processor count: 24
[12:52:52] hb_scan: path=/Volumes/Bay 3/Not Backed Up/TiVo downloads/Below Deck/Season 1/Below Deck, s1e01, "Cool Your Jets".mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Bay 3/Not Backed Up/TiVo downloads/Below Deck/Season 1/Below Deck, s1e01, "Cool Your Jets".mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/Volumes/Bay 3/Not Backed Up/TiVo downloads/Below Deck/Season 1/Below Deck, s1e01, "Cool Your Jets".mp4/) failed
[12:52:52] 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
[12:52:52] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Bay 3/Not Backed Up/TiVo downloads/Below Deck/Season 1/Below Deck, s1e01, "Cool Your Jets".mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cool Your Jets
    artist          : Below Deck
    album_artist    : Below Deck
    album           : Below Deck, Season 1
    comment         : The experiences of a sightly group of young crew members who work on a private luxury yacht unfold in this reality series. First up: Flamboyant fashion photographers are the charter guests; and Kat must make a tough decision upon discovering stunning news
    genre           : Drama
    date            : 2013-07-01T00:00:00Z
    track           : 1
    show            : Below Deck
    network         : BRAVOHD-W
    episode_id      : EP0219111032-0219110685
    season_number   : 1
    episode_sort    : 1
    description     : The experiences of a sightly group of young crew members who work on a private luxury yacht unfold in this reality series. First up: Flamboyant fashion photographers are the charter guests; and Kat must make a tough decision upon discovering stunning news
    synopsis        : The experiences of a sightly group of young crew members who work on a private luxury yacht unfold in this reality series. First up: Flamboyant fashion photographers are the charter guests; and Kat must make a tough decision upon discovering stunning news
    hd_video        : 2
    media_type      : 10
    iTunMOVI        : <?xml version="1.0" encoding="UTF-8"?>
                    : <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                    : <plist version="1.0">
                    : <dict>
                    : 	<key>producers</key>
                    : 	<array>
                    : 		<dict>
                    : 			<key>name</key>
                    : 			<string>Cronin|Mark</string>
                    : 		</dict>
                    : 		<dict>
                    : 			<key>name</key>
                    : 			<string>Cox|Courtland</string>
                    : 		</dict>
                    : 	</array>
                    : </dict>
                    : </plist>
                    : 
    tiVoINFO        : <?xml version="1.0" encoding="UTF-8"?>
                    : <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                    : <plist version="1.0">
                    : <dict>
                    : 	<key>colorCode</key>
                    : 	<string>4</string>
                    : 	<key>displayMajorNumber</key>
                    : 	<string>137</string>
                    : 	<key>programId</key>
                    : 	<string>EP0219111032-0219110685</string>
                    : 	<key>seriesId</key>
                    : 	<string>SH0219111032</string>
                    : 	<key>showingBits</key>
                    : 	<string>4611</string>
                    : 	<key>startTime</key>
                    : 	<string>2019-11-07T17:57:59Z</string>
                    : 	<key>stopTime</key>
                    : 	<string>2019-11-07T18:58:59Z</string>
                    : 	<key>time</key>
                    : 	<string>2019-11-07T17:58:00Z</string>
                    : </dict>
                    : </plist>
                    : 
    iTunEXTC        : us-tv|TV-14|500
  Duration: 00:41:24.43, start: 0.000000, bitrate: 5295 kb/s
    Chapter #0:0: start 0.000000, end 407.340000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 407.340000, end 645.170000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 645.170000, end 1139.060000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 1139.060000, end 1856.299000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 1856.299000, end 2285.958000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 2285.958000, end 2299.438000
    Metadata:
      title           : Chapter 6
    Chapter #0:6: start 2299.438000, end 2477.968000
    Metadata:
      title           : Chapter 7
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 4772 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), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
    Stream #0:3: Video: png, rgb24(pc), 360x270, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Stream #0:4(und): Data: bin_data (text / 0x74786574)
    Metadata:
      creation_time   : 2019-11-10T19:10:48.000000Z
[12:52:52] scan: decoding previews for title 1
[12:52:52] scan: audio 0x2: ac3, rate=48000Hz, bitrate=384000 Unknown (AC3) (5.1 ch) (384 kbps)
[12:52:52] scan: audio 0x1: aac, rate=48000Hz, bitrate=128424 Unknown (AAC LC) (2.0 ch) (128 kbps)
[12:52:53] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:52:53] libhb: scan thread found 1 valid title(s)
[12:52:53] macgui: ScanCore scan done
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Force AC3 (or other format) passthru

Post by s55 »

There is no way to get what you want to achieve automatically currently in the UI.

First/All only apply to track language, nothing else.

In effect, you'd have to manually select the tracks each time.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Force AC3 (or other format) passthru

Post by s55 »

On scratch that.

Set Auto-Passthru On
On the auto-passthru checkboxes, Set AC3 only as the checked one.
Set Fallback = None
Set All Tracks.

That should work for this particular instance.

(Thanks to BradleyS for pointing it out)
Deleted User 11865

Re: Force AC3 (or other format) passthru

Post by Deleted User 11865 »

sfenwick wrote: Fri Dec 27, 2019 8:56 pm

Code: Select all

    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 4772 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), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
s55 wrote: Sat Dec 28, 2019 9:05 pm On scratch that.

Set Auto-Passthru On
On the auto-passthru checkboxes, Set AC3 only as the checked one.
Set All Tracks.

That should work for this particular instance.

(Thanks to BradleyS for pointing it out)
In that case you would still get two tracks, the AAC track (re-encoded whatever the fallback encoder for Auto Passthru is) which would be the first and default track, and the the AC-3 Passthru track second, not default.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Force AC3 (or other format) passthru

Post by s55 »

Fallback has a "None" option. (Posted Updated above)
Deleted User 11865

Re: Force AC3 (or other format) passthru

Post by Deleted User 11865 »

Ah, makes more sense now :)
Post Reply