Moin zusammen
Ich muss jetzt noch mal einen Anlauf nehmen. Das ganz lässt mir keine Ruhe.
Problemstellung. Ich habe einen Server mit verdammt viel DVB Mitschnitten die grösstenteils schon bereinigt und als h264 im mkv container liegen. Das ist wenig platzsparend und soll alles in h265 konvertiert werden. Das alles mit GUI auf dem Mac via Netzwerk zu machen ist keine Option da der Server unten ne alte aber recht fette Karte (NVidia HP 2000) drin hat und das herlich allein ohne machen können sollte.
Endziel: Ein Script der einen beliebeigen Ordner durchforstete nach Material das nich tin h265 codiert ist. Einen gleichlautenden Ordnerpfad in einem Zielpfad anlegt und in dieses hinen encodiert.
Aktuelles Problem: handbrakeCLI meint ich hätte das Thema nvdec nicht beim compiling mit eingeschlossen.
Ich habe damit vor geraumer Zeit schon mal recht umfangreich herumgespielt und bin nicht auf nen grünen Zeig gekommen. Mag bitte wer so nett sein und mich durch dieses Tal führen bitte. Ich wills verstehen, laufe aber wie in einem Irrgarten permanent von einer unmöglichen Abhängigikeit in die nächste.
NACHTRAG: Vebaut ist eine HP P2000 Quadro NVidia. Die läuft soweit auch. Zumindest mit dem auch auf dieser Maschine instalierten Plex Server. Ich kann es allein in der Serverlast sehen das er die Karte benutzt statt der CPUs
HandBrakeCLI -e nvenc_h265 --multi-pass -T -q 22 —vfr --enable-hw-decoding nvdec --keep-display-aspect -f av_mkv -i test_h264.mkv -o test_h265.mkv
[17:28:19] Compile-time hardening features are enabled
[17:28:19] nvenc: version 13.0 is available
[17:28:19] nvdec: is not compiled into this build
[17:28:20] CUDA Version: 6.1
[17:28:20] qsv: not available on this system
[17:28:20] hb_init: starting libhb thread
[17:28:20] thread 7d50fbfff6c0 started ("libhb")
HandBrake 1.7.2 (2024040100) - Linux x86_64 - https://handbrake.fr
48 CPUs detected
Opening test_h264.mkv...
[17:28:20] CPU: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz
[17:28:20] - Intel microarchitecture Ivy Bridge
[17:28:20] - logical processor count: 48
[17:28:20] Intel Quick Sync Video support: no
[17:28:20] hb_scan: path=test_h264.mkv, title_index=1
Input #0, matroska,webm, from 'test_h264.mkv':
Metadata:
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2025-05-18T05:06:19.000000Z
Duration: 01:31:07.35, start: 0.000000, bitrate: 4723 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 1k tbn (default)
Metadata:
BPS : 4335833
DURATION : 01:31:06.394000000
NUMBER_OF_FRAMES: 327656
NUMBER_OF_BYTES : 2962671537
_STATISTICS_WRITING_APP: mkvmerge v92.0 ('Everglow') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2025-05-18 05:06:19
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Metadata:
BPS : 384014
DURATION : 01:31:07.352000000
NUMBER_OF_FRAMES: 170861
NUMBER_OF_BYTES : 262442496
_STATISTICS_WRITING_APP: mkvmerge v92.0 ('Everglow') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2025-05-18 05:06:19
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[17:28:20] scan: decoding previews for title 1
[17:28:20] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 English (AC3, 5.1 ch, 384 kbps)
Scanning title 1 of 1, preview 7, 70.00 %[17:28:20] using container PAR 1:1
[17:28:20] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:28:20] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
+ stream: test_h264.mkv
+ duration: 01:31:07
+ size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 59.940 fps
+ autocrop: 0/0/0/0
+ chapters:
+ 1: duration 01:31:07
+ audio tracks:
+ 1, English (AC3, 5.1 ch, 384 kbps) (iso639-2: eng), 48000Hz, 384000bps
+ subtitle tracks:
+ 1, English, Closed Caption [CC608]
[17:28:20] Starting work at: Mon Dec 15 17:28:20 2025
[17:28:20] 1 job(s) to process
[17:28:20] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 128,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "dpl2",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:eac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
"copy:flac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 1,
"Minutes": 31,
"Seconds": 7,
"Ticks": 492061680
},
"Name": ""
}
],
"ChapterMarkers": false,
"File": "test_h265.mkv",
"InlineParameterSets": false,
"Mux": "mkv",
"Options": {
"IpodAtom": false,
"Optimize": false
}
},
"Filters": {
"FilterList": [
{
"ID": 10,
"Settings": {
"mode": 0
}
},
{
"ID": 19,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 720,
"width": 1280
}
}
]
},
"Metadata": {},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"HWDecode": 0,
"Path": "test_h264.mkv",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ChromaLocation": 1,
"ColorInputFormat": 0,
"ColorMatrix": 1,
"ColorOutputFormat": 0,
"ColorPrimaries": 1,
"ColorRange": 1,
"ColorTransfer": 1,
"Encoder": "nvenc_h265",
"HardwareDecode": 4,
"MultiPass": false,
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": false
},
"Quality": 22.0,
"Turbo": false
}
}
[17:28:20] Starting Task: Encoding Pass
[17:28:20] work: skipping crop/scale filter
[17:28:20] job configuration:
[17:28:20] * source
[17:28:20] + test_h264.mkv
[17:28:20] + title 1, chapter(s) 1 to 1
[17:28:20] + container: matroska,webm
[17:28:20] + data rate: 4723 kbps
[17:28:20] * destination
[17:28:20] + test_h265.mkv
[17:28:20] + container: Matroska (libavformat)
[17:28:20] * video track
[17:28:20] + decoder: h264 8-bit (yuv420p)
[17:28:20] + filter
[17:28:20] + Framerate Shaper (mode=0)
[17:28:20] + frame rate: same as source (around 59.940 fps)
[17:28:20] + Output geometry
[17:28:20] + storage dimensions: 1280 x 720
[17:28:20] + pixel aspect ratio: 1 : 1
[17:28:20] + display dimensions: 1280 x 720
[17:28:20] + encoder: H.265 (NVEnc)
[17:28:20] + quality: 22.00 (CQ)
[17:28:20] + color profile: 1-1-1
[17:28:20] + chroma location: left
[17:28:20] * audio track 1
[17:28:20] + decoder: English (AC3, 5.1 ch, 384 kbps) (track 1, id 0x1)
[17:28:20] + bitrate: 384 kbps, samplerate: 48000 Hz
[17:28:20] + mixdown: Dolby Pro Logic II
[17:28:20] + encoder: AAC (libavcodec)
[17:28:20] + bitrate: 128 kbps, samplerate: 48000 Hz
[17:28:20] sync: expecting 327713 video frames
[17:28:20] encavcodecInit: H.265 (Nvidia NVENC)
[17:28:20] encavcodec: encoding at rc=vbr, 22.00
[17:28:20] encavcodec: encoding with stored aspect 1/1
[hevc_nvenc @ 0x7d50ed71b380] OpenEncodeSessionEx failed: unsupported device (2): (no details)
Encoding: task 1 of 1, 0.00 %[hevc_nvenc @ 0x7d50ed71b380] No capable devices found
[17:28:21] encavcodecInit: avcodec_open failed
ERROR: Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[17:28:21] vfr: 0 frames output, 0 dropped
[17:28:21] vfr: lost time: 0 (0 frames)
[17:28:21] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:28:21] ac3-decoder done: 0 frames, 0 decoder errors
[17:28:21] h264-decoder done: 0 frames, 0 decoder errors
[17:28:21] sync: got 0 frames, 327713 expected
[17:28:21] Finished work at: Mon Dec 15 17:28:21 2025
[17:28:21] libhb: work result = 3
Encode failed (error 3).
HandBrake has exited.