FAQ  •  Register  •  Login

Profile for Chaneru

<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Apr 07, 2013 10:18 pm

Profile for Chaneru

I'm wondering if one of you transcoding experts can look at the following text and see if there's an error. This was created by the developer of Chaneru, who is making a DLNA plugin for Roku. He is still having issues with browsing the movie lists, but it will browse my playlists just fine. Since Roku supports limited file types, transcoding seems to be necessary. Roku claims to support MKV h.264 format, but none of mine will play. Using Chaneru I can play MP4 with no issues, so that's what we need to transcode into.

Any suggestions would be helpful. I am not associated with Chaneru in any way, other than someone who has offered to assist him with testing/troubleshooting.
Attachments
Chaneru Serviio Profile.txt
(1.79 KiB) Downloaded 632 times
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Apr 09, 2013 10:33 am

Re: Profile for Chaneru

You cannot transcode to mp4 on the fly. Only mpegps/mpegts/asf.
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Apr 09, 2013 12:32 pm

Re: Profile for Chaneru

zip wrote:You cannot transcode to mp4 on the fly. Only mpegps/mpegts/asf.


Thanks Zip. I had a feeling. I don't think the Roku boxes will do any of those, but I'll check again.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Mon Jun 17, 2013 10:21 pm

Re: Profile for Chaneru

I'm trying to enable transcoding for Roku using Chaneru by converting h.264 HTTP streams into HLS format. I have this working in a test environment using the Chaneru server. But now I ran into a problem with Serviio. The CHUNKED transfers. The Roku has very limited resources and the programing interface leaves a lot to be desired. I don't have an effective way to repackage the stream without looking at every byte in the block. On Roku this is a tremendous overhead.

I saw a post about turning OFF chunked transfers in the profiles. Has this been implemented ? If so, how ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jun 18, 2013 10:14 am

Re: Profile for Chaneru

It has not been implemented yet.
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Jun 26, 2013 1:46 am

Re: Profile for Chaneru

zip wrote:It has not been implemented yet.


Zip, any idea where it fits in your development schedule?

Thanks!

Dan
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Mon Jul 08, 2013 12:11 am

Re: Profile for Chaneru

Zip:
On a related (but not too related) note, before I read this post I tried to add this profile to profiles.xml. When I tried to use it, serviio would not start. Was it for the reason you stated above, or is there something syntactically wrong? I am running an older version of serviio (0.6.0.1) in a jail on Freenas 8.3. In the attached file, Chaneru is the last one on the list (Profile ID ="21"). All the editing was done in vi.

Thanks

Fig
Attachments
profilesnew.xml
Profile with Chaneru added
(55.76 KiB) Downloaded 730 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 08, 2013 9:11 pm

Re: Profile for Chaneru

It should tell you in the log what the problem is.
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Mon Jul 08, 2013 10:59 pm

Re: Profile for Chaneru

The CHUNK transfer coding appears to work. A little slow for my liking.
I have this in the Chaneru profile for video.
  Code:
<Transcoding>
   <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac">
      <Matches container="avi" />
      <Matches container="mpeg" />
   </Video>
</Transcoding>

When a .MPG is selected I get 3 protocols returned. If I select MPEG_TS_SD_NA_ISO-O, I'm able to load the stream and split in to 10 second increments for the HLS format. But on the Roku, I get NO video, the audio plays OK. I have a captured test stream of the same file transcoded with VLC and it plays fine. SO I'm assuming all my frame handling is functioning.

Where does Serviio save the output stream files ? Maybe I can run FFPROBE and see if it is decoding correctly or if I have the profile set correctly.

I had to replace FFMPEG with a newer copy before I got anything.
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Mon Jul 08, 2013 11:28 pm

Re: Profile for Chaneru

Found the stream.
Serviio Stream
  Code:
ffprobe version N-54499-g63d7684 Copyright (c) 2007-2013 the FFmpeg developers
  built on Jul  6 2013 10:30:06 with gcc 4.7.3 (GCC)
Input #0, mpegts, from 'Serviio_transcoded.stf':
  Duration: 00:03:48.65, start: 1.410144, bitrate: 1603 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 212 kb/s

VLC Stream
  Code:
ffprobe version N-54499-g63d7684 Copyright (c) 2007-2013 the FFmpeg developers
  built on Jul  6 2013 10:30:06 with gcc 4.7.3 (GCC)
Input #0, mpegts, from 'VLC_transcoded.mpg':
  Duration: 00:03:48.60, start: 1.430456, bitrate: 469 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 149 kb/s

