Error 3 with my options for Tdarr

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
DesertCookie
Posts: 1
Joined: Tue Jan 19, 2021 9:49 am

Error 3 with my options for Tdarr

Post by DesertCookie »

I am trying to get Tdarr up and running. I want it to convert media the following way:
- container: MKV
- codec: x265 10bit
- encoding settings: medium, crf 18
- visual enhancements: nlmeans (ultralight), lasharp (ultralight)
- audio: aac (any way to add presets for 7.1, 5.1, etc.?)
- audio languages: ger, eng
- subtitles: srt
- subtitle languages: ger, eng

Here's are the relevant options I tried in Windows 10 with HBCLI 1.3.3 as Tdarr aborts the encode without a visible error or log:

Code: Select all

--encoder "x265_10bit" --encoder-preset "Medium" --cfr -q 18.0 --nlmeans "ultralight" --lapsharp "ultralight" --audio-lang-list "ger,eng" --aencoder "copy:aac" --audio-fallback "ca_aac" --subtitle-lang-list "ger,eng"
That's what's output in CMD:

Code: Select all

[22:07:14] Compile-time hardening features are enabled
[22:07:16] Nvenc version 11.0

[22:07:16] hb_init: starting libhb thread
[22:07:16] thread 1 started ("libhb")
HandBrake 1.3.3 (2020061300) - MinGW x86_64 - https://handbrake.fr
24 CPUs detected
Opening C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4...
[22:07:16] CPU: AMD Ryzen 9 3900X 12-Core Processor
[22:07:16]  - logical processor count: 24
[22:07:16] Intel Quick Sync Video support: no
[22:07:16] hb_scan: path=C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4
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
src/libbluray/bluray.c:2585: nav_get_title_list(C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4\) failed
[22:07:16] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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.
Scanning title 1 of 1, 0.00 %libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:07:16] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
Scanning title 1 of 1, 0.00 %20.100
  Duration: 00:19:53.34, start: 0.000000, bitrate: 1465 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1330 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[22:07:17] scan: decoding previews for title 1
