Error: Failed to load GUI presets file

Discussion of the HandBrake command line interface (CLI)
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
rhscjohn
Posts: 4
Joined: Tue Aug 14, 2018 11:39 pm

Error: Failed to load GUI presets file

Post by rhscjohn » Fri Aug 17, 2018 4:22 pm

Description of problem or question:
When using --preset-import-gui and --preset "Very Fast 1080p30" in a batch script to run HandbrakeCLI.exe the logs show that HandbrakeCLI was unable to find GUI presets file.



Steps to reproduce the problem (If Applicable):
This is reproducible as I have 7 different runs showing the exact same error. The batch file is being called by a program running under the User Name: SYSTEM.



HandBrake version (e.g., 1.0.0):

1.1.1


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



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

Code: Select all

Thu 08/16/2018 18:30:01.24 "D:\Users\Public\NPVR\Scripts\HandBrakeCLI.bat" logging started 
Validating environment... 
HandBrakeCLI.exe executable exists. 
Input file exists. 
--------------------------------------------------- 
Log File        - "D:\Users\Public\NPVR\Logs\PostProcessing Log.txt" 
Temp Directory  - C:\WINDOWS\TEMP 
Video Directory - "D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\" 
Input file      - "WBTV 3 News at 6pm_20180816_18001830.ts" 
Output file     - "WBTV 3 News at 6pm_20180816_18001830.mp4" 
Global Options  - 
Input Options   - 
Output Options  - --preset-import-gui  --preset "Very Fast 1080p30"  --enable-qsv-decoding  --qsv-async-depth 4 --encoder qsv_h264  --quality 21 --encoder-preset balanced --encopts="target-usage=4" --all-audio --aencoder ca_aac --ab 384 --mixdown 5point1 
----------------------------------------------------- 
18:30:01.34 Begin Transcoding... 
[18:30:04] hb_init: starting libhb thread
[18:30:04] thread 443dc90 started ("libhb")
[18:30:04] Failed to load GUI presets file
[18:30:04] Attempted: HandBrake\presets.json
[18:30:04] Attempted: HandBrake\presets.xml
HandBrake 1.1.1 (2018061800) - MinGW x86_64 - https://handbrake.fr
6 CPUs detected
Opening D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.ts...
[18:30:04] CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
[18:30:04]  - Intel microarchitecture Kaby Lake
[18:30:04]  - logical processor count: 6
[18:30:04] Intel Quick Sync Video support: yes
[18:30:04]  - Intel Media SDK hardware: API 1.26 (minimum: 1.3)
[18:30:04]  - H.264 encoder: yes
[18:30:04]     - preferred implementation: hardware (any) via D3D11
[18:30:04]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[18:30:04]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[18:30:04]     - preferred implementation: hardware (any) via D3D11
[18:30:04]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[18:30:04] hb_scan: path=D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.ts
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
[18:30:04] 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
[18:30:04] dvd: not a dvd - trying as a stream/file instead
[18:30:04] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:30:04] Found the following PIDS
[18:30:04]     Video PIDS : 
[18:30:04]       0x31 type MPEG2 (0x2) (PCR)
[18:30:04]     Audio PIDS : 
[18:30:04]       0x34 type AC3 (0x81)
[18:30:04]       0x35 type AC3 (0x81)
[18:30:04]     Subtitle PIDS : 
[18:30:04]     Other PIDS : 
[18:30:04] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[18:30:04] stream id 0x35 (type 0x81 substream 0x0) audio 0x35
[18:30:04] scan: decoding previews for title 1
[18:30:04] file is MPEG Transport Stream with 188 byte packets offset 0 bytes

Scanning title 1 of 1, preview 1, 10.00 %[18:30:04] scan: audio 0x34: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[18:30:04] scan: audio 0x35: ac3, rate=48000Hz, bitrate=192000 espa¤ol (AC3) (2.0 ch)

Scanning title 1 of 1, preview 7, 70.00 %[18:30:05] stream: 25 good frames, 0 errors (0%)
[18:30:05] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 8/0/0/0, aspect 16:9, PAR 1:1
[18:30:05] libhb: scan thread found 1 valid title(s)
+ Using preset: Very Fast 1080p30
+ title 1:
  + stream: D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.ts
  + duration: 00:30:02
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 8/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:30:02
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 384000bps
    + 2, español (AC3) (2.0 ch) (iso639-2: spa), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC608]
