Jump to content

emby on unraid hw transcode with nvidia rtx4060 has problems


Recommended Posts

Posted

Hi,

I have hosted emby as docker on my unraid server for an extended period of time.

Recently I have upgraded a nvidia RTX 4060 LP card for my server.

I followed online instructions to install nvidia-driver, enable runtime parameter in docker, add NVIDIA_DEVICE and CAPABILITIES.

Then I tried with handbrake docker to transcode H264 files to H265 with this GPU, and it worked just fine. So I think the path from physical GPU card to being utilized by docker is working.

Then when I setup emby hw transcoding, there are a few issues that essentially preventing the full GPU power to be utilized.

  1. I enabled hw transcoding, stream a high quality film through local network using edge browser. At first the transcoding is doing fine, the server shows normal usage of decoder and encoder. But as I drag the bar to a later time, the playback pretty much stops. The decoder usage becomes 100% while encoder down to 0%. In the emby console page, the red playback progress bar becomes unsync with green transcode progress bar.
    1. If I jump to a later time but with a few play/pause click, there is a chance playback bar would sync with transcode bar, and the transcoded stream continues. However, the transcode may become very unstable. After I jump to different time point for serveral times, the transcode just stops, and stream just shows black display.
  2. I tried another *.wmv(VC1) file just to test if anything with the decoder/encoder compatibility issues. 
    1. If I set transcode to be done by sw, it works fine.
    2. If I set transcode to be done by hw, the playback is similiar to the situation above but worse.

I am not quite sure what kind of screenshots and logs that may help with the diagnostic. Just let me know and I will reply ASAP.

Thanks in advance!

Posted (edited)

embyserver-11-16-1st.txt

Aboveis the log I try to play the video with hw transcoding

The behavior is that you can't skip to any time point you want. The transcoding seems to function but no good.

image.png.bcd2f744e2f85f81474d72b5d37a6b3e.png

 

Above is when the transcoding should work

image.png.ead7cdcfbc4cda5400946972696bc19d.png

Above is transcode screen shot shown in the Dashboard

 

image.thumb.png.a42b0ad0894ef4d564118bd0b82ee997.pngAbove is the docker build

By the way, when I tested the H265 HW transcoding, it just works for some reason I don't know. Skipping is totally fine. So now I am suspecting is the VC1 coding the reason?

 

 

 

Edited by allee123
Posted
On 11/16/2024 at 10:28 AM, Luke said:

@allee123

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

 

On 11/16/2024 at 2:15 PM, allee123 said:

embyserver-11-16-1st.txt 205.4 kB · 0 downloads

Aboveis the log I try to play the video with hw transcoding

The behavior is that you can't skip to any time point you want. The transcoding seems to function but no good.

image.png.bcd2f744e2f85f81474d72b5d37a6b3e.png

 

Above is when the transcoding should work

image.png.ead7cdcfbc4cda5400946972696bc19d.png

Above is transcode screen shot shown in the Dashboard

 

image.thumb.png.a42b0ad0894ef4d564118bd0b82ee997.pngAbove is the docker build

By the way, when I tested the H265 HW transcoding, it just works for some reason I don't know. Skipping is totally fine. So now I am suspecting is the VC1 coding the reason?

 

 

 

hello? Is there enough infomation to diagnose the problem?

Posted

HI, please attach the ffmpeg log file as well. thanks.

  • 1 month later...
guunter
Posted (edited)
On 11/15/2024 at 10:15 PM, allee123 said:

embyserver-11-16-1st.txt 205.4 kB · 1 download

Aboveis the log I try to play the video with hw transcoding

The behavior is that you can't skip to any time point you want. The transcoding seems to function but no good.

image.png.bcd2f744e2f85f81474d72b5d37a6b3e.png

 

Above is when the transcoding should work

image.png.ead7cdcfbc4cda5400946972696bc19d.png

Above is transcode screen shot shown in the Dashboard

 

image.thumb.png.a42b0ad0894ef4d564118bd0b82ee997.pngAbove is the docker build

By the way, when I tested the H265 HW transcoding, it just works for some reason I don't know. Skipping is totally fine. So now I am suspecting is the VC1 coding the reason?

 

 

 

If your gpu is transcoding in Emby it should pop up on the unraid dashboard under Your Active Apps. Your screenshot doesn’t show that being the case.

Edited by guunter

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...