Scanning title 1 of 1, preview 1, 0.00 %[22:07:17] scan: audio 0x1: aac, rate=44100Hz, bitrate=128000 Unknown (AAC LC) (2.0 ch) (128 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[22:07:19] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
Scanning title 1 of 1, preview 10, 100.00 %[22:07:19] scan: supported video decoders: avcodec qsv
[22:07:19] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4
  + duration: 00:19:53
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:19:53
  + audio tracks:
    + 1, Unknown (AAC LC) (2.0 ch) (128 kbps) (iso639-2: und)
  + subtitle tracks:
[22:07:19] Starting work at: Wed Jan 13 22:07:19 2021

[22:07:19] 1 job(s) to process
[22:07:19] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 19,
                    "Seconds": 53,
                    "Ticks": 107400960
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "C:\\Users\\Ruben\\Downloads\\Videos\\01 Test.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 9,
                "Settings": {
                    "cb-frame-count": 2,
                    "cb-origin-tune": 1.0,
                    "cb-patch-size": 7,
                    "cb-prefilter": 0,
                    "cb-range": 3,
                    "cb-strength": 6.0,
                    "y-frame-count": 2,
                    "y-origin-tune": 1.0,
                    "y-patch-size": 7,
                    "y-prefilter": 0,
                    "y-range": 3,
                    "y-strength": 6.0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "cb-kernel": "isolap",
                    "cb-strength": 0.20000000000000001,
                    "y-kernel": "isolap",
                    "y-strength": 0.20000000000000001
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "C:\\Users\\Ruben\\Downloads\\Videos\\A Scammer Fears for His Life   The Other Line Chapter 2.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x265_10bit",
        "Preset": "Medium",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 18.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[22:07:19] Starting Task: Encoding Pass
[22:07:19] Skipping vfr filter
[22:07:19] Skipping crop/scale filter
[22:07:19] NLMeans using SSE2 optimizations
[22:07:19] NLMeans using 18 threads
[22:07:19] MTFrame thread started for segment 0
[22:07:19] MTFrame thread started for segment 1
[22:07:19] MTFrame thread started for segment 2
[22:07:19] job configuration:
[22:07:19] MTFrame thread started for segment 5
[22:07:19] MTFrame thread started for segment 4
[22:07:19] MTFrame thread started for segment 3
[22:07:19]  * source
[22:07:19] MTFrame thread started for segment 10
[22:07:19] MTFrame thread started for segment 7
[22:07:19] MTFrame thread started for segment 8
[22:07:19] MTFrame thread started for segment 9
[22:07:19] MTFrame thread started for segment 6
[22:07:19]    + C:\Users\Ruben\Downloads\Videos\A Scammer Fears for His Life   The Other Line Chapter 2.mp4
[22:07:19] MTFrame thread started for segment 11
[22:07:19] MTFrame thread started for segment 12
[22:07:19] MTFrame thread started for segment 13
[22:07:19] MTFrame thread started for segment 14
[22:07:19] MTFrame thread started for segment 15
[22:07:19] MTFrame thread started for segment 16
[22:07:19]    + title 1, chapter(s) 1 to 1
[22:07:19] MTFrame thread started for segment 17
[22:07:19] MTFrame thread started for segment 18
[22:07:19] MTFrame thread started for segment 19
[22:07:19] MTFrame thread started for segment 20
[22:07:19] MTFrame thread started for segment 21
[22:07:19] MTFrame thread started for segment 22
[22:07:19] MTFrame thread started for segment 23
[22:07:19]    + container: mov,mp4,m4a,3gp,3g2,mj2
[22:07:20]    + data rate: 1465 kbps
[22:07:20]  * destination
[22:07:20]    + C:\Users\Ruben\Downloads\Videos\01 Test.mkv
[22:07:20]    + container: Matroska (libavformat)
[22:07:20]  * video track
[22:07:20]    + decoder: h264
[22:07:20]      + bitrate 1330 kbps
[22:07:20]    + filters
[22:07:20]      + Denoise (nlmeans) (y-strength=6:y-origin-tune=1:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=6:cb-origin-tune=1:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter=0)
[22:07:20]      + Sharpen (lapsharp) (y-strength=0.2:y-kernel=isolap:cb-strength=0.2:cb-kernel=isolap)
[22:07:20]    + Output geometry
[22:07:20]      + storage dimensions: 1920 x 1080
[22:07:20]      + pixel aspect ratio: 1 : 1
[22:07:20]      + display dimensions: 1920 x 1080
[22:07:20]    + encoder: H.265 10-bit (libx265)
[22:07:20]      + preset:  Medium
[22:07:20]      + quality: 18.00 (RF)
[22:07:20]      + color profile: 1-1-1
[22:07:20] sync: expecting 28611 video frames
ERROR: encx265: x265_param_default_preset failed. Preset (Medium) Tune ((null))
ERROR: Failure to initialise thread 'H.265/HEVC encoder (libx265)'
[22:07:20] h264-decoder done: 0 frames, 0 decoder errors
[22:07:20] sync: got 0 frames, 28611 expected
[22:07:20] Finished work at: Wed Jan 13 22:07:20 2021

[22:07:20] libhb: work result = 3
Encoding: task 1 of 1, 0.00 %
Encode failed (error 3).

HandBrake has exited.
janeking12
New User
Posts: 2
Joined: Fri Jan 22, 2021 2:37 pm

Re: Error 3 with my options for Tdarr

Post by janeking12 »

"Is there a way to get Tdarr transcoding with the help of the GPU instead of the CPU like the Handbrake app with Nvidia NVENC access that's in the app store?
I've used that app on my unRAID server for a while and works fine, but want the automitation that come's with Tdarr. I've set up the Tdarr container with the same settings as in the Handbrake container regarding NVENC settings, and also exported the preset I use in Handbrake so Tdarr can use the same Handbrake settings, but can't get the hardware transcoding to work. It still transcodes with the help of the CPU only."
Post Reply