Page 1 of 1

Roku Profile Not Transcoding

PostPosted: Sun Nov 16, 2014 5:29 pm
by sharkbit
I have a ROKU 3, and have notices it's not trans-coding (tc) things that I need tc. My system will not handle AAC, or WMV / ASF files. so i have added a few lines in the tc profile of ROKU.

  Code:
<Video targetContainer="flv" targetACodec="ac3" aBitrate="384">
   <Matches container="flv" aCodec="aac"/>
</Video>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" >
   <Matches container="asf" vCodec="wmv2"/>
</Video>


But when I look at the logs with Debug on nothing is getting tc:

  Code:
DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1746, format FLV and profile Chaneru
DEBUG [VideoDeliveryEngine] Delivering item '1746' for client 'Identifier=192.168.xx.xx, Profile=Chaneru'
DEBUG [VideoDeliveryEngine] Delivering file 'mymovie.flv' in native format
   
DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1745, format VC1_ASF_AP_L2_WMA and profile Chaneru
DEBUG [VideoDeliveryEngine] Delivering item '1745' for client 'Identifier=192.168.xx.xx, Profile=Chaneru'
DEBUG [VideoDeliveryEngine] Delivering file 'Morning.wmv' in native format

Re: Roku Profile Not Transcoding

PostPosted: Sun Nov 16, 2014 6:51 pm
by Illico
After profiles.xml modification, you have to restart serviio services (not server) or reboot PC to reload profiles.

Re: Roku Profile Not Transcoding

PostPosted: Sun Nov 16, 2014 7:42 pm
by atc98092
sharkbit, are you using Chaneru as the Roku channel to play these videos, or the Roku Media Player? I see you are using the Chaneru profile, but for the RMP you really should use the RMP profile.

Re: Roku Profile Not Transcoding

PostPosted: Mon Nov 17, 2014 6:51 pm
by sharkbit
I typically close Serviio then restart the service so I can delete or save the old log file, but i have also rebooted the PC with no change.

I use Chaneru as it's menus are better than Roku Media Player and Chaneru shows all files in a dir rather that only supported. I tried to use RMP and like i previously mentioned the files in question didn't show up. so Serviio should be transcoding them .... ?

Re: Roku Profile Not Transcoding

PostPosted: Tue Nov 18, 2014 12:39 am
by atc98092
Chaneru will only play files in TS or MP4 format. He was using applehttp for transcoding, but we found that TS worked better. Not sure why you'd want to see a file you can't play. The RMP has pretty good metadata support as well. Chaneru gets its metadata online, rather than what is stored on Serviio, and doesn't always get the title correct. I still have Chaneru and would love to see him get his working better. I'm not slamming him in the slightest.

The Roku Media Player will play MKV files and pass AC3 and DTS audio through to your AV receiver (assuming you are using one). As much as I supported Jim while he was making Chaneru work, the RMP is far easier and faster to use, at least on my Roku 2. It's a shame, because he put so much effort into it, and then Roku came out with a product that overtook him. I do question if there were some kind of internal code they used that developers weren't given access to, because there's such a performance delta between the two.

The major problem with the Roku is that it will not play any file that uses MPEG2 video without transcoding. Of course, all DVD rips will have MPeG2 video, unless they are ripped into something different. So my 2000+ MKV files from DVDs still have to be transcoded. The only Roku product that supports MPEG2 is the Roku TV, which I understand is only available built into a television (don't know who offers them).

For my Roku players, here's the video transcoding section I use. It plays everything I have.

  Code:
<Video targetContainer="mpegts" targetVCodec="h264" maxVBitrate="12000" targetACodec="ac3">
            <!-- <Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac"> -->
            <Matches container="asf" />
            <Matches container="mpegvideo" />
            <Matches container="mpeg" />

            <Matches container="mpegts" />
            <Matches container="matroska" />
            <Matches container="avi" />
            <Matches container="flv" />
            <Matches container="wtv" />
            <Matches container="ogg" />
            <Matches container="3gp" />
            <Matches container="rtp" />
            <Matches container="rtsp" />
            <Matches container="rm" />
         </Video>
         <Video targetContainer="mpegts" targetACodec="aac" aBitrate="320">
            <!-- <Matches container="matroska" aCodec="dca" /> -->
            <Matches container="matroska" aCodec="vorbis" />
            <Matches container="ogg" vCodec="mpeg4" />
            <Matches container="mp4" aCodec="lpcm" />
         </Video>
         <Video targetContainer="mpegts">
            <Matches container="matroska" vCodec="h264" />
            <Matches container="flv" vCodec="h264" />
         </Video>
         <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="15360" forceStereo="true">
            <Matches container="*" vCodec="mpeg2video" />
            <Matches container="*" vCodec="dvvideo" />
            <Matches container="wtv" />
            <Matches container="ogg" />
            <Matches container="flv" />
            <Matches container="rm" />
         </Video>

Re: Roku Profile Not Transcoding

PostPosted: Tue Nov 18, 2014 7:44 pm
by sharkbit
Okay, understand all that, BUT I don't believe Serviio is trans-codding my files... i only find the below message in the log it never says it's Trans-codding anything? Although I re-encode most of my files because I'm aware of the issue i would rather not, and just let my pc do it on the fly. I know I'm editing the right profile and the logs say that profile is detected.
  Code:
DEBUG [VideoDeliveryEngine] Delivering file 'movie.wmv' in native format
DEBUG [VideoDeliveryEngine] Delivering item 'xx' for client 'Identifier=192.168.yy.zz, Profile=Chaneru'
Shouldn't the log say trans-codding or using TC, the only reference i ever see in the DEBUG log is
  Code:
[AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data

Re: Roku Profile Not Transcoding

PostPosted: Wed Nov 19, 2014 12:34 am
by atc98092
I'm unsure how it gets logged. Never paid attention :lol:

One sure way to see if transcoding is happening is to see if FFMPEG is running after you start the movie. If you are using Windows, Serviio runs as a system service, so in Task Manager you have to select "Show processes from all users" on the Processes tab. And of course you have Transcoding enabled on the Delivery tab in the Serviio console. This tab also says where the transcoded files are stored during transcoding. You could look there to see if a file appears there when playback begins.

Re: Roku Profile Not Transcoding

PostPosted: Thu Nov 20, 2014 8:04 pm
by sharkbit
Let me take this a little farther, I changed up my trans-codding section in the Chaneru Profile and told it to convert everything to asf. Doing this should make all my videos unplayable on the roku. But nothing is getting TC, all my videos are showing up as their original format/codec.

  Code:
      <Transcoding>
         <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="15360" forceStereo="true">
            <Matches container="*" />
         </Video>
      </Transcoding>
Instead of displaying all files as asf and generating a new file headder with the requested format, it still says delivering in native format...
  Code:
DEBUG [VideoDeliveryEngine] Retrieving resource information for item 0000, format AVC_MP4_MP_HD_720p_AAC and profile Chaneru
DEBUG [VideoDeliveryEngine] Delivering item '0000' for client 'Identifier=192.168.xx.yy, Profile=Chaneru'
DEBUG [VideoDeliveryEngine] Delivering file 'Menchie.mp4' in native format
DEBUG [GETMethodProcessor] Stream entity has length: 387760
DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 387760,Date: Thu, 20 Nov 2014 19:28:02 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,Content-Range: bytes 691065559-691453318/691453319,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]


DEBUG [VideoDeliveryEngine] Retrieving resource information for item 0001, format MATROSKA and profile Chaneru
DEBUG [VideoDeliveryEngine] Delivering item '0001' for client 'Identifier=192.168.yy.xx, Profile=Chaneru'
DEBUG [VideoDeliveryEngine] Delivering file 'Mit.mkv' in native format
DEBUG [GETMethodProcessor] Stream entity has length: 541636234
DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/x-matroska,Content-Length: 541636234,Date: Thu, 20 Nov 2014 19:28:53 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,Content-Range: bytes 5551-541641784/541641785,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]

I've even gone so far as to add that TC statement to the default profile, and still no change on any of my systems ROKU or my Samsung

Re: Roku Profile Not Transcoding

PostPosted: Fri Nov 21, 2014 1:22 pm
by atc98092
OK, I'm now stumped. This is making no sense, as my settings transcode almost everything to my Roku. Only my MP4 videos will play native. Someone else is going to need to chime in here.

Zip?

Re: Roku Profile Not Transcoding

PostPosted: Sat Nov 22, 2014 2:03 pm
by sharkbit
Here are my Configs to help figure this out.

Re: Roku Profile Not Transcoding

PostPosted: Thu Nov 27, 2014 3:30 pm
by sharkbit
Found the issue! I had some Old Online plugins (Comedy channel, discovery, and something else) after deleting all the plugins and restarting the service, it reads my trans-codding.

Can we add a targetContainer of MKV / matroska to the Profile validation Schema?

Re: Roku Profile Not Transcoding

PostPosted: Fri Nov 28, 2014 2:31 am
by atc98092
Glad you found the issue. I never would have thought of that.

The Roku profile extends the default profile (#1), which has the Matroska schema identified. Shouldn't be a problem. I can play every MKV file I have with no issues. Remember that all Roku players (except Roku TV) won't play MPEG2 video, regardless of container. Therefore anything with MPEG2 video must be transcoded.