Jump to content

Transcoding while streaming over HTTPS


Go to solution Solved by GrimReaper,

Recommended Posts

Posted

When I play my media locally on my phone, it streams immediately without buffering and CPU usage is minor.
 

However when I'm streaming on the same phone over HTTPS, be it WiFi or Cellular, CPU usage peaks on my Raspberry Pi and it buffers for quite some time, (sometimes too long to even play), indicating transcoding. How can I fix this behaviour? I don't want transcoding at all.

Any help is appreciated.

GrimReaper
Posted

Have you explored Stats For Nerds to find out what is the reason for transcoding? You can also post here ffmpeg log created for one of those sessions. Also, what is your in-app streaming bandwidth set to (Settings>Playback tab)? If it's Auto, try setting some fixed value high enough that it covers all item bitrates. 

  • Like 1
  • Thanks 1
Posted (edited)
2 minutes ago, GrimReaper said:

Have you explored Stats For Nerds to find out what is the reason for transcoding? You can also post here ffmpeg log created for one of those sessions. Also, what is your in-app streaming bandwidth set to (Settings>Playback tab)? If it's Auto, try setting some fixed value high enough that it covers all item bitrates. 

Haven't tried it yet. Will do and get back.

Also yes bandwidth is set to auto, will try changing it as well.

Edited by wrick17
  • Thanks 1
Posted
19 hours ago, GrimReaper said:

Have you explored Stats For Nerds to find out what is the reason for transcoding? You can also post here ffmpeg log created for one of those sessions. Also, what is your in-app streaming bandwidth set to (Settings>Playback tab)? If it's Auto, try setting some fixed value high enough that it covers all item bitrates. 

I've tried setting my in-app bandwidth to higher values like 40/160Mbps, but still stats for nerds say I'm streaming at 2Mbps. Am I missing something?

IMG_1936.jpeg

Posted

Maybe the file is only 2 mbps?

  • Thanks 1
Posted
57 minutes ago, Luke said:

Maybe the file is only 2 mbps?

It is it turns out. Didn't think of that. Anyway in that case, I have more than enough bandwidth to cover DirectPlay. So why would it go and transcode the file? I checked my Raspberry Pi server stats and the CPU usage spikes when I start playing. Once it starts, there's no further high CPU usage anymore, at least for the few minutes I've tried playing it.

GrimReaper
Posted
29 minutes ago, wrick17 said:

So why would it go and transcode the file?

As said, if it were transcoding, your SFN and/or serever Dashboard would tell you that, together with Reason for transcoding and appropriate ffmpeg logs would be generated. Do you have any of those in your Logs folder? 

  • Agree 1
Posted
5 minutes ago, GrimReaper said:

As said, if it were transcoding, your SFN and/or serever Dashboard would tell you that, together with Reason for transcoding and appropriate ffmpeg logs would be generated. Do you have any of those in your Logs folder? 

Here's the latest log file 👇🏻

embyserver.txt

Posted
40 minutes ago, wrick17 said:

It is it turns out. Didn't think of that. Anyway in that case, I have more than enough bandwidth to cover DirectPlay. So why would it go and transcode the file? I checked my Raspberry Pi server stats and the CPU usage spikes when I start playing. Once it starts, there's no further high CPU usage anymore, at least for the few minutes I've tried playing it.

In your screenshot above it is not transcoding. Why do you think it is?

  • Like 1
  • Solution
GrimReaper
Posted
9 minutes ago, wrick17 said:

Here's the latest log file 👇🏻

embyserver.txt 167.86 kB · 0 downloads

Your user has all remux/transcode options disabled, so it would be safe to assume no transcoding is taking place during any session, evidenced also by your screenshot, as said by @Luke

Quote
2023-12-21 08:15:39.996 Info App: User policy for wrick. EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False

 

  • Thanks 2
Posted
20 minutes ago, Luke said:

In your screenshot above it is not transcoding. Why do you think it is?

Only because my CPU spikes to a 100% for a minute or 2. I thought it's spiking because it's transcoding. As this behaviour is not there when I'm streaming on the same network. It only happens when I'm streaming over the internet. The bigger the file, the longer it takes.

 

15 minutes ago, GrimReaper said:

Your user has all remux/transcode options disabled, so it would be safe to assume no transcoding is taking place during any session, evidenced also by your screenshot, as said by @Luke

 

I agree, I've verified the same in the settings. 

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