wloot 6 Posted September 11, 2021 Posted September 11, 2021 (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 September 11, 2021 by wloot
Abobader 3464 Posted September 11, 2021 Posted September 11, 2021 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 4744 Posted September 11, 2021 Posted September 11, 2021 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.
wloot 6 Posted September 11, 2021 Author Posted September 11, 2021 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 4744 Posted September 11, 2021 Posted September 11, 2021 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.
wloot 6 Posted September 11, 2021 Author Posted September 11, 2021 (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 September 11, 2021 by wloot
GrimReaper 4744 Posted September 11, 2021 Posted September 11, 2021 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.
wloot 6 Posted September 11, 2021 Author Posted September 11, 2021 (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 September 11, 2021 by wloot
GrimReaper 4744 Posted September 11, 2021 Posted September 11, 2021 (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 September 11, 2021 by GrimReaper Append 1
wloot 6 Posted September 12, 2021 Author Posted September 12, 2021 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.
wloot 6 Posted September 12, 2021 Author Posted September 12, 2021 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 wloot 6 Posted September 12, 2021 Author Solution Posted September 12, 2021 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; }
justinrh 260 Posted September 12, 2021 Posted September 12, 2021 @wloot could you elaborate? Where is nginx in the Emby picture? Exactly which file did you modify?
rodainas 191 Posted September 12, 2021 Posted September 12, 2021 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.
justinrh 260 Posted September 12, 2021 Posted September 12, 2021 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??
rodainas 191 Posted September 12, 2021 Posted September 12, 2021 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now