[18:30:05] 1 job(s) to process
[18:30:05] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "5point1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "D:\\Users\\Public\\Recorded TV\\WBTV 3 News at 6pm\\WBTV 3 News at 6pm_20180816_18001830.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "80",
                    "block-width": "16",
                    "filter-mode": "1",
                    "mode": "0",
                    "motion-thresh": "2",
                    "spatial-metric": "2",
                    "spatial-thresh": "3"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 8,
                    "height": 1072,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "D:\\Users\\Public\\Recorded TV\\WBTV 3 News at 6pm\\WBTV 3 News at 6pm_20180816_18001830.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "qsv_h264",
        "Options": "target-usage=4",
        "Preset": "balanced",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": true
        },
        "Quality": 21.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[18:30:05] Skipping subtitle scan.  No suitable subtitle tracks.
[18:30:05] starting job
[18:30:05] decomb filter thread started for segment 1
[18:30:05] decomb filter thread started for segment 2
[18:30:05] decomb filter thread started for segment 0
[18:30:05] decomb filter thread started for segment 3
[18:30:05] decomb check thread started for segment 1
[18:30:05] decomb check thread started for segment 0
[18:30:05] decomb check thread started for segment 2
[18:30:05] yadif thread started for segment 0
[18:30:05] decomb filter thread started for segment 4
[18:30:05] decomb filter thread started for segment 5
[18:30:05] decomb check thread started for segment 5
[18:30:05] decomb check thread started for segment 3
[18:30:05] job configuration:
[18:30:05]  * source
[18:30:05]    + D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.ts
[18:30:05] decomb check thread started for segment 4
[18:30:05]    + title 1, chapter(s) 1 to 1
[18:30:05]  * destination
[18:30:05] yadif thread started for segment 2
[18:30:05] yadif thread started for segment 1
[18:30:05] yadif thread started for segment 3
[18:30:05]    + D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180816_18001830.mp4
[18:30:05] yadif thread started for segment 5
[18:30:05]    + container: MPEG-4 (libavformat)
[18:30:05] yadif thread started for segment 4
[18:30:05]      + align initial A/V stream timestamps
[18:30:05]  * video track
[18:30:05]    + decoder: mpeg2video
[18:30:05]      + bitrate 80000 kbps
[18:30:05]    + filters
[18:30:05]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[18:30:05]      + Decomb (mode=39)
[18:30:05]      + Framerate Shaper (mode=2:rate=27000000/900000)
[18:30:05]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[18:30:05]      + Crop and Scale (width=1920:height=1072:crop-top=8:crop-bottom=0:crop-left=0:crop-right=0)
[18:30:05]        + source: 1920 * 1080, crop (8/0/0/0): 1920 * 1072, scale: 1920 * 1072
[18:30:05]    + Output geometry
[18:30:05]      + storage dimensions: 1920 x 1072
[18:30:05]      + pixel aspect ratio: 1 : 1
[18:30:05]      + display dimensions: 1920 x 1072
[18:30:05]    + encoder: H.264 (Intel Media SDK)
[18:30:05]      + preset:  balanced
[18:30:05]      + options: target-usage=4
[18:30:05]      + quality: 21.00 (ICQ)
[18:30:05]  * audio track 1
[18:30:05]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x34)
[18:30:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:05]    + mixdown: 5.1 Channels
[18:30:05]    + encoder: AAC (libavcodec)
[18:30:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:05]  * audio track 2
[18:30:05]    + decoder: espa¤ol (AC3) (2.0 ch) (track 2, id 0x35)
[18:30:05]      + bitrate: 192 kbps, samplerate: 48000 Hz
[18:30:05]    + mixdown: Stereo
[18:30:05]    + encoder: AAC (libavcodec)
[18:30:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:05] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:30:05] sync: expecting 54032 video frames
[18:30:05] encqsvInit: using encode-only path
[18:30:05] encqsvInit: H.264/AVC High profile @ level 4.0
[18:30:05] encqsvInit: TargetUsage 4 AsyncDepth 4
[18:30:05] encqsvInit: GopRefDist 3 GopPicSize 30 NumRefFrame 1
[18:30:05] encqsvInit: BFramesMax 2 BRefType off
[18:30:05] encqsvInit: RateControlMethod ICQ ICQQuality 21

