Jump to content

Transcoding emby android TV


Sabetrem
Go to solution Solved by ebr,

Recommended Posts

Sabetrem

Hello, I would need some information, I have a Synology DS414 NAS server and a Sony TV (2018) and another TV with a xiaomi box s.

I installed Emby and Plex Server on android apps on the drives, and my heart has a big preference for Emby, however, but i have a problem with it. Many movies and series in my library can not be without transcoding, that's not a problem.

It takes a great price for it not to be read directly.

My 2018 Sony TV and x-boxes, are quite capable of decoding movies and car series can work in direct reading with PLEX. The problem comes beautifully and well from Emby.

Do you have a solution?

Thank you in advance for your assistance.

post-409286-0-59325400-1557434452_thumb.png

post-409286-0-12914600-1557434460_thumb.png

Log.txt

Link to comment
Share on other sites

Hi.  Yes, support for AVI files is limited and they usually require transcoding.  Is it possible for you to remux these into a different container (like MKV)?

Link to comment
Share on other sites

Sabetrem

Thank you for your reply. I have a lot of files in this format. I would have preferred to keep them in the original format. There is no parameter in emby that would allow me to stay in this format configuration while avoiding encoding?

Edited by Sabetrem
Link to comment
Share on other sites

Sorry, no.  AVI is not a very well supported format these days.

 

You could use our convert feature to help with the task, though.

Link to comment
Share on other sites

Sabetrem

Could you upgrade to Emby Premiere for 2 or 3 days so I can test your built-in conversion system? If it turns out to be effective I would certainly take a lifetime subscription. cordially

Edited by Sabetrem
Link to comment
Share on other sites

Sabetrem

Could you upgrade to Emby Premiere for 2 or 3 days so I can test your built-in conversion system? If it turns out to be effective I would certainly take a lifetime subscription. cordially

Link to comment
Share on other sites

neik

You would need a one month subscription, I guess.

That's what I did and it costed me like 5 bucks iirc.

Link to comment
Share on other sites

mrfragger

Yea usually avi has old codecs like mpeg2 and usually I rencode them to x265 FAST mkv with handbrake and save 50-75% file size. It’s worth the re-encode plus Emby never needs to transcode anything.

 

I also paid for 2 months $14 (iOS) until I got a lifetime pass.

Edited by mrfragger
Link to comment
Share on other sites

neik

Thank you for your reply ! Did you use emby for conversion or other software?

 

I use the conversion once in a while and it works as I would expect it to work.

Link to comment
Share on other sites

  • 3 weeks later...
tshegofatso100

Hi Guys ive been trying to find out why is it that Android TV App is not allowing to play Media that needs to be transcoded.

 

So I am connecting to the server that is behind the reverse proxy and i think i set this up properly.

Because the Emby App is working properly and Kodi is also working properly.

 

So this is what i did to try to capture the traffic between the my Emby Server and my Clients.

I have a middle server that does reverse proxy.

 

Client >reverse proxy > emby server

 

For code when playing a direct string media and show only the HTTP request from using TCP dump.

 

5ced63aebbfda_attach1.png

 

The highlisted string here it is when i check the http stream.

 

5ced63f07a5f6_attach2.png

 

The following are examples for Emby for android TV

 

this is the HTTP request between my server and proxy server.

 

5ced642f07c3a_attach3.png

 

The highlighted line i expanded it by using follow HTTP stream on wireshark

 

 

5ced645e256d7_attach4.png

 

when trying to play a session that require trascoding this is what i get when i look at Apache logs.

 

5ced648e2f526_attach5.png

 

The following is from Wireshark

 

5ced64cec8adf_attach6.png

 

As you can see it delete the active transcoding and the player just changes because the playing status return an internal error 500.

 

Can you please assist in solving this issue

 

 

i have added the files

ffmpeg-transcode-0e1f200d-3e99-44b3-8a21-a146f994b872_1.txt

embyserver.txt

Edited by tshegofatso100
Link to comment
Share on other sites

Hi there, can you please attach the emby server and ffmpeg logs? thanks.

Link to comment
Share on other sites

tshegofatso100

Hi Luke

 

I have added the logs on the previous post. The time stamps you should look at is between 17:30 -> 18:45;

 

thanks in advances

Link to comment
Share on other sites

Have you tried the same scenario inside your network without going through the reverse proxy?

Link to comment
Share on other sites

tshegofatso100

