Jump to content

Question about bitrate setting


Recommended Posts

Posted

I think the latest (and also not so recent) firefox/chromium versions are able to play FLAC directly (quobuz music streaming service is doing this for example)

 

is it possible to disable transcoding for FLAC?

 

im running emby 3.2.20 on linux.

 

Thank You.

Posted

We already direct play when the browsers report that they can play flac. It sounds like they might not be doing that.

Posted (edited)

Im playing on linux (archlinux)

Vivaldi 1.10, emby result: endless loading indicator, not playing.  Fixed by installing ffmpeg propritary codecs, restult is now transcode ts aac

595de19257fcb_vivaldi110.png

 

Firefix 54, emby result: Transcode ts aac
595de1e283b8f_firefox54.png

 

Chromium 59.0.3071.115-1, emby result: Transcode ts aac

595de2096c85e_chromium59.png

 

google-chrome-59.0.3071.115-1, emby result: Transcode ts aac

595de39703266_googlechrome59.png

 

ok, so it does not work on any of my Linux browsers. I have booted ob a Windows 7 VM and tried windows browsers too:

 

Firefox 54 (32 bit) Windows, emby result: transcode ts aac

595de5f996301_firefox54win.png

 

Google Chrome 59.0.3071.115 (Official Build) (64-Bit) Windows, emby result: direct playback  ^_^ 

595dec0498207_googlechrome59win.png

 

Interesting. So i actually found a browser where direct play works on emby, but on most of my browsers it does not while it is working on the audio test page.

Let me know if i can provide more informations.

 

 

Edit: also tested Vivaldi 1.10 windows version, emby result: transcode ts aac. so my linux version seems to be broken.

Edit2: linux vivaldi is now playing by installing ffmpeg propritary codecs.

Edited by bhelm
Posted

ok digging the logs was a good idea (yes, it always is).

2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/8b78d3c6aa0dbbefdb4f0046be84b14c/Images/Primary?tag=6addf89651f85c2faa776e3aaeebdb2e&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/f754c16c9636c16151faf5046ed001e1/Images/Primary?tag=5f4047ef8900e8fc5ce0afe16be5f844&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/aaf9f90a31dbcfeb5a773f387fe57174/Images/Primary?tag=bc8bb73bf78b56ac85942daa4520b4a4&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/aaf9f90a31dbcfeb5a773f387fe57174/Images/Primary?tag=bc8bb73bf78b56ac85942daa4520b4a4&quality=90
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/f754c16c9636c16151faf5046ed001e1/Images/Primary?tag=5f4047ef8900e8fc5ce0afe16be5f844&quality=90
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/8b78d3c6aa0dbbefdb4f0046be84b14c/Images/Primary?tag=6addf89651f85c2faa776e3aaeebdb2e&quality=90
2017-07-07 10:01:58.5940 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/System/Endpoint. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:58.6102 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 16ms. http://127.0.0.1:8096/emby/System/Endpoint
2017-07-07 10:02:02.3752 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.3951 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1
2017-07-07 10:02:02.4757 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items?ParentId=f754c16c9636c16151faf5046ed001e1&Filters=IsNotFolder&Recursive=true&SortBy=SortName&MediaTypes=Audio%2CVideo&Limit=200&Fields=MediaSources%2CChapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.5573 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 82ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items?ParentId=f754c16c9636c16151faf5046ed001e1&Filters=IsNotFolder&Recursive=true&SortBy=SortName&MediaTypes=Audio%2CVideo&Limit=200&Fields=MediaSources%2CChapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false
2017-07-07 10:02:02.6745 Info HttpServer: HTTP HEAD http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.7699 Info App: User policy for Bernd. EnableAudioPlaybackTranscoding: True
2017-07-07 10:02:02.7778 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:02.7868 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:02.8225 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 148ms. http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true
2017-07-07 10:02:02.8965 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.9014 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 5ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1
2017-07-07 10:02:03.0459 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:03.0492 Info App: User policy for Bernd. EnableAudioPlaybackTranscoding: True
2017-07-07 10:02:03.0492 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:03.0493 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:03.0530 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 7ms. http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true

I did not notice that i have a bandwidth policy. I went to my user profile -> playback and changed the max streaming bitrate from "Auto" to 1080p. Now it is direct streaming.

How is this max bandwidth thing working?

What does "Auto" mean? emby server -> me is 100Mbit connection, so bandwith is no problem.

 

i may have set the streaming bandwith on my firetv at home to 1500000, but i expected this to be a device/app setting rather than a profile setting.

mastrmind11
Posted

ok digging the logs was a good idea (yes, it always is).

2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/8b78d3c6aa0dbbefdb4f0046be84b14c/Images/Primary?tag=6addf89651f85c2faa776e3aaeebdb2e&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/f754c16c9636c16151faf5046ed001e1/Images/Primary?tag=5f4047ef8900e8fc5ce0afe16be5f844&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8429 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Items/aaf9f90a31dbcfeb5a773f387fe57174/Images/Primary?tag=bc8bb73bf78b56ac85942daa4520b4a4&quality=90. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/aaf9f90a31dbcfeb5a773f387fe57174/Images/Primary?tag=bc8bb73bf78b56ac85942daa4520b4a4&quality=90
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/f754c16c9636c16151faf5046ed001e1/Images/Primary?tag=5f4047ef8900e8fc5ce0afe16be5f844&quality=90
2017-07-07 10:01:53.8627 Info HttpServer: HTTP Response 304 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Items/8b78d3c6aa0dbbefdb4f0046be84b14c/Images/Primary?tag=6addf89651f85c2faa776e3aaeebdb2e&quality=90
2017-07-07 10:01:58.5940 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/System/Endpoint. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:01:58.6102 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 16ms. http://127.0.0.1:8096/emby/System/Endpoint
2017-07-07 10:02:02.3752 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.3951 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 20ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1
2017-07-07 10:02:02.4757 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items?ParentId=f754c16c9636c16151faf5046ed001e1&Filters=IsNotFolder&Recursive=true&SortBy=SortName&MediaTypes=Audio%2CVideo&Limit=200&Fields=MediaSources%2CChapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.5573 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 82ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items?ParentId=f754c16c9636c16151faf5046ed001e1&Filters=IsNotFolder&Recursive=true&SortBy=SortName&MediaTypes=Audio%2CVideo&Limit=200&Fields=MediaSources%2CChapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false
2017-07-07 10:02:02.6745 Info HttpServer: HTTP HEAD http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.7699 Info App: User policy for Bernd. EnableAudioPlaybackTranscoding: True
2017-07-07 10:02:02.7778 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:02.7868 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:02.8225 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 148ms. http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true
2017-07-07 10:02:02.8965 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:02.9014 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 5ms. http://127.0.0.1:8096/emby/Users/f434f472327642d08810c1332ee5d56a/Items/f754c16c9636c16151faf5046ed001e1
2017-07-07 10:02:03.0459 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
2017-07-07 10:02:03.0492 Info App: User policy for Bernd. EnableAudioPlaybackTranscoding: True
2017-07-07 10:02:03.0492 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:03.0493 Info App: Bitrate exceeds DirectStream limit: media bitrate: 1792750, max bitrate: 1500000
2017-07-07 10:02:03.0530 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 7ms. http://127.0.0.1:8096/emby/Audio/ceba9741c0dd46394f5b856fa49976dd/universal?UserId=f434f472327642d08810c1332ee5d56a&DeviceId=7bc7ac9ffac21857de6732ceab09ef52c7dbc871&MaxStreamingBitrate=1500000&Container=opus,mp3,aac,m4a,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1499414511305&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=true

I did not notice that i have a bandwidth policy. I went to my user profile -> playback and changed the max streaming bitrate from "Auto" to 1080p. Now it is direct streaming.

How is this max bandwidth thing working?

What does "Auto" mean? emby server -> me is 100Mbit connection, so bandwith is no problem.

 

i may have set the streaming bandwith on my firetv at home to 1500000, but i expected this to be a device/app setting rather than a profile setting.

Auto means it tests your bw and sets the bitrate accordingly.

It *is* a per app setting.

Posted

Auto means it tests your bw and sets the bitrate accordingly.

It *is* a per app setting.

then obviously there is something wrong with it on the web player. all the browsertests above were done with the same machine/connection (just the windows tests from within a vm).

Posted

Please attach the complete emby server log, thanks.

Posted

Try updating to the latest version of Emby Server.

Posted

ok updated to 3.2.25 and i can see some improvements. currently for me it is direct playing.

a other user (PHILIPP) is still transcoding the flac songs and he is on the same connection as me. i have made sure that he did a cachefree reload after the update.

logs.zip

Posted

Thanks for the feedback. For the other person, please just supply one log example. The zip file has too many so I don't know what I'm looking at. Thanks.

BloodyIron
Posted (edited)

Is there a way to tell when Emby is serving FLAC to the client? As you say, it _should_ be sending FLAC if it's supported (for example). But how can I conclusively tell that it _is_?

 

Also, that playback testing site is pretty rad :D

Edited by BloodyIron
  • 2 weeks later...
Posted (edited)

i can report (after some weeks of daily use) that with 3.2.25 the direct play of flacs now works as expected. the transcoding of the other user did go away after a day or so and did not return yet.

thank you, i love the direct support on this.

Edited by bhelm
Posted

Thanks for the feedback

  • 2 years later...
Posted (edited)

I would like to know if the function (auto) For the video quality is indeed according to the available bandwidth and if it readjusts itself during reading depending on the available bandwidth at the user

Edited by thegrunge
Posted

 

 

For the video quality is indeed according to the available bandwidth

 

Yes !

 

 

 

readjusts itself during reading depending on the available bandwidth at the user

 

Not currently during playback, it only measures before playback. It's something we plan to improve in future updates though. Thanks !

  • Like 1

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