how to use a custom preset that i import from another system

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
sirius123
Posts: 5
Joined: Wed Mar 16, 2016 4:15 pm

how to use a custom preset that i import from another system

Post by sirius123 »

Description of problem or question:
hi, i just install HandBrakeCLI in a FreeNAS jail and i am trying to to a test export. So i tried this command:

Code: Select all

HandBrakeCLI --preset-import-file /media/noovo.json -Z "noovo" -i "/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi" -o /media/"Séries Télé RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.mkv"
then i get that with error 3

Code: Select all

root@handbrake:~ # HandBrakeCLI --preset-import-file /media/noovo.json -Z "noovo" -i "/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi" -o /media/"Séries Télé RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.mkv"
[15:25:52] hb_init: starting libhb thread
[15:25:52] thread 808c17900 started ("libhb")
[15:25:52] Preset noovo: Invalid video framerate (29,97)
HandBrake 1.3.3 (2021010700) - FreeBSD amd64 - https://handbrake.fr
4 CPUs detected
Opening /media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi...
[15:25:52] CPU: Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
[15:25:52]  - Intel microarchitecture Skylake
[15:25:52]  - logical processor count: 4
[15:25:52] Intel Quick Sync Video support: no
[15:25:52] hb_scan: path=/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi/) failed
[15:25:52] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.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
[15:25:52] dvd: not a dvd - trying as a stream/file instead
Scanning title 1 of 1, 0.00 %Input #0, avi, from '/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.4.1 (build 2178/release)
  Duration: 00:45:17.52, start: 0.000000, bitrate: 1078 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x368 [SAR 1:1 DAR 39:23], 950 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.98 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 114 kb/s
[15:25:52] scan: decoding previews for title 1
[15:25:52] scan: audio 0x1: mp3float, rate=48000Hz, bitrate=114584 Unknown (MP3) (2.0 ch) (114 kbps)
[15:25:52] scan: 10 previews, 624x368, 29.970 fps, autocrop = 0/0/0/0, aspect 1.70:1, PAR 1:1
[15:25:52] libhb: scan thread found 1 valid title(s)
+ Using preset: noovo
+ title 1:
  + stream: /media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi
  + duration: 00:45:17
  + size: 624x368, pixel aspect: 1/1, display aspect: 1.70, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:45:17
  + audio tracks:
    + 1, Unknown (MP3) (2.0 ch) (114 kbps) (iso639-2: und)
  + subtitle tracks:
[15:25:52] Starting work at: Sun Jan 31 15:25:52 2021

[15:25:52] 1 job(s) to process
[15:25:52] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": 0.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": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac",
            "copy:eac3"
        ],
        "FallbackEncoder": "ac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 45,
                    "Seconds": 17,
                    "Ticks": 244576800
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/media/Séries Télé RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "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": 1
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 368,
                    "width": 624
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x265",
        "Level": "5.1",
        "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1",
        "Preset": "slower",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[15:25:52] Starting Task: Encoding Pass
