Page 2 of 2

Re: Testing new profile for Roku 4

PostPosted: Thu Apr 07, 2016 12:45 am
by DenyAll
Strip the subtitles out of the file and see if it plays natively. If so, you need to address the <Subtitles>, <HardSubs> area of your profile.

Re: Testing new profile for Roku 4

PostPosted: Thu Apr 07, 2016 8:20 pm
by atc98092
DenyAll wrote:Strip the subtitles out of the file and see if it plays natively. If so, you need to address the <Subtitles>, <HardSubs> area of your profile.


I'll try that, but I have other MKV files with PGS subs within that play fine. It is puzzling.

Re: Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 3:48 pm
by Matt2112
I just purchased a Roku Media Stick & whenever I play an MKV or MP4 with AC3 in it, there is no audio. I had started with the regular Roku profile that comes with Serviio, and then when I found this thread, I tried the Roku 4 profile... I still have no audio.

The files play fine with Plex, so I'm assuming it's a profile issue.

MediaInfo shows this as the audio format that won't play using files I have:

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 45 min 54 s
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 126 MiB (6%)
Default : Yes
Forced : No

Re: Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 4:22 pm
by atc98092
What is the video codec with these files? If it's not mpeg2, the Stick can play it without transcoding. I checked one of my MKV files and the audio is identical to yours except for the bitrate. However, I know the bitrate isn't an issue because I've tested numerous ac3 bitrates and have always had sound.

Just for grins, try this profile. I'm not claiming it's perfect yet, but I'd like to see if it helps with your issue. It has to be in the Profiles file below the original Roku profile, or Serviio won't start.

  Code:
<Profile id="RokuStickMPApp" name="Roku Stick Media Player" extendsProfileId="RokuMPApp">
      <Detection>
         <UPnPSearch>
            <ModelName>Roku Stick</ModelName>
         </UPnPSearch>
         <HttpHeaders>
            <User-Agent>.*ROKU.Stick*</User-Agent>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
      </MediaFormatProfiles>
      <Transcoding>
         <!-- Remux video streams for unsupported containers -->
         <Video targetContainer="mpegts">
            <Matches container="*" vCodec="msmpeg4" />
            <Matches container="mpeg"/>
            <Matches container="mpegvideo"/>
            <Matches container="avi" />
         </Video>
         <!-- Transcode non-H.264 video -->
         <Video targetContainer="mpegts" targetVCodec="h264" forceVTranscoding="true" targetACodec="ac3" >
            <Matches container="*" vCodec="mpeg2video" />
            <Matches container="*" vCodec="vc1" />
            <Matches container="*" vCodec="h265" />
            <Matches container="*" vCodec="wmv2" />
         </Video>
         <!-- Remux video stream, transcode audio only - for for HD audio -->
         <Video targetContainer="mpegts" targetACodec="ac3" >
            <Matches container="*" aCodec="truehd" />
            <!--<Matches container="*" aCodec="dts-hd" /> -->
         </Video>
         <Audio targetContainer="mp3">
            <Matches container="*" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="applehttp"> <!-- dont transcode to ac3 -->
            <Matches container="mp4" />
            <Matches container="flv" vCodec="h264" />
            <Matches container="applehttp" vCodec="h264" />
         </Video>
      </OnlineTranscoding>
      <GenericTranscoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3"/>
      </GenericTranscoding>
      <LimitImageResolution>false</LimitImageResolution>
   </Profile>

Re: Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 4:39 pm
by Matt2112
I tried your new profile, but it didn't help. I still don't get audio with files using AC3. Here's an example of a file that won't play audio.
  Code:
