Jump to content


Photo

QNAP, Roku Ultra, MPEG2 Woes

h.262 mpeg2 roku qnap transcode mpeg2video roku ultra

  • Please log in to reply
18 replies to this topic

#1 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 08:08 PM

Hi, all!

 

I want to set up Emby on my QNAP NAS where I keep my media files.  Currently it's running Plex without a hitch, but I just want to replace it with Emby because of the integration with TVHeadEnd. The reason for that is I want to turn my Roku Ultra into my "de-facto HTPC" (sort of).

 

I got it all working, but have one problem: Emby insists on transcoding everything coming from TVHeadEnd from its source MPEG2 format to H.264.  The problem with that that my QNAP doesn't have that much horsepower to begin with and thus starts to suffer from the extra transcoding effort. Since both the Roku and the TV support MPEG2 (a.k.a. H.262), keeping the stream in this format shouldn't be an issue, right?

 

Perhaps this is something that TVHeadEnd configuration can be tweaked for? (i.e. spit out an MKV instead of a TS stream?) Perhaps at the Emby (server or Roku app) level? I doubt something can be tweaked at the Roku level...

 

Unfortunately, I'm drawing somewhat of a blank here and need help from someone with more experience on the topic...perhaps someone has solved this before?

 

Thanks!


Edited by diego.rivera, 10 March 2019 - 08:09 PM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 10 March 2019 - 08:59 PM

HI, what model Roku? Not all Rokus support mpeg2.

@speechles



#3 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 09:03 PM

It's a Roku Ultra. I've checked via the Roku Media Player that it supports H.262 (MPEG-2), which suggests that the hardware supports it as well.



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 10 March 2019 - 09:04 PM

Please also attach the information requested in how to report a media playback issue. thanks.



#5 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 09:06 PM

I don't have that info, but I can collect it.  I removed Emby in frustration some time ago and I thought that this time around I'd research the issue beforehand.  Perhaps it's the Emby-TVHeadEnd plugin not requesting the correct stream format? Perhaps it's TVHeadEnd not spitting out the right stream format?

 

I was hoping to gather information *before* experimenting, but I get what you're saying...

 

Cheers.



#6 speechles OFFLINE  

speechles

    Advanced Member

  • App Developer
  • 4627 posts
  • Local time: 07:38 PM

Posted 10 March 2019 - 09:07 PM

Use the Emby Beta Roku app. This has an added feature that can help out here the stats-for-nerds. You need to play your item like normal. When playing press down on the Roku remote to bring up the video player OSD. On the OSD on the bottom is a row of icons. One of these looks like a graphic-equalizer 3-sliders. Click that icon and bring up the Playback Menu. On this menu you can find the on/off switch for stats-for-nerds. Turn it on.

 

Now the stats-for-nerds shows exactly what is happening. It will remember if you close the video player. This means if you play anything again then you can watch the stats-for-nerds again. What does it list the reason is for transcoding? There has to be a reason for transcoding as the Roku ultra does support mpeg2 and we would pass it if we could. Something is happening to cause the transcoding and the "Transcode reason" shown on the stats for nerds will tell you. 


Edited by speechles, 10 March 2019 - 09:09 PM.


#7 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 09:09 PM

I shall get everything set up again, and try that. It'll be a while before I can answer, though... as I said: I removed Emby in frustration a few months back because I couldn't figure things out despite trying everything I could think of.

 

Cheers!



#8 speechles OFFLINE  

speechles

    Advanced Member

  • App Developer
  • 4627 posts
  • Local time: 07:38 PM

Posted 10 March 2019 - 09:13 PM

I shall get everything set up again, and try that. It'll be a while before I can answer, though... as I said: I removed Emby in frustration a few months back because I couldn't figure things out despite trying everything I could think of.

 

Cheers!

 

We made it easier on you this time. You can see everything from the comfort of your couch on your Roku. The app will now show you exactly what is happening when playing any item. We want this to be as simple as possible with as much information a user could need to get past issues like these on their own. We want you to be able to use Emby your way. Your media, your way. Please try again and let us know if you still have a problem. Post again in this thread. If this is still an issue we will work to resolve it. Thanks. :)