Question: How do I get h264 to be the transcoded output ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jul 09, 2013 12:05 pm

Re: Profile for Chaneru

HLS and h264 target format is implemented in 1.3.
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Tue Jul 09, 2013 1:17 pm

Re: Profile for Chaneru

Would it be possible to get in on the beta, so I can put this to rest ?
Still have other issues, picking the correct protocol, removal of processed segments, making it faster.

Are you going to provide a link to a m3u8 for HLS or just the stream ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jul 10, 2013 7:10 pm

Re: Profile for Chaneru

Added you to the group.

I'll serve m3u8 files. I mostly tested it for the CDS API but it should work via DLNA too.
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Thu Jul 11, 2013 12:09 am

Re: Profile for Chaneru

Where do I download it from ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jul 11, 2013 10:42 am

Re: Profile for Chaneru

Go to the Betatesters forum
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Thu Jul 11, 2013 10:20 pm

Re: Profile for Chaneru

Using the beta with this profile
<Video targetContainer="mpegts" targetVCodec="h264" targetACodec="aac"> OR
<Video targetContainer="hls" targetVCodec="h264" targetACodec="aac">

Gives protocol = AVC_TS_MP_SD_AAC_MULT5_ISO-0

Produces a h.264 stream BUT is there a way to produce a .M3U8 file to save me the overhead of converting the stream to a m3u8 file inside of the Roku ? Just processing the stream is too slow, lots of rebuffering.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jul 11, 2013 11:39 pm

Re: Profile for Chaneru

try

  Code:
<Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac">
<<

chaneru

Streaming enthusiast

Posts: 32

Joined: Mon Jun 17, 2013 9:54 pm

Post Sat Jul 13, 2013 5:06 pm

Re: Profile for Chaneru

Thanks !
It works, rebuffers a lot, changed max video down to 1500 and much better. I guess this would depend on your network. It wasn't Serviio, transcoding was done, Roku couldn't handle the rate across WIFI. Need to try it on a LAN connection.

No problem with my FLV or AVI files. HD MKV files don't appear to be selected for transcoding ?
Ran a AVI movie from the same Serviio server simultaneously from 4 different Roku boxes (HD, Roku XDS, Roku 2 XS and Roku 3) and all played fine.

Is there any way to throttle ffmpeg besides cutting down on the number of cores ?

Can this profile be improved ?
  Code:
   <Profile id="Roku" name="Chaneru" extendsProfileId="1">
           <Detection>
         <HttpHeaders>
            <User-Agent>(.*ROKU.*)|(.*CHANERU.*)</User-Agent>
         </HttpHeaders>
      </Detection>
      <DeviceDescription>
         <ModelName>Chaneru for Serviio</ModelName>
         <Manufacturer>Chaneru Inc</Manufacturer>
      </DeviceDescription>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AAC_MULT5</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_720p_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_1080i_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_HP_HD_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_LPCM</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_ASP_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_SP_L6_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_NDSD</MediaFormatProfile>         
         <MediaFormatProfile mime-type="audio/mpeg">MP3</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <Video targetContainer="applehttp" targetVCodec="h264" maxVBitrate="1500" 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>

         <Audio targetContainer="mp3">
            <Matches container="*" />   <!-- Convert everything to mp3 -->
         </Audio>
      </Transcoding>

      <AutomaticImageRotation>true</AutomaticImageRotation>

   </Profile>
<<

atc98092

User avatar

DLNA master

Posts: 5436

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Jul 14, 2013 2:20 am

Re: Profile for Chaneru

chaneru wrote:Thanks !
It works, rebuffers a lot, changed max video down to 1500 and much better. I guess this would depend on your network. It wasn't Serviio, transcoding was done, Roku couldn't handle the rate across WIFI. Need to try it on a LAN connection.



My Roku boxes are wired, so as soon as my wife if finished watching a movie I'll add this code and test it out. If it plays MKV files, I'll do a happy dance. Over 95% of my files are MKV, and there's about 1300 of them. Don't want to have to redo them all!

This may also resolve my problem with the few MP4 videos I have tried that were Blu-Ray rips. The Roku couldn't handle the bitrate.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jul 14, 2013 12:00 pm

Re: Profile for Chaneru

chaneru wrote:Is there any way to throttle ffmpeg besides cutting down on the number of cores ?

On the transcoding tab, uncheck Best video quality.
Next

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 10 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.