jlesage / docker-handbrake

Docker container for HandBrake
MIT License
815 stars 94 forks source link

[Bug] Custom Preset for Watch ENco #288

Open digitalw00t opened 1 year ago

digitalw00t commented 1 year ago

Current Behavior

I created a preset, that I verified works by using it manually called "General/Fast1080p30h265". I just took the regular one of that name, and checked the h265 codec. I can encode files with that codec manually fine. When I drop a file in the watch folder I get this error: Invalid preset "/General/Fast1080p30h265"

I've tried "General/Fast1080p30h265" and just "Fast1080p30h265" with no luck.

If I go into the container and have it do a preset-list after importing the preset json file I get this: General/ Fast1080p30h265 H.265 video (up to 1080p30) and AAC stereo audio, in an MP4 container.

So I know it's in there. While I'm in the docker file I can run this and it will encode the file: /usr/bin/HandBrakeCLI --preset-import-file /config/ghb/presets.json \ -i /watch/009_re_cyborg_2012.mp4 \ -o /output/.NihxQs/009_re_cyborg_2012.mp4 \ --title 1 --preset "/General/Fast1080p30h265"

Expected Behavior

I expect the files to be placed in the watch directory and it do an h265 encoding to the output directory.

Steps To Reproduce

I place the 009 file into the watch directory, and I get a failure to encode.

Environment

Container creation

version: '3.4' services: handbrake: image: jlesage/handbrake ports:

Container log

