Jump to content

client is still try transcoding video even the permission is disabled


Go to solution Solved by wloot,

Recommended Posts

Posted (edited)

I am trying to configure only direct playback for user, so i disabled its video transcoding permission.

But thing not works like that, for hevc videos the web client can not play but trying transcoding for few times then throw failed, and for h264 videos the playback is repackaged into ts container.  ps the pc is able to decode hevc and h264.

I finally find out it is caused by internet video quality, default of the option is auto. Once i set it to 4k-120mbps both of h264 and hevc videos can be direct play.

So can you fix this weird behavior? and maybe allow to let admins set users video quality option, or someway to "force" direct playback?

Edited by wloot
Posted

Hello wloot,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:

Thank you.

Emby Team

GrimReaper
Posted
9 minutes ago, wloot said:

for hevc videos the web client can not play but trying transcoding

 

9 minutes ago, wloot said:

Once i set it to 4k-120mbps both of h264 and hevc videos can be direct play.

Which browser you use that can direct play hevc? I know Edge Chromium did several versions ago but got broken at some point. 

Posted
4 minutes ago, GrimReaper said:

Which browser you use that can direct play hevc?

The last version of edge, i am getting it works after installing a old version hevc extension.

GrimReaper
Posted
20 minutes ago, wloot said:

I finally find out it is caused by internet video quality, default of the option is auto. Once i set it to 4k-120mbps

Yeah, there were few topics lately with "Auto" not selecting optimal quality, if you look through the logs it will likely be bandwidth related - bitrate exceeding limit. And no, there's no 'force' direct playing flag/option, just set client options to some fixed numeral value, as you found out already. 

Posted (edited)
7 minutes ago, GrimReaper said:

Yeah, there were few topics lately with "Auto" not selecting optimal quality, if you look through the logs it will likely be bandwidth related - bitrate exceeding limit. And no, there's no 'force' direct playing flag/option, just set client options to some fixed numeral value, as you found out already. 

for case 2(h264), it is still weird: since the video's bitrate is over limit, how a container repackaged can reduce bitrate or it actually is recoded?

Edited by wloot
GrimReaper
Posted
6 minutes ago, wloot said:

for case 2(h264), it is still weird: since the video's bitrate is over limit, how a container repackaged can reduce bitrate or it actually is recoded?

It's transcoded to lower bitrate. 

Posted (edited)
2 minutes ago, GrimReaper said:

It's transcoded to lower bitrate. 

even if i have disabled the permission? and i see log says it is only doing repack(direct stream).

Edited by wloot
GrimReaper
Posted (edited)
8 minutes ago, wloot said:

even if i have disabled the permission? and i see log says it is only doing repack(direct stream).

No, not if you disabled permission, it should only be repackaged then.

Edit: Your ffmpeg-transcode and ffmpeg-directstream logs should tell you what's happening in each case. 

Edited by GrimReaper
Append
  • Like 1
Posted

Have your questions been answered?

Posted
1 hour ago, Luke said:

Have your questions been answered?

I think that when the bitrate limit is exceeded and meanwhile there is no transcoding permission, an error should be returned directly instead of trying to repack which has no point.

Posted
1 hour ago, Luke said:

Have your questions been answered?

And i really want to find a way to set default value of video/audio quality for user clients.

  • Solution
Posted
1 hour ago, wloot said:

And i really want to find a way to set default value of video/audio quality for user clients.

Update:

I've solved this problem by some nginx hacking.

        if ($args ~* ^(.*)MaxStreamingBitrate=[0-9]+(.*)$) {
          set $args $1MaxStreamingBitrate=140000000$2;
        }

 

Posted

@wloot could you elaborate?  Where is nginx in the Emby picture?  Exactly which file did you modify?

Posted
10 minutes ago, justinrh said:

@wloot could you elaborate?  Where is nginx in the Emby picture?  Exactly which file did you modify?

Nginx is a reverse proxy, it is an independant application from emby, it let you run multiple self hosted apps and websites from your server.

He modified the server block for emby on the nginx config file.

Posted

Righto.  I'm wondering how the args get passed to nginx.  How would it know about Emby operations?  It is reading URL params or sniffing packets??

Posted

He put a bitrate limit for all the clients on nginx config, as nginx is working in front of emby (for all the remote connections), the limitation will apply to all the remote connected clients.

Client -> Nginx (limit) -> emby

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