Encoding: task 1 of 1, 0.00 %[18:30:05] sync: first pts video is 0
[18:30:05] sync: first pts audio 0x34 is 0
[18:30:05] sync: first pts audio 0x35 is 0
[18:30:05] 0.648700s: Film -> Video
[18:30:05] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.26

Encoding: task 1 of 1, 0.09 %
Encoding: task 1 of 1, 0.12 %
Encoding: task 1 of 1, 0.17 %
Encoding: task 1 of 1, 0.21 %
Encoding: task 1 of 1, 0.25 %
Encoding: task 1 of 1, 0.29 %
Encoding: task 1 of 1, 0.35 %
Encoding: task 1 of 1, 0.40 %
Encoding: task 1 of 1, 0.44 %
Encoding: task 1 of 1, 0.48 %
Encoding: task 1 of 1, 0.51 %
Encoding: task 1 of 1, 0.57 %
Encoding: task 1 of 1, 0.63 %
Encoding: task 1 of 1, 0.67 %
Encoding: task 1 of 1, 0.72 %
Encoding: task 1 of 1, 0.78 %
Encoding: task 1 of 1, 0.83 %
Encoding: task 1 of 1, 0.88 %
Encoding: task 1 of 1, 0.91 %
Encoding: task 1 of 1, 0.95 % (118.59 fps, avg 119.57 fps, ETA 00h07m27s)
Encoding: task 1 of 1, 0.99 % (118.59 fps, avg 119.57 fps, ETA 00h07m27s)
Encoding: task 1 of 1, 1.06 % (118.59 fps, avg 119.57 fps, ETA 00h07m27s)
Encoding: task 1 of 1, 1.12 % (118.59 fps, avg 119.57 fps, ETA 00h07m27s)
Encoding: task 1 of 1, 1.21 % (118.59 fps, avg 119.57 fps, ETA 00h07m27s)
Encoding: task 1 of 1, 1.28 % (137.50 fps, avg 131.07 fps, ETA 00h06m47s)
Encoding: task 1 of 1, 1.31 % (137.50 fps, avg 131.07 fps, ETA 00h06m47s)
Encoding: task 1 of 1, 1.37 % (137.50 fps, avg 131.07 fps, ETA 00h06m47s)

User avatar
BradleyS
Moderator
Posts: 1463
Joined: Thu Aug 09, 2007 12:16 pm

Re: Error: Failed to load GUI presets file

Post by BradleyS » Sat Aug 18, 2018 3:53 am

Serious question, have you installed the HandBrake 1.1.1 GUI or only the CLI?

Seems like this should probably cause a hard fail instead if continuing along with only the message in the log...

rhscjohn
Posts: 4
Joined: Tue Aug 14, 2018 11:39 pm

Re: Error: Failed to load GUI presets file

Post by rhscjohn » Sat Aug 18, 2018 6:23 pm

