Jump to content

Emby does not play come videos connecting remotely over the internet


Recommended Posts

intersect
Posted (edited)

Hello,

I had some issues with streaming devices outside of my network not being able to play videos. Sometimes they are waiting 30s and then get back to the overview of the video. Sometimes it tries direct play and switches mid loading after 30s to transcoding often with horrible quality. Therefore I though the streaming device which are a firetv stick 1/2gen and a LG Android OS are not sufficient enough to handle it.

That's why I bought a Nvidia Shield TV Pro today and connected to my server over the internet and got the exact same issues, which surprised me. Therefore I did some digging and compared it to my ~2021 Sony TV which plays everything directly without any issues at all. Until I tried to connect my TV over the internet instead of locally to my server and also experienced the same issues.

Something is going wrong in my setup, I attached the logs and wanted to ask for help.

I didn't open any ports however I can login and go through the library no issues at all. Some videos are playing but most load a long time and go back or I get something "No compatible stream is available.". I got a Cloudflare tunnel configured with edge certificate to a nginx reverse proxy which passes the request to emby.

I restarted the server to get a new log file and tried playing the same two videos on my Sony TV Android OS and Nvidia Shield TV Pro, my TV uses the Emby for Android TV and the Nvidia Shield TV Pro uses the Emby App. (I also tested Emby for Android TV on the Nvidia Shield TV Pro - same behaviour).

I also just got a new fibre connection with 1Gbits down / 200Mbits up . I upgraded from cable to fibre because before I couldn't rule out my internet connection as the cause. So internet connection is is definitely out at this point.

Looking forward to get some insides :).

Best regards
intersect
 

embyserver.txt hardware_detection-63852588231.txt

Edited by intersect
Lessaj
Posted (edited)

It looks like you need to review the user settings for this profile because you've disabled any transcoding or remuxing - the key here is likely remuxing, the devices might not support an audio format for example and it needs to be remuxed rather than direct played. This is a minimal CPU overhead operation.

Quote

User policy for moez. EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False

image.png.df3749559342244e00acea9d05725464.png

Something else of note, you said you have a cloudflare/nginx reverse proxy setup with certificates but all the traffic in this log is HTTP not HTTPS, so I don't think you're actually taking advantage of this setup.

EDIT: Actually looking a little closer I see some information in the headers about it being https so I guess you're just proxying to the HTTP port and that's why it still comes up as an http URL. I know within a home environment you shouldn't really need to proxy to an HTTPS port but it's just a habit I've gotten into from my professional experience with enterprise networks.

Edited by Lessaj
  • Like 1
  • Thanks 1
intersect
Posted (edited)

Interesting, the issues are no longer there. I added the remote address into emby and restored the user permissions now it works. Thanks mate appreciate your efforts!

Edited by intersect
  • Thanks 2
intersect
Posted (edited)

The issue is sadly persisting, I went to a friend with the new the Nvidia Shield TV Pro which worked perfectly at home. They got a 50Mbits connection which was connected over ethernet to the Nvidia Shield TV Pro. If I click on play, it either loads forever and maybe plays, or it plays directly. So if I choose any video and click on play it starts loading, I click back and play the same video again it works directly - if I do that again with the same video a couple of times it sometimes play and sometimes loads.

It is now very frustrating and I would like to keep using Emby. I already got faster and stabile internet, my server is a beast and now bought the Nvidia Shield TV Pro still issues.

Here are all logs which show my outcomes.

Very interested to know, what it issue is. Looks to me like the request to stream is sometimes being blocked, but I don't know why that should be the case.

Best regards
intersect

embyserver (1).txt ffmpeg-directstream-5b553696-8962-4a5f-a6eb-90a1db1822ce_1.txt ffmpeg-directstream-8fc118b1-d175-414a-ad01-f99c9bedc397_1.txt ffmpeg-directstream-76bb491f-3ef6-437a-938c-a1963842c8b0_1.txt ffmpeg-directstream-91f6632f-866d-4859-bc13-5ba319457266_1.txt ffmpeg-directstream-0932642b-e785-4f7b-8960-aabcac71fdcc_1.txt ffmpeg-directstream-96199692-cd47-4830-be8c-791424783550_1.txt ffmpeg-directstream-b601e8a0-afe4-485d-b71b-1379c00c8ef0_1.txt ffmpeg-directstream-bf506068-4da9-4463-ab9f-664f22b6ba96_1.txt ffmpeg-directstream-de0eb0b8-eca8-4e3d-97b2-49089b751ab9_1.txt ffmpeg-directstream-df1f059e-9d5a-49b0-a261-1b4135d2ba50_1.txt ffmpeg-remux-1ca44642-936a-433b-b5d8-a789726c2207_1.txt ffmpeg-remux-74ab17cc-1829-4cd6-bdb5-644d4f580704_1.txt ffmpeg-remux-ecceff5d-5909-49eb-a2d2-ed72badee5ee_1.txt ffmpeg-transcode-9b38253f-5554-47de-bc3f-b0ed9ceb485f_1.txt ffmpeg-transcode-52f72b34-8d01-4a91-85b0-bdd7b8cb4f3e_1 (1).txt ffmpeg-transcode-52f72b34-8d01-4a91-85b0-bdd7b8cb4f3e_1.txt ffmpeg-transcode-90a54253-691e-423f-ad6c-6d8c5bd16b15_1.txt ffmpeg-transcode-ec0710fa-7244-40e3-82b4-0325dabf7df3_1.txt

Edited by intersect
intersect
Posted (edited)

So, I need to remove the edge certificate or is the proxy tunnel in itself the issue?

 

Maybe someone else has an idea how to fix it?

Edited by intersect
Lessaj
Posted

How did you configure your CF tunnel? Are you doing any exclusions like mentioned in this post? 

 

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