Skip to content

Migration to H264/MP4 for Hardware Acceleration #35

@lemeow125

Description

@lemeow125

Hello!

I hope all's well on your end.

I have tried adjusting ffmpeg parameters in recording.conf to faciliate this but recording fails upon starting with the recorder object ending unexpectedly.

It's to my understanding that there might be a reason as to why a WebM/VP8 implementation was adopted in favor over H264/MP4, perhaps due to the virtual display libraries used? I'm not too sure on this myself honestly.

Is it possible to migrate from WebM/VP8 to a more traditional H264/MP4 format? I am keen on doing just that for better hardware acceleration support much like with Jellyfin and Frigate.

I am making do right now running the recording server on another device with the following ffmpeg config below, limiting CPU usage to 4 threads as to not max out processor usage.

[ffmpeg]
common = ffmpeg -loglevel level+warning -n -hwaccel vaapi -hwaccel_output_format vaapi
# outputaudio = -c:a libopus
outputvideo = -c:v libvpx -deadline:v realtime -crf 10 -b:v 1M -threads 4
extensionaudio = .ogg
extensionvideo = .webm

Server Specifications

  • S1 (Running Nextcloud AIO)
    • CPU: Intel i5-10210U (8) @ 4.200GHz
    • GPU: Intel CometLake-U GT2 [UHD Graphics]
    • Memory: 64GB
  • S2 (Recording server offloaded here)
    • CPU: AMD Ryzen 3 PRO 5350GE with Radeon Graphics (8) @ 3.600GHz
    • GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
    • Memory: 64GB

Thank you for looking into this! Would appreciate any leads if any are possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions