Page 1 of 1

[SOLVED] 'Cannot change audio and save into a preset'

Posted: Sun Apr 14, 2019 7:25 pm
by larryw31
I've read the other posts on this subject and they were not solved. Would someone please post the exported .json code for a preset with 'aac passthrough' enabled? Maybe I can replace that into my .json.

ANd for goodness gracious, PLEASE reposition the 'save as' box back next to the 'title' box and 'add to queue' button.


Description of problem or question:

'Cannot change audio and save into a preset' Whenever I choose the "saved" aac passthrough preset for use on encode, it reverts to the original AAC (avcodec)

BUT, the queue (even with app restart) seems to maintain a pending encode with aac passthrough enabled.

Media info shows the input file, the aac converted file, and the aac passthrough file as all exact same audio info, except the (audio) 'Delay relative to video' is up to 50ms different on each..

The completed output file sizes are different, with the aac passthrough enabled file being 10MB larger on this encode. I assume this means the aac passthrough is working, just cannot be saved to the preset.

EDIT: Just remembered I tried to change aac bitrate several months ago and that change would also not save into a new preset.


Steps to reproduce the problem (If Applicable):

Load input (.mkv)
Change audio to AAC passthrough
Save new preset and make default
Close and open Handbrake
Load input (.mkv)
Audio is not aac passthrough, even though using that preset, but standard default.


HandBrake version (e.g., 1.0.0):

1.2.1 (x86_64)


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

Code: Select all

System:    Host: mx Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18.2_x64 Continuum Feb 9  2019 
           base: Debian GNU/Linux 9 (stretch) 

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

Code: Select all

[14:01:40] gtkgui: HandBrake 1.2.1 (2019022100) - Linux x86_64 - https://handbrake.fr
[14:01:40] hb_init: starting libhb thread
[14:01:40] hb_init: starting libhb thread
[14:01:40] hb_init: starting libhb thread
[14:02:19] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[14:02:19]  - Intel microarchitecture Sandy Bridge
[14:02:19]  - logical processor count: 8
[14:02:19] hb_scan: path=/home/paco/Videos/0New/0ffmpeg-i/Welcome.to.Paradox.ep03.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/paco/Videos/0New/0ffmpeg-i/Welcome.to.Paradox.ep03.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[14:02:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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:02:19] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/paco/Videos/0New/0ffmpeg-i/Welcome.to.Paradox.ep03.mkv':
  Metadata:
    ENCODER         : Lavf58.12.100
  Duration: 00:43:07.43, start: 0.000000, bitrate: 6656 kb/s
    Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:43:07.434000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 00:43:07.167000000
[14:02:19] scan: decoding previews for title 1
[14:02:19] scan: audio 0x1: aac, rate=44100Hz, bitrate=1 Unknown (AAC LC) (2.0 ch)
[14:02:19] scan: 10 previews, 1280x720, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[14:02:19] libhb: scan thread found 1 valid title(s)


Original preset .json:

Code: Select all

