jlesage / docker-handbrake

Docker container for HandBrake
MIT License
855 stars 97 forks source link

[Bug] 50% of CPU when encoding H264 #277

Open fr3d02 opened 1 year ago

fr3d02 commented 1 year ago

Current Behavior

Hello,

since version v23.02.1 (before i use 1.25.1 whitout problems) my cpu encoding with 45-50% of charge an double time of encode. I've 4750G AMD. I return to version 1.25.1, have you any idea ?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Container creation

docker run -d --name=handbrake -e USER_ID=1002 -e GROUP_ID=1003 -p 5800:5800 -v /handbrake/config:/config -v /handbrake/storage:/storage -v /handbrake/output:/output jlesage/handbrake

Container log

╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           HandBrake                                     │
    │ Application Version:   1.6.1                                         │
    │ Docker Image Version:  23.02.1                                       │
    │ Docker Image Platform: linux/amd64                                   │
    │                                                                      │
    ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init   ] 89-info.sh: terminated successfully.
[cont-init   ] all container initialization scripts executed.
[init        ] giving control to process supervisor.
[supervisor  ] loading services...
[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'openbox'...
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'autovideoconverter'...
[supervisor  ] all services loaded.
[supervisor        ] starting services...
[supervisor        ] starting service 'xvnc'...
[xvnc              ] Xvnc TigerVNC 1.12.0 - built Feb 14 2023 01:01:21
[xvnc              ] Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst)
[xvnc              ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc              ] Underlying X server release 12013000, The X.Org Foundation
[xvnc              ] Thu Jul  6 18:31:43 2023
[xvnc              ]  vncext:      VNC extension running!
[xvnc              ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc              ]  vncext:      Listening for VNC connections on all interface(s), port 5900
[xvnc              ]  vncext:      created VNC server for screen 0
[supervisor        ] starting service 'openbox'...
[supervisor        ] starting service 'nginx'...
[nginx             ] Listening for HTTP connections on port 5800.
[supervisor        ] starting service 'app'...
[supervisor        ] starting service 'autovideoconverter'...
[autovideoconverter] Processing watch folder '/watch'...
[autovideoconverter] Watch folder '/watch' processing terminated.
[supervisor        ] all services started.
[xvnc              ] Thu Jul  6 18:32:02 2023
[xvnc              ]  Connections: accepted: /tmp/vnc.sock
[xvnc              ]  SConnection: Client needs protocol version 3.8
[xvnc              ]  SConnection: Client requests security type None(1)
[xvnc              ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
[xvnc              ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
[app               ] libdvdread: Can't open file VIDEO_TS.IFO.
[app               ] libdvdread: Can't open file VIDEO_TS.IFO.

Container inspect

No response

Anything else?

No response

scepterus commented 10 months ago

It's the same with h265. But, it depends on the file and preset. some files I get less than 50% usage, and 3 fps, others I get 90% + and 30fps.