jlesage / docker-handbrake

Docker container for HandBrake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get QSV running (with H.265)

facetto opened this issue · comments

Hello, my name is Christoph and I recently upgraded from a Synology DS218 to a DS220+ with which I would like to run Handbrake. Although I am a total noob in Linux I managed to install the handbrake Docker and am able to let handrake automatically convert videos without QSV - pretty proud on that ;-)
Now I would like to get QSV running (DS220+ is using a Celeron J4025). When selecting such a preset in the docker container, after I add a new video into the watch-folder handbrake will briefly pop up the conversion window but then shut it again. Is the reason for that that I didnt install a i915 drive to my Synology NAS? Unfortunately I have no clue where to find and how to install this driver and somehow I dont find useful info in the web.
Does somebody know where I can find an idiot-proof manual for that? Or how to find out more about the root cause?

In the end I want to use QSV for H.265 conversions (should be supported by Celeron J4025)

Thanks and Best regards, Christoph

Hi, is there anybody able to help me?
Meanwhile I found and tried the following via SSH:

modprobe i915

apparently the i915 driver is available and running in my synology. the /dev/dri folder is existing. However still handbrake says what I copied below in the logfile, I have no clue why it still says "[21:33:18] Intel Quick Sync Video support: no" and am very happy about every hint :-)

Thanks and BR, Christoph