{
    "PresetList": [
        {
            "AlignAVStart": false,
            "AudioCopyMask": [
                "copy:aac"
            ],
            "AudioEncoderFallback": "av_aac",
            "AudioLanguageList": [],
            "AudioList": [
                {
                    "AudioBitrate": 160,
                    "AudioCompressionLevel": -1.0,
                    "AudioDitherMethod": "auto",
                    "AudioEncoder": "av_aac",
                    "AudioMixdown": "stereo",
                    "AudioNormalizeMixLevel": false,
                    "AudioSamplerate": "auto",
                    "AudioTrackDRCSlider": 0.0,
                    "AudioTrackGainSlider": 0.0,
                    "AudioTrackQuality": 1.0,
                    "AudioTrackQualityEnable": false
                }
            ],
            "AudioSecondaryEncoderMode": true,
            "AudioTrackSelectionBehavior": "first",
            "ChapterMarkers": true,
            "ChildrenArray": [],
            "Default": false,
            "FileFormat": "av_mkv",
            "Folder": false,
            "FolderOpen": false,
            "InlineParameterSets": false,
            "Mp4HttpOptimize": false,
            "Mp4iPodCompatible": false,
            "PictureAutoCrop": true,
            "PictureBottomCrop": 0,
            "PictureCombDetectCustom": "",
            "PictureCombDetectPreset": "default",
            "PictureDARWidth": 0,
            "PictureDeblock": 0,
            "PictureDeblockCustom": "qp=0:mode=2",
            "PictureDeinterlaceCustom": "",
            "PictureDeinterlaceFilter": "decomb",
            "PictureDeinterlacePreset": "default",
            "PictureDenoiseCustom": "",
            "PictureDenoiseFilter": "off",
            "PictureDenoisePreset": "",
            "PictureDenoiseTune": "none",
            "PictureDetelecine": "off",
            "PictureDetelecineCustom": "",
            "PictureForceHeight": 0,
            "PictureForceWidth": 0,
            "PictureHeight": 480,
            "PictureItuPAR": false,
            "PictureKeepRatio": true,
            "PictureLeftCrop": 0,
            "PictureLooseCrop": false,
            "PictureModulus": 2,
            "PicturePAR": "auto",
            "PicturePARHeight": 27,
            "PicturePARWidth": 32,
            "PictureRightCrop": 0,
            "PictureRotate": "disable=1",
            "PictureSharpenCustom": "",
            "PictureSharpenFilter": "off",
            "PictureSharpenPreset": "",
            "PictureSharpenTune": "",
            "PictureTopCrop": 0,
            "PictureWidth": 720,
            "PresetDescription": "H.264 video (up to 480p30) and AAC stereo audio, in an MKV container.",
            "PresetName": "H.264 MKV 480p30 tv",
            "SubtitleAddCC": false,
            "SubtitleAddForeignAudioSearch": true,
            "SubtitleAddForeignAudioSubtitle": false,
            "SubtitleBurnBDSub": true,
            "SubtitleBurnBehavior": "foreign",
            "SubtitleBurnDVDSub": true,
            "SubtitleLanguageList": [],
            "SubtitleTrackSelectionBehavior": "none",
            "Type": 1,
            "UsesPictureFilters": true,
            "UsesPictureSettings": 1,
            "VideoAvgBitrate": 1500,
            "VideoColorMatrixCode": 0,
            "VideoEncoder": "x264",
            "VideoFramerate": "30",
            "VideoFramerateMode": "pfr",
            "VideoGrayScale": false,
            "VideoLevel": "3.1",
            "VideoOptionExtra": "",
            "VideoPreset": "slower",
            "VideoProfile": "main",
            "VideoQSVAsyncDepth": 4,
            "VideoQSVDecode": false,
            "VideoQualitySlider": 22.0,
            "VideoQualityType": 2,
            "VideoScaler": "swscale",
            "VideoTune": "film",
            "VideoTurboTwoPass": false,
            "VideoTwoPass": true,
            "x264Option": "",
            "x264UseAdvancedOptions": false
        }
    ],
    "VersionMajor": 34,
    "VersionMicro": 0,
    "VersionMinor": 0
}


Newly saved preset .json (with AAC PASSTHROUGH):

Code: Select all

{
    "PresetList": [
        {
            "AlignAVStart": false,
            "AudioCopyMask": [
                "copy:aac"
            ],
            "AudioEncoderFallback": "av_aac",
            "AudioLanguageList": [],
            "AudioList": [
                {
                    "AudioBitrate": 160,
                    "AudioCompressionLevel": -1.0,
                    "AudioDitherMethod": "auto",
                    "AudioEncoder": "av_aac",
                    "AudioMixdown": "stereo",
                    "AudioNormalizeMixLevel": false,
                    "AudioSamplerate": "auto",
                    "AudioTrackDRCSlider": 0.0,
                    "AudioTrackGainSlider": 0.0,
                    "AudioTrackQuality": 1.0,
                    "AudioTrackQualityEnable": false
                }
            ],
            "AudioSecondaryEncoderMode": true,
            "AudioTrackSelectionBehavior": "first",
            "ChapterMarkers": true,
            "ChildrenArray": [],
            "Default": true,
            "FileFormat": "av_mkv",
            "Folder": false,
            "FolderOpen": false,
            "InlineParameterSets": false,
            "Mp4HttpOptimize": false,
            "Mp4iPodCompatible": false,
            "PictureAutoCrop": true,
            "PictureBottomCrop": 0,
            "PictureCombDetectCustom": "",
            "PictureCombDetectPreset": "default",
            "PictureDARWidth": 0,
            "PictureDeblock": 0,
            "PictureDeblockCustom": "qp=0:mode=2",
            "PictureDeinterlaceCustom": "",
            "PictureDeinterlaceFilter": "decomb",
            "PictureDeinterlacePreset": "default",
            "PictureDenoiseCustom": "",
            "PictureDenoiseFilter": "off",
            "PictureDenoisePreset": "",
            "PictureDenoiseTune": "none",
            "PictureDetelecine": "off",
            "PictureDetelecineCustom": "",
            "PictureForceHeight": 0,
            "PictureForceWidth": 0,
            "PictureHeight": 480,
            "PictureItuPAR": false,
            "PictureKeepRatio": true,
            "PictureLeftCrop": 0,
            "PictureLooseCrop": false,
            "PictureModulus": 2,
            "PicturePAR": "auto",
            "PicturePARHeight": 27,
            "PicturePARWidth": 32,
            "PictureRightCrop": 0,
            "PictureRotate": "disable=1",
            "PictureSharpenCustom": "",
            "PictureSharpenFilter": "off",
            "PictureSharpenPreset": "",
            "PictureSharpenTune": "",
            "PictureTopCrop": 0,
            "PictureWidth": 720,
            "PresetDescription": "H.264 video (up to 480p30) and AAC stereo audio, in an MKV container.",
            "PresetName": "H.264 MKV 480p30 tv aac",
            "SubtitleAddCC": false,
            "SubtitleAddForeignAudioSearch": true,
            "SubtitleAddForeignAudioSubtitle": false,
            "SubtitleBurnBDSub": true,
            "SubtitleBurnBehavior": "foreign",
            "SubtitleBurnDVDSub": true,
            "SubtitleLanguageList": [],
            "SubtitleTrackSelectionBehavior": "none",
            "Type": 1,
            "UsesPictureFilters": true,
            "UsesPictureSettings": 1,
            "VideoAvgBitrate": 1500,
            "VideoColorMatrixCode": 0,
            "VideoEncoder": "x264",
            "VideoFramerate": "30",
            "VideoFramerateMode": "pfr",
            "VideoGrayScale": false,
            "VideoLevel": "3.1",
            "VideoOptionExtra": "",
            "VideoPreset": "slower",
            "VideoProfile": "main",
            "VideoQSVAsyncDepth": 4,
            "VideoQSVDecode": false,
            "VideoQualitySlider": 22.0,
            "VideoQualityType": 2,
            "VideoScaler": "swscale",
            "VideoTune": "film",
            "VideoTurboTwoPass": false,
            "VideoTwoPass": true,
            "x264Option": "",
            "x264UseAdvancedOptions": false
        }
    ],
    "VersionMajor": 34,
    "VersionMicro": 0,
    "VersionMinor": 0
}


Re: Another 'Cannot change audio and save into a preset'

Posted: Sun Apr 14, 2019 8:05 pm
by larryw31
And I just installed the latest flatpak which results in the same issue. v1.2.1

Re: Another 'Cannot change audio and save into a preset'

Posted: Sun Apr 14, 2019 8:33 pm
by BradleyS
On the audio tab, select Selection Behavior and adjust the rules there. Then save a new preset.

Re: Another 'Cannot change audio and save into a preset'

Posted: Sun Apr 14, 2019 9:00 pm
by larryw31
Whoa, that's bad... I've been staring at this program for two days and never saw that track selection was a button. Thanks!