[cont-init   ] 10-nginx.sh: terminated successfully.
[cont-init   ] 10-openbox.sh: executing...
[cont-init   ] 10-openbox.sh: terminated successfully.
[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init   ] 10-vnc-password.sh: executing...
[cont-init   ] 10-vnc-password.sh: terminated successfully.
[cont-init   ] 10-web-data.sh: executing...
[cont-init   ] 10-web-data.sh: terminated successfully.
[cont-init   ] 10-x11-unix.sh: executing...
[cont-init   ] 10-x11-unix.sh: terminated successfully.
[cont-init   ] 10-xdg-runtime-dir.sh: executing...
[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init   ] 15-install-pkgs.sh: executing...
[cont-init   ] 15-install-pkgs.sh: terminated successfully.
[cont-init   ] 54-check-optical-drive.sh: executing...
[cont-init   ] 54-check-optical-drive.sh: looking for usable optical drives...
[cont-init   ] 54-check-optical-drive.sh: found optical drive /dev/sr0, but it is not usable because is not exposed to the container.
[cont-init   ] 54-check-optical-drive.sh: no usable optical drive found.
[cont-init   ] 54-check-optical-drive.sh: terminated successfully.
[cont-init   ] 54-check-qsv.sh: executing...
[cont-init   ] 54-check-qsv.sh: Processor: Intel(R) Xeon(R) CPU E7-4850 v3 @ 2.20GHz
[cont-init   ] 54-check-qsv.sh: Intel Quick Sync Video not supported: device directory /dev/dri not exposed to the container.
[cont-init   ] 54-check-qsv.sh: terminated successfully.
[cont-init   ] 54-check-trash-dir.sh: executing...
[cont-init   ] 54-check-trash-dir.sh: terminated successfully.
[cont-init   ] 55-handbrake.sh: executing...
[cont-init   ] 55-handbrake.sh: core dump file location: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E
[cont-init   ] 55-handbrake.sh: core dump file size: unlimited (blocks)
[cont-init   ] 55-handbrake.sh: terminated successfully.
[cont-init   ] 85-take-config-ownership.sh: executing...
[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
[cont-init   ] 89-info.sh: executing...
    ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           HandBrake                                     │
    │ Application Version:   1.6.1                                         │
    │ Docker Image Version:  23.06.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 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'openbox'...
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'autovideoconverter'...
[supervisor  ] all services loaded.
[supervisor        ] starting services...
[supervisor        ] starting service 'xvnc'...
[xvnc              ] Xvnc TigerVNC 1.13.1 - built May 16 2023 18:07:02
[xvnc              ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc              ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc              ] Underlying X server release 12014000
[xvnc              ] Wed Sep  6 19:55:56 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 'nginx'...
[nginx             ] Listening for HTTP connections on port 5800.
[supervisor        ] starting service 'openbox'...
[supervisor        ] starting service 'app'...
[supervisor        ] starting service 'autovideoconverter'...
[autovideoconverter] Processing watch folder '/watch'...
[autovideoconverter] Skipping '/watch/5_centimeters_per_second_2007.m4v' (c226569e98698e60beea980f454ad857): already processed with failure.
[autovideoconverter] Watch folder '/watch' processing terminated.
[supervisor        ] all services started.
[xvnc              ] Wed Sep  6 19:56:04 2023
[xvnc              ]  Connections: accepted: /tmp/vnc.sock
[xvnc              ] Wed Sep  6 19:56:05 2023
[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.
[autovideoconverter] Change detected in watch folder '/watch'.
[autovideoconverter] Processing watch folder '/watch'...
[autovideoconverter] Waiting 5 seconds before processing '/watch/5_centimeters_per_second_2007.m4v'...
[autovideoconverter] Starting conversion of '/watch/5_centimeters_per_second_2007.m4v' (c226569e98698e60beea980f454ad857) using preset '"/General/Fast1080p30h265"'...
[autovideoconverter] 1 title(s) to process.
[autovideoconverter] Conversion failed.
[autovideoconverter] For more details about the failure, see /config/log/hb/conversion.log.
[autovideoconverter] Waiting 5 seconds before processing '/watch/a_silent_voice_2016.mp4'...
[autovideoconverter] Starting conversion of '/watch/a_silent_voice_2016.mp4' (a7c6276ed9634483e8821759cf2ebce3) using preset '"/General/Fast1080p30h265"'...
[autovideoconverter] 1 title(s) to process.
[autovideoconverter] Conversion failed.
[autovideoconverter] For more details about the failure, see /config/log/hb/conversion.log.
[autovideoconverter] Watch folder '/watch' processing terminated.

Container inspect

{
    "AppArmorProfile": "docker-default",
    "Args": [],
    "Config": {
        "AttachStderr": true,
        "AttachStdin": false,
        "AttachStdout": true,
        "Cmd": [
            "/init"
        ],
        "Domainname": "",
        "Entrypoint": null,
        "Env": [
            "AUTOMATED_CONVERSION_PRESET=\"/General/Fast1080p30h265\"",
            "TZ=America/Chicago",
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/base/sbin:/opt/base/bin",
            "ENV=/root/.docker_rc",
            "USER_ID=1000",
            "GROUP_ID=1000",
            "SUP_GROUP_IDS=",
            "UMASK=0022",
            "LANG=en_US.UTF-8",
            "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_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"
        ],
        "ExposedPorts": {
            "5800/tcp": {},
            "5900/tcp": {}
        },
        "Hostname": "a1e12d3c93c1",
        "Image": "jlesage/handbrake",
        "Labels": {
            "com.docker.compose.config-hash": "0d0f1a211f69b99a1968b64af694056eadd9b5e0a90ab47574680fa1e3914ede",
            "com.docker.compose.container-number": "1",
            "com.docker.compose.depends_on": "",
            "com.docker.compose.image": "sha256:48eed0aa73b6be303891cc033a69f46ad2b180ae1f9108d59236b173487dfa28",
            "com.docker.compose.oneoff": "False",
            "com.docker.compose.project": "handbrake",
            "com.docker.compose.project.config_files": "/data/compose/38/docker-compose.yml",
            "com.docker.compose.project.working_dir": "/data/compose/38",
            "com.docker.compose.service": "handbrake",
            "com.docker.compose.version": "2.10.2",
            "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"
        },
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/config": {},
            "/output": {},
            "/storage": {},
            "/trash": {},
            "/watch": {}
        },
        "WorkingDir": "/tmp"
    },
    "Created": "2023-09-07T00:55:54.344453066Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/15ce326dc571f68a82ee6562d7dae5e78cad495163d3f7dc7eb0dfede9f03512-init/diff:/var/lib/docker/overlay2/a0025279c610d4a3969533ce39134b9e7a70865e869fd882365cee9011ec78a2/diff:/var/lib/docker/overlay2/aa5cac58032c5761f78472cb951a4d6b6aae56ec75ba3fd1dfa1285a5cced811/diff:/var/lib/docker/overlay2/f84ccf369db8ec0926f722e7b01d9f06c20d57df7a34471fd84516d2670d417c/diff:/var/lib/docker/overlay2/c74b37eabd24075e07481c4d043f22548267a4c78cbd35d944f7bd3ae8fa8c61/diff:/var/lib/docker/overlay2/32d0b14f51fed5909572f066ffb8d245ed9aeb6d90c4f3fa3d5653e06175620c/diff:/var/lib/docker/overlay2/3d16956c4fb5f3951a1516e37cc0a0ad715a40c51400a6591863cb3d8ce2d030/diff:/var/lib/docker/overlay2/9bd56e7da3c283aa949159eb153db9cbb4ce6409082b293757605a9decea70ad/diff:/var/lib/docker/overlay2/835b0e9374a6e3d0c0fbcf6943f38b5865330cd981ee64d362d0e0f1bf61cb55/diff:/var/lib/docker/overlay2/05b8290604646b811a871f0c209fbc3f43f1eea2c5dfe8094049f9bfd4a61909/diff:/var/lib/docker/overlay2/175225620c6acadfbb8529b818df3f2ed7db33367ebd0ae7fddf474a949b4691/diff:/var/lib/docker/overlay2/2fa48360cee20f7242e1853eb6621805c016584ace594c5c9fe0ac0d9c4b5a07/diff:/var/lib/docker/overlay2/5ae8631dcb4c68e27c35ba426d8967ae93201f078efaeb21af5c4d2229055493/diff:/var/lib/docker/overlay2/6a08bbb7c97c3b4fcf915238e1c0334ea0f10c2af997798752bd7e1821a67883/diff:/var/lib/docker/overlay2/703409455cf7a9240c2ed27129452c1bbb4b19c6bc2131c67bb0cda65fc9b5eb/diff:/var/lib/docker/overlay2/de0538aa82abdb3f8d2636b5e4f7a9c087ef165bdf402f204f813415843c5465/diff:/var/lib/docker/overlay2/e6aa7e1b62ff308077e83710f0a4947d76b4ae5e7f35d51dcaa25629708dbf65/diff:/var/lib/docker/overlay2/088313e64ba1195033bc15b82a0afdc429481af3922288e50813b76bebd87b38/diff:/var/lib/docker/overlay2/04b218af0a071400a2bfbdaec182bcf7140224946af6b77375142ca052b2ad98/diff:/var/lib/docker/overlay2/190ca643749633b2bcf738dee6339f71f478e0d6b56b694ada430a6755ab71f3/diff:/var/lib/docker/overlay2/b4696d9bfa841b5877abe158811323bc77a9102ab86dbff100a4d42f986036d8/diff:/var/lib/docker/overlay2/195ae3548bb03c114369bc572c181ab2cf348e6d2f8cf88d8a35e9080e0a94bd/diff:/var/lib/docker/overlay2/e2bba10270deaceccd8e96c2ea0875d206757b626d931cef85dc1a01d7c38345/diff:/var/lib/docker/overlay2/bc58569a53c2aa76b9465d5f7761d9a91bb96601f9dae35ccacd24177da43836/diff:/var/lib/docker/overlay2/cad422c6b1f0f052119a3ba70ee3d29e9fdf619f9733e6d2974b256f45ad42e4/diff:/var/lib/docker/overlay2/62035c4b7bfa25c591506ad4396182981cda257474388f05f4a3875945983de0/diff:/var/lib/docker/overlay2/b6340881eed6495a05c8ed2dc86825fced85ca0415c5866ac6b58d9f70c40b9a/diff:/var/lib/docker/overlay2/46b38d3d17652f0a3f59dbbdd91e1bbbf5dcea036f9fa3f21f4cc53df4466b44/diff:/var/lib/docker/overlay2/f2e63fe87b60ef645c896931ed4d6f0bbdd551e5ab2a679929884f86b3b378ce/diff:/var/lib/docker/overlay2/c74811c58b05ffdf4e73b8d2a5236e1128d6075fdfadb7edcf61b5869365a767/diff:/var/lib/docker/overlay2/889064fb762b7cad2b06b5219d1d32f86d22ecdf9f8808a4367bc261ee729052/diff:/var/lib/docker/overlay2/afe6ed2f34b6d2fed3f1d3af972b13cc955f734861612032d27fc39e74882c79/diff:/var/lib/docker/overlay2/2f912f017acde931bb84ce7788907fc8d9654dd569e9ada3530cf471098069c5/diff:/var/lib/docker/overlay2/75d9e2c044bb4ceecb98565868e426463a3bcc458830d0a7683146a80e20cfe1/diff:/var/lib/docker/overlay2/ffed3cee4adc11a5434609935804fd32634269aeba70f9306b162952afd605a6/diff",
            "MergedDir": "/var/lib/docker/overlay2/15ce326dc571f68a82ee6562d7dae5e78cad495163d3f7dc7eb0dfede9f03512/merged",
            "UpperDir": "/var/lib/docker/overlay2/15ce326dc571f68a82ee6562d7dae5e78cad495163d3f7dc7eb0dfede9f03512/diff",
            "WorkDir": "/var/lib/docker/overlay2/15ce326dc571f68a82ee6562d7dae5e78cad495163d3f7dc7eb0dfede9f03512/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "/home/ansible/handbrake/config:/config:rw",
            "/opt/md2/handbrake/output:/output:rw",
            "/opt/md2/handbrake/storage:/storage:ro",
            "/opt/md2/handbrake/trash:/trash:rw",
            "/opt/md2/handbrake/watch:/watch:rw"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": null,
        "CapDrop": null,
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "private",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": null,
        "Dns": null,
        "DnsOptions": null,
        "DnsSearch": null,
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "private",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "json-file"
        },
        "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"
        ],
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "handbrake_default",
        "OomKillDisable": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "5800/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "5800"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": ""
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/var/lib/docker/containers/a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd/hostname",
    "HostsPath": "/var/lib/docker/containers/a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd/hosts",
    "Id": "a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd",
    "Image": "sha256:48eed0aa73b6be303891cc033a69f46ad2b180ae1f9108d59236b173487dfa28",
    "LogPath": "/var/lib/docker/containers/a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd/a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd-json.log",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/config",
            "Mode": "rw",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/home/ansible/handbrake/config",
            "Type": "bind"
        },
        {
            "Destination": "/output",
            "Mode": "rw",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/opt/md2/handbrake/output",
            "Type": "bind"
        },
        {
            "Destination": "/storage",
            "Mode": "ro",
            "Propagation": "rprivate",
            "RW": false,
            "Source": "/opt/md2/handbrake/storage",
            "Type": "bind"
        },
        {
            "Destination": "/trash",
            "Mode": "rw",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/opt/md2/handbrake/trash",
            "Type": "bind"
        },
        {
            "Destination": "/watch",
            "Mode": "rw",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/opt/md2/handbrake/watch",
            "Type": "bind"
        }
    ],
    "Name": "/handbrake-handbrake-1",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "",
        "Networks": {
            "handbrake_default": {
                "Aliases": [
                    "handbrake-handbrake-1",
                    "handbrake",
                    "a1e12d3c93c1"
                ],
                "DriverOpts": null,
                "EndpointID": "a52d4e63c9bc13c6ca42f1c62e72d252b5ab069dd08932e7e29691260932f6e7",
                "Gateway": "172.22.0.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": null,
                "IPAddress": "172.22.0.2",
                "IPPrefixLen": 16,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:ac:16:00:02",
                "NetworkID": "4a90682f7a2e9369e85a391c1f59e87b6dbd185c4684d2503c49f05d6272cb24"
            }
        },
        "Ports": {
            "5800/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "5800"
                },
                {
                    "HostIp": "::",
                    "HostPort": "5800"
                }
            ],
            "5900/tcp": null
        },
        "SandboxID": "2f13e6e2d7e8ca66260df34f3fc43da11c4982f3018b08be605ea22b5213cef8",
        "SandboxKey": "/var/run/docker/netns/2f13e6e2d7e8",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "/init",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 34,
            "ResourceId": "6_handbrake",
            "SubResourceIds": [],
            "Type": 6,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/var/lib/docker/containers/a1e12d3c93c10d2d45ad2773dd7c1c1a052ce67f9153fe81fb75eed689e04efd/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "0001-01-01T00:00:00Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 2589,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2023-09-07T00:55:55.138593817Z",
        "Status": "running"
    }
}

Anything else?

No response

jlesage commented 1 year ago

Can you share the log of a failed conversion from /config/log/hb/conversion.log ?

digitalw00t commented 1 year ago

conversion.log

The conversion says "Invalid preset"

presets.json.txt

But the auto system adds the preset loading in the command line right?
"PresetName": "Fast1080p30h265", And it's defined.

jlesage commented 1 year ago

The provided conversion log is empty...

In this log, the presets should be listed. You should make sure the configured preset name matches one listed.

digitalw00t commented 1 year ago

Took a bit for me to get back around to this: conversion.log

Again, the error is showing invalid preset, but when I run it manually, the preset is there and works through the web interface.

jlesage commented 1 year ago

Looks you you have duplicated preset categories. From the UI, try to save your preset under a new/different category and adjust AUTOMATED_CONVERSION_PRESET accordingly.

digitalw00t commented 1 year ago

conversion.log failed_conversions.txt

I created a custom category, and changed the name of the profile. Saved it.. made it default, tried using the watch directory again with the attached results.

jlesage commented 1 year ago

Not sure what is the problem.

I tried on my side and it works. I created a custom preset like you:

image

I created the container with the AUTOMATED_CONVERSION_PRESET=custom/1080p30h265 variable.

And the automatic video converter did use and find the preset correctly:

[autovideoconverter] Starting conversion of '/watch/sample-mp4-file.mp4' (bfc447b62494415e1291da1614bf64e5) using preset 'custom/1080p30h265'...
[autovideoconverter] 1 title(s) to process.
[autovideoconverter] Encoding /watch/sample-mp4-file.mp4: task 1 of 1, 99.95 %
[autovideoconverter] Conversion ended successfully.

Did I do the same thing as you ?

digitalw00t commented 12 months ago

Here is my docker-compose.yml for it: version: '3.4' services: handbrake: image: jlesage/handbrake ports:

I am doing this right?? The most infuriating part is, I am using the web interface to encode the exact profile and it works just fine.

digitalw00t commented 11 months ago

bump Is it my docker compose that's wrong?