Jump to content

Playback issues with hardware acceleration on some media


Go to solution Solved by Luke,

Recommended Posts

Posted

I'm having trouble getting all of my 4K media to stream to my devices.

A few will work, but most will stutter, and either be ignoring the GPU 1060 or only using a fraction of it and driving the CPU.

I've tried the settings in emby and replacing ffmpeg versions with no luck, updated my 1060 drivers.

I've attached a few logs

Thanks I've been searching and trying to figure this out for ages

 

embyserver.txt

ffmpeg-transcode-16104bfe-8b80-4673-8777-34ca12b84497_1.txt

ffmpeg-transcode-68586d5b-1f02-490d-adc3-830ee5e8442a_1.txt

ffmpeg-transcode-db92658c-5edc-48f1-a679-288027aa2df6_1.txt

hardware_detection-63700335514.txt

worked well ffmpeg-transcode-9e458e96-768e-4b62-96ec-c1a13c167675_1.txt

worked with still some high cpu ffmpeg-transcode-fb06ae4e-f1da-4933-aa26-fc679b3b2d9f_1.txt

Happy2Play
Posted

Emby does its own ffmpeg customization so replacing it can have adverse affects.  But with subtitle (psg) burn in you are only getting about 15fps vs the 30fps without subs.

 

Is there a reason you are on a outdated server version?

Application version: 4.1.0.26
Posted

Thanks for the reply,

 

I hadn't realised and have updated emby server to current, and left ffmpeg as the install version.

 

I was confused with the subtitle extractions, whether on or off was better, but it's back on now.

 

One of my files i've tested has started working, many still are not.

 

Some logs attached.

 

thanks again

embyserver.txt

ffmpeg-transcode-b1c87580-e949-4132-9cb9-f8e6fff5adc5_1.txt

ffmpeg-transcode-c59826f4-94cc-4d93-b5b1-ba7cd3888acb_1.txt

hardware_detection-63700341920.txt

now working ffmpeg-transcode-05daa90c-96ab-4c6f-8acc-010718256b4f_1.txt

Posted

They're all working as far as the transcoding process is concerned, but some are just not going fast enough for them to be playable. For this file here:

"\\10.69.69.243\NASs\Media\Movies\Pokémon Detective Pikachu (2019)\Pokémon Detective Pikachu 2019 Bluray-2160p.mkv"

It is burning in subtitles and that is a very costly process for even a powerful system. Try turning off the subtitles and see how the performance compares.

Posted

I've tried turning on and off the setting 'allow subtitle extraction on the fly' as I've read this was the problem in other posts.

 

I believe it will burn in subtitles when this option is disabled.

 

It was ticked and on as in the attached screenshot during the last set of logs, is it possible the setting is not actually changing?

 

Thanks

post-363705-0-13517700-1564719845_thumb.png

  • Solution
Posted

These subtitles are PGS format. Burning them in is the only option for these if you're playing from the web app. That means that checkbox has no effect on your tests here. What i mean by turn the subtitles off is turn them off in the video player so that they're not displayed. Or better yet, turn them off prior to playback on the video detail screen.

  • Like 1
Posted (edited)

I hadn't realised this about different subtitle formats, and I hadn't noticed they were turned on on some of the videos.


 


This has fixed every video i've tested but one, which I think may be an issue with the file itself.


 


Error while opening decoder for input stream #0:0 : Invalid data found when processing input

T=0.094s

Local Time: 14:44:26

 

Affected codecs:

>>>>>>  libx264 Software Encoder

        Color Formats: YUV420P, YUVJ420P, YUV422P, YUVJ422P, YUV444P, YUVJ444P, NV12, NV16, NV21, YUV420P10, YUV422P10, YUV444P10, NV20

        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Profile (Level 6.2)

 

Info    Previous transcoding attempt failed. Falling back to software transcoding.

ffmpeg-transcode-7b3ce485-e684-4208-b9bd-d9e8f86f8573_1.txt

Edited by dave1255
Posted

Have you checked the website for your video card to make sure you have the latest drivers installed?

Posted

Yes, updated as of yesterday. Nvidia 1060

Posted

The Nvidia CUVID decoders are using their own video format parsers which are more restrictive than the ones from ffmpeg. 

This could be remedied by using NVDEC instead, but right now we don't have individual codec configuration implemented yet.

 

What you can do right now is to switch to custom codec configuration and for HEVC decoding use the DXVA decoder instead.

Posted

Thank you both for your help, I haven't found a file that won't play perfectly now.

Posted

Thanks for the feedback.

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