`
Handbrake Version: 1.5.1 (2022062800)
[21:33:18] gtkgui: Preset: /General/Fast 1080p30
[21:33:18] Starting work at: Tue Sep 6 21:33:18 2022

[21:33:18] 1 job(s) to process
[21:33:18] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "fdk_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "fdk_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "fdk_aac"
},
"Destination": {
"AlignAVStart": true,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 0,
"Seconds": 31,
"Ticks": 2799360
},
"Name": ""
}
],
"ChapterMarkers": false,
"File": "/output/2017-03-05_(MOV_0066) - QSV11 (2).m4v",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "m4v"
},
"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": 2,
"rate": "27000000/900000"
}
},
{
"ID": 13,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 1080,
"width": 1920
}
}
]
},
"Metadata": {
"Name": "2017-03-05_(MOV_0066) - QSV11"
},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/watch/2017-03-05_(MOV_0066) - QSV11.mp4",
"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": 0,
"ColorTransfer": 1,
"Encoder": "x264",
"Level": "4.0",
"Options": "",
"Preset": "fast",
"Profile": "main",
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": false
},
"Quality": 22.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[21:33:18] CPU: Intel(R) Celeron(R) J4025 CPU @ 2.00GHz
[21:33:18] - logical processor count: 2
[21:33:18] Intel Quick Sync Video support: no
[21:33:18] hb_scan: path=/watch/2017-03-05_(MOV_0066) - QSV11.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /watch/2017-03-05_(MOV_0066) - QSV11.mp4
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/watch/2017-03-05_(MOV_0066) - QSV11.mp4/) failed
[21:33:18] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:33:18] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/watch/2017-03-05_(MOV_0066) - QSV11.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2017-03-05T15:41:45.000000Z
com.android.version: 6.0.1
Duration: 00:00:31.10, start: 0.000000, bitrate: 17071 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17494 kb/s, SAR 1:1 DAR 16:9, 29.88 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2017-03-05T15:41:45.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 155 kb/s (default)
Metadata:
creation_time : 2017-03-05T15:41:45.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
[21:33:18] scan: decoding previews for title 1
[21:33:18] scan: audio 0x1: aac, rate=48000Hz, bitrate=155565 English (AAC LC) (2.0 ch) (155 kbps)
[21:33:19] scan: 10 previews, 1920x1080, 29.876 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[21:33:19] libhb: scan thread found 1 valid title(s)
[21:33:19] Starting Task: Encoding Pass
[21:33:19] Skipping crop/scale filter
[21:33:19] job configuration:
[21:33:19] * source
[21:33:19] + /watch/2017-03-05_(MOV_0066) - QSV11.mp4
[21:33:19] + title 1, chapter(s) 1 to 1
[21:33:19] + container: mov,mp4,m4a,3gp,3g2,mj2
[21:33:19] + data rate: 17071 kbps
[21:33:19] * destination
[21:33:19] + /output/2017-03-05_(MOV_0066) - QSV11 (2).m4v
[21:33:19] + container: MPEG-4 (libavformat)
[21:33:19] + align initial A/V stream timestamps
[21:33:19] * video track
[21:33:19] + decoder: h264 8-bit (yuv420p)
[21:33:19] + bitrate 17494 kbps
[21:33:19] + filters
[21:33:19] + 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)
[21:33:19] + Decomb (mode=39)
[21:33:19] + Framerate Shaper (mode=2:rate=27000000/900000)
[21:33:19] + frame rate: 29.876 fps -> peak rate limited to 30.000 fps
[21:33:19] + Output geometry
[21:33:19] + storage dimensions: 1920 x 1080
[21:33:19] + pixel aspect ratio: 1 : 1
[21:33:19] + display dimensions: 1920 x 1080
[21:33:19] + encoder: H.264 (libx264)
[21:33:19] + preset: fast
[21:33:19] + profile: main
[21:33:19] + level: 4.0
[21:33:19] + quality: 22.00 (RF)
[21:33:19] + color profile: 1-1-1
[21:33:19] + chroma location: left
[21:33:19] * audio track 1
[21:33:19] + decoder: English (AAC LC) (2.0 ch) (155 kbps) (track 1, id 0x1)
[21:33:19] + bitrate: 155 kbps, samplerate: 48000 Hz
[21:33:19] + mixdown: Stereo
[21:33:19] + encoder: AAC (libfdk_aac)
[21:33:19] + bitrate: 160 kbps, samplerate: 48000 Hz
[21:33:19] sync: expecting 929 video frames
[21:33:19] encx264: min-keyint: 30, keyint: 300
[21:33:19] encx264: encoding at constant RF 22.000000
[21:33:19] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[21:33:19] sync: first pts video is 0
[21:33:19] sync: Chapter 1 at frame 1 time 0
[21:33:19] sync: first pts audio 0x1 is 0
[21:33:42] work: average encoding speed for job is 7.602170 fps
[21:33:42] comb detect: heavy 58 | light 88 | uncombed 2 | total 148
[21:33:42] decomb: deinterlaced 56 | blended 81 | unfiltered 2 | total 139
[21:33:42] vfr: 131 frames output, 0 dropped and 0 duped for CFR/PFR
[21:33:42] vfr: lost time: 0 (0 frames)
[21:33:42] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:33:42] aac-decoder done: 389 frames, 0 decoder errors
[21:33:42] h264-decoder done: 202 frames, 0 decoder errors
[21:33:42] sync: got 165 frames, 929 expected
[21:33:42] sync: framerate min 29.876 fps, max 29.876 fps, avg 29.876 fps
x264 [info]: frame I:2 Avg QP:20.19 size: 45170
x264 [info]: frame P:25 Avg QP:21.82 size: 23755
x264 [info]: frame B:62 Avg QP:22.28 size: 15718
x264 [info]: consecutive B-frames: 6.7% 0.0% 3.4% 89.9%
x264 [info]: mb I I16..4: 75.9% 0.0% 24.1%
x264 [info]: mb P I16..4: 26.7% 0.0% 3.3% P16..4: 45.8% 6.6% 5.7% 0.0% 0.0% skip:11.9%
x264 [info]: mb B I16..4: 20.9% 0.0% 0.0% B16..8: 29.6% 4.3% 0.0% direct:26.7% skip:18.5% L0:52.2% L1:44.0% BI: 3.8%
x264 [info]: coded y,uvDC,uvAC intra: 14.1% 41.0% 0.6% inter: 9.2% 52.6% 0.0%
x264 [info]: i16 v,h,dc,p: 43% 25% 21% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 46% 2% 2% 2% 4% 1% 3%
x264 [info]: i8c dc,h,v,p: 63% 16% 20% 2%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 67.7% 32.3%
x264 [info]: ref B L0: 83.0% 17.0%
x264 [info]: ref B L1: 93.8% 6.2%
x264 [info]: kb/s:4454.42
[21:33:43] mux: track 0, 88 frames, 1642475 bytes, 2393.67 kbps, fifo 128
[21:33:43] mux: track 1, 258 frames, 110409 bytes, 160.91 kbps, fifo 512
[21:33:43] Finished work at: Tue Sep 6 21:33:43 2022

[21:33:43] libhb: work result = 1
`

Finally I was able to activate QSV with H.265 as well. It was the famous lowpower=0 setting which for some reason I didnt do right although I dont understand what now I didnt differently...

BR, Christoph

I don't know this world.
I'm very outdated
How can I access that directory and mdify that value
I need light on this problem
Thank

Closing this issue.
@manelnieto, you can use Discussions if you still need help.