Have Intel Celeron J4005 CPU that supports HEVC 10-bit encode: https://www.cpu-monkey.com/en/cpu-intel ... _j4005-840
qsv_h265_10bit encode doesn't work with HandBrake latest (1.3.3 and git HEAD) / Fedora 32, activity log below.
qsv_h265_10bit encode works with HandBrake 1.3.3 / Windows 10, activity log below.
On Linux, use pre-compiled and self-compiled Intel Media SDK 20.1.1 w/ Intel Compute Runtime 20.10.16087, compiling related dependencies. Also tried Media SDK 20.2.1 w/ Intel Compute Runtime 20.25.17111.
Thought these reports might be helpful however they're closed:
https://github.com/HandBrake/HandBrake/issues/2858
https://github.com/jlesage/docker-handbrake/issues/118
Can't compile Handbrake 1.2.2 because of this issue:
https://github.com/HandBrake/HandBrake/issues/2226
Any help is appreciated, cheers and thank you very much!
Steps to reproduce the problem (If Applicable):
qsv_h265_10bit encode
HandBrake version (e.g., 1.0.0):
Handbrake 1.3.3 and git HEAD
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Fedora 32, Windows 10
Linux HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
[14:17:04] gtkgui: HandBrake 20200926151225-32474ffae-master (2020092801) - Linux x86_64 - https://handbrake.fr
[14:17:04] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[14:17:04] hb_init: starting libhb thread
[14:17:04] hb_init: starting libhb thread
[14:17:04] hb_init: starting libhb thread
[14:17:11] CPU: Intel(R) Celeron(R) J4005 CPU @ 2.00GHz
[14:17:11] - logical processor count: 2
[14:17:11] Intel Quick Sync Video support: yes
[14:17:11] - Intel Media SDK hardware: API 1.33 (minimum: 1.3)
[14:17:11] - H.264 encoder: yes
[14:17:11] - preferred implementation: hardware (any) via ANY
[14:17:11] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:17:11] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:17:11] - preferred implementation: hardware (any) via ANY
[14:17:11] - capabilities (hardware): bpyramid icq vsinfo opt1
[14:17:11] hb_scan: path=/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4
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(/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4/) failed
[14:17:11] 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
[14:17:11] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2008-12-01T05:16:01.000000Z
Duration: 00:02:03.24, start: 0.000000, bitrate: 8236 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 7979 kb/s, 23.98 fps, 23.98 tbr, 2500k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2008-12-01T04:50:08.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 258 kb/s (default)
Metadata:
creation_time : 2008-12-01T05:16:04.000000Z
handler_name : GPAC ISO Audio Handler
[14:17:12] scan: decoding previews for title 1
[14:17:12] scan: audio 0x1: aac, rate=48000Hz, bitrate=258325 Unknown (AAC LC) (5.1 ch) (258 kbps)
[14:17:13] scan: 10 previews, 1920x816, 23.976 fps, autocrop = 0/0/0/0, aspect 2.35:1, PAR 1:1
[14:17:13] scan: supported video decoders: avcodec qsv
[14:17:13] libhb: scan thread found 1 valid title(s)
[14:18:02] gtkgui: Modified Preset: /General/Fast 1080p30
[14:18:02] Starting work at: Sat Oct 3 14:18:02 2020
[14:18:02] 1 job(s) to process
[14:18:02] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "copy:aac",
"Gain": 0.0,
"Mixdown": "none",
"NormalizeMixLevel": false,
"PresetEncoder": "fdk_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "fdk_aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 2,
"Seconds": 3,
"Ticks": 11091750
},
"Name": ""
}
],
"ChapterMarkers": false,
"File": "/home/LINUX_OS/I Am Legend - Trailer.m4v",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": true
},
"Mux": "m4v"
},
"Filters": {
"FilterList": [
{
"ID": 6,
"Settings": {
"mode": 1,
"rate": "27000000/1126125"
}
},
{
"ID": 12,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 816,
"width": 1920
}
}
]
},
"Metadata": {
"Name": "I Am Legend - Trailer"
},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/run/media/LINUX_OS/Files/I Am Legend - Trailer.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": 0,
"ColorTransfer": 1,
"Encoder": "qsv_h265_10bit",
"Level": "auto",
"Options": "",
"Preset": "quality",
"Profile": "auto",
"QSV": {
"AsyncDepth": 6,
"Decode": false
},
"Quality": 16.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[14:18:02] CPU: Intel(R) Celeron(R) J4005 CPU @ 2.00GHz
[14:18:02] - logical processor count: 2
[14:18:02] Intel Quick Sync Video support: yes
[14:18:02] - Intel Media SDK hardware: API 1.33 (minimum: 1.3)
[14:18:02] - H.264 encoder: yes
[14:18:02] - preferred implementation: hardware (any) via ANY
[14:18:02] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:18:02] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:18:02] - preferred implementation: hardware (any) via ANY
[14:18:02] - capabilities (hardware): bpyramid icq vsinfo opt1
[14:18:02] hb_scan: path=/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4
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(/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4/) failed
[14:18:02] 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
[14:18:02] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2008-12-01T05:16:01.000000Z
Duration: 00:02:03.24, start: 0.000000, bitrate: 8236 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 7979 kb/s, 23.98 fps, 23.98 tbr, 2500k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2008-12-01T04:50:08.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 258 kb/s (default)
Metadata:
creation_time : 2008-12-01T05:16:04.000000Z
handler_name : GPAC ISO Audio Handler
[14:18:02] scan: decoding previews for title 1
[14:18:02] scan: audio 0x1: aac, rate=48000Hz, bitrate=258325 Unknown (AAC LC) (5.1 ch) (258 kbps)
[14:18:03] scan: 10 previews, 1920x816, 23.976 fps, autocrop = 0/0/0/0, aspect 2.35:1, PAR 1:1
[14:18:03] scan: supported video decoders: avcodec qsv
[14:18:03] libhb: scan thread found 1 valid title(s)
[14:18:03] Starting Task: Encoding Pass
[14:18:03] Skipping crop/scale filter
[14:18:03] job configuration:
[14:18:03] * source
[14:18:03] + /run/media/LINUX_OS/Files/I Am Legend - Trailer.mp4
[14:18:03] + title 1, chapter(s) 1 to 1
[14:18:03] + container: mov,mp4,m4a,3gp,3g2,mj2
[14:18:03] + data rate: 8236 kbps
[14:18:03] * destination
[14:18:03] + /home/LINUX_OS/I Am Legend - Trailer.m4v
[14:18:03] + container: MPEG-4 (libavformat)
[14:18:03] + optimized for HTTP streaming (fast start)
[14:18:03] * video track
[14:18:03] + decoder: h264
[14:18:03] + bitrate 7979 kbps
[14:18:03] + filter
[14:18:03] + Framerate Shaper (mode=1:rate=27000000/1126125)
[14:18:03] + frame rate: 23.976 fps -> constant 23.976 fps
[14:18:03] + Output geometry
[14:18:03] + storage dimensions: 1920 x 816
[14:18:03] + pixel aspect ratio: 1 : 1
[14:18:03] + display dimensions: 1920 x 816
[14:18:03] + encoder: H.265 10-bit (Intel Media SDK)
[14:18:03] + preset: quality
[14:18:03] + profile: auto
[14:18:03] + level: auto
[14:18:03] + quality: 16.00 (ICQ)
[14:18:03] + color profile: 1-1-1
[14:18:03] * audio track 1
[14:18:03] + decoder: Unknown (AAC LC) (5.1 ch) (258 kbps) (track 1, id 0x1)
[14:18:03] + bitrate: 258 kbps, samplerate: 48000 Hz
[14:18:03] + AAC Passthru
[14:18:03] sync: expecting 2954 video frames
[14:18:03] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
[14:18:03] encqsvInit: MFXVideoENCODE_Init failed (-3)
[14:18:03] Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
[14:18:03] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[14:18:03] vfr: lost time: 0 (0 frames)
[14:18:03] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:18:03] aac-decoder done: 0 frames, 0 decoder errors
[14:18:03] h264-decoder done: 0 frames, 0 decoder errors
[14:18:03] sync: got 0 frames, 2954 expected
[14:18:03] Finished work at: Sat Oct 3 14:18:03 2020
[14:18:03] libhb: work result = 3
Code: Select all
HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Celeron(R) J4005 CPU @ 2.00GHz
Ram: 15610 MB,
GPU Information:
Intel(R) UHD Graphics 600 - 26.20.100.8141
Screen: 1920x1080
Temp Dir: C:\Users\WINDOWS_OS\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\WINDOWS_OS\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[01:53:01] base preset: Fast 1080p30 (Modified)
[13:53:01] hb_init: starting libhb thread
[13:53:01] Starting work at: Sat Oct 03 13:53:01 2020
[13:53:01] 1 job(s) to process
[13:53:01] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0.0,
"Encoder": "copy",
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\Users\\WINDOWS_OS\\Videos\\I Am Legend - Trailer-1.m4v",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": true
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 12,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "816",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "G:\\I Am Legend - Trailer.mp4"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "qsv_h265_10bit",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "quality",
"Profile": "auto",
"Quality": 16.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[13:53:01] CPU: Intel(R) Celeron(R) J4005 CPU @ 2.00GHz
[13:53:01] - logical processor count: 2
[13:53:01] Intel Quick Sync Video support: yes
[13:53:01] - Intel Media SDK hardware: API 1.32 (minimum: 1.3)
[13:53:01] - H.264 encoder: yes
[13:53:01] - preferred implementation: hardware (any) via D3D11
[13:53:01] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[13:53:01] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[13:53:01] - preferred implementation: hardware (any) via D3D11
[13:53:01] - capabilities (hardware): bpyramid icq vsinfo opt1
[13:53:01] hb_scan: path=G:\I Am Legend - Trailer.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image G:\I Am Legend - Trailer.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(G:\I Am Legend - Trailer.mp4\) failed
[13:53:01] 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
[13:53:01] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\I Am Legend - Trailer.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2008-12-01T05:16:01.000000Z
Duration: 00:02:03.24, start: 0.000000, bitrate: 8236 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 7979 kb/s, 23.98 fps, 23.98 tbr, 2500k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2008-12-01T04:50:08.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 258 kb/s (default)
Metadata:
creation_time : 2008-12-01T05:16:04.000000Z
handler_name : GPAC ISO Audio Handler
[13:53:01] scan: decoding previews for title 1
[13:53:01] scan: audio 0x1: aac, rate=48000Hz, bitrate=258325 Unknown (AAC LC) (5.1 ch) (258 kbps)
[13:53:02] scan: 10 previews, 1920x816, 23.976 fps, autocrop = 0/0/0/0, aspect 2.35:1, PAR 1:1
[13:53:02] scan: supported video decoders: avcodec qsv
[13:53:02] libhb: scan thread found 1 valid title(s)
[13:53:02] Starting Task: Encoding Pass
[13:53:02] Skipping crop/scale filter
[13:53:02] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[13:53:02] Auto Passthru: fallback is AC3
[13:53:02] Auto Passthru: using AAC Passthru for track 1
[13:53:02] work: only 1 chapter, disabling chapter markers
[13:53:02] job configuration:
[13:53:02] * source
[13:53:02] + G:\I Am Legend - Trailer.mp4
[13:53:02] + title 1, chapter(s) 1 to 1
[13:53:02] + container: mov,mp4,m4a,3gp,3g2,mj2
[13:53:02] + data rate: 8236 kbps
[13:53:02] * destination
[13:53:02] + C:\Users\WINDOWS_OS\Videos\I Am Legend - Trailer-1.m4v
[13:53:02] + container: MPEG-4 (libavformat)
[13:53:02] + optimized for HTTP streaming (fast start)
[13:53:02] * video track
[13:53:02] + decoder: h264
[13:53:02] + bitrate 7979 kbps
[13:53:02] + filter
[13:53:02] + Framerate Shaper (mode=1)
[13:53:02] + frame rate: 23.976 fps -> constant 23.976 fps
[13:53:02] + Output geometry
[13:53:02] + storage dimensions: 1920 x 816
[13:53:02] + pixel aspect ratio: 1 : 1
[13:53:02] + display dimensions: 1920 x 816
[13:53:02] + encoder: H.265 10-bit (Intel Media SDK)
[13:53:02] + preset: quality
[13:53:02] + profile: auto
[13:53:02] + level: auto
[13:53:02] + quality: 16.00 (ICQ)
[13:53:02] + color profile: 1-1-1
[13:53:02] * audio track 1
[13:53:02] + decoder: Unknown (AAC LC) (5.1 ch) (258 kbps) (track 1, id 0x1)
[13:53:02] + bitrate: 258 kbps, samplerate: 48000 Hz
[13:53:02] + AAC Passthru
[13:53:02] sync: expecting 2954 video frames
[13:53:02] hb_d3d11va_device_check: QSV adapter with id 0 has been found
[13:53:03] encqsvInit: using encode-only path
[13:53:03] encqsvInit: H.265/HEVC Main 10 profile @ level (null)
[13:53:03] encqsvInit: TargetUsage 1 AsyncDepth 5
[13:53:03] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 6
[13:53:03] encqsvInit: BFramesMax 2 BRefType off
[13:53:03] encqsvInit: RateControlMethod ICQ ICQQuality 16
[13:53:03] sync: first pts audio 0x1 is 0
[13:53:03] sync: first pts video is 3753
[13:53:03] sync: "Chapter 1" (1) at frame 1 time 3753
[13:53:03] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.32
[13:55:19] reader: done. 1 scr changes
[13:55:23] work: average encoding speed for job is 21.249781 fps
[13:55:23] vfr: 2953 frames output, 0 dropped and 0 duped for CFR/PFR
[13:55:23] vfr: lost time: 0 (0 frames)
[13:55:23] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:55:23] aac-decoder done: 5777 frames, 0 decoder errors
[13:55:23] h264-decoder done: 2953 frames, 0 decoder errors
[13:55:23] sync: got 2953 frames, 2954 expected
[13:55:23] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[13:55:23] mux: track 0, 2953 frames, 142996037 bytes, 9278.69 kbps, fifo 1024
[13:55:23] mux: track 1, 5777 frames, 3979587 bytes, 258.23 kbps, fifo 2048
[13:55:23] Finished work at: Sat Oct 03 13:55:23 2020
[13:55:23] libhb: work result = 0
# Encode Completed ...