this post was submitted on 11 Oct 2023
17 points (94.7% liked)

Selfhosted

40219 readers
1294 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hey there, I'm not exactly sure where to post this, but I have been trying to solve this issue for hours now. I have an old Intel NUC which runs Ubuntu/Docker with Sonarr, Jellyfin etc. I've found that it is slightly too slow for 'live' transcoding through Jellyfin. Enabling hardware transcoding I'm experiencing speeds at around 22fps, which isn't ideal. So, I'm currently attempting to use unmanic to avoid it altogether, but I'm running into issues when trying to get hardware acceleration to work.

I've followed the official documentation as well as the guide provided here: Link to the guide you mentioned. I've tried 6 or 7 different plugins related to GPU transcoding, but the problem remains. I also experimented with tdarr, but it had the same issue and it would always fall back to CPU.

Looking at the logs for Unmanic I see this error:

[hevc_vaapi @ 0x56224b97db80] No usable encoding entrypoint found for profile VAProfileHEVCMain (17).
Error initializing output stream 0:16 -- Error while opening encoder for output stream #0:16 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

But, when I run 'vainfo', it does show a 'VAProfileHEVCMain' entrypoint:

vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
----> VAProfileHEVCMain               : VAEntrypointVLD

While the CPU is quite dated, it's worth noting that hardware-accelerated transcoding works with Jellyfin. The CPU is an Intel(R) Celeron(R) CPU J3060 @ 1.60GHz.

I am trying to convert to either H.264 or H.265.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (1 children)

H.264 should absolutely work since it supports Intel Quick Sync Video (QSV), which is mainly focused on H.264. I guess it then depends on if there is QSV support in unmanic / the plugins you're trying?

[–] [email protected] 2 points 1 year ago

There is 1 plugin that seems to support H.264, the rest are H.265. I tried the following plugins:

  • "Transcode Video Files" with the following options selected
    • Video Code = H264
    • Video Encoder = hvec_qvc
  • "Video Encoder H265/HEVC - hevc_vaapi (INTEL/AMD)"
  • "Video Encoder H265/HEVC - hevc_qsv (Intel)"

None of them worked.