Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
DougH
Posts: 18
Joined: Fri Sep 23, 2016 12:52 am

Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Post by DougH »

Please describe the problem in as much detail as possible:

When Exporting presets from the GUI, the JSON file contains "Incorrect Value Types". For example when exporting a custom preset from the GUI the Value Key of AudioDitherMethod is null but the CLI indicates this as incorrect. While the log states that it is "converting" but no indication what the property is being set too.

What are the steps to reproduce this problem:

Export a preset from the GUI (custom or built-in) to a JSON file.

What version of HandBrake you are running:

20170724183340-3215491-master

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):

Windows 7 (Ver 6.1.7601)

Where did you download HandBrake from? handbrake.fr or somewhere else?

Built a Nightly using sources.

If there was any error, exception or crash report displayed, please copy it and paste it here:

None

Please include the scan or encode log:

Code: Select all

[08:50:11] hb_init: starting libhb thread
[08:50:11] thread 3efd10 started ("libhb")
[08:50:11] Preset (null): Incorrect value type for key AudioDitherMethod. Converting.
HandBrake 20170724183340-3215491-master (2017072501) - MinGW x86_64 - https://handbrake.fr
12 CPUs detected
Opening Radio_Flyer.mkv...
[08:50:11] CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
[08:50:11]  - Intel microarchitecture Haswell
[08:50:11]  - logical processor count: 12
[08:50:11] Intel Quick Sync Video support: no
[08:50:11] hb_scan: path=Radio_Flyer.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image Radio_Flyer.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
[08:50:11] 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
[08:50:11] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Radio_Flyer.mkv':
  Metadata:
    title           : Radio Flyer
  Duration: 01:53:48.82, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 374.040333
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 374.040333, end 500.500000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 500.500000, end 742.742000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 742.742000, end 965.631333
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 965.631333, end 1244.243000
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1244.243000, end 1440.439000
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1440.439000, end 1704.269233
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1704.269233, end 1938.603333
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1938.603333, end 2180.344833
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2180.344833, end 2491.522367
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2491.522367, end 2724.221500
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2724.221500, end 2924.621700
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2924.621700, end 3259.422833
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 3259.422833, end 3459.456000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3459.456000, end 3709.539167
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 3709.539167, end 3995.024367
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3995.024367, end 4196.225367
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 4196.225367, end 4475.637833
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 4475.637833, end 4652.481167
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 4652.481167, end 4855.016833
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 4855.016833, end 5021.683333
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 5021.683333, end 5269.464200
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 5269.464200, end 5473.968500
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 5473.968500, end 5724.919200
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 5724.919200, end 6158.519033
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 6158.519033, end 6239.733500
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 6239.733500, end 6327.487833
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 6327.487833, end 6828.822000
    Metadata:
      title           : Chapter 28
    Stream #0:0(eng): Video: mpeg2video (Main)
      yuv420p, tv, 720x480 [PAR 32:27 DAR 16:9], 9800 kb/s, PAR 186:157 DAR 279:157
      29.97 fps, 1k tbn
    Metadata:
      BPS-eng         : 4232161
      DURATION-eng    : 01:53:48.822000000
      NUMBER_OF_FRAMES-eng: 163764
      NUMBER_OF_BYTES-eng: 3612584631
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-24 22:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3
      48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:53:48.800000000
      NUMBER_OF_FRAMES-eng: 213400
      NUMBER_OF_BYTES-eng: 163891200
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-24 22:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: dvd_subtitle (default)
    Metadata:
      BPS-eng         : 3076
      DURATION-eng    : 01:47:13.386055555
      NUMBER_OF_FRAMES-eng: 1094
      NUMBER_OF_BYTES-eng: 2474122
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-24 22:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(jpn): Subtitle: dvd_subtitle
    Metadata:
      BPS-eng         : 1255
      DURATION-eng    : 01:47:14.927055555
      NUMBER_OF_FRAMES-eng: 1034
      NUMBER_OF_BYTES-eng: 1009666
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-24 22:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[08:50:11] scan: decoding previews for title 1
[08:50:11] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround)

