Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Roku (again)

  1. #1
    Join Date
    Mar 2012
    Posts
    126

    Default Roku (again)

    I’ve been playing around with the Roku device profiles a bit, and have had some decent results reducing transcoding and getting Mezzmo to send various devices media they support. Newer Roku devices support Dolby, DTS, etc... up to six channels (5.1) some support Atmos although I can’t get more than 5.1 to stream so far, and they support .MKV (finally), and so on...

    The trouble I’m having is testing changes to the device profiles. It seems like when I make changes, stop Mezzmo, and exit the Mezzmo app on the Roku, more often than not it doesn’t take the new setting. Especially if I revert a setting. It drives me batty because I can’t seem to get results I can be confident in every time when I change something.

    Is there a cache I should clear somewhere, or something? Transcoding to Roku is almost invariably problematic. I get that for the most part they’re designed to be web streamers, but a lot of that web content makes them fairly compelling, since it’s not available for Android TV (Nvidia Shield). Any pointers or tutorials on device profiles would be great, also any information on if there is some means to query a device for its capabilities would be huge.

  2. #2
    Join Date
    Mar 2012
    Posts
    126

    Default

    I just thought I'd add some more to this. For newer Roku OSes, the table "Audio fields" list supported audio formats (https://developer.roku.com/docs/refe...nodes/video.md).

    There are a lot of tables on this page (https://developer.roku.com/docs/deve...ive-attributes), but in the table "Playback configuration attributes" under "Stream format", it seems to list supported video formats. In the same table, under "Subtitle URL", it shows what seem to be supported external subtitle formats *SRT and TTML, but another page also shows WebVTT, which is all I see in the device profiles). There's a page here with details on closed captioning, which says closed captions and subtitles are different, but in Mezzmo I don;t think they really are (https://developer.roku.com/docs/deve...sed-caption.md).

    Here has the table of what looks like supported video in the table "Trickplay fields" and "videoFormat". There's also a table "Closed caption fields" that might be of value.

    There are things I don't get about the device profiles, but some things I've found...

    Essentially I copied in this section of xml from the Kodi profile into the Matroska <avcontainer> in the Roku MKV profile:

    <format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
    <channels>2</channels>
    <channels>6</channels>
    <maxbitrate>448000</maxbitrate>
    <bitrate>448000</bitrate>
    <maxsamplingrate>48000</maxsamplingrate>
    <minsamplingrate>11025</minsamplingrate>
    <samplingrate>48000</samplingrate>
    <samplingrate>44100</samplingrate>
    <samplingrate>32000</samplingrate>
    </format>

    And Mezzmo stopped transcoding Dolby Digital to my Roku, and it played without a problem. But I'm getting out of my element here - what about other formats? What about Dolby Atmos? For DTS, can I control what flavors of DTS are transcoded and which are not?

    Things get even more unstable on Roku when there are forced subtitles that are external. It seems that by default it tries to burn them in, but I *think* it pre-transcodes the whole file before it will start to play, and if you navigate off the video, it just leaves a partially transcoded stub file with a GUID in the transcoded file folder, and just plays until that ends until you delete the files, and force it to transcode anew.

    It seems like getting Roku going well would be valuable, as these things are becoming ubiquitous in the United States. I know you guys are in Oz, but if there is anything I can do to help get this working perfectly on Roku, I'm willing to invest any time I can. I don't think I can ship one to you folks to play with but let me know what would be helpful.
    Last edited by hsbrown2; 02-22-2021 at 06:02 AM.

  3. #3
    Join Date
    Mar 2012
    Posts
    126

    Default Another good link

    This link should have everything you might need to create a solid device profile:

    https://developer.roku.com/docs/spec...cifications.md
    Last edited by hsbrown2; 02-22-2021 at 06:49 AM.

  4. #4
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    When you make a change to the device profile you need to stop your Mezzmo Media server and start it again so that the new profile changes are loaded. We have the Roku 4k profile in the current version of Mezzmo which supports h265, dts and matroska. The problem with Roku devices is that it is difficult to determine the model from the Mezzmo server and each Roku supports different formats depending upon the age of the device. For newer Roku devices you should use the 4k profile.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  5. #5
    Join Date
    Mar 2012
    Posts
    126

    Default

    So, the 4k profile still runs into some issues, like supported subtitle formats. And I don’t see VP8 in there, but maybe VP9 encapsulates that as well. I’d ask for at least a review of the info on the developer page I linked to, and I’m happy to test. Also, there are middle of the road support for streaming sticks too, where DTS and Dolby are partially supported, etc... but the first order of business IMO would be to get the subtitle support going. It looks like webvtt is all the profile shows as supported, but srt and one I’ve never seen before are also supported. SRT is low hanging fruit because they can be extracted on the fly. PGS is a manual process, but can still be pulled to SRT. But I’m not clear on whether or not those will work without transcoding and burning them in unless the profile shows the support.

  6. #6
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    We had a look at the developer page and it looks like most of the formats are covered in the 4k profile. Files encoded in VP8 are not very common, usually VP8 or VP9 is used as a format for transcoding rather than a native format to support. We have only been able to get WebVTT subtitles to work. Mezzmo transcodes other text based subtitle formats to webVTT on the fly so any SRT files will be transcoded to webVTT seamlessly.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  7. #7
    Join Date
    Mar 2012
    Posts
    126

    Default

    So the goal I’m trying to achieve is to minimize transcoding. Almost invariably, but especially when there’s an unsupported audio format or something and an unsupported subtitle stream, the Roku bombs a lot, especially 1080p content. I’m using NVENC so I know it can transcode smoothly.

    I added “srt,” in front of the wbvtt entry, and disabled transcoding on the test stick device, and it’s playing perfectly. But transcoding may still be necessary. Dolby Digital Plus (e-ac3) doesn’t seem to be in the MKV profile (the stick does not support 4k), and I’ll need to add the DTS flag in the container to pass it through, but I think both of those may need filtering of some kind configured in the device profile to work in all cases it should work. I didn’t note if it was in the 4k profile, but it should support Atmos as well...

    I guess I’m more or less on my own here, but the Roku experience is really bad whenever transcoding is enabled, although I don’t think it is a Mezzmo issue, maybe the Roku times out. It seems especially problematic at the beginning of transcoding. I have to attempt to play the stream several time (3-6) before the video begins playing.

  8. #8
    Join Date
    Mar 2012
    Posts
    126

    Default

    Oh and just to add a bit to this, the biggest issue transcoding subtitles are foreign language forced subtitles - I don’t know about others, but it seems as though Mezzmo must/does pre-transcode the entire file before it plays, but it tends to bomb as the Roku seems to not keep alive (or something) and the video just sits in a “Queued” state forever.

  9. #9
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    Transcoding text subtitle files is a very light process, it is taking a text file and adding tags for the webVTT format so CPU load should be almost non-existent. In the case of transcoding subtitles the video file content is not touched, this is different to burning subtitles. The 4k profile uses hls as the default transcoding format the same as the Roku Streaming Player profile, this allows seeking to any point in the file without requiring the whole file to be transcoded first but the drawback is that it can be slow to start playing especially on higher resolution files. The entire file is not transcoded in this case but Mezzmo does wait for several segments of the file to be available before streaming. We also have the Roku Streaming Player (Mkv) profile which uses Matroska as the default transcoding format and not hls but the downside of this is that seeking is not available when transcoding on the fly.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  10. #10
    Join Date
    Mar 2012
    Posts
    126

    Default

    It looks like mpeg2 is supported on Roku at this time, with Roku firmware 9 or later (not discoverable on their dev site, it seems). Some MKVs have this in the container. I can disable transcoding and force it to send mpeg2, but I get a narrow green stripe on the right-hand side of the screen, any ideas?

    Honestly, I'm not sure what the problem is, all I can really say for sure is that with certain content (and I can't find rhyme or reason why other than subtitles seem to cause the problem every time) the Roku seems to freeze waiting for the content, and things never start playing, and Mezzmo stops transcoding and leaves the transcode job as queued - although I've now enabled finish in the background, so maybe that will make it complete and eventually be watchable (since the choices are either external subtitles in webvtt or burn in). I just bought the 4k Roku, and I have a Roku TV (not 4k) and a streaming stick (also not 4k), and the two older ones have a lot of issues. I've been able to reduce the transcoding by adding the support for Dolby Digital and DTS, to the RokuStreamingPlayer.prf so maybe that's all that's needed. This profile might need an update, as these audio formats are supported on any Roku firmware version 8 or higher, and both the stick and the TV can convert to stereo if need be.

Similar Threads

  1. Roku app - ugh
    By jwclack52 in forum Mezzmo Questions and Support
    Replies: 1
    Last Post: 05-18-2020, 08:18 AM
  2. Mezzmo Roku App
    By ftanner in forum Mezzmo Questions and Support
    Replies: 4
    Last Post: 07-04-2017, 12:33 PM
  3. Dolby/DTS on TCL UHD TV w/Roku
    By GirardinD in forum Mezzmo Questions and Support
    Replies: 6
    Last Post: 03-20-2017, 11:25 AM
  4. Roku App wishlist
    By hartlenb in forum Mezzmo Wish List and Feedback
    Replies: 2
    Last Post: 02-16-2017, 08:29 AM
  5. Roku App
    By Kaiser2000 in forum Mezzmo Wish List and Feedback
    Replies: 15
    Last Post: 07-22-2016, 11:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •