HandbrakeCLI 1.0.1 doesn't start encoding with custom present

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
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

HandbrakeCLI 1.0.1 doesn't start encoding with custom present

Post by Yersh »

Hi. I tried HandbrakeCLI today with preset I exported from HandbrakeGUI.
CLI doesn't start the encoding mp4 files. I checked 5 different mp4 and m4v source files - nothing is working. I checked avi, mkv source files - everything work perfectly.

With mp4 files it just shows:

Encoding: task 1 of 1, 0.00 %

and chills at this state indefinitely. Task manager shows that Handbrake CLI eats 12% of CPU and 34mb of memory. So i'm pretty sure that nothing is happening.

P.S. With default presets everything works.

here is my console output:

Code: Select all

e:\New\TTC - Yoga for a Healthy Mind and Body>"c:\1\HandBrakeCLI.exe" --preset-import-file c:\1\my_h
d_preset3.json -i TGC_9263_Lect01_YogaHealthyMindBody.m4v -o 01.mkv
[01:14:54] hb_init: starting libhb thread
[01:14:54] thread 4359a60 started ("libhb")
[01:14:54] Preset HD_mp3_mono: Incorrect value type for key PresetDescription. Converting.
[01:14:54] Preset (null): Incorrect value type for key AudioDitherMethod. Converting.
[01:14:54] Preset HD_mp3_mono: Incorrect value type for key PictureCombDetectCustom. Converting.
[01:14:54] Preset HD_mp3_mono: Invalid video framerate ()
HandBrake 1.0.1 (2016122900) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening TGC_9263_Lect01_YogaHealthyMindBody.m4v...
[01:14:54] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[01:14:54]  - Intel microarchitecture Sandy Bridge
[01:14:54]  - logical processor count: 8
[01:14:55] OpenCL device #1: Advanced Micro Devices, Inc. Capeverde
[01:14:55]  - OpenCL version: 1.2 AMD-APP (1124.2)
[01:14:55]  - driver version: 1124.2 (VM)
[01:14:55]  - device type:    GPU
[01:14:55]  - supported:      YES
[01:14:55] Intel Quick Sync Video support: no
[01:14:55] hb_scan: path=TGC_9263_Lect01_YogaHealthyMindBody.m4v, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image TGC_9263_Lect01_YogaHealthyMindBody.m4v
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
[01:14:55] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:14:55] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TGC_9263_Lect01_YogaHealthyMindBody.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: isomavc1mp42
    creation_time   : 2014-04-21 20:09:51
    media_type      : 10
    compilation     : 1
    artist          : Certified Yoga Instructor Heidi E. Sormaz
    album           : Yoga for a Healthy Mind and Body
    date            : 2014
    genre           : Yoga for a Healthy Mind and Body
    composer        : The Great Courses
    copyright       : The Teaching Company, LLC
    URL             : https://www.THEGREATCOURSES.com
    album_artist    : Various Artists
    show            : Yoga for a Healthy Mind and Body
    season_number   : 47
    episode_sort    : 1
    track           : 1
    disc            : 1
    title           : Lect.01 Western Yoga
    episode_id      : Lect.01 Western Yoga
  Duration: 00:34:08.73, start: 0.023222, bitrate: 2137 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) [avc1 / 0x31637661]
      yuv420p, 640x360 [PAR 1:1 DAR 16:9], 1999 kb/s, PAR 1:1 DAR 16:9
      29.97 fps, 30k tbn (default)
    Metadata:
      creation_time   : 2014-04-21 20:09:51
      handler_name    : ETI ISO Video Media Handler
      encoder         : Elemental H.264
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2014-04-21 20:09:51
      handler_name    : ETI ISO Audio Media Handler
    Stream #0:2: Video: png
      bgra, pc, 1500x2100
      90k tbn
[01:14:55] scan: decoding previews for title 1
Scanning title 1 of 1, preview 1, 0.00 %[01:14:55] scan: audio 0x1: aac, rate=44100Hz, bitrate=12566
3 Unknown (AAC) (2.0 ch)
Scanning title 1 of 1, preview 5, 50.00 %[01:14:56] scan: 10 previews, 640x360, 29.970 fps, autocrop
 = 0/0/0/0, aspect 16:9, PAR 1:1
[01:14:56] scan: supported video decoders: avcodec qsv
Scanning title 1 of 1, preview 10, 100.00 %[01:14:56] libhb: scan thread found 1 valid title(s)
+ Using preset: HD_mp3_mono
+ title 1:
  + stream: TGC_9263_Lect01_YogaHealthyMindBody.m4v
  + duration: 00:34:08
  + size: 640x360, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + support opencl: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:34:08
  + audio tracks:
    + 1, Unknown (AAC) (2.0 ch) (iso639-2: und)
  + subtitle tracks:
[01:14:56] 1 job(s) to process
[01:14:56] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": -1,
                "CompressionLevel": 0.0,
                "DRC": 0.0,
                "DitherMethod": "",
                "Encoder": "mp3",
                "Gain": 0.0,
                "Mixdown": "mono",
                "NormalizeMixLevel": false,
                "PresetEncoder": "mp3",
                "Quality": 9.0,
                "Samplerate": "22.05",
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac",
            "copy:eac3"
        ],
        "FallbackEncoder": "mp3"
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "01.mkv",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 360,
                    "width": 640
                }
            }
        ]
    },
    "Metadata": {
        "AlbumArtist": "Various Artists",
        "Artist": "Certified Yoga Instructor Heidi E. Sormaz",
        "Composer": "The Great Courses",
        "Genre": "Yoga for a Healthy Mind and Body",
        "Name": "Lect.01 Western Yoga",
        "ReleaseDate": "2014"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "TGC_9263_Lect01_YogaHealthyMindBody.m4v",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "OpenCL": false,
        "Options": "tune=stillimage:no-psy",
        "Preset": "veryslow",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": true
        },
        "Quality": 27.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[01:14:56] starting job
[01:14:56] job configuration:
[01:14:56]  * source
[01:14:56]    + TGC_9263_Lect01_YogaHealthyMindBody.m4v
[01:14:56]    + title 1, chapter(s) 1 to 1
[01:14:56]    + container: mov,mp4,m4a,3gp,3g2,mj2
[01:14:56]    + data rate: 2137 kbps
[01:14:56]  * destination
[01:14:56]    + 01.mkv
[01:14:56]    + container: Matroska (libavformat)
[01:14:56]  * video track
[01:14:56]    + decoder: h264_qsv
[01:14:56]      + bitrate 1999 kbps
[01:14:56]    + filters
[01:14:56]      + Framerate Shaper (mode=0)
[01:14:56]        + frame rate: same as source (around 29.970 fps)
[01:14:56]      + Crop and Scale (width=640:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-rig
ht=0)
[01:14:56]        + source: 640 * 360, crop (0/0/0/0): 640 * 360, scale: 640 * 360
[01:14:56]    + Output geometry
[01:14:56]      + storage dimensions: 640 x 360
[01:14:56]      + pixel aspect ratio: 1 : 1
[01:14:56]      + display dimensions: 640 x 360
[01:14:56]    + encoder: H.264 (libx264)
[01:14:56]      + preset:  veryslow
[01:14:56]      + options: tune=stillimage:no-psy
[01:14:56]      + profile: high
[01:14:56]      + level:   4.0
[01:14:56]      + quality: 27.00 (RF)
[01:14:56]  * audio track 1
[01:14:56]    + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)
[01:14:56]      + bitrate: 125 kbps, samplerate: 44100 Hz
[01:14:56]    + mixdown: Mono
[01:14:56]    + encoder: MP3 (libmp3lame)
[01:14:56]      + quality: 9.00, samplerate: 22050 Hz
[01:14:56]      + compression level: 0.00
[01:14:56] sync: expecting 61400 video frames
[01:14:56] x264 options: Unknown suboption tune
[01:14:56] encx264: min-keyint: 30, keyint: 300
[01:14:56] encx264: encoding at constant RF 27.000000
[01:14:56] encx264: unparsed options: vbv-maxrate=25000:tune=stillimage:level=4.0:ref=16:psy=0:direc
t=auto:merange=24:bframes=8:rc-lookahead=60:me=umh:b-adapt=2:analyse=all:subme=10:trellis=2:vbv-bufs
ize=31250
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0
Encoding: task 1 of 1, 0.00 %
here is my preset:

Code: Select all

