SakuraRainSnow 3 Posted July 18, 2024 Posted July 18, 2024 I don't konw why but when I access emby from the external network, the media loading will be very slow in every frist time.when i open media,i need wait 2+ mins to loading it. And when it's loading,I can see that emby is using all my upload bandwidth(About 50Mbps,The video code rate is less than 1080p-30Mbps ) I don' t know why it's happend,and on the contrary, if I play it directly without emby, the video can load quickly (using VLC player) In addition, if I use the intranet IP to access, the video loading speed is completely normal embyserver.txt
Luke 42077 Posted July 20, 2024 Posted July 20, 2024 Hi, I would try lowering the in-app quality setting. That will usually help with this kind of issue. Please let us know if this helps. Thanks !
SakuraRainSnow 3 Posted July 20, 2024 Author Posted July 20, 2024 2 hours ago, Luke said: Hi, I would try lowering the in-app quality setting. That will usually help with this kind of issue. Please let us know if this helps. Thanks ! Thanks for your reply,I test set my internet quality setting to 720P-4Mbps,then the media loading will be fast.and it triggers emby hardware transcoding. When I set it to 1080p-4Mbps, emby will use my all upload of nearly 50Mbps. Is this normal?
Luke 42077 Posted July 20, 2024 Posted July 20, 2024 56 minutes ago, SakuraRainSnow said: Thanks for your reply,I test set my internet quality setting to 720P-4Mbps,then the media loading will be fast.and it triggers emby hardware transcoding. When I set it to 1080p-4Mbps, emby will use my all upload of nearly 50Mbps. Is this normal? Was it direct playing in that case?
SakuraRainSnow 3 Posted July 20, 2024 Author Posted July 20, 2024 6 minutes ago, Luke said: Was it direct playing in that case? yes
Lessaj 467 Posted July 20, 2024 Posted July 20, 2024 It will preload a certain amount when direct playing so you'll see an initial bout of high traffic and then you'll see spikes of new data probably every 20 or 30 seconds. When transcoding it requests for a new chunk roughly every 3 seconds.
SakuraRainSnow 3 Posted July 22, 2024 Author Posted July 22, 2024 On 7/20/2024 at 11:23 PM, Lessaj said: It will preload a certain amount when direct playing so you'll see an initial bout of high traffic and then you'll see spikes of new data probably every 20 or 30 seconds. When transcoding it requests for a new chunk roughly every 3 seconds. Can I set this preload value?1-3 minutes of 50 Mbps cache time is not reasonable.even my original file is only 300mb
Lessaj 467 Posted July 22, 2024 Posted July 22, 2024 A 300 MB file being transferred at 50 Mbps would take 48 seconds, likely not maintaining full speed the whole time so closer to a minute seems about right. I'm not sure how direct play preloading works exactly, if it's a duration of time, or a set amount of data, but it should start to play within a few seconds if your connection is being maxed out, it shouldn't take 2 minutes to start.
SakuraRainSnow 3 Posted July 27, 2024 Author Posted July 27, 2024 On 7/23/2024 at 12:13 AM, Lessaj said: A 300 MB file being transferred at 50 Mbps would take 48 seconds, likely not maintaining full speed the whole time so closer to a minute seems about right. I'm not sure how direct play preloading works exactly, if it's a duration of time, or a set amount of data, but it should start to play within a few seconds if your connection is being maxed out, it shouldn't take 2 minutes to start. I know that,so I find it weird. I can see emby uses a much larger amount of data than the source file to load the video for 400MB file,emby can used more than 500MB data upload... I can even record a video of data usage
SakuraRainSnow 3 Posted July 27, 2024 Author Posted July 27, 2024 On 7/23/2024 at 12:13 AM, Lessaj said: A 300 MB file being transferred at 50 Mbps would take 48 seconds, likely not maintaining full speed the whole time so closer to a minute seems about right. I'm not sure how direct play preloading works exactly, if it's a duration of time, or a set amount of data, but it should start to play within a few seconds if your connection is being maxed out, it shouldn't take 2 minutes to start. for loading this file,emby used 400MB+ upload,but source file just 400MB,And in the process of playing, it is still continuously uploaded,this is so strange..
SakuraRainSnow 3 Posted July 27, 2024 Author Posted July 27, 2024 (edited) On 7/20/2024 at 12:27 PM, Luke said: Was it direct playing in that case? Can you take a look at my reply?And log file was upload embyserver (1).txt Edited July 27, 2024 by SakuraRainSnow
SakuraRainSnow 3 Posted July 29, 2024 Author Posted July 29, 2024 On 7/20/2024 at 12:27 PM, Luke said: Was it direct playing in that case? I discovered a strange phenomenon If the video I play triggers hardware transcoding, this problem no longer exists and playback from external networks is completely fine. Even though its transcoding quality is 1080P 4Mbps
Luke 42077 Posted July 29, 2024 Posted July 29, 2024 8 hours ago, SakuraRainSnow said: I discovered a strange phenomenon If the video I play triggers hardware transcoding, this problem no longer exists and playback from external networks is completely fine. Even though its transcoding quality is 1080P 4Mbps HI, so what you're saying is your system can't handle much software transcoding?
SakuraRainSnow 3 Posted July 30, 2024 Author Posted July 30, 2024 6 hours ago, Luke said: HI, so what you're saying is your system can't handle much software transcoding? No, I mean as long as it is not played directly, but played after transcoding by the server, the traffic and bandwidth consumption are completely normal. The playback device I use is Samsung TabS9+, I think it has nothing to do with the playback device, and there is something wrong with the direct playback strategy
Solution SakuraRainSnow 3 Posted August 2, 2024 Author Solution Posted August 2, 2024 Now I know why... The reason for this problem is that my nginx reverse proxy configuration error. For Nginx Proxy,Must be closed nginx cache,so the example nginx conf like this: ``` #PROXY-START/ location ~* \.(gif|png|jpg|css|js|woff|woff2)$ { proxy_pass http://ip:port; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; expires 12h; } client_max_body_size 5000M; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For '$proxy_add_x_forwarded_for'; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions; proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key; proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version; proxy_cache off; proxy_redirect off; proxy_buffering off; location / { proxy_pass http://ip:port; proxy_set_header X-Forwarded-For $remote_addr; proxy_ssl_verify off; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } #PROXY-END/ ``` 1 1
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