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)