Yep. Both are installed. Upon further testing, it appears if HandbrakeCLI is run using a local user account the GUI Preset file is found. The first log is when (testing) from a local users johni(see Indentity - HP-DESKTOP\johni. The second log file is production when running from a local system.

Code: Select all

Fri 08/17/2018 14:35:02.50 handbrakecli.bat logging started 
Validating environment... 
HandBrakeCLI.exe executable exists. 
Input file exists. 
Output file already exist.  HandBrakeCLI.exe will over write. 
--------------------------------------------------- 
Indentity       - HP-DESKTOP\johni 
Log File        - "D:\Users\Public\NPVR\Logs\PostProcessing Log.txt" 
Temp Directory  - C:\Users\johni\AppData\Local\Temp 
Video Directory - "D:\Users\Public\Recorded TV\Take Two\" 
Input file      - "Take Two.S01E09.Shadows of the Past.ts" 
Output file     - "Take Two.S01E09.Shadows of the Past.mp4" 
Global Options  - 
Input Options   - 
Output Options  - --preset-import-gui  --preset "Very Fast 1080p30"  --enable-qsv-decoding  --qsv-async-depth 4 --encoder qsv_h264  --quality 19 --encoder-preset balanced --encopts="target-usage=4" --all-audio --aencoder ca_aac --ab 384 --mixdown 5point1 
----------------------------------------------------- 
14:35:02.62 Begin Transcoding... 
[14:35:02] hb_init: starting libhb thread
[14:35:02] thread 55f4510 started ("libhb")
[14:35:02] Preset (null): Incorrect value type for key AudioDitherMethod. Converting.
[14:35:02] Preset NXTPVR: Incorrect value type for key PictureWidth. Converting.
[14:35:02] Preset NXTPVR: Incorrect value type for key PictureHeight. Converting.
[14:35:02] Preset NXTPVR: Incorrect value type for key VideoFramerate. Converting.
[14:35:02] Preset NXTPVR: Invalid video framerate ()
HandBrake 1.1.1 (2018061800) - MinGW x86_64 - https://handbrake.fr
6 CPUs detected
Opening D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.ts...
[14:35:02] CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
[14:35:02]  - Intel microarchitecture Kaby Lake
[14:35:02]  - logical processor count: 6
[14:35:02] Intel Quick Sync Video support: yes
[14:35:02]  - Intel Media SDK hardware: API 1.26 (minimum: 1.3)
[14:35:02]  - H.264 encoder: yes
[14:35:02]     - preferred implementation: hardware (any) via D3D11
[14:35:02]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:35:02]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:35:02]     - preferred implementation: hardware (any) via D3D11
[14:35:02]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[14:35:02] hb_scan: path=D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.ts
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:35:02] 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:35:02] dvd: not a dvd - trying as a stream/file instead
[14:35:02] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:35:02] Found the following PIDS
[14:35:02]     Video PIDS : 
[14:35:02]       0x31 type MPEG2 (0x2) (PCR)
[14:35:02]     Audio PIDS : 
[14:35:02]       0x34 type AC3 (0x81)
[14:35:02]       0x35 type AC3 (0x81)
[14:35:02]     Subtitle PIDS : 
[14:35:02]     Other PIDS : 
[14:35:02] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[14:35:02] stream id 0x35 (type 0x81 substream 0x0) audio 0x35
[14:35:02] scan: decoding previews for title 1
[14:35:02] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:35:02] scan: audio 0x34: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[14:35:02] scan: audio 0x35: ac3, rate=48000Hz, bitrate=192000 espa¤ol (AC3) (2.0 ch)
[14:35:02] stream: 33 good frames, 0 errors (0%)
[14:35:02] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 1:1
[14:35:03] libhb: scan thread found 1 valid title(s)
+ Using preset: Very Fast 1080p30
+ title 1:
  + stream: D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.ts
  + duration: 01:00:04
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 59.940 fps
  + autocrop: 0/0/2/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:00:04
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 384000bps
    + 2, español (AC3) (2.0 ch) (iso639-2: spa), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC608]
[14:35:03] 1 job(s) to process
[14:35:03] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "5point1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "D:\\Users\\Public\\Recorded TV\\Take Two\\Take Two.S01E09.Shadows of the Past.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "80",
                    "block-width": "16",
                    "filter-mode": "1",
                    "mode": "0",
                    "motion-thresh": "2",
                    "spatial-metric": "2",
                    "spatial-thresh": "3"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 2,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1278
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "D:\\Users\\Public\\Recorded TV\\Take Two\\Take Two.S01E09.Shadows of the Past.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "qsv_h264",
        "Options": "target-usage=4",
        "Preset": "balanced",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": true
        },
        "Quality": 19.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[14:35:03] Skipping subtitle scan.  No suitable subtitle tracks.
