docker-handbrake
docker-handbrake copied to clipboard
[Bug] Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)
Current Behavior
Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK) help me, please.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- OS:pve 8.0.4, lxc ubuntu 22.04. Portainer 2.19.1, latest docker handbrake
- CPU:N4120
- GPU:UHD600
- Docker version: 24.0.5, build 24.0.5-0ubuntu1~22.04.1
Container creation
Portainer
Container log
[12:59:21] Starting Task: Encoding Pass
[12:59:21] Skipping vfr filter
[12:59:21] Skipping crop/scale filter
[12:59:21] job configuration:
[12:59:21] * source
[12:59:21] + /watch/input.mp4
[12:59:21] + title 1, chapter(s) 1 to 1
[12:59:21] + container: mov,mp4,m4a,3gp,3g2,mj2
[12:59:21] + data rate: 5243 kbps
[12:59:21] * destination
[12:59:21] + /output/.VYizyW/input.mp4
[12:59:21] + container: MPEG-4 (libavformat)
[12:59:21] + optimized for HTTP streaming (fast start)
[12:59:21] * video track
[12:59:21] + decoder: h264 8-bit (yuv420p)
[12:59:21] + bitrate 5103 kbps
[12:59:21] + filters
[12:59:21] + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[12:59:21] + Decomb (mode=39)
[12:59:21] + Format (format=nv12)
[12:59:21] + Output geometry
[12:59:21] + storage dimensions: 1920 x 1080
[12:59:21] + pixel aspect ratio: 1 : 1
[12:59:21] + display dimensions: 1920 x 1080
[12:59:21] + encoder: H.265 (Intel Media SDK)
[12:59:21] + preset: balanced
[12:59:21] + profile: auto
[12:59:21] + level: auto
[12:59:21] + quality: 29.00 (ICQ)
[12:59:21] + color profile: 1-1-1
[12:59:21] + chroma location: left
[12:59:21] * audio track 1
[12:59:21] + decoder: English (AAC LC) (2.0 ch) (128 kbps) (track 1, id 0x1)
[12:59:21] + bitrate: 128 kbps, samplerate: 48000 Hz
[12:59:21] + mixdown: Stereo
[12:59:21] + encoder: AAC (libfdk_aac)
[12:59:21] + bitrate: 128 kbps, samplerate: 48000 Hz
[12:59:21] sync: expecting 383323 video frames
[12:59:21] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
ERROR: encqsvInit: MFXVideoENCODE_Init failed (-3)
[12:59:21] encqsvInit: using encode-only (LowPower) path
[12:59:21] encqsvInit: H.265/HEVC (null) profile @ level (null)
[12:59:21] encqsvInit: TargetUsage 4 AsyncDepth 6
[12:59:21] encqsvInit: GopRefDist 8 GopPicSize 32 NumRefFrame 4 IdrInterval 0
[12:59:21] encqsvInit: BFramesMax 7 BRefType pyramid
[12:59:21] encqsvInit: RateControlMethod ICQ ICQQuality 29
ERROR: Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
[12:59:21] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[12:59:21] aac-decoder done: 0 frames, 0 decoder errors
[12:59:21] h264-decoder done: 0 frames, 0 decoder errors
[12:59:21] sync: got 0 frames, 383323 expected
[12:59:21] Finished work at: Thu Oct 5 12:59:21 2023
[12:59:21] libhb: work result = 3
Encode failed (error 3).
HandBrake has exited.
Container inspect
[
{
"Id": "424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5",
"Created": "2023-10-05T12:55:51.205701185Z",
"Path": "/init",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 2195,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-10-05T12:57:33.178101854Z",
"FinishedAt": "2023-10-05T12:57:14.190985277Z"
},
"Image": "sha256:48eed0aa73b6be303891cc033a69f46ad2b180ae1f9108d59236b173487dfa28",
"ResolvConfPath": "/var/lib/docker/containers/424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5/hostname",
"HostsPath": "/var/lib/docker/containers/424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5/hosts",
"LogPath": "/var/lib/docker/containers/424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5/424d26d8d8d8a82e1d26e14a0eb520d5cf6e75bcedb221db47e08c29e57f5eb5-json.log",
"Name": "/handbrake",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "unconfined",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"HBconfig:/config",
"HBoutput:/output",
"HBtrash:/trash",
"HBwatch:/watch"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "host",
"PortBindings": {
"5800/tcp": [
{
"HostIp": "",
"HostPort": "5800"
}
],
"5900/tcp": [
{
"HostIp": "",
"HostPort": "5900"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": [
"AUDIT_WRITE",
"CHOWN",
"DAC_OVERRIDE",
"FOWNER",
"FSETID",
"KILL",
"MKNOD",
"NET_BIND_SERVICE",
"NET_RAW",
"SETFCAP",
"SETGID",
"SETPCAP",
"SETUID",
"SYS_CHROOT"
],
"CapDrop": [
"AUDIT_CONTROL",
"BLOCK_SUSPEND",
"DAC_READ_SEARCH",
"IPC_LOCK",
"IPC_OWNER",
"LEASE",
"LINUX_IMMUTABLE",
"MAC_ADMIN",
"MAC_OVERRIDE",
"NET_ADMIN",
"NET_BROADCAST",
"SYSLOG",
"SYS_ADMIN",
"SYS_BOOT",
"SYS_MODULE",
"SYS_NICE",
"SYS_PACCT",
"SYS_PTRACE",
"SYS_RAWIO",
"SYS_RESOURCE",
"SYS_TIME",
"SYS_TTY_CONFIG",
"WAKE_ALARM"
],
"CgroupnsMode": "private",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": true,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"label=disable"
],
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [
{
"PathOnHost": "/dev/dri/renderD128",
"PathInContainer": "/dev/dri/renderD128",
"CgroupPermissions": "rwm"
}
],
"DeviceCgroupRules": null,
"DeviceRequests": [],
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"Init": false
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/d8dcad730f9b4fb3eedb9965e1c75f0afc0b2a69a3eb084468d6f09c40a98f3a-init/diff:/var/lib/docker/overlay2/fbc31b4a1e49d20a0ae50ed534bc188c21f07ccd3280f76a749c81b6ad5a99ed/diff:/var/lib/docker/overlay2/29acf371c5b6ff207e370434d730ff60a320362ece03ae988130432fc11a32a2/diff:/var/lib/docker/overlay2/2cfde2305c4173cdbc28b9c1b5b6d7819588a01323e13030ed004dbe98e14887/diff:/var/lib/docker/overlay2/47c67e0b64e25877f5f5636aae3e134f3e7e2e85c1de18a1349a5e880b4b6528/diff:/var/lib/docker/overlay2/8cca070c7893a92bfe9db511e32fecdc911310ca6af24bbb23e74d77ca444318/diff:/var/lib/docker/overlay2/10fb84390f5c107eb00d843f675c2a63cc8670202c8a9ce06467fd185d8a9746/diff:/var/lib/docker/overlay2/af944daa16bdd8b7a8b9ed82b5923352f68e6e2df827b7a84f490ec115c954da/diff:/var/lib/docker/overlay2/2e006cfab8cec931986ba94830d6d4558cef3d3baf74713c0c6bc9ea2c5ad875/diff:/var/lib/docker/overlay2/7595708ff32dac4b512cbf7bab07748cf150905cdf232241bff2e5d491b4884d/diff:/var/lib/docker/overlay2/45beb3684db3df551ff7a9cac4bea84e178de7b7935554d73072217711c99285/diff:/var/lib/docker/overlay2/19f424d39739a633610edfe184c046e8363061421725bafb60533c0cf9aa2a90/diff:/var/lib/docker/overlay2/4ca4b74e5bc8477d4673cddc4ffdad62dcc4eb8a35bdb1bda19847c95f9b0114/diff:/var/lib/docker/overlay2/8ff566e16a21ac9e15fefa7786bc14023f760bc9b684a564b964fc05c4074a06/diff:/var/lib/docker/overlay2/6e67c693d34bb1f7bebc79eba8401941dd8f1fa5897f0066831ab268f58eaeaa/diff:/var/lib/docker/overlay2/c38dbb467b530350e69db7ba2c1e9fe605a6e0170a4024398ce84cef5cc974b4/diff:/var/lib/docker/overlay2/446aeb0c7471be0893ea3b508897167a416e22756ccaea5d20bacbe9408d33f9/diff:/var/lib/docker/overlay2/ea0075bb5c489042e1ced76b9384a92b9efbe5016f7759cdf971b8c213ab8233/diff:/var/lib/docker/overlay2/8dcac00844359002dfa1ed8ecb40d7eda0c959f0e0b53b3a528e66dcd9fe24f0/diff:/var/lib/docker/overlay2/a2b732917a589c53c9f30effe21168a4903be0d39f78b2667bdadc144998953f/diff:/var/lib/docker/overlay2/96bd1868889c21f1eeb4819981959eaabdea23afe450afc572425b5991b7999b/diff:/var/lib/docker/overlay2/7927b478a2b4f92efaefabce922cbb8ed24963206041f4ddda2aaf37afbc868f/diff:/var/lib/docker/overlay2/4a7b9a97086fb5696480cbfeeb0d7289d55dd196bc49343c7d714e74dfcd05b1/diff:/var/lib/docker/overlay2/f3a9685847823e14f565f7b805ce56f80e192657b7839de9ad71212cd74157bc/diff:/var/lib/docker/overlay2/e5be7111aa7fed5bd85219c77fda613acec2cfdf2dafcb840b0f60fb263dda30/diff:/var/lib/docker/overlay2/65c282cd0e72ef149376e112c8e91d4e3950cff1dd736cfaaf5f12630c553fd0/diff:/var/lib/docker/overlay2/982cb256e499da7ec29da0d535a3cc6e0c365366c09278cd357a4696a0dba863/diff:/var/lib/docker/overlay2/f6234e18ef9f44bf2b3d85de694a470bb2bf3e41866bef202cf55c4657f2063f/diff:/var/lib/docker/overlay2/ea5166d74ec88f57f4618aca213f9c711d6683620bf862697bb56b781335e7b2/diff:/var/lib/docker/overlay2/5df59737499177953ba964faf39803c779347f3ad29f161961f1fdead7450b55/diff:/var/lib/docker/overlay2/dba0d92541157770f69d6b346093bf585e837ad15c9139f619d60b631a2d35a4/diff:/var/lib/docker/overlay2/d3462bfc7b7fc46e8bdd7a28b05424be77048ccca1e60618b7f97c24563120f2/diff:/var/lib/docker/overlay2/7bdd372bd45fa86bf02c35f6345629b178e76ac21a29f144c2b65c236e7ec88e/diff:/var/lib/docker/overlay2/1ff4ca99d6963d3020713694d90509228c261371d78a6f1ce7b5f9e4e57d1d35/diff:/var/lib/docker/overlay2/338e9821a3226e9e32e0eb4aba2205c4c7d46d5cf7f9a56a375a88251e6eec73/diff",
"MergedDir": "/var/lib/docker/overlay2/d8dcad730f9b4fb3eedb9965e1c75f0afc0b2a69a3eb084468d6f09c40a98f3a/merged",
"UpperDir": "/var/lib/docker/overlay2/d8dcad730f9b4fb3eedb9965e1c75f0afc0b2a69a3eb084468d6f09c40a98f3a/diff",
"WorkDir": "/var/lib/docker/overlay2/d8dcad730f9b4fb3eedb9965e1c75f0afc0b2a69a3eb084468d6f09c40a98f3a/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "volume",
"Name": "HBtrash",
"Source": "/var/lib/docker/volumes/HBtrash/_data",
"Destination": "/trash",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "HBwatch",
"Source": "/var/lib/docker/volumes/HBwatch/_data",
"Destination": "/watch",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "115894042f987b6ddcebcbdf1a303ff0ce69a2441e6c73c7478a834337624da4",
"Source": "/var/lib/docker/volumes/115894042f987b6ddcebcbdf1a303ff0ce69a2441e6c73c7478a834337624da4/_data",
"Destination": "/storage",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "HBconfig",
"Source": "/var/lib/docker/volumes/HBconfig/_data",
"Destination": "/config",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "HBoutput",
"Source": "/var/lib/docker/volumes/HBoutput/_data",
"Destination": "/output",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "handbrake",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5800/tcp": {},
"5900/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/base/sbin:/opt/base/bin",
"ENV=/root/.docker_rc",
"SUP_GROUP_IDS=",
"UMASK=0022",
"LANG=en_US.UTF-8",
"TZ=Etc/UTC",
"KEEP_APP_RUNNING=0",
"APP_NICENESS=0",
"INSTALL_PACKAGES=",
"CONTAINER_DEBUG=0",
"DISPLAY_WIDTH=1920",
"DISPLAY_HEIGHT=1080",
"DARK_MODE=0",
"SECURE_CONNECTION=0",
"SECURE_CONNECTION_VNC_METHOD=SSL",
"SECURE_CONNECTION_CERTS_CHECK_INTERVAL=60",
"WEB_LISTENING_PORT=5800",
"VNC_LISTENING_PORT=5900",
"VNC_PASSWORD=",
"ENABLE_CJK_FONT=0",
"HANDBRAKE_DEBUG=0",
"HANDBRAKE_GUI=1",
"AUTOMATED_CONVERSION=1",
"AUTOMATED_CONVERSION_PRESET=General/111111",
"AUTOMATED_CONVERSION_FORMAT=mp4",
"AUTOMATED_CONVERSION_SOURCE_STABLE_TIME=5",
"AUTOMATED_CONVERSION_SOURCE_MIN_DURATION=10",
"AUTOMATED_CONVERSION_SOURCE_MAIN_TITLE_DETECTION=0",
"AUTOMATED_CONVERSION_KEEP_SOURCE=1",
"AUTOMATED_CONVERSION_OUTPUT_DIR=/output",
"AUTOMATED_CONVERSION_OUTPUT_SUBDIR=",
"AUTOMATED_CONVERSION_OVERWRITE_OUTPUT=0",
"AUTOMATED_CONVERSION_VIDEO_FILE_EXTENSIONS=",
"AUTOMATED_CONVERSION_NON_VIDEO_FILE_ACTION=ignore",
"AUTOMATED_CONVERSION_NON_VIDEO_FILE_EXTENSIONS=jpg jpeg bmp png gif txt nfo",
"AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS=5",
"AUTOMATED_CONVERSION_CHECK_INTERVAL=5",
"AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS=",
"AUTOMATED_CONVERSION_INSTALL_PKGS=",
"AUTOMATED_CONVERSION_NO_GUI_PROGRESS=0",
"AUTOMATED_CONVERSION_USE_TRASH=0",
"USER_ID=0",
"GROUP_ID=0"
],
"Cmd": [
"/init"
],
"Image": "jlesage/handbrake:latest",
"Volumes": {
"/config": {},
"/output": {},
"/storage": {},
"/trash": {},
"/watch": {}
},
"WorkingDir": "/tmp",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.label-schema.description": "Docker container for HandBrake",
"org.label-schema.name": "handbrake",
"org.label-schema.schema-version": "1.0",
"org.label-schema.vcs-url": "https://github.com/jlesage/docker-handbrake",
"org.label-schema.version": "23.06.1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "5f19b80ca541e3bedacd9559241d5e3b7640e07bd3c3dea8cac8ce1dca2477a2",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"host": {
"IPAMConfig": {},
"Links": null,
"Aliases": null,
"NetworkID": "ead25747af51ce583a8f993a6b521235e6b451d5871b464f9eecf19e4400f627",
"EndpointID": "7f46c5f22c043724b8573d92660020584d11cb00ad81359f35a12cc02e0cc2e7",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
Anything else?
[12:59:21] Starting Task: Encoding Pass [12:59:21] Skipping vfr filter [12:59:21] Skipping crop/scale filter [12:59:21] job configuration: [12:59:21] * source [12:59:21] + /watch/input.mp4 [12:59:21] + title 1, chapter(s) 1 to 1 [12:59:21] + container: mov,mp4,m4a,3gp,3g2,mj2 [12:59:21] + data rate: 5243 kbps [12:59:21] * destination [12:59:21] + /output/.VYizyW/input.mp4 [12:59:21] + container: MPEG-4 (libavformat) [12:59:21] + optimized for HTTP streaming (fast start) [12:59:21] * video track [12:59:21] + decoder: h264 8-bit (yuv420p) [12:59:21] + bitrate 5103 kbps [12:59:21] + filters [12:59:21] + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16) [12:59:21] + Decomb (mode=39) [12:59:21] + Format (format=nv12) [12:59:21] + Output geometry [12:59:21] + storage dimensions: 1920 x 1080 [12:59:21] + pixel aspect ratio: 1 : 1 [12:59:21] + display dimensions: 1920 x 1080 [12:59:21] + encoder: H.265 (Intel Media SDK) [12:59:21] + preset: balanced [12:59:21] + profile: auto [12:59:21] + level: auto [12:59:21] + quality: 29.00 (ICQ) [12:59:21] + color profile: 1-1-1 [12:59:21] + chroma location: left [12:59:21] * audio track 1 [12:59:21] + decoder: English (AAC LC) (2.0 ch) (128 kbps) (track 1, id 0x1) [12:59:21] + bitrate: 128 kbps, samplerate: 48000 Hz [12:59:21] + mixdown: Stereo [12:59:21] + encoder: AAC (libfdk_aac) [12:59:21] + bitrate: 128 kbps, samplerate: 48000 Hz [12:59:21] sync: expecting 383323 video frames [12:59:21] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.18.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_18 libva info: va_openDriver() returns 0 ERROR: encqsvInit: MFXVideoENCODE_Init failed (-3) [12:59:21] encqsvInit: using encode-only (LowPower) path [12:59:21] encqsvInit: H.265/HEVC (null) profile @ level (null) [12:59:21] encqsvInit: TargetUsage 4 AsyncDepth 6 [12:59:21] encqsvInit: GopRefDist 8 GopPicSize 32 NumRefFrame 4 IdrInterval 0 [12:59:21] encqsvInit: BFramesMax 7 BRefType pyramid [12:59:21] encqsvInit: RateControlMethod ICQ ICQQuality 29 ERROR: Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)' [12:59:21] comb detect: heavy 0 | light 0 | uncombed 0 | total 0 [12:59:21] aac-decoder done: 0 frames, 0 decoder errors [12:59:21] h264-decoder done: 0 frames, 0 decoder errors [12:59:21] sync: got 0 frames, 383323 expected [12:59:21] Finished work at: Thu Oct 5 12:59:21 2023
[12:59:21] libhb: work result = 3
Encode failed (error 3). HandBrake has exited.
here is my encodelog i use gui instead of automatic transcode
Handbrake Version: 1.6.1 (2023060800) [13:25:42] gtkgui: Custom Preset: /General/111111 [13:25:42] Starting work at: Thu Oct 5 13:25:42 2023
[13:25:42] 1 job(s) to process [13:25:42] json job: { "Audio": { "AudioList": [ { "Bitrate": 128, "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": false, "ChapterList": [ { "Duration": { "Hours": 3, "Minutes": 33, "Seconds": 10, "Ticks": 1151118990 }, "Name": "" } ], "ChapterMarkers": false, "File": "/output/input.m4v", "InlineParameterSets": false, "Mp4Options": { "IpodAtom": false, "Mp4Optimize": true }, "Mux": "m4v" }, "Filters": { "FilterList": [ { "ID": 3, "Settings": { "block-height": "16", "block-thresh": "80", "block-width": "16", "filter-mode": "1", "mode": "0", "motion-thresh": "2", "spatial-metric": "2", "spatial-thresh": "3" } }, { "ID": 4, "Settings": { "mode": "7" } }, { "ID": 7, "Settings": { "mode": 0 } }, { "ID": 14, "Settings": { "crop-bottom": 0, "crop-left": 0, "crop-right": 0, "crop-top": 0, "height": 1080, "width": 1920 } } ] }, "Metadata": { "Name": "input" }, "PAR": { "Den": 1, "Num": 1 }, "SequenceID": 0, "Source": { "Angle": 0, "Path": "/storage/watch/input.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": "qsv_h265", "HardwareDecode": 0, "Level": "auto", "Options": "", "Preset": "balanced", "Profile": "auto", "QSV": { "AdapterIndex": 0, "AsyncDepth": 0, "Decode": false }, "Quality": 29.0, "Tune": "", "Turbo": false, "TwoPass": false } } [13:25:42] CPU: Intel(R) Celeron(R) N4120 CPU @ 1.10GHz [13:25:42] - logical processor count: 4 [13:25:42] Intel Quick Sync Video support: yes [13:25:42] Intel Quick Sync Video integrated adapter with index 0 [13:25:42] Impl mfxhw64 library path: /opt/intel/mediasdk/lib/libmfxhw64.so.1.35 [13:25:42] - Intel Media SDK hardware: API 1.35 (minimum: 1.3) [13:25:42] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes) [13:25:42] - H.264 encoder: yes [13:25:42] - preferred implementation: hardware (any) via ANY [13:25:42] - capabilities (hardware): lowpower breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice [13:25:42] - H.265 encoder: yes (8bit: yes, 10bit: yes) [13:25:42] - preferred implementation: hardware (any) via ANY [13:25:42] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 [13:25:42] - AV1 encoder: no [13:25:42] hb_scan: path=/storage/watch/input.mp4, title_index=1 udfread ERROR: ECMA 167 Volume Recognition failed disc.c:333: failed opening UDF image /storage/watch/input.mp4 disc.c:437: error opening file BDMV/index.bdmv disc.c:437: error opening file BDMV/BACKUP/index.bdmv [13:25:42] 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 [13:25:42] dvd: not a dvd - trying as a stream/file instead Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/watch/input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.27.100 Duration: 03:33:10.21, start: 0.000000, bitrate: 5243 kb/s Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 5103 kb/s, 29.97 fps, 29.97 tbr, 90k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] [13:25:43] scan: decoding previews for title 1 [13:25:43] scan: audio 0x1: aac, rate=48000Hz, bitrate=128510 English (AAC LC) (2.0 ch) (128 kbps) [13:25:44] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left [13:25:44] scan: supported video decoders: avcodec qsv [13:25:44] libhb: scan thread found 1 valid title(s) [13:25:44] Starting Task: Encoding Pass [13:25:44] Skipping vfr filter [13:25:44] Skipping crop/scale filter [13:25:44] job configuration: [13:25:44] * source [13:25:44] + /storage/watch/input.mp4 [13:25:44] + title 1, chapter(s) 1 to 1 [13:25:44] + container: mov,mp4,m4a,3gp,3g2,mj2 [13:25:44] + data rate: 5243 kbps [13:25:44] * destination [13:25:44] + /output/input.m4v [13:25:44] + container: MPEG-4 (libavformat) [13:25:44] + optimized for HTTP streaming (fast start) [13:25:44] * video track [13:25:44] + decoder: h264 8-bit (yuv420p) [13:25:44] + bitrate 5103 kbps [13:25:44] + filters [13:25:44] + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16) [13:25:44] + Decomb (mode=39) [13:25:44] + Format (format=nv12) [13:25:44] + Output geometry [13:25:44] + storage dimensions: 1920 x 1080 [13:25:44] + pixel aspect ratio: 1 : 1 [13:25:44] + display dimensions: 1920 x 1080 [13:25:44] + encoder: H.265 (Intel Media SDK) [13:25:44] + preset: balanced [13:25:44] + profile: auto [13:25:44] + level: auto [13:25:44] + quality: 29.00 (ICQ) [13:25:44] + color profile: 1-1-1 [13:25:44] + chroma location: left [13:25:44] * audio track 1 [13:25:44] + decoder: English (AAC LC) (2.0 ch) (128 kbps) (track 1, id 0x1) [13:25:44] + bitrate: 128 kbps, samplerate: 48000 Hz [13:25:44] + mixdown: Stereo [13:25:44] + encoder: AAC (libfdk_aac) [13:25:44] + bitrate: 128 kbps, samplerate: 48000 Hz [13:25:44] sync: expecting 383323 video frames [13:25:44] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.18.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_18 libva info: va_openDriver() returns 0 [13:25:44] encqsvInit: MFXVideoENCODE_Init failed (-3) [13:25:44] encqsvInit: using encode-only (LowPower) path [13:25:44] encqsvInit: H.265/HEVC (null) profile @ level (null) [13:25:44] encqsvInit: TargetUsage 4 AsyncDepth 6 [13:25:44] encqsvInit: GopRefDist 8 GopPicSize 32 NumRefFrame 4 IdrInterval 0 [13:25:44] encqsvInit: BFramesMax 7 BRefType pyramid [13:25:44] encqsvInit: RateControlMethod ICQ ICQQuality 29 [13:25:44] Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)' [13:25:44] comb detect: heavy 0 | light 0 | uncombed 0 | total 0 [13:25:44] aac-decoder done: 0 frames, 0 decoder errors [13:25:44] h264-decoder done: 0 frames, 0 decoder errors [13:25:44] sync: got 0 frames, 383323 expected [13:25:44] Finished work at: Thu Oct 5 13:25:44 2023
[13:25:44] libhb: work result = 3
anyone can help?
I'm having an issue similar to this, almost identical log
Can you try again with the latest image ?
Also, did you try to add lowpower=0
to the More Settings
field under the Video tab ?
Using the latest image fixed it for me! Thanks!
Also I've tried to add lowpower=0
to the More Settings
field but I didn't find any significant change
Thanks for the update !
Also I've tried to add lowpower=0 to the More Settings field but I didn't find any significant change
This is needed only when it doesn't work.
Got the exact same issue as well (H.264 QSV works, but H.265 doesn't). ffmpeg
and Plex
can use QSV just fine, so I assume this is a Handbrake issue.
Are you using the latest image version with lowpower=0
?
i tested it and it finally works with qsv h265 but soon the container stop with code 139 and see the log : service 'app' exited (got signal SIGSEGV)
Are you canceling the encoding to make it crash ?
Are you canceling the encoding to make it crash ?
Running about 20s then the container stop itself. I run the container on openwrt and I map the config and storage volume to my nas. I wonder when transcoding where is the temp file stored because I see the output file is 1KB. Is there not enough space for temp file in openwrt rom or memory compatible problem.
Are you canceling the encoding to make it crash ?
finally it works, turn out it's my RAM's fault. N4120 platform needs 1GB nana RAM but what i use is 512MB, it caused all the crashes. after i change the RAM it's runing stable for 3 days. and i met the problem you said that canceling maked it crash sometime. and autotranscode by putting file into watch folder not working for me, but it's ok cause i prefer manul.
Great, thanks for the update.
@rcarmo, do you still have the issue ?