Jump to content

High memory usage both on emby 4.8.0.8 and 4.7.6


janlukemam1
 Share

Recommended Posts

janlukemam1

Hi @Luke,

I'm experiencing issue on my emby installation (Terramaster f2-210). I was on 4.7.6 and everything was fine, then I decided to move to 4.8.0.8 but this seems to broke playback capability (especially on 4k streams). So I moved back to 4.7.6, but still the issues remain, so I checked and found out that ffmpeg process is feasting on RAM, even when the Emby Server is stopped (see attached screenshot).

I also attached an emby server log: you can find a correct playback of 1080 stream (txt line 455), and a failed playback of a 4k one, previously working (txt line 891).

Hope this will help in solving the issue, thanks!

image.png.d2ed2cdfb8d58b36375aebc3dae28643.png

embyserver.txt

Edited by janlukemam1
mentioned Luke
Link to comment
Share on other sites

janlukemam1
janlukemam1
1 hour ago, janlukemam1 said:

Thank you @Luke and @softworkz, please let me know if I can help in any way!

I found out just now that I have no issues if I playback my files through iOS app, or Windows app. Streaming through web browser like I always did before gives issues, instead.

Link to comment
Share on other sites

19 minutes ago, janlukemam1 said:

I found out just now that I have no issues if I playback my files through iOS app, or Windows app. Streaming through web browser like I always did before gives issues, instead.

If I had to guess they're probably direct playing without transcoding. Or at least direct streaming the video.

Link to comment
Share on other sites

janlukemam1
33 minutes ago, Luke said:

If I had to guess they're probably direct playing without transcoding. Or at least direct streaming the video.

It is my guess too, but why it stopped working now? Few days before everything was perfectly fine...
Do you know if 4k hevc streams have issues through normal browser playback?

Link to comment
Share on other sites

Happy2Play

Appears encoder related.

15:36:29.339 [h264_v4l2m2m @ 0xb379ee0] Could not find a valid device
15:36:29.339 [h264_v4l2m2m @ 0xb379ee0] can't configure encoder
15:36:29.340 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

 

Link to comment
Share on other sites

@janlukemam1 - Please disable the h264_v4l2m2m encoder in transcoding settings. The h264_v4l2m2m encoder exists for historical reasons and in all the years I haven't seen a single log file where it has been working successfully..

Did you have any hw acceleration working before? Do you have an ffmpeg log from and earlier transcode?

 

Link to comment
Share on other sites

janlukemam1
4 hours ago, softworkz said:

@janlukemam1 - Please disable the h264_v4l2m2m encoder in transcoding settings. The h264_v4l2m2m encoder exists for historical reasons and in all the years I haven't seen a single log file where it has been working successfully..

Did you have any hw acceleration working before? Do you have an ffmpeg log from and earlier transcode?

 

@softworkz

Test steps:

  1. successfully start via browser a 1080p h264 stream
  2. stop it
  3. launch via browser a 4k hevc stream (working via Android and iOS app)
  4. wait for failure

 

I made a first test with hw acceleration and  h264_v4l2m2m on between 9:17 and 9:19 italian time, here's the logs:

ffmpeg-transcode-1055ab65-b45c-4ae3-8be1-1844513c5b90_1.txtffmpeg-transcode-86834e87-ab58-4129-a52f-ddb2bdde1cff_1.txtffmpeg-transcode-6fed56ca-9ea3-4518-b969-e39a11086192_1.txtffmpeg-remux-af51b083-a37a-49af-963f-c5d93530dd7e_1.txtembyserver.txt

 

Second test with hw acceleration on and  h264_v4l2m2m off:

image.png.e76fc4a6480f42c49a682185492f08b6.png

 

test was made between 9:26 and 9:30 italian time, here's the logs:

embyserver-63799435482.txtffmpeg-remux-66b23851-8517-458d-81bd-4b60342f37aa_1.txtffmpeg-transcode-e84e8b61-d6dc-4378-bc71-90ae770cd977_1.txtffmpeg-transcode-0badafab-6280-436c-b708-a65b37dc1f2d_1.txtffmpeg-transcode-051dd0b0-2599-4b02-a024-3ab9abf9ca21_1.txtembyserver(1).txthardware_detection-63799435566.txt

 

third test with hw acceleration off between 9:38 and 9:42 italian time:

ffmpeg-transcode-05a08a10-850d-4674-8613-e3070b126683_1.txtffmpeg-transcode-2905d460-6f7e-4081-9dc2-e83e3cb1ec58_1.txtffmpeg-transcode-18d056c2-495c-46a4-9819-8b87b0638f48_1.txtembyserver(2).txtffmpeg-remux-6577d08c-2822-41c6-a584-f078b68434f2_1.txt

 

Nothing changed in all three test cases.

Thank you so much for your help!

 

 

4 hours ago, Happy2Play said:

Appears encoder related.

15:36:29.339 [h264_v4l2m2m @ 0xb379ee0] Could not find a valid device
15:36:29.339 [h264_v4l2m2m @ 0xb379ee0] can't configure encoder
15:36:29.340 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

 

@Happy2Play:

So... what does actually mean?😅

Link to comment
Share on other sites

On 9/22/2022 at 5:02 AM, softworkz said:

@janlukemam1 - Please disable the h264_v4l2m2m encoder in transcoding settings.

You didn't do this. You sent a bunch of log files with h264_v4l2m2m enabled. Why?

On 9/22/2022 at 5:02 AM, softworkz said:

Did you have any hw acceleration working before? Do you have an ffmpeg log from and earlier transcode?

 

Link to comment
Share on other sites

janlukemam1
On 9/22/2022 at 9:45 AM, janlukemam1 said:

Hi @softworkz, as you can see I made the test with the h264_v4l2m2m module set to off (second tests). Then I made a third one with hw acceleration off at all for completeness.

If I didn't tested properly, please let me know the steps to be followe, because in my understanding I switched off the module as you asked.

 

Thank you for your help.

Link to comment
Share on other sites

1 hour ago, janlukemam1 said:

Hi @softworkz, as you can see I made the test with the h264_v4l2m2m module set to off (second tests).

Yes I've seen that. Those are just running too slow, but well - that's 4k tone mapping. You should reduce the quality setting in the client to a lower resolution to get fluent playback with tone mapping.

Link to comment
Share on other sites

janlukemam1
On 9/21/2022 at 11:06 PM, janlukemam1 said:

It is my guess too, but why it stopped working now? Few days before everything was perfectly fine...
Do you know if 4k hevc streams have issues through normal browser playback?

Hi @softworkz, as I mentioned before client playback has no issues at all. The problem is that I'm not able to play 4k hevc contents via browser.

Please let me know if there's a specific test to be made, and I'll provide you the logs.

Thank you very much!

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...