Scanning title 1 of 1, preview 4, 40.00 %[08:50:12] scan: 10 previews, 720x480, 29.970 fps, autocrop = 60/62/4/6, aspect 16:9, PAR 32:27
[08:50:12] libhb: scan thread found 1 valid title(s)
+ Using preset: H.265 1080p30 Stereo
+ title 1:
  + stream: Radio_Flyer.mkv
  + duration: 01:53:48
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
  + autocrop: 60/62/4/6
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:06:14
    + 2: cells 0->0, 0 blocks, duration 00:02:06
    + 3: cells 0->0, 0 blocks, duration 00:04:02
    + 4: cells 0->0, 0 blocks, duration 00:03:43
    + 5: cells 0->0, 0 blocks, duration 00:04:39
    + 6: cells 0->0, 0 blocks, duration 00:03:16
    + 7: cells 0->0, 0 blocks, duration 00:04:24
    + 8: cells 0->0, 0 blocks, duration 00:03:54
    + 9: cells 0->0, 0 blocks, duration 00:04:02
    + 10: cells 0->0, 0 blocks, duration 00:05:11
    + 11: cells 0->0, 0 blocks, duration 00:03:53
    + 12: cells 0->0, 0 blocks, duration 00:03:20
    + 13: cells 0->0, 0 blocks, duration 00:05:35
    + 14: cells 0->0, 0 blocks, duration 00:03:20
    + 15: cells 0->0, 0 blocks, duration 00:04:10
    + 16: cells 0->0, 0 blocks, duration 00:04:45
    + 17: cells 0->0, 0 blocks, duration 00:03:21
    + 18: cells 0->0, 0 blocks, duration 00:04:39
    + 19: cells 0->0, 0 blocks, duration 00:02:57
    + 20: cells 0->0, 0 blocks, duration 00:03:23
    + 21: cells 0->0, 0 blocks, duration 00:02:47
    + 22: cells 0->0, 0 blocks, duration 00:04:08
    + 23: cells 0->0, 0 blocks, duration 00:03:25
    + 24: cells 0->0, 0 blocks, duration 00:04:11
    + 25: cells 0->0, 0 blocks, duration 00:07:14
    + 26: cells 0->0, 0 blocks, duration 00:01:21
    + 27: cells 0->0, 0 blocks, duration 00:01:28
    + 28: cells 0->0, 0 blocks, duration 00:08:21
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [VOBSUB]
    + 2, 日本語 [VOBSUB]
[08:50:12] 1 job(s) to process
[08:50:12] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": 0.0,
                "DRC": 1.5,
                "DitherMethod": "",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "dpl1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac",
            "copy:eac3"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "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"
            },
            {
                "Name": "Chapter 17"
            },
            {
                "Name": "Chapter 18"
            },
            {
                "Name": "Chapter 19"
            },
            {
                "Name": "Chapter 20"
            },
            {
                "Name": "Chapter 21"
            },
            {
                "Name": "Chapter 22"
            },
            {
                "Name": "Chapter 23"
            },
            {
                "Name": "Chapter 24"
            },
            {
                "Name": "Chapter 25"
            },
            {
                "Name": "Chapter 26"
            },
            {
                "Name": "Chapter 27"
            },
            {
                "Name": "Chapter 28"
            }
        ],
        "ChapterMarkers": true,
        "File": "rf_test.mp4",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 2,
                "Settings": {
                    "plane": "0",
                    "skip-bottom": "4",
                    "skip-left": "1",
                    "skip-right": "1",
                    "skip-top": "4"
                }
            },
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 9,
                "Settings": {
                    "cb-frame-count": 2,
                    "cb-origin-tune": 0.90000000000000002,
                    "cb-patch-size": 7,
                    "cb-prefilter": 0,
                    "cb-range": 3,
                    "cb-strength": 4.0,
                    "y-frame-count": 2,
                    "y-origin-tune": 0.90000000000000002,
                    "y-patch-size": 7,
                    "y-prefilter": 0,
                    "y-range": 3,
                    "y-strength": 3.0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 62,
                    "crop-left": 4,
                    "crop-right": 6,
                    "crop-top": 60,
                    "height": 358,
                    "width": 710
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Radio Flyer"
    },
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "Radio_Flyer.mkv",
        "Range": {
            "End": 54000000,
            "Type": "time"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": true,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x265",
        "Level": "auto",
        "Options": "strong-intra-smoothing=0:rect=0:ref=5:bframes=5",
        "Preset": "slow",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": true
        },
        "Quality": 18.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[08:50:12] starting job