[15:25:52] Skipping crop/scale filter
[15:25:52] work: track 1, compression level not supported by codec
[15:25:52] job configuration:
[15:25:52]  * source
[15:25:52]    + /media/Séries Télé/RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.avi
[15:25:52]    + title 1, chapter(s) 1 to 1
[15:25:52]    + container: avi
[15:25:52]    + data rate: 1078 kbps
[15:25:52]  * destination
[15:25:52]    + /media/Séries Télé RPM plus (2015)/Season 06/RPM plus (2015) - S06E15 - RPM plus.mkv
[15:25:52]    + container: Matroska (libavformat)
[15:25:52]  * video track
[15:25:52]    + decoder: mpeg4
[15:25:52]      + bitrate 950 kbps
[15:25:52]    + filters
[15:25:52]      + 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)
[15:25:52]      + Decomb (mode=39)
[15:25:52]      + Framerate Shaper (mode=1)
[15:25:52]        + frame rate: 29.970 fps -> constant 29.970 fps
[15:25:52]    + Output geometry
[15:25:52]      + storage dimensions: 624 x 368
[15:25:52]      + pixel aspect ratio: 1 : 1
[15:25:52]      + display dimensions: 624 x 368
[15:25:52]    + encoder: H.265 (libx265)
[15:25:52]      + preset:  slower
[15:25:52]      + options: strong-intra-smoothing=0:rect=0:aq-mode=1
[15:25:52]      + profile: main
[15:25:52]      + level:   5.1
[15:25:52]      + quality: 22.00 (RF)
[15:25:52]      + color profile: 6-1-6
[15:25:52]  * audio track 1
[15:25:52]    + decoder: Unknown (MP3) (2.0 ch) (114 kbps) (track 1, id 0x1)
[15:25:52]      + bitrate: 114 kbps, samplerate: 48000 Hz
[15:25:52]    + mixdown: Stereo
[15:25:52]    + dither: triangular
[15:25:52]    + encoder: AAC (libavcodec)
[15:25:52]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:25:52] sync: expecting 81444 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Unk-OS][clang 10.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: Specifying a decoder level with constant rate factor rate-control requires
x265 [warning]: enabling VBV with vbv-bufsize=160000kb vbv-maxrate=160000kbps. VBV outputs are non-deterministic!
x265 [info]: Main profile, Level-5.1 (High tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 2 / wpp(6 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 3 inter / 3 intra
x265 [info]: ME / range / subpel / merge         : star / 57 / 4 / 4
x265 [info]: Keyframe min / max / scenecut / bias: 30 / 300 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 40 / 8 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 1
x265 [info]: References / ref-limit  cu / depth  : 5 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.0 / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init    : 160000 / 160000 / 0.900
x265 [info]: tools: limit-modes rd=6 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: limit-tu=4 signhide tmvp b-intra deblock sao
ERROR: avio_open2 failed, errno -2
[15:25:53] work: average encoding speed for job is 0.000000 fps
Encoding: task 1 of 1, 0.00 %[15:25:53] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:25:53] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[15:25:53] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[15:25:53] vfr: lost time: 0 (0 frames)
[15:25:53] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:25:53] mp3float-decoder done: 0 frames, 0 decoder errors
[15:25:53] mpeg4-decoder done: 0 frames, 0 decoder errors
[15:25:53] sync: got 0 frames, 81444 expected

encoded 0 frames
[15:25:53] Finished work at: Sun Jan 31 15:25:53 2021

[15:25:53] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.
root@handbrake:~ # HandBrakeCLI ... 2> my-activity-log.txt
[15:36:14] hb_init: starting libhb thread
[15:36:14] thread 808c17900 started ("libhb")
Missing input device. Run HandBrakeCLI --help for syntax.
HandBrake has exited.
root@handbrake:~ # HandBrakeCLI stdout
[15:36:31] hb_init: starting libhb thread
[15:36:31] thread 808c17900 started ("libhb")
Missing input device. Run HandBrakeCLI --help for syntax.

HandBrake has exited.
 

this is the file i'm trying to test on

Code: Select all

MediaInfo file

General
Complete name                            : Z:\Média\Séries Télé\RPM plus (2015)\Season 06\RPM plus (2015) - S06E15 - RPM plus.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 349 MiB
Duration                                 : 45 min 17 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 079 kb/s
Writing application                      : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library                          : VirtualDubMod build 2178/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings                          : BVOP1 / Custom Matrix
Format settings, BVOP                    : 1
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Custom
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 45 min 17 s
Bit rate                                 : 950 kb/s
Width                                    : 624 pixels
Height                                   : 368 pixels
Display aspect ratio                     : 5:3
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.138
Stream size                              : 308 MiB (88%)
Writing library                          : XviD 64

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Format settings                          : Joint stereo / MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 45 min 17 s
Bit rate mode                            : Variable
Bit rate                                 : 115 kb/s
Nominal bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Frame rate                               : 41.667 FPS (1152 SPF)
Compression mode                         : Lossy
Delay relative to video                  : 24 ms
Stream size                              : 37.1 MiB (11%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 24  ms (0.72 video frame)
Interleave, preload duration             : 563  ms
Writing library                          : LAME3.98r
Encoding settings                        : -m j -V 4 -q 2 -lowpass 17 --abr 128

i also notice that i got a preset error regarding framerate:

Preset noovo: Invalid video framerate (29,97)

HandBrake version (e.g., 1.0.0):
1.3.3 for freebsd



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



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

unable to get the log following the doc just above... i get that:

Image
Image
Post Reply