[14:35:03] starting job
[14:35:03] decomb filter thread started for segment 0
[14:35:03] decomb check thread started for segment 1
[14:35:03] decomb filter thread started for segment 2
[14:35:03] job configuration:
[14:35:03]  * source
[14:35:03]    + D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.ts
[14:35:03] decomb filter thread started for segment 4
[14:35:03] decomb check thread started for segment 5
[14:35:03]    + title 1, chapter(s) 1 to 1
[14:35:03]  * destination
[14:35:03]    + D:\Users\Public\Recorded TV\Take Two\Take Two.S01E09.Shadows of the Past.mp4
[14:35:03]    + container: MPEG-4 (libavformat)
[14:35:03] yadif thread started for segment 3
[14:35:03]      + align initial A/V stream timestamps
[14:35:03] decomb filter thread started for segment 1
[14:35:03]  * video track
[14:35:03]    + decoder: mpeg2video
[14:35:03] decomb check thread started for segment 0
[14:35:03]      + bitrate 80000 kbps
[14:35:03]    + filters
[14:35:03]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[14:35:03] decomb check thread started for segment 2
[14:35:03]      + Decomb (mode=39)
[14:35:03]      + Framerate Shaper (mode=2:rate=27000000/900000)
[14:35:03]        + frame rate: 59.940 fps -> peak rate limited to 30.000 fps
[14:35:03] decomb check thread started for segment 4
[14:35:03] decomb check thread started for segment 3
[14:35:03] decomb filter thread started for segment 3
[14:35:03]      + Crop and Scale (width=1278:height=720:crop-top=0:crop-bottom=0:crop-left=2:crop-right=0)
[14:35:03]        + source: 1280 * 720, crop (0/0/2/0): 1278 * 720, scale: 1278 * 720
[14:35:03] yadif thread started for segment 1
[14:35:03]    + Output geometry
[14:35:03] yadif thread started for segment 0
[14:35:03] decomb filter thread started for segment 5
[14:35:03]      + storage dimensions: 1278 x 720
[14:35:03] yadif thread started for segment 2
[14:35:03]      + pixel aspect ratio: 1 : 1
[14:35:03]      + display dimensions: 1278 x 720
[14:35:03] yadif thread started for segment 5
[14:35:03]    + encoder: H.264 (Intel Media SDK)
[14:35:03] yadif thread started for segment 4
[14:35:03]      + preset:  balanced
[14:35:03]      + options: target-usage=4
[14:35:03]      + quality: 19.00 (ICQ)
[14:35:03]  * audio track 1
[14:35:03]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x34)
[14:35:03]      + bitrate: 384 kbps, samplerate: 48000 Hz
[14:35:03]    + mixdown: 5.1 Channels
[14:35:03]    + encoder: AAC (libavcodec)
[14:35:03]      + bitrate: 384 kbps, samplerate: 48000 Hz
[14:35:03]  * audio track 2
[14:35:03]    + decoder: espa¤ol (AC3) (2.0 ch) (track 2, id 0x35)
[14:35:03]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:35:03]    + mixdown: Stereo
[14:35:03]    + encoder: AAC (libavcodec)
[14:35:03]      + bitrate: 384 kbps, samplerate: 48000 Hz
[14:35:03] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:35:03] sync: expecting 216071 video frames
[14:35:03] encqsvInit: using encode-only path
[14:35:03] encqsvInit: H.264/AVC High profile @ level 3.1
[14:35:03] encqsvInit: TargetUsage 4 AsyncDepth 4
[14:35:03] encqsvInit: GopRefDist 3 GopPicSize 30 NumRefFrame 1
[14:35:03] encqsvInit: BFramesMax 2 BRefType off
[14:35:03] encqsvInit: RateControlMethod ICQ ICQQuality 19

Encoding: task 1 of 1, 0.00 %[14:35:03] sync: first pts video is 0
[14:35:03] sync: first pts audio 0x34 is 0
[14:35:03] sync: first pts audio 0x35 is 0
[14:35:03] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.26

Encoding: task 1 of 1, 0.05 %
Encoding: task 1 of 1, 0.10 %
Encoding: task 1 of 1, 0.15 %
Encoding: task 1 of 1, 0.21 %

Second log file when running HandbrakeCLI as System(See Identity row). HandbrakeCLI unable to find the GUI preset file.

Code: Select all