[08:50:12] decomb filter thread started for segment 0
[08:50:12] decomb filter thread started for segment 1
[08:50:12] decomb filter thread started for segment 2
[08:50:12] decomb filter thread started for segment 3
[08:50:12] decomb filter thread started for segment 4
[08:50:12] decomb filter thread started for segment 5
[08:50:12] decomb filter thread started for segment 6
[08:50:12] decomb filter thread started for segment 7
[08:50:12] decomb filter thread started for segment 8
[08:50:12] decomb filter thread started for segment 9
[08:50:12] decomb filter thread started for segment 10
[08:50:12] decomb filter thread started for segment 11
[08:50:12] decomb check thread started for segment 0
[08:50:12] decomb check thread started for segment 1
[08:50:12] decomb check thread started for segment 2
[08:50:12] decomb check thread started for segment 3
[08:50:12] decomb check thread started for segment 4
[08:50:12] decomb check thread started for segment 5
[08:50:12] decomb check thread started for segment 6
[08:50:12] decomb check thread started for segment 7
[08:50:12] decomb check thread started for segment 8
[08:50:12] decomb check thread started for segment 9
[08:50:12] decomb check thread started for segment 10
[08:50:12] decomb check thread started for segment 11
[08:50:12] mask filter thread started for segment 0
[08:50:12] mask filter thread started for segment 1
[08:50:12] mask filter thread started for segment 2
[08:50:12] mask filter thread started for segment 3
[08:50:12] mask filter thread started for segment 4
[08:50:12] mask filter thread started for segment 5
[08:50:12] mask filter thread started for segment 6
[08:50:12] mask filter thread started for segment 7
[08:50:12] mask filter thread started for segment 8
[08:50:12] mask filter thread started for segment 9
[08:50:12] mask filter thread started for segment 10
[08:50:12] mask filter thread started for segment 11
[08:50:12] mask erode thread started for segment 0
[08:50:12] mask erode thread started for segment 1
[08:50:12] mask erode thread started for segment 2
[08:50:12] mask erode thread started for segment 3
[08:50:12] mask erode thread started for segment 4
[08:50:12] mask erode thread started for segment 5
[08:50:12] mask erode thread started for segment 6
[08:50:12] mask erode thread started for segment 7
[08:50:12] mask erode thread started for segment 8
[08:50:12] mask erode thread started for segment 9
[08:50:12] mask erode thread started for segment 10
[08:50:12] mask erode thread started for segment 11
[08:50:12] mask dilate thread started for segment 0
[08:50:12] mask dilate thread started for segment 1
[08:50:12] mask dilate thread started for segment 2
[08:50:12] mask dilate thread started for segment 3
[08:50:12] mask dilate thread started for segment 4
[08:50:12] mask dilate thread started for segment 5
[08:50:12] mask dilate thread started for segment 6
[08:50:12] mask dilate thread started for segment 7
[08:50:12] mask dilate thread started for segment 8
[08:50:12] mask dilate thread started for segment 9
[08:50:12] mask dilate thread started for segment 10
[08:50:12] mask dilate thread started for segment 11
[08:50:12] yadif thread started for segment 0
[08:50:12] yadif thread started for segment 1
[08:50:12] yadif thread started for segment 2
[08:50:12] yadif thread started for segment 3
[08:50:12] yadif thread started for segment 4
[08:50:12] yadif thread started for segment 5
[08:50:12] yadif thread started for segment 6
[08:50:12] yadif thread started for segment 7
[08:50:12] yadif thread started for segment 8
[08:50:12] yadif thread started for segment 9
[08:50:12] yadif thread started for segment 10
[08:50:12] yadif thread started for segment 11
[08:50:12] NLMeans using SSE2 optimizations
[08:50:12] NLMeans thread started for segment 0
[08:50:12] NLMeans thread started for segment 1
[08:50:12] NLMeans thread started for segment 2
[08:50:12] NLMeans thread started for segment 3
[08:50:12] NLMeans thread started for segment 4
[08:50:12] NLMeans thread started for segment 5
[08:50:12] NLMeans thread started for segment 6
[08:50:12] NLMeans thread started for segment 7
[08:50:12] NLMeans thread started for segment 8
[08:50:12] NLMeans thread started for segment 9
[08:50:12] NLMeans thread started for segment 10
[08:50:12] NLMeans thread started for segment 11
[08:50:12] work: track 1, compression level not supported by codec
[08:50:12] job configuration:
[08:50:12]  * source
[08:50:12]    + Radio_Flyer.mkv
[08:50:12]    + title 1, start 00:00:0.00 stop 00:10:0.00
[08:50:12]    + container: matroska,webm
[08:50:12]  * destination
[08:50:12]    + rf_test.mp4
[08:50:12]    + container: MPEG-4 (libavformat)
[08:50:12]      + chapter markers
[08:50:12]  * video track
[08:50:12]    + decoder: mpeg2video
[08:50:12]      + bitrate 9800 kbps
[08:50:12]    + filters
[08:50:12]      + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[08:50:12]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[08:50:12]      + Decomb (mode=39)
[08:50:12]      + Framerate Shaper (mode=2:rate=27000000/900000)
[08:50:12]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[08:50:12]      + Denoise (nlmeans) (y-strength=3:y-origin-tune=0.9:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=4:cb-origin-tune=0.9:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter=0)
[08:50:12]      + Crop and Scale (width=710:height=358:crop-top=60:crop-bottom=62:crop-left=4:crop-right=6)
[08:50:12]        + source: 720 * 480, crop (60/62/4/6): 710 * 358, scale: 710 * 358
[08:50:12]    + Output geometry
[08:50:12]      + storage dimensions: 710 x 358
[08:50:12]      + pixel aspect ratio: 32 : 27
[08:50:12]      + display dimensions: 841 x 358
[08:50:12]    + encoder: H.265 (libx265)
[08:50:12]      + preset:  slow
[08:50:12]      + options: strong-intra-smoothing=0:rect=0:ref=5:bframes=5
[08:50:12]      + profile: main
[08:50:12]      + quality: 18.00 (RF)
[08:50:12]  * subtitle track 1, English [VOBSUB] (track 0, id 0x2, Picture) -> Passthrough, Default
[08:50:12]  * audio track 1
[08:50:12]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (track 1, id 0x1)
[08:50:12]      + bitrate: 192 kbps, samplerate: 48000 Hz
[08:50:12]    + mixdown: Dolby Surround
[08:50:12]    + dynamic range compression: 1.500000
[08:50:12]    + dither: triangular
[08:50:12]    + encoder: AAC (libfdk_aac)
[08:50:12]      + bitrate: 160 kbps, samplerate: 48000 Hz
[08:50:12] sync: expecting 18011 video frames
x265 [info]: HEVC encoder version 2.4
x265 [info]: build info [Windows][GCC 5.4.0][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(6 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 30 / 300 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 5 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 5 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-18.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp deblock sao
[08:50:12] sync: first pts video is 0
[08:50:12] sync: first pts audio 0x1 is 2970
[08:50:12] sync: "Chapter 1" (1) at frame 3 time 8943
[08:50:12] 1.033633s: Video -> Film
[08:50:21] sync: first pts subtitle 0x2 is 1417410
[08:56:34] 373.966705s: Film -> Video
[08:56:35] 374.100189s: Video -> Film
[08:56:35] sync: "Chapter 2" (2) at frame 8977 time 33669015
[08:58:44] 500.430573s: Film -> Video
[08:58:44] sync: "Chapter 3" (3) at frame 12009 time 45047760
[08:58:44] 500.564056s: Video -> Film
[09:00:26] sync: reached audio 0x1 pts 54000090, exiting early
[09:00:26] sync: reached video pts 54003600, exiting early
[09:00:30] work: average encoding speed for job is 23.456503 fps
[09:00:30] comb detect: heavy 60 | light 416 | uncombed 13914 | total 14390
[09:00:30] decomb: deinterlaced 60 | blended 416 | unfiltered 13914 | total 14390
[09:00:30] vfr: 14390 frames output, 0 dropped and 0 duped for CFR/PFR
[09:00:30] vfr: lost time: 13509 (0 frames)
[09:00:30] vfr: gained time: 13509 (16 frames) (0 not accounted for)
[09:00:30] ac3-decoder done: 27560 frames, 0 decoder errors
[09:00:30] mpeg2video-decoder done: 21145 frames, 0 decoder errors
[09:00:30] sync: got 14394 frames, 18011 expected
[09:00:30] sync: framerate min 15.152 fps, max 29.970 fps, avg 23.988 fps
x265 [info]: frame I:    159, Avg QP:17.59  kb/s: 5652.23 
x265 [info]: frame P:   3255, Avg QP:19.53  kb/s: 2972.13 
x265 [info]: frame B:  10976, Avg QP:24.68  kb/s: 711.03  
x265 [info]: Weighted P-Frames: Y:12.8% UV:4.3%
x265 [info]: consecutive B-frames: 9.2% 4.2% 8.8% 35.9% 17.6% 24.3% 

encoded 14390 frames in 618.11s (23.28 fps), 1277.09 kb/s, Avg QP:23.43
[09:00:30] mux: track 0, 14390 frames, 76706122 bytes, 1022.69 kbps, fifo 4096
[09:00:30] mux: track 1, 28125 frames, 12000362 bytes, 160.00 kbps, fifo 8192
[09:00:30] mux: track 2, 123 frames, 301418 bytes, 4.02 kbps, fifo 32
[09:00:30] libhb: work result = 0

Encode done!
HandBrake has exited.

nhyone
Bright Spark User
Posts: 252
Joined: Fri Jul 24, 2015 4:13 am

Re: Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Post by nhyone »

It'll be nice if the command-line HB can emit the GUI JSON file. It can already do so, but only as part of the log.

The CLI emits the values as strings, unlike the GUI that emits them as numbers...
User avatar
JohnAStebbins
HandBrake Team
Posts: 5709
Joined: Sat Feb 09, 2008 7:21 pm

Re: Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Post by JohnAStebbins »

nhyone wrote: Wed Aug 16, 2017 11:58 am It'll be nice if the command-line HB can emit the GUI JSON file. It can already do so, but only as part of the log.

The CLI emits the values as strings, unlike the GUI that emits them as numbers...
To write the current command line options to the console as a JSON preset.

Code: Select all

--preset-export <preset-name>
Add the following to specify a filename to write the JSON preset to:

Code: Select all

--preset-export-file <preset-file-name>
What is in the log isn't a preset, but rather the job settings (what would show in a GUI queue entry). You are correct that there is not a way to export this job description from the CLI currently. Good idea though ;) The Linux GUI has an option to export the queue which can be imported into the CLI (--queue-import-file). I don't recall if this capability was implemented on all platform GUIs though.
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Post by s55 »

It wasn’t. Mainly because the internals of the wingui are modelled too differently
nhyone
Bright Spark User
Posts: 252
Joined: Fri Jul 24, 2015 4:13 am

Re: Incorrect Value Type when exporting presets (custom or built-in) from GUI to JSON file.

Post by nhyone »

JohnAStebbins wrote: Wed Aug 16, 2017 4:41 pm What is in the log isn't a preset, but rather the job settings (what would show in a GUI queue entry).
Oops, I meant the job settings, not the preset. :D

The reason is that the command-line options show up in ps, but if passed in using job settings, they do not.

This is only a problem for multi-user systems if you don't want others to know what you are up to. :wink:

What I do now is to generate softlinks and pass those to HB. :D

An alternative is to accept the command-line parameters from a config file, curl style. I would actually prefer that, but I imagine that takes bit more work.
Post Reply