General
Unique ID                                : 210665286071781463090619873604849220045 (0x9E7CA8844EC2FFF99306456EE835B9CD)
Complete name                            : D:\video_sample.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1.93 GiB
Duration                                 : 45 min 54 s
Overall bit rate                         : 6 010 kb/s
Encoded date                             : UTC 2016-08-05 11:01:24
Writing application                      : mkvmerge v7.7.0 ('Six Voices') 64bit built on Feb 28 2015 23:39:33
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                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 45 min 54 s
Bit rate                                 : 5 242 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Original frame rate                      : 23.976 (23976/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.105
Stream size                              : 1.68 GiB (87%)
Writing library                          : x264 core 112 r1834 a51816a
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-3:-2 / 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 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5242 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=10000 / vbv_bufsize=256000 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=none
Default                                  : Yes
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 45 min 54 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 126 MiB (6%)
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 45 min 54 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 126 MiB (6%)
Default                                  : No
Forced                                   : No

Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 5:02 pm
by Matt2112
Here is another one that won't play audio:

  Code:
General
Unique ID                                : 219802044029031756646246276420888946847 (0xA55C5576C1360C2DA43FACBB357BE89F)
Complete name                            : D:\sample2.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.76 GiB
Duration                                 : 1 h 9 min
Overall bit rate                         : 3 640 kb/s
Movie name                               : xxxxxxxxxx
Encoded date                             : UTC 2015-03-31 08:34:45
Writing application                      : mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 12 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 9 min
Width                                    : 960 pixels
Height                                   : 540 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Title                                    : xxxxxxxx
Writing library                          : x264 core 144 r2525kMod 40bb568
Encoding settings                        : cabac=1 / ref=12 / deblock=1:-3:-2 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.10:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=0 / rc=crf / mbtree=0 / crf=17.7500 / qcomp=0.70 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00 / zones=98400,99624,q=30
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 1 h 9 min
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : 9 ms
Title                                    : DVO KvK
Language                                 : Russian
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 1 h 9 min
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : 9 ms
Title                                    : MVO NewStudio
Language                                 : Russian
Default                                  : No
Forced                                   : No

Audio #3
ID                                       : 4
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 1 h 9 min
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : 9 ms
Title                                    : Original
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : notabenoid
Language                                 : Russian
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : English
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:10:05.939                             : en:00:10:05.939
00:13:40.695                             : en:00:13:40.695
00:18:08.462                             : en:00:18:08.462
00:25:59.641                             : en:00:25:59.641
00:30:12.561                             : en:00:30:12.561
00:33:38.850                             : en:00:33:38.850
00:39:57.186                             : en:00:39:57.186
00:43:42.703                             : en:00:43:42.703
00:49:50.196                             : en:00:49:50.196
00:57:27.444                             : en:00:57:27.444
01:04:01.046                             : en:01:04:01.046

Re: Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 9:56 pm
by atc98092
The two files you posted here should play without transcoding at all, although the 2nd one has 5 channel AAC audio, and I'm not certain the Roku can play that. Change to the Generic profile and see if they work. If they do, then we have to figure out what's triggering the unnecessary transcoding.

Re: Testing new profile for Roku 4

PostPosted: Sat Feb 25, 2017 10:00 pm
by Matt2112
Neither have sound when using the "Generic DLNA Profile". Both play with sound on the Roku using Plex.

Re: Testing new profile for Roku 4

PostPosted: Sun Feb 26, 2017 2:44 am
by atc98092
Matt2112 wrote:Neither have sound when using the "Generic DLNA Profile". Both play with sound on the Roku using Plex.


The file with 5.1 AAC doesn't surprise me about no sound, since not all Roku players support AAC 5.1. But the one with AC3 does stump me.

Is the Stick plugged directly into the TV, or is it plugged into an AVR first? My guess is the TV. Check your audio setting, and if it's on Auto try changing it to stereo or DD (not certain what the options are).

Re: Testing new profile for Roku 4

PostPosted: Sun Feb 26, 2017 2:48 am
by Matt2112
atc98092 wrote:
Matt2112 wrote:Neither have sound when using the "Generic DLNA Profile". Both play with sound on the Roku using Plex.


The file with 5.1 AAC doesn't surprise me about no sound, since not all Roku players support AAC 5.1. But the one with AC3 does stump me.

Is the Stick plugged directly into the TV, or is it plugged into an AVR first? My guess is the TV. Check your audio setting, and if it's on Auto try changing it to stereo or DD (not certain what the options are).


It's plugged directly into the TV and is already set to stereo. Both files play through the Roku on my TV using Plex, so I don't think it's a Roku compatibility issue. I'm half tempted to just buy a Samsung BD-J6300... I feel pretty confident that'll work.


Sent from my iPhone using Tapatalk

Re: Testing new profile for Roku 4

PostPosted: Sun Feb 26, 2017 6:04 pm
by atc98092
There certainly are advantages to using a BD player, mostly for HD audio support. Even the best of them though won't have the potential offerings of the Roku player. Of course, having 1000s of apps available doesn't imply they are any good! :lol:

Plex uses something besides ffmpeg for their transcoding, and as such they seem to be able to play stuff that has issues elsewhere. I'm waiting for Roku to push a firmware update to see if it resolves the transcoding issue I've encountered with Serviio.

Re: Testing new profile for Roku 4

PostPosted: Sun Feb 26, 2017 6:10 pm
by Matt2112
I really appreciate all of your help. I do like some of the apps Roku offers, but comparability with my favorite app - Serviio - is a must have.


Sent from my iPhone using Tapatalk

Re: Testing new profile for Roku 4

PostPosted: Sat Apr 22, 2017 1:16 am
by scrambler
Hi there,

I have not been on this forum in a while, but I recently got a roku4 (premiere), and wanted to get the latest profile for it.
I added ("Roku 4 Media Player") in the profiles.xml, after the standard "Roku media Player" one, removing the general transcoding section as mentioned by another user, but I wanted to be sure this is the latest profile that should be used with the Roku 4 premiere.

As a side note, my biggest issue with Roku media player and Serviio, is the inability to FFW and RW. I read that there were a couple of thing Serviio needed to implement for that to work, is there any visibility if / when that would happen ?

Thanks again for a great product and all the support

EDIT, I just noticed that if I use the Chaneru profile, I am actually able to FFW and RW, I guess because of the transcoding. Question above remains with the new profile :)

Re: Testing new profile for Roku 4

PostPosted: Sat Apr 22, 2017 9:17 pm
by atc98092
scrambler wrote:Hi there,