Edited by speechles, 10 March 2019 - 09:14 PM.


#9 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 10:16 PM

Ok so this time it appears that there's no H.264 transcoding going on, which is EXCELLENT!!! I can go ahead with my evil plan of replacing Plex with Emby (assuming everything else works as expected ;) )!!

 

Any ideas when this Emby Beta app will graduate to full-release?

 

Thanks!!



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 10 March 2019 - 10:22 PM

Hopefully soon. thanks for the feedback.



#11 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 10:25 PM

I might have spoke too soon. I tried playing back a movie and saw two issues:

 

1) Playback took what I consider an inordinate amount of time to start playback (30+ seconds)

2) When I enable "stats for nerds", it causes the Roku Emby app to crash (not so for Live TV)

 

What info may I retrieve for your benefit?

 

Cheers!



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 10 March 2019 - 10:28 PM

The info requested in post #4. Thanks.



#13 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 10 March 2019 - 10:44 PM

Log was sent at about 2019-03-11T02:36:00+00:00 UTC (give or take a minute), from the Roku Ultra (obviously), logged in as admin to the Emby server (I probably should change that :D).  The server log is available here

 

The movie in question is Iron Man 2, the file is named "Iron Man 2 (2010).mkv", and is an H.264(1080p yuv420p 23.98fps)+AC3(48Khz, 224Kbps) MKV package.

 

Cheers!



#14 speechles OFFLINE  

speechles

    Advanced Member

  • App Developer
  • 4627 posts
  • Local time: 07:38 PM

Posted 10 March 2019 - 11:28 PM

I apologize. This is the recent additions. I went through the stats for nerds section just now and made sure we are not having a condition where an invalid value might cause a crash.

 

Reference: Fix #279: Better protect against invalid in stats for nerds

 

This should make it to Beta as soon as @ebr has a chance to review my changes. There are others reporting these same crashes but they have never identified the stats for nerds as the cause. We only suspected. I did go through and submit lots of changes to keep this from happening. Hopefully this fixes the issue and I caught the problem. Stay tuned. :)



#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 11 March 2019 - 12:23 AM

Try playing the same channel a second time. Does it improve after that?



#16 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 11 March 2019 - 01:19 AM

As I said, it wasn't a TV channel - that bit worked just fine.

 

It was a movie file, and it's 100% reproducible. I believe @speechles found a possible cause and mitigation, so I'll wait for the updated app and test again.

 

Cheers!



#17 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 11 March 2019 - 04:26 PM

Hey, guys!! I have a question - I'm trying to watch TV via the browser on Emby.  As I mentioned, the Roku app is working fine, playing the media straight from TVHeadEnd without the need for transcoding (what I wanted!).

 

But now I can't accomplish the same on a web browser (Chrome v72.0.3626.121 64-bit on Ubuntu Linux 18.04) - inevitably, all streams are transcoded.  The stats-for-nerds say it's transcoding because "Container not supported" (mpegts). What containers does the web client's player support?  I tried setting the default profile to matroska but playback doesn't even start then... any ideas?

 

Thanks!


Edited by diego.rivera, 11 March 2019 - 04:27 PM.


#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131327 posts
  • Local time: 10:38 PM

Posted 12 March 2019 - 12:16 AM

The web app supports whatever your web browser supports. To learn more please check our web app wiki article:

 

https://github.com/M...wiki/Web-Client

 

Currently no browser supports the mpegts container, or the mpeg2 video codec.


  • diego.rivera likes this

#19 diego.rivera OFFLINE  

diego.rivera

    Advanced Member

  • Members
  • 31 posts
  • Local time: 08:38 PM

Posted 12 March 2019 - 12:53 AM

Ok... fair enough. I suspected something along those lines but it's nice to have confirmation. It's a shame my QNAP doesn't support hardware transcoding (TS-451+), because that would be one solution.

 

Cheers!







Also tagged with one or more of these keywords: h.262, mpeg2, roku, qnap, transcode, mpeg2video, roku ultra

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users