Fri 08/17/2018 18:30:00.97 "D:\Users\Public\NPVR\Scripts\HandBrakeCLI.bat" logging started 
Validating environment... 
HandBrakeCLI.exe executable exists. 
Input file exists. 
--------------------------------------------------- 
Indentity       - WORKGROUP1\HP-DESKTOP$ 
Log File        - "D:\Users\Public\NPVR\Logs\PostProcessing Log.txt" 
Temp Directory  - C:\WINDOWS\TEMP 
Video Directory - "D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\" 
Input file      - "WBTV 3 News at 6pm_20180817_18001830.ts" 
Output file     - "WBTV 3 News at 6pm_20180817_18001830.mp4" 
Global Options  - 
Input Options   - 
Output Options  - --preset-import-gui  --preset "Very Fast 1080p30"  --enable-qsv-decoding  --qsv-async-depth 4 --encoder qsv_h264  --quality 19 --encoder-preset balanced --encopts="target-usage=4" --all-audio --aencoder ca_aac --ab 384 --mixdown 5point1 
----------------------------------------------------- 
18:30:01.10 Begin Transcoding... 
[18:30:01] hb_init: starting libhb thread
[18:30:01] thread 42f4250 started ("libhb")
[18:30:01] Failed to load GUI presets file
[18:30:01] Attempted: HandBrake\presets.json
[18:30:01] Attempted: HandBrake\presets.xml
HandBrake 1.1.1 (2018061800) - MinGW x86_64 - https://handbrake.fr
6 CPUs detected
Opening D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.ts...
[18:30:01] CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
[18:30:01]  - Intel microarchitecture Kaby Lake
[18:30:01]  - logical processor count: 6
[18:30:01] Intel Quick Sync Video support: yes
[18:30:01]  - Intel Media SDK hardware: API 1.26 (minimum: 1.3)
[18:30:01]  - H.264 encoder: yes
[18:30:01]     - preferred implementation: hardware (any) via D3D11
[18:30:01]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[18:30:01]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[18:30:01]     - preferred implementation: hardware (any) via D3D11
[18:30:01]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[18:30:01] hb_scan: path=D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.ts
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
[18:30:01] 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
[18:30:01] dvd: not a dvd - trying as a stream/file instead
[18:30:01] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:30:01] Found the following PIDS
[18:30:01]     Video PIDS : 
[18:30:01]       0x31 type MPEG2 (0x2) (PCR)
[18:30:01]     Audio PIDS : 
[18:30:01]       0x34 type AC3 (0x81)
[18:30:01]       0x35 type AC3 (0x81)
[18:30:01]     Subtitle PIDS : 
[18:30:01]     Other PIDS : 
[18:30:01] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[18:30:01] stream id 0x35 (type 0x81 substream 0x0) audio 0x35
[18:30:01] scan: decoding previews for title 1
[18:30:01] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:30:01] scan: audio 0x35: ac3, rate=48000Hz, bitrate=192000 espa¤ol (AC3) (2.0 ch)
[18:30:01] scan: audio 0x34: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)

Scanning title 1 of 1, preview 7, 70.00 %[18:30:01] stream: 6 good frames, 0 errors (0%)
[18:30:01] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:30:02] libhb: scan thread found 1 valid title(s)
+ Using preset: Very Fast 1080p30
+ title 1:
  + stream: D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.ts
  + duration: 00:25:53
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:25:53
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 384000bps
    + 2, español (AC3) (2.0 ch) (iso639-2: spa), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC608]
[18:30:02] 1 job(s) to process
[18:30:02] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "5point1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "D:\\Users\\Public\\Recorded TV\\WBTV 3 News at 6pm\\WBTV 3 News at 6pm_20180817_18001830.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "80",
                    "block-width": "16",
                    "filter-mode": "1",
                    "mode": "0",
                    "motion-thresh": "2",
                    "spatial-metric": "2",
                    "spatial-thresh": "3"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "D:\\Users\\Public\\Recorded TV\\WBTV 3 News at 6pm\\WBTV 3 News at 6pm_20180817_18001830.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "qsv_h264",
        "Options": "target-usage=4",
        "Preset": "balanced",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": true
        },
        "Quality": 19.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[18:30:02] Skipping subtitle scan.  No suitable subtitle tracks.
