Jump to content

DS920+ low H265 / HEVC 4K transcoding rate on Windows Chrome


YuanminWang

Recommended Posts

YuanminWang

Hi, 

This may have been brought up several times already but somehow I can't find a similar thread, but my apologies if this is repeative. 

I'm running Emby Sever (v. 4.6.4) using docker container on a Synology DS 920+, everything else seems to be great except that when I try to play a H265 / HEVC 4K movie on my Windows 10 laptop using Chrome, the transcoding rate is only 20ish, which leads to periodic freeze of playback. 

However, when I am using iOS Safari to connect to my server (even in 4G mobile network), the playback is no problem even with transcoding rate of over 35 (perhaps that has to do with lower resolution, i.e.: 1080p ?)

I have  attached a few screenshots to help better illustrate the problem.

Please feel free to let me know if anything else needed.

Thanks,

YM

 

This is playback stats on iOS

Playing on iOS Safari

 

This is the summary of video

254791381_1.png.64bfccb14682f105f827ea99cb357920.png

 

This is stats playing on Windows Chrome (local network)

2137531896_2.png.8e7370e018388499a78a176d7014018e.png

 

Link to comment
Share on other sites

YuanminWang

BTW I'm trying out Emby Premiere so currently using HW transcoding I believe, in all the cases mentioned above CPU usage rate is below 20%

Link to comment
Share on other sites

Hi, If you go to logs menu you will see some logs that start with ffmpeg.

Try playing this back again causing a transcode. then upload the ffmpeg log which should be at the top of the list.

Link to comment
Share on other sites

You're problem could be caused by the number of internal subtitles in this file.

As a test could you remux this file using a tool such as xmedia recode to remove all the subs (or leave 1) and then try playing again without the subtitle overhead?

Link to comment
Share on other sites

YuanminWang
21 hours ago, cayars said:

You're problem could be caused by the number of internal subtitles in this file.

As a test could you remux this file using a tool such as xmedia recode to remove all the subs (or leave 1) and then try playing again without the subtitle overhead?

Hi Cayars, do you have guideline as in how to remove all the subs while keep everything else the same, that means keeping the h265/HEVC format (i guess ?) 

Thanks,

YM

Link to comment
Share on other sites

This will take a bit of time to learn and configure correctly but is a great script to have in your pipeline to use before adding media to Emby.  It can do all kinds of things including removing tracks that are in languages you don't want to keep.  It can do things like create 2 channel audio tracks if not present and mark them as defaults to converting video to a specific format.

https://github.com/mdhiggins/sickbeard_mp4_automator

Link to comment
Share on other sites

YuanminWang

Thanks cayars, I just decided to give up on watching HDR10 movie on browser, because the color tune is just not right, see below comparison: using Emby Server to decode vs. playing in an app (decode on the device) 

BTW, do we have plan to correct that in the future ? 

 

Playing in browser:

image.thumb.png.4d3b6e227447db7e175d29a293da98dc.png

 

 

Playing in Emby Theater (or any other player applications)

image.thumb.png.b0068818a47fbd2bcac2c51bcd9fa598.png

 

YM

Link to comment
Share on other sites

Hi, Can you play this again in the browser, then upload the ffmpeg it generated?

Link to comment
Share on other sites

I'd bet it's because of all the subtitles embedded in this file.

Can you turn off this option Transcoding->Allow subtitle extraction on the fly

and then try playing back this file again with no subtitles selected so we can see how that goes as a test?

Upload new ffmpeg log.

Link to comment
Share on other sites

While playing back click on the cog icon then go to quality setting and choose a 1080 resolution such as 30Mb and see what that does for you.

Link to comment
Share on other sites

Can you provide a log file from a transcoding session from ios safari to compare? Thanks.

Link to comment
Share on other sites

YuanminWang
18 hours ago, cayars said:

While playing back click on the cog icon then go to quality setting and choose a 1080 resolution such as 30Mb and see what that does for you.

Hi, 

this playback is still with 'subtitle extraction on the fly' TURNED OFF, weirdly, under 1080 x 30mb, the rate is even lower:

image.thumb.png.5ca9f0d765e810b0b2639cbe7769252f.png

ffmpeg-transcode-d67b5c20-b11a-47b2-ab29-7135c857edba_1.txt

Link to comment
Share on other sites

YuanminWang
9 hours ago, Luke said:

Can you provide a log file from a transcoding session from ios safari to compare? Thanks.

Here's an FFMPEG log on iOS Safari playback, i don't know why but usage of RAM on my 920+ quickly went through the roof after a while...

From the task manager you will notice multiple FFMPEG process going on but there're really no session in play at this moment.

While you can also see from the 2nd screenshot there're multple playback starting from aroud that moment... i have attached all the logs as well as embyserver.txt for your reference.

This seems to be only an issue associated with iOS Safari ? 

image.thumb.png.0f4be397e16815a5cb37bb33cde566f3.png

 

image.thumb.png.d10395678ea25ac74ca2f55915fde332.png

Multiple_FFMPEG_Sessions.zip

Link to comment
Share on other sites

1 hour ago, YuanminWang said:

Hi, 

this playback is still with 'subtitle extraction on the fly' TURNED OFF, weirdly, under 1080 x 30mb, the rate is even lower:

image.thumb.png.5ca9f0d765e810b0b2639cbe7769252f.png

ffmpeg-transcode-d67b5c20-b11a-47b2-ab29-7135c857edba_1.txt 232 kB · 0 downloads

Could you try the next lower Quality setting?  Basically keep lowering it until the Stats for Nerds shows it plating at 1080 vs 4K resolution.  This may not help you but I found one file that would wash out like this at 4K but at 1080 seemed to come back to life color wise.

Is it possible to upload this file somewhere that would could download it to test with?

Link to comment
Share on other sites

YuanminWang
On 30/07/2021 at 21:50, cayars said:

Could you try the next lower Quality setting?  Basically keep lowering it until the Stats for Nerds shows it plating at 1080 vs 4K resolution.  This may not help you but I found one file that would wash out like this at 4K but at 1080 seemed to come back to life color wise.

Is it possible to upload this file somewhere that would could download it to test with?

Thanks Cayars, the file is over 16GB in size, and I don't know how to cut it while retain the coding info, etc.

I think I tried lower resolution earlier but the picture is still washed-out, anyway let me confirm later.

Link to comment
Share on other sites

No I'm talking about during playback in the OSD, click the cog icon then the quality menu and lower it there.

You can do this real-time while it's playing but there will likely be a slight delay with each change you make.

Link to comment
Share on other sites

YuanminWang
8 hours ago, cayars said:

No I'm talking about during playback in the OSD, click the cog icon then the quality menu and lower it there.

You can do this real-time while it's playing but there will likely be a slight delay with each change you make.

I understand lowering resolution through the 'setting' icon during playback, i was referring to your 2nd comment on sharing the file for a more direct diagnositic.

Anyway, here's the screenshot and, as always, logs attached.

Under 1920x1080 x 15mbp/s the rate of transcoding is quite healthy, i.e.: 28 ~ 46

HOWEVER, if I dial up the bit-rate to 20mbp/s the transcoding FPS plumbered to 15~20... which is really strange

image.thumb.png.84b552a6db0ce02121b3897e1d610e7f.png

ffmpeg-transcode-92e2ef0c-058a-4ea6-a01f-cf58c4ba935d_1.txt

Link to comment
Share on other sites

Got ya.  Do you know how to use ffmpeg from the command line?

if so I could give you a command line you could try that would generate a 2 or 3 minute version of this file.  You would then need to test the sample version to make sure it has the same issue.  But that would make it a lot smaller file to upload.

Link to comment
Share on other sites

YuanminWang
30 minutes ago, cayars said:

Got ya.  Do you know how to use ffmpeg from the command line?

if so I could give you a command line you could try that would generate a 2 or 3 minute version of this file.  You would then need to test the sample version to make sure it has the same issue.  But that would make it a lot smaller file to upload.

Sure please share and I will try it out

Link to comment
Share on other sites

Try this and let's see what you get

ffmpeg -i input.mkv -c copy -t 120 output.mkv
Link to comment
Share on other sites

YuanminWang
On 03/08/2021 at 22:49, cayars said:

Try this and let's see what you get


ffmpeg -i input.mkv -c copy -t 120 output.mkv

120 sec produces over 200mb so i shortend it to 90 sec. 

I have tested it out with emby server and confirmed that the same issue persists, i.e.: washed-out picture, and slow transcode rate.

Thanks Cayars for your support and following this up for so long, i almost give it up.

YM

output.mkv

Link to comment
Share on other sites

  • 2 weeks later...

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