EduardoSantos 40 Posted September 24, 2015 Share Posted September 24, 2015 Hi, Some movies are being transcoded by Emby when playing to a Roku3. Problem is these same movies were not transcoded when playing to this same Roku some time ago. Roku is hooked to a receiver and, thus, has DD/DTS passthrough enabled. Passthru works on various movies when they get directly played. Maximum bitrate on Roku is set to 30. This is the mediainfo of one of these movies: General Unique ID : 176864499973909610004582734147649503017 (0x850EDD18D0677F98B96AA186F8F37F29) Complete name : \\W-EDUARDO-WEI\Videos\Filmes\The Avengers (2012)\The Avengers (2012).mkv Format : Matroska Format version : Version 2 File size : 18.3 GiB Duration : 2h 22mn Overall bit rate : 18.3 Mbps Encoded date : UTC 2014-11-11 21:35:05 Writing application : mkvmerge v5.6.0 ('Kenya Kane') built on May 27 2012 16:44:04 Writing library : libebml v1.2.3 + libmatroska v1.3.0 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L5 Format settings, CABAC : Yes Format settings, ReFrames : 5 frames Muxing mode : Header stripping Codec ID : V_MPEG4/ISO/AVC Duration : 2h 22mn Bit rate : 17.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.342 Stream size : 16.4 GiB (90%) Title : The Avengers (2012) Writing library : x264 core 120 Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=17000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Language : English Default : Yes Forced : No Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Format : DTS Format/Info : Digital Theater Systems Mode : 16 Format settings, Endianness : Big Muxing mode : Header stripping Codec ID : A_DTS Duration : 2h 22mn Bit rate mode : Constant Bit rate : 1 509 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 24 bits Compression mode : Lossy Delay relative to video : 11ms Stream size : 1.51 GiB (8%) Title : English Language : English Default : Yes Forced : No Text ID : 3 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Title : Português Language : Portuguese Default : No Forced : No Is there other config to check? Should I attach server logs? Thanks Link to comment Share on other sites More sharing options...
farside847 39 Posted September 24, 2015 Share Posted September 24, 2015 Might be the reframes Link to comment Share on other sites More sharing options...
speechles 1917 Posted September 24, 2015 Share Posted September 24, 2015 (edited) Its the level 5. The official app transcodes anything over level 4.1. The emby blue neon night theme has direct-play support for level 5 and 5.1 btw, the official app hasn't yet. Sent from my Nexus 7 using Tapatalk Edited September 24, 2015 by speechles 1 Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted September 30, 2015 Author Share Posted September 30, 2015 Installed the blue neon night theme. Same results... Link to comment Share on other sites More sharing options...
speechles 1917 Posted September 30, 2015 Share Posted September 30, 2015 (edited) @@EduardoSantos Did you remember to open preferences and set the video quality bitrate to 30Mbps again? Apps cannot access another apps registry, a security thing. Overall bit rate : 18.3 MbpsSent from my Nexus 7 using Tapatalk Edited September 30, 2015 by speechles Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 5, 2015 Author Share Posted October 5, 2015 That has been done and double checked. No idea why transcoding... Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 5, 2015 Share Posted October 5, 2015 A log from the app will indicate: http://emby.media/community/index.php?/topic/16251-how-to-obtain-a-log-from-the-emby-roku-client/ Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 5, 2015 Author Share Posted October 5, 2015 Thanks Luke. I will grab a log. But it seems to me this server's version is transcoding more frequently than before. Were there any changes on the decision logic? Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 5, 2015 Share Posted October 5, 2015 no. actually a server log with debug logging would be even more useful. Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 5, 2015 Author Share Posted October 5, 2015 Attached server log with transcoding debug enabled. Log was generated by Emby's default Roku App trying to play the above mentioned file. logs.zip Link to comment Share on other sites More sharing options...
Happy2Play 8242 Posted October 5, 2015 Share Posted October 5, 2015 Just a guess but have you tried substitute paths? Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 5, 2015 Author Share Posted October 5, 2015 (edited) I think I got something really good on this problem. You see... This same movie, for which I attached the server log, has both mkv stream subtitles and a SRT file. When Roku app requests the movie to be streamed, server picks up the mkv subtitle. Movie doesn't even play both on Emby's Roku default app and on blue neon night app. When I manually select the spare SRT file, film plays on Emby's default roku app but it gets transcoded. When I manually select the spare SRT file, film plays on Blue Neon Night Roku app directly. Also a bunch of other films which are transcoded when played by Emby's Roku default app will directly play when I select the spare SRT file. Also, when I select external subtitles and the movie gets transcoded, the stream starts almost instantly but when mkv subtiles are selected by default, stream takes long to initiate. It seems there is a problem with embedded mkv subtitles... Edited October 6, 2015 by EduardoSantos Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 5, 2015 Author Share Posted October 5, 2015 Just a guess but have you tried substitute paths? For the transcoding path? Link to comment Share on other sites More sharing options...
Happy2Play 8242 Posted October 6, 2015 Share Posted October 6, 2015 For the transcoding path? No your media paths. But this doesn't look like it matters from your previous post. When I manually select the spare SRT file, film plays on Emby's default roku app but it gets transcoded. When I manually select the spare SRT file, film plays on Blue Neon Night Roku app directly. Some of that is do the Blue Neon Night Roku app has different play capabilities like High@L5. Googling this looks like Plex is having the same issues. Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 6, 2015 Author Share Posted October 6, 2015 No your media paths. But this doesn't look like it matters from your previous post. Some of that is do the Blue Neon Night Roku app has different play capabilities like High@L5. Googling this looks like Plex is having the same issues. This seems ok to me. problem seems to be related to internal embedded subs... Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 6, 2015 Share Posted October 6, 2015 does the roku even support embedded subs? Link to comment Share on other sites More sharing options...
speechles 1917 Posted October 6, 2015 Share Posted October 6, 2015 (edited) @@Luke yes, .srt in mkv is. But what is happening, possibly. Which way are they trying to get subtitles? There are two ways on the roku. 1) Before you play the video, choose "audio & subtitles" then you can choose which becomes used. This will not prevent transcoding, and could induce it. 2) just play the video. Do not choose "audio & subtitles" ever. Just hit play and it will direct-play. When the video is playing, press * and choose a caption. You must have captions enabled to see them. This works with embedded and external srt subs. @@EduardoSantos Which way are you using 1 or 2? I am assuming by presence of the transcoding log it is 1. Try the other way. These are .srt subs embedded? Sent from my Nexus 7 using Tapatalk Edited October 6, 2015 by speechles Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 6, 2015 Share Posted October 6, 2015 just srt? does it support any others? Link to comment Share on other sites More sharing options...
speechles 1917 Posted October 6, 2015 Share Posted October 6, 2015 (edited) just srt? does it support any others?This was the last conversation ( http://forums.roku.com/viewtopic.php?p=414984 ) and it starts to get fuzzy, if even roku knows what is and isn't supported. But can confirm embedded srt in mkv is with option 2, multiple srt support direct-play. Sent from my Nexus 7 using Tapatalk Edited October 6, 2015 by speechles Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 6, 2015 Share Posted October 6, 2015 Ok. I didn't know it was supported, so try out the update to the zip install that i just pushed. Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 6, 2015 Author Share Posted October 6, 2015 (edited) @@EduardoSantos Which way are you using 1 or 2? I am assuming by presence of the transcoding log it is 1. Try the other way. These are .srt subs embedded? Sent from my Nexus 7 using Tapatalk All my mkv movies have both subtitles: mkv embedded and a separate .SRT file. Most of the times I play the movie without selecting anything, so what happens is that the embedded SRT subs are shown. On this mode the subtitles are sent to Roku in such a way that Roku renders the subtitles (which are originally embedded on the MKV). On some movies (like the one I sent the mediainfo and server logs) not selecting anything causes transcoding and then, subtitles are sent printed on the image. These subtitles are originally embedded on the mkv but something causes transcoding. I know the sample movie I sent has to be transcoded anyway in order to be played by the default Roku app. But there are many others that do not have to be transcoded and actually they play without transcoding when I select external subtitles on Roku. As I understand there is some kind of problem on the transcoding decision logic that makes these movies to be transcoded when played without selecting the separate SRT file. On these movies if I select the separate SRT file, they play without transcoding. Below a mediainfo of one of these movies: it gets transcoded only when external subtitles are not selected. General Unique ID : 209888645776082727567681677829735618986 (0x9DE71531A3F98E28A23565E2E58299AA) Complete name : \\W-EDUARDO-WEI\Videos\Filmes 1\O Brother, Where Art Thou (2000)\O Brother, Where Art Thou (2000).mkv Format : Matroska Format version : Version 4 / Version 2 File size : 7.65 GiB Duration : 1h 47mn Overall bit rate : 10.2 Mbps Movie name : O Brother, Where Art Thou (2000) Encoded date : UTC 2015-10-04 17:57:53 Writing application : mkvmerge v7.9.0 ('Birds') 64bit Writing library : libebml v1.3.1 + libmatroska v1.4.2 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 5 frames Codec ID : V_MPEG4/ISO/AVC Duration : 1h 47mn Bit rate : 8 714 Kbps Width : 1 920 pixels Height : 824 pixels Display aspect ratio : 2.35:1 Frame rate mode : Constant Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.230 Stream size : 6.37 GiB (83%) Title : O Brother, Where Art Thou (2000) Writing library : x264 core 116 r2074 2641b9e Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=8714 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00 Language : English Default : Yes Forced : No Audio ID : 2 Format : DTS Format/Info : Digital Theater Systems Mode : 16 Format settings, Endianness : Big Codec ID : A_DTS Duration : 1h 47mn Bit rate mode : Constant Bit rate : 1 509 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 24 bits Compression mode : Lossy Stream size : 1.13 GiB (15%) Title : English Language : English Default : Yes Forced : No Text ID : 3 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Title : Português Language : Portuguese Default : No Forced : No Menu 00:00:00.000 : en:00:00:00.000 00:04:41.031 : en:00:04:41.031 00:09:13.386 : en:00:09:13.386 00:15:09.450 : en:00:15:09.450 00:20:13.838 : en:00:20:13.838 00:27:41.285 : en:00:27:41.285 00:31:10.035 : en:00:31:10.035 00:37:40.175 : en:00:37:40.175 00:39:36.791 : en:00:39:36.791 00:42:34.218 : en:00:42:34.218 00:45:45.409 : en:00:45:45.409 00:48:50.344 : en:00:48:50.344 00:54:58.253 : en:00:54:58.253 00:57:47.422 : en:00:57:47.422 01:01:56.463 : en:01:01:56.463 01:04:43.922 : en:01:04:43.922 01:07:57.282 : en:01:07:57.282 01:09:07.727 : en:01:09:07.727 01:13:12.847 : en:01:13:12.847 01:19:00.819 : en:01:19:00.819 01:31:44.332 : en:01:31:44.332 01:33:59.634 : en:01:33:59.634 01:41:03.099 : en:01:41:03.099 01:42:40.154 : en:01:42:40.154 Edited October 6, 2015 by EduardoSantos Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 7, 2015 Share Posted October 7, 2015 any results yet with the update to the zip install? Link to comment Share on other sites More sharing options...
speechles 1917 Posted October 7, 2015 Share Posted October 7, 2015 Luke, it works for me. Choosing embedded srt from "audio & subtitles" now direct plays. Same as pressing * when direct-play and choose the subtitle would do. The expected behavior. :) Was waiting for Eduardo to reply, but in his absense I can confirm this fixes the problem with inducing transcoding. Sent from my Nexus 7 using Tapatalk 1 Link to comment Share on other sites More sharing options...
Luke 37008 Posted October 7, 2015 Share Posted October 7, 2015 Thanks. It's on the beta channel now. 1 Link to comment Share on other sites More sharing options...
EduardoSantos 40 Posted October 7, 2015 Author Share Posted October 7, 2015 Sorry, I was supposed to install the zip on the Roku? I did not get... Shall I install it from the beta channel? Link to comment Share on other sites More sharing options...
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