Its working inside the network. however i want move my from inside my house because it makes to much noise to a different  place. 

Link to comment
Share on other sites

Hi. It seems something with the reverse proxy must not be configured properly.  We've seen this type of thing in the past where the proxy is not forwarding on the post data for a request we send and, therefore, the server doesn't get all the information it needs.

Link to comment
Share on other sites

tshegofatso100

However the same post is working with the emby app and emby - kodi plugin, however the emby for android TV is not working.

Link to comment
Share on other sites

However the same post is working with the emby app and emby - kodi plugin, however the emby for android TV is not working.

 

Some of the other apps provide information like the user ID on the url instead of in the post data.  So, while it appears that they are working, they likely are not working properly.

Link to comment
Share on other sites

tshegofatso100

I am using Apache 2 as my reverse proxy. Do you have any other suggestion I can put on my reverse proxy to aid in at least making these apps also work? Here is my configuration. 

<VirtualHost *:443>
        ServerName myserver.com
        ProxyPreserveHost On
        RewriteEngine On
        RewriteCond %{HTTP:Connection} Upgrade [NC]
        RewriteCond %{HTTP:Upgrade} =websocket [NC]
        RewriteRule /(.*)           ws://192.168.1.7:58096/$1 [P,L]
        RewriteCond %{HTTP:Upgrade} !=websocket [NC]
        RewriteRule /(.*)           http://192.168.1.7:58096/$1 [P,L]

        #limit download speed to allow streamers to have the best experience.
        <Location ~ /Items/(.*)/Download$>
          RewriteRule http://192.168.1.7:58096/Items/$1/Download$ [P,L]
          SetOutputFilter RATE_LIMIT
          SetEnv rate-limit 300
          SetEnv rate-initial-burst 600

        </Location>
      
        
        #embystat links
        <Location ~ ^/emby/web/itemdetails.html(.*)>
         RewriteEngine On
         RewriteRule /emby/web/itemdetails.html(.*) https://myserver.com/web/index.html#!/itemdetails.html$1 [NE]
        </Location>
    Header unset Server

    Header set Strict-Transport-Security "max-age=31556926; includeSubDomains; preload"
    Header set Referrer-Policy "strict-origin"
    Header set X-Frame-Options "sameorigin"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set Content-Security-Policy "default-src 'none'; child-src 'self'; font-src 'self' data:; connect-src 'self' wss: ws: https://mb3admin.com https://github.com/MediaBrowser/; media-src 'self' blob: data: https://github.com/MediaBrowser/; manifest-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'self'; object-src 'none'; worker-src 'self' blob:; script-src 'self' https://www.gstatic.com; img-src data: https: http: ; style-src 'unsafe-inline' 'self' https://fonts.googleapis.com/css"


    ProxyPassReverseCookieDomain .myserver.com 192.168.1.7:58096

    ErrorLog  ${APACHE_LOG_DIR}/emby-error.ssl.log
    CustomLog ${APACHE_LOG_DIR}/emby-access.ssl.log combined

SSLCertificateFile /etc/letsencrypt/live/myserver.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myserver.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/myserver.com/chain.pem
</VirtualHost>
</IfModule>

Edited by tshegofatso100
Link to comment
Share on other sites

I know we've seen this exact issue before.  I'm afraid I'm not well-versed enough with reverse-proxys to help.  Perhaps @@pir8radio has some advice...?

Link to comment
Share on other sites

pir8radio

I think you are thinking of this thread ebr:  https://emby.media/community/index.php?/topic/54890-firetv-wont-play-any-video/?hl=%2Bapache+%2Bproxy+%2Bpir8radio&do=findComment&comment=534267

 

@@tshegofatso100 read through that and check that its not a cert chain issue.    Maybe you already did, i didn't go back in this thread and read everything..     I'm not a sales-man for nginx, but i would suggest changing to nginx.   Its native for linux, if you use windows there is a good windows version out there that is pretty amazing.. lol

 

I know it "works on other devices" but how they do some of the emby clients can be a bit strange, using different "native" players in some OS's and devices, the requests for video comes from those players so it can inject some confusion to the troubleshooting process.

Edited by pir8radio
Link to comment
Share on other sites

  • Solution

No, it isn't a certificate issue.  His proxy is not passing along the post data for the requests.

 

I'm afraid the only solution we've seen so far is using nginx instead...

Link to comment
Share on other sites

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