[18:30:02] starting job
[18:30:02] decomb filter thread started for segment 0
[18:30:02] decomb filter thread started for segment 1
[18:30:02] decomb check thread started for segment 1
[18:30:02] decomb filter thread started for segment 2
[18:30:02] decomb filter thread started for segment 4
[18:30:02] yadif thread started for segment 5
[18:30:02] job configuration:
[18:30:02]  * source
[18:30:02]    + D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.ts
[18:30:02]    + title 1, chapter(s) 1 to 1
[18:30:02]  * destination
[18:30:02]    + D:\Users\Public\Recorded TV\WBTV 3 News at 6pm\WBTV 3 News at 6pm_20180817_18001830.mp4
[18:30:02]    + container: MPEG-4 (libavformat)
[18:30:02]      + align initial A/V stream timestamps
[18:30:02]  * video track
[18:30:02]    + decoder: mpeg2video
[18:30:02] decomb check thread started for segment 0
[18:30:02] decomb check thread started for segment 3
[18:30:02]      + bitrate 80000 kbps
[18:30:02] decomb check thread started for segment 2
[18:30:02] decomb filter thread started for segment 3
[18:30:02]    + filters
[18:30:02] decomb check thread started for segment 4
[18:30:02]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[18:30:02] decomb check thread started for segment 5
[18:30:02]      + Decomb (mode=39)
[18:30:02]      + Framerate Shaper (mode=2:rate=27000000/900000)
[18:30:02] yadif thread started for segment 0
[18:30:02]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[18:30:02]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:30:02] yadif thread started for segment 1
[18:30:02]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:30:02]    + Output geometry
[18:30:02] yadif thread started for segment 2
[18:30:02] yadif thread started for segment 4
[18:30:02]      + storage dimensions: 1920 x 1080
[18:30:02]      + pixel aspect ratio: 1 : 1
[18:30:02] yadif thread started for segment 3
[18:30:02] decomb filter thread started for segment 5
[18:30:02]      + display dimensions: 1920 x 1080
[18:30:02]    + encoder: H.264 (Intel Media SDK)
[18:30:02]      + preset:  balanced
[18:30:02]      + options: target-usage=4
[18:30:02]      + quality: 19.00 (ICQ)
[18:30:02]  * audio track 1
[18:30:02]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x34)
[18:30:02]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:02]    + mixdown: 5.1 Channels
[18:30:02]    + encoder: AAC (libavcodec)
[18:30:02]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:02]  * audio track 2
[18:30:02]    + decoder: espa¤ol (AC3) (2.0 ch) (track 2, id 0x35)
[18:30:02]      + bitrate: 192 kbps, samplerate: 48000 Hz
[18:30:02]    + mixdown: Stereo
[18:30:02]    + encoder: AAC (libavcodec)
[18:30:02]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:30:02] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:30:02] sync: expecting 46552 video frames
[18:30:02] encqsvInit: using encode-only path
[18:30:02] encqsvInit: H.264/AVC High profile @ level 4.0
[18:30:02] encqsvInit: TargetUsage 4 AsyncDepth 4
[18:30:02] encqsvInit: GopRefDist 3 GopPicSize 30 NumRefFrame 1
[18:30:02] encqsvInit: BFramesMax 2 BRefType off
[18:30:02] encqsvInit: RateControlMethod ICQ ICQQuality 19
[18:30:02] sync: first pts video is 0
[18:30:02] sync: first pts audio 0x34 is 0
[18:30:02] sync: first pts audio 0x35 is 0
[18:30:02] 0.726700s: Film -> Video

Encoding: task 1 of 1, 0.07 %[18:30:02] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.26

Encoding: task 1 of 1, 0.12 

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

Re: Error: Failed to load GUI presets file

Post by s55 » Sat Aug 18, 2018 6:43 pm

System user won't have a presets file, so it is correct that it can't find it. That said, you don't need to do this for built-in presets.

rhscjohn
Posts: 4
Joined: Tue Aug 14, 2018 11:39 pm

Re: Error: Failed to load GUI presets file

Post by rhscjohn » Sun Aug 19, 2018 3:52 pm

But none of the built in presets use Intel QSV.

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

Re: Error: Failed to load GUI presets file

Post by s55 » Sun Aug 19, 2018 4:00 pm

I'm not sure what your question is?

--preset "Very Fast 1080p30" will work without importing gui presets. Since thats what your using + some overrides, I don't understand what you thin the issue is?

Woodstock
Veteran User
Posts: 2870
Joined: Tue Aug 27, 2013 6:39 am

Re: Error: Failed to load GUI presets file

Post by Woodstock » Sun Aug 19, 2018 11:15 pm

Then you need to create the preset in the GUI while logged in as the same user that you're going to use to run the CLI.

Custom presets are saved in the user space of the user that created them, and are only available to that user.

Unless you go and copy them around and set the proper permissions....

Post Reply