{
  "PresetList": [
    {
      "AudioCopyMask": [
        "copy:aac",
        "copy:ac3",
        "copy:dtshd",
        "copy:dts",
        "copy:mp3",
        "copy:truehd",
        "copy:flac",
        "copy:eac3"
      ],
      "AudioEncoderFallback": "mp3",
      "AudioLanguageList": [],
      "AudioList": [
        {
          "AudioBitrate": 160,
          "AudioCompressionLevel": 0.0,
          "AudioDitherMethod": null,
          "AudioEncoder": "mp3",
          "AudioMixdown": "mono",
          "AudioNormalizeMixLevel": false,
          "AudioSamplerate": "22.05",
          "AudioTrackQualityEnable": true,
          "AudioTrackQuality": 9.0,
          "AudioTrackGainSlider": 0.0,
          "AudioTrackDRCSlider": 0.0
        }
      ],
      "AudioSecondaryEncoderMode": true,
      "AudioTrackSelectionBehavior": "first",
      "ChapterMarkers": true,
      "ChildrenArray": [],
      "Default": true,
      "FileFormat": "av_mkv",
      "Folder": false,
      "FolderOpen": false,
      "Mp4HttpOptimize": false,
      "Mp4iPodCompatible": false,
      "PictureAutoCrop": false,
      "PictureBottomCrop": 0,
      "PictureLeftCrop": 0,
      "PictureRightCrop": 0,
      "PictureTopCrop": 0,
      "PictureDARWidth": 0,
      "PictureDeblock": 4,
      "PictureDeinterlaceFilter": "off",
      "PictureCombDetectPreset": "off",
      "PictureCombDetectCustom": null,
      "PictureDeinterlacePreset": "",
      "PictureDeinterlaceCustom": "",
      "PictureDenoiseCustom": "",
      "PictureDenoiseFilter": "off",
      "PictureDenoisePreset": "light",
      "PictureDenoiseTune": "none",
      "PictureDetelecine": "off",
      "PictureDetelecineCustom": "",
      "PictureItuPAR": false,
      "PictureKeepRatio": true,
      "PictureLooseCrop": false,
      "PictureModulus": 2,
      "PicturePAR": "none",
      "PicturePARWidth": 0,
      "PicturePARHeight": 0,
      "PictureRotate": "0:0",
      "PictureWidth": 0,
      "PictureHeight": 0,
      "PictureForceHeight": 0,
      "PictureForceWidth": 0,
      "PresetDescription": null,
      "PresetName": "HD_mp3_mono",
      "Type": 1,
      "UsesPictureFilters": false,
      "UsesPictureSettings": 0,
      "SubtitleAddCC": false,
      "SubtitleAddForeignAudioSearch": false,
      "SubtitleAddForeignAudioSubtitle": false,
      "SubtitleBurnBehavior": "none",
      "SubtitleBurnBDSub": false,
      "SubtitleBurnDVDSub": false,
      "SubtitleLanguageList": [],
      "SubtitleTrackSelectionBehavior": "none",
      "VideoAvgBitrate": 0,
      "VideoColorMatrixCode": 0,
      "VideoEncoder": "x264",
      "VideoFramerate": "",
      "VideoFramerateMode": "vfr",
      "VideoGrayScale": false,
      "VideoHWDecode": false,
      "VideoScaler": "swscale",
      "VideoPreset": "veryslow",
      "VideoTune": "",
      "VideoProfile": "high",
      "VideoLevel": "4.0",
      "VideoOptionExtra": "tune=stillimage:no-psy",
      "VideoQualityType": 2,
      "VideoQualitySlider": 27.0,
      "VideoQSVDecode": true,
      "VideoQSVAsyncDepth": 4,
      "VideoTwoPass": true,
      "VideoTurboTwoPass": true,
      "x264Option": "",
      "x264UseAdvancedOptions": false
    }
  ],
  "VersionMajor": "11",
  "VersionMicro": "0",
  "VersionMinor": "0"
}
Update. Problem is with mp4 files with h264 codec inside. I tried some old mp4 with h263 codec - they work.

Another Update. I actually waited long enough for Handbrake to do something. Unfotunately after 4 hours of waiting it accomplished nothing.

Code: Select all

[18:20:14] sync: expecting 46907 video frames
[18:20:14] x264 options: Unknown suboption tune
[18:20:14] encx264: min-keyint: 30, keyint: 300
[18:20:14] encx264: encoding at constant RF 27.000000
[18:20:14] encx264: unparsed options: bframes=8:subme=10:tune=stillimage:rc-lookahead=60:level=4.0:p
sy=0:trellis=2:ref=9:b-adapt=2:direct=auto:merange=24:analyse=all:me=umh:vbv-bufsize=31250:vbv-maxra
te=25000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0
Encoding: task 1 of 1, 0.00 %[18:20:55] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 0.00 %[22:22:12] reader: done. 1 scr changes
Encoding: task 1 of 1, 0.00 %[22:22:18] work: average encoding speed for job is 0.000000 fps
[22:22:18] vfr: lost time: 0 (0 frames)
[22:22:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:22:18] aac-decoder done: 67338 frames, 0 decoder errors
[22:22:18] h264_qsv-decoder done: 0 frames, 0 decoder errors
[22:22:18] sync: got 0 frames, 46907 expected
[22:22:18] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[22:22:18] mux: track 1, 59858 frames, 7218469 bytes, 36.93 kbps, fifo 65536
[22:22:18] libhb: work result = 0

Encode done!

HandBrake has exited.
Post Reply