I have not been on this forum in a while, but I recently got a roku4 (premiere), and wanted to get the latest profile for it.
I added ("Roku 4 Media Player") in the profiles.xml, after the standard "Roku media Player" one, removing the general transcoding section as mentioned by another user, but I wanted to be sure this is the latest profile that should be used with the Roku 4 premiere.

As a side note, my biggest issue with Roku media player and Serviio, is the inability to FFW and RW. I read that there were a couple of thing Serviio needed to implement for that to work, is there any visibility if / when that would happen ?

Thanks again for a great product and all the support

EDIT, I just noticed that if I use the Chaneru profile, I am actually able to FFW and RW, I guess because of the transcoding. Question above remains with the new profile :)


I've been waiting for Roku to release firmware 7.6, as it fixed several issues that was causing problems with Serviio. Now that it is available, I am hoping to have a new set of Roku profiles available for the next release of Serviio (1.9). As you noted, Chaneru allows FF and rewind. This is because Chaneru uses the HLS format for transcoding, while the other Roku profiles use MPEG-TS. The reason I'm not using HLS at this time is because Serviio does not currently support 5.1 audio using HLS transcoding. Zip is looking into the possibility of adding it, but until then I prefer to keep 5.1 audio available. If you are connected directly to a TV, without a AVR inbetween, then the 5.1 audio isn't an issue for you.

One other thing with the Chaneru profile is that it restricts the video bitrate, which isn't necessary with the latest Roku players. The upcoming profiles I'm building will only restrict bitrate for the older players (I plan on providing several different profiles, based on player ability).

One last thing: your Premiere is not a version of the Roku 4. It is new architecture and is superior to the 4 in several ways. Most importantly, the Premiere + (not the basic Premiere) supports 4K HDR, has an Ethernet jack and SD card slot. The Premiere (basic) has better hardware than the 4, but is lacking the Ethernet jack and SD slot.

Re: Testing new profile for Roku 4

PostPosted: Sat Apr 22, 2017 9:57 pm
by scrambler
Thank you for the detailed reply.
I did not realize the premiere was a generation above the 4.
Although I do go through an AVR, having the FFW functionality is more important to me as I want to use it to watch Recorded TV from Windows media center wirelessly, and I need to be able to skip commercials :)

I will keep an eye for your new profiles :)

Re: Testing new profile for Roku 4

PostPosted: Sat Apr 22, 2017 11:25 pm
by atc98092
scrambler wrote:Thank you for the detailed reply.
I did not realize the premiere was a generation above the 4.
Although I do go through an AVR, having the FFW functionality is more important to me as I want to use it to watch Recorded TV from Windows media center wirelessly, and I need to be able to skip commercials :)

I will keep an eye for your new profiles :)


That's why I use VideoReDo and remove the commercials before I add them to my server. :lol:

I still use Windows 7 Windows Media Center for anything I want to record off the air. MCEBuddy converts them to H.264 (so I don't have to do it with VRD), then I use VRD to remove the commercials. Since I've already converted the MPEG2 video to H.264, it only takes a matter of minutes to remove the commercials and save them to my server location.

Re: Testing new profile for Roku 4

PostPosted: Sun Apr 23, 2017 1:28 am
by scrambler
Some questions about videoredo if I may :)

Does the commercial removal happens automatically alter a show has recorded, or do you have to launch the process?
How accurate is the process, do you sometimes end up with remaining commercial pieces or actual show being cutoff?
I assume you have to wait for the show to have finished recording before the removal process can be applied.

Thanks

Re: Testing new profile for Roku 4

PostPosted: Sun Apr 23, 2017 3:49 am
by atc98092
scrambler wrote:Some questions about videoredo if I may :)

Does the commercial removal happens automatically alter a show has recorded, or do you have to launch the process?
How accurate is the process, do you sometimes end up with remaining commercial pieces or actual show being cutoff?
I assume you have to wait for the show to have finished recording before the removal process can be applied.

Thanks


VideoReDo is not an automated process. It is a very powerful non-linear video editing suite. It has the ability to make edits at the single frame level, so you have total control about where the commercials are cut, and it is one of the few products available that support WTV files. That said, it does have an automated commercial removal procedure that you start after loading the file. I don't use it myself, as I am not completely satisfied with where it cuts. MCEBuddy also has an automatic commercial removal function, but again in my testing it was far worse than VRD. MCEBuddy IS completely automated, so once a TV program has been recorded it automatically converts it to H.264 video. Since that generally takes 2-5 hours (HD shows take much longer), depending on the file, that saves me a ton of time. It takes me about 5 minutes at most to remove the commercials from even a 2 hour movie, and since it's already in H.264 I just have to save the edited file. A two hour movie generally only takes about 2-3 minutes to save. But yes, I have to do it manually.

I believe VRD might support a command line to automate the process, but since I've never been interested in using it I've never really looked into it. Here's the web site: http://www.videoredo.com/en/Products_TVSuite_V5.html

Re: Testing new profile for Roku 4

PostPosted: Sun Apr 23, 2017 5:08 am
by scrambler
Thanks, this is just too much work for family entertainment, I am already spending too much time on the computer :)

Right now I guess a long HDMI cable routed between the WMC PC and the TV will do