Jump to content

Super slow transcoding with P2000


Recommended Posts

Posted

Hello,

 

I recently purchased a P2000 in an amazing Black Friday/Cyber monday deal and threw it in my Emby box. I recently purchased a 4k TV, so I've been upgrading my movie library slowly (not slowly) but surely to 4k content for a lot of the movies I really like.

 

What I'm trying to do:

Get 4k content to transcode (when needed) to provide a smooth playback

 

The issue I'm having:

If I use the Web App in Chrome (Version 78.0.3904.108 (Official Build) (64-bit)) or Firefox (71.0 (64-bit)) I get stuttering of the playback. 

 

If I use the Emby Theater app (3.0.10), I get the same thing.

 

 

 

When I look at the logs, it seems like it's transcoding Subtitles, too, even though I have them turned off.

 

This isn't a super huge problem for me locally, but if I'm away from my house and want to watch a movie it is. Plus I have family that I share with who won't be able to watch any of the content unless I transcode it down to, say, 1080p for them to stream.

 

Any help is greatly appreciated!

Thank you,

Ewer

embyserver.txt

ffmpeg-transcode-7a9585ac-4628-478d-9a86-258fe63522a0_1.txt

ffmpeg-transcode-40c780e4-6166-40b3-8fba-fe28cf1cb84e_1.txt

ffmpeg-transcode-60a7003b-2437-4eeb-81e2-e2b4891bb286_1.txt

Posted

I forgot to mention that during transcoding, the GPU only hits about 20% utilization, and the CPU hits about 20-25% utilization for the FFMPEG process.

Posted (edited)

I'm new to hardware transcoding so I might be wrong but:

 

In two of your transcode logs, you are encoding to h264 4k @ 40 Mbits and when I tried to do the same with my GTX 1050, it couldn't keep up either. I also had high cpu usage.

 

You also tried encoding to 720p in the other log which should have worked but maybe another instance encoding to 4k was still running at that time?

 

You could try again with playback at 1080p 8Mbit after rebooting to make sure. That should definitely work.

 

See here for what you should expect to be able to do:

https://www.elpamsoft.com/?p=Plex-Hardware-Transcoding

Unselect everything except GP106 to make that chart usable. Those stats were for Plex but I would guess Emby should be similar.

Edited by frankmb
  • Like 1
Posted

Hello,

 

Thanks for the reply Frank.

 

At that time, I was the only person doing anything on the server, so I figured I'd be able to get at least one decent stream with a P2000.

 

After rebooting and trying to play a 1080p 8Mbit transcode, it was still stuttering every 3-5 seconds for about a second.  :angry:

 

I'm wondering if maybe it's the subtitles that are doing it. These 4k files have a subtitle for like... 10 languages. Kind of wondering if maybe it's offloading the subtitle work to the CPU (Which is an old i5) and doing the video transcode on the P2000. If this is the case, the CPU definitely isn't going to be able to keep up.

 

I'm thinking that I might need to take a page from pir8radio (Here) and put together a Dual Xeon box and throw the P2000 in that and see what I can do. :D

 

Posted (edited)

Yeah. I don't know what the CPU does while hardware decoding and encoding... In my case when going from 4k hevc to h264 1080p 8Mbits, my transcoding speed is only 1.03x of real time according to the ffmpeg log. Playback is smooth though. I'm running a very old Core i7-920. I think I'm limited by single thread performance.

Edited by frankmb
Posted

Yeah, this media box has an old i5-750 in it, so it's probably time to put it out to pasture. It's served me well for a long time. It's been bulletproof for the last 10 years, serving multiple uses.

 

I've got some server migration to do before I can stand up a server dedicated to Emby, but I figure a dual E5-2640 processors and 128GB of ECC RAM ought to do it, haha. (It's what I'll have left over)

 

If anyone has any more information on what the issue could be, please let me know. I'd be willing to PayPal beer money to the first person who has the right answer  :D.

JeremyFr79
Posted

Yeah, this media box has an old i5-750 in it, so it's probably time to put it out to pasture. It's served me well for a long time. It's been bulletproof for the last 10 years, serving multiple uses.

 

I've got some server migration to do before I can stand up a server dedicated to Emby, but I figure a dual E5-2640 processors and 128GB of ECC RAM ought to do it, haha. (It's what I'll have left over)

 

If anyone has any more information on what the issue could be, please let me know. I'd be willing to PayPal beer money to the first person who has the right answer  :D.

 

I find alot of issues with subtitles in movies, hence why I usually run mine through MKVMerge and rip out all of the subtitles unless they're absolutely needed.

  • Like 1
Posted

I find alot of issues with subtitles in movies, hence why I usually run mine through MKVMerge and rip out all of the subtitles unless they're absolutely needed.

Do you notice any issues with the Video Output? Or can it just run through and strip the Subtitles without any work to the video? I don't need Subtitles in the videos, but it's just something that I've dealt with. I'd rather have them in srt files, anyways.

JeremyFr79
Posted

Do you notice any issues with the Video Output? Or can it just run through and strip the Subtitles without any work to the video? I don't need Subtitles in the videos, but it's just something that I've dealt with. I'd rather have them in srt files, anywaysAl

No no difference as all MKVMerge does is remove each element from the container and remux them back into a new container, it doesn't actually do any encoding or anything.

  • Like 1
Posted

Ooo! Thanks for that info. Now if I could only figure out the exact cause of this transcoding issue I'm having.

Posted

You're trying to transcode 4K hevc input. Unfortunately for that file that might just be as fast as your machine can go.

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...