Jump to content

Transcoding thread count issue


Recommended Posts

Posted (edited)

Hello, i have an issue (i have find an workaround) when transcoding thread count is set to auto, in some case (i dont know which one perfectly) when the cpu usage it higher than 15% Emby dosent use enough thread and make all the playback buffering. 

Note:

The cpu usage is not at 100% (only 15%-20%) 

Workaround:

Set transcoding thread count to an value other than auto fix the issue. 

emby.zip

Edited by damien_c2
Add file.
Posted

OK - we are not talking about video here.

The first half of your logs are "directstream" which means that ffmpeg does nothing more than cutting the file into segments.
The other half of your logs are "remux".

These terms are confusing and inaccurate unfortunately: "directstream" is actually pure remuxing and "remux" is audio transcoding where video is only remuxed.

Could you please post only two ffmpeg log files showing the same playback scenario - one with and another one without the threads param being configured?

Thanks, sw

Posted
13 hours ago, softworkz said:

OK - we are not talking about video here.

The first half of your logs are "directstream" which means that ffmpeg does nothing more than cutting the file into segments.
The other half of your logs are "remux".

These terms are confusing and inaccurate unfortunately: "directstream" is actually pure remuxing and "remux" is audio transcoding where video is only remuxed.

Could you please post only two ffmpeg log files showing the same playback scenario - one with and another one without the threads param being configured?

Thanks, sw

How i can know which stream going to the right log file ?

Posted
3 minutes ago, damien_c2 said:

How i can know which stream going to the right log file ?

There's no log file "per stream".

Just look into the logs folder - do playback - stop playback - then you should see exactly one ffmpeg log having been added.
(you could also delete all ffmpeg logs before)

Posted
On 9/13/2022 at 5:17 AM, softworkz said:

There's no log file "per stream".

Just look into the logs folder - do playback - stop playback - then you should see exactly one ffmpeg log having been added.
(you could also delete all ffmpeg logs before)

 

There you go. 

ffmpeg-remux-2f4d3686-b642-4dd5-ab98-8d48b4848141_1.txt

  • 4 weeks later...
Posted

Thanks for the log!

It shows remuxing of the video and transcoding audio from AC3 to MP3.

The ffmpeg processing runs at about 30x, which means that it is 30 times faster than watching in normal timing.

What issue did you experience at the time when the log was recorded?

Thanks,
sw

Posted
10 hours ago, softworkz said:

Thanks for the log!

It shows remuxing of the video and transcoding audio from AC3 to MP3.

The ffmpeg processing runs at about 30x, which means that it is 30 times faster than watching in normal timing.

What issue did you experience at the time when the log was recorded?

Thanks,
sw

Hello, buffering (video stop and play) 

  • 2 months later...
Posted
13 hours ago, Luke said:

@damien_c2 are you still having an issue with this?

Hi since i have set to 16 no. 

  • Thanks 1
  • 1 month later...
Posted
On 12/30/2022 at 3:03 AM, damien_c2 said:

Hi since i have set to 16 no. 

Can you try setting it back to default and updating to Emby Server 4.7.11?

Posted
On 2/5/2023 at 10:14 PM, Luke said:

Can you try setting it back to default and updating to Emby Server 4.7.11?

I will try but i have found an other issue whit transcoding. 

Posted
On 2/13/2023 at 2:22 PM, damien_c2 said:

I will try but i have found an other issue whit transcoding. 

Hi, what issue?

Posted
On 2/5/2023 at 10:14 PM, Luke said:

Can you try setting it back to default and updating to Emby Server 4.7.11?

I have set to auto and it look fine. 

  • Thanks 1
  • 4 weeks later...
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...