Skip to content

[BUG] Pi 5: YouTube URL download picks H.264, fails on device that only supports HEVC hardware decode #3092

Description

@TekScene

Description
When adding a YouTube URL as an asset, Anthias downloads the video successfully but then fails with:

Processing failed

Video codec 'h264' is not hardware-decoded on this device. Supported: hevc.

Anthias correctly detects that the Pi 5 only supports HEVC hardware decode, but the yt-dlp download step does not use that information to request a compatible stream upfront. The capability detection code already exists (it produces the error message) but is not fed back into the yt-dlp format selection.
Steps to Reproduce

Open the Anthias dashboard on a Raspberry Pi 5
Click Add Asset and paste a standard YouTube URL
Wait for the download to complete
Asset shows Processing failed — Video codec 'h264' is not hardware-decoded on this device. Supported: hevc.

Expected Behavior
Anthias should detect the Pi 5's supported codecs before downloading and pass an appropriate format selector to yt-dlp, e.g.:
-f "bestvideo[vcodec=hevc]/bestvideo[vcodec^=av01]+bestaudio/best"
The asset should download, process, and play without any manual intervention.
Screenshots
N/A
Environment

Device: Raspberry Pi 5
OS: Raspberry Pi OS 64-bit Bookworm
Anthias Version: v2026.6.3
Installation Method: Manual Installation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions