Jump to content


Photo

Encoding settings for direct play


  • Please log in to reply
32 replies to this topic

#1 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 13 April 2014 - 08:16 PM

I have been using handbrake's high profile to encode DVD's and blu-rays to lower bit rate *.mp4 files. I have opted to keep both a stereo track, and surround mix in AAC.

Recently, I noticed that all of my movies are transcoding to the roku. Has anyone had success with settings for direct play on roku?
I want the best quality possible for both DVD and blu ray titles.

I don't have much horsepower on my server, so avoiding transcoding to the roku is important.

Thanks for all the help.

#2 Koleckai Silvestri OFFLINE  

Koleckai Silvestri

    Advanced Member

  • Alpha Testers
  • 3768 posts
  • Local time: 03:55 PM

Posted 13 April 2014 - 09:21 PM

Default bit rate in the MediaBrowser settings is roughly 3 Mbps. Increasing this if you can will help reduce the transcoding needs. If you're using a wired connection, you can go up to 20 Mbps. If you have audio passthru, set the Roku to surround sound. You do this in the Roku's settings. Otherwise, you want to make the 2 channel AAC track the default audio in the container.



#3 gcw07 OFFLINE  

gcw07

    Roku Master

  • Members
  • 2505 posts
  • Local time: 05:55 PM
  • LocationOklahoma

Posted 14 April 2014 - 12:34 AM

Video should be h264 mp4 video with aac audio. There are more specifics, but that should catch most files. Also be sure to do what Wayne suggested and up the default bitrate on the Roku to something above your current video your trying to play.



#4 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 14 April 2014 - 02:43 PM

Thanks for the quick replies.  I do have the max bit rate set to 20 mbs (I have a roku 3 on ethernet)

 

here is some info for LOTR:  the return of the king (DVD):

 

Video
CodecH264
ProfileMain
Level30
Resolution720x480
Aspect Ratio4:3
InterlacedNo
Framerate23.9821
Bitrate1481 kbps
Audio
Languageeng
CodecAAC
Layoutstereo
Bitrate159 kbps
Sample Rate48000 khz
DefaultYes
Subtitle
Languageund
CodecMOV_TEXT
DefaultNo
ForcedNo
ExternalNo

 

Any thoughts?



#5 gcw07 OFFLINE  

gcw07

    Roku Master

  • Members
  • 2505 posts
  • Local time: 05:55 PM
  • LocationOklahoma

Posted 14 April 2014 - 03:55 PM

That is causing a transcode? Also making sure, but your not trying to play with subtitles. Subtitles will always cause a transcode.



#6 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 14 April 2014 - 04:15 PM

I just tried it again, and selected "none" under subtitles.  I still see ffmpeg running on the server, consuming about 30% cpu.



#7 gcw07 OFFLINE  

gcw07

    Roku Master

  • Members
  • 2505 posts
  • Local time: 05:55 PM
  • LocationOklahoma

Posted 14 April 2014 - 04:18 PM

Don't select anything. Just select play at the top.



#8 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 03:17 PM

It still seems to be transcoding.

I want to work on re ripping my entire library to MKV files this summer.  Then I want to make new h.264 mp4's for the roku and mobile clients (Since the server now supports multiple versions of each video/episode).  Re encoding is going to happen eventually, I would just prefer not to have to do it multiple times for over a TB of MKV's.  

 

I may just have to do some trial and error when I get some free time.



#9 Redshirt OFFLINE  

Redshirt

    Android Adept

  • Alpha Testers
  • 5083 posts
  • Local time: 03:55 PM
  • LocationBritish Columbia, Canada

Posted 15 April 2014 - 03:27 PM

Can you post a server log so gcw can see what is being requested

#10 gcw07 OFFLINE  

gcw07

    Roku Master

  • Members
  • 2505 posts
  • Local time: 05:55 PM
  • LocationOklahoma

Posted 15 April 2014 - 04:03 PM

If it is still transcoding when you just click play, can we get the media info from the item. Goto the admin area of the web client. From there select the "Advanced" tab and make sure enable debug logging is checked. If it isn't, check it and save. Not sure if it requires a reset of the server, but it might. Then in the system tray on your server's computer, there is the Media Browser icon running. Right click it and select "Open Library Viewer". Then find that item and copy the Media Streams array. It will look something like this:

 

Media Streams:
 
[
    {
        "Codec": "mpeg2video",
        "Language": "eng",
        "IsInterlaced": false,
        "BitRate": 4795611,
        "IsDefault": true,
        "IsForced": false,
        "Height": 480,
        "Width": 720,
        "AverageFrameRate": 29.97003,
        "RealFrameRate": 29.97003,
        "Profile": "Main",
        "Type": "Video",
        "AspectRatio": "16:9",
        "Index": 0,
        "IsExternal": false,
        "Level": 8
    },
    {
        "Codec": "ac3",
        "Language": "eng",
        "IsInterlaced": false,
        "ChannelLayout": "5.1",
        "BitRate": 384000,
        "Channels": 6,
        "SampleRate": 48000,
        "IsDefault": true,
        "IsForced": false,
        "Type": "Audio",
        "Index": 1,
        "IsExternal": false,
        "Level": 0
    }
 
If we can see that it can help us narrow down why it is still transcoding. Thanks.


#11 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 07:19 PM

Thanks everyone for the prompt responses:
 
I believe this is what you were asking for.
 
Media Streams:
 
[
    {
        "Codec": "h264",
        "Language": "und",
        "IsInterlaced": false,
        "BitRate": 1481688,
        "IsDefault": true,
        "IsForced": false,
        "Height": 480,
        "Width": 720,
        "AverageFrameRate": 23.9821,
        "RealFrameRate": 59.94006,
        "Profile": "Main",
        "Type": "Video",
        "AspectRatio": "4:3",
        "Index": 0,
        "IsExternal": false,
        "Level": 30
    },
    {
        "Codec": "aac",
        "Language": "eng",
        "IsInterlaced": false,
        "ChannelLayout": "stereo",
        "BitRate": 159942,
        "Channels": 2,
        "SampleRate": 48000,
        "IsDefault": true,
        "IsForced": false,
        "Type": "Audio",
        "Index": 1,
        "IsExternal": false,
        "Level": 0
    },
    {
        "Codec": "mov_text",
        "Language": "und",
        "IsInterlaced": false,
        "IsDefault": false,
        "IsForced": false,
        "Type": "Subtitle",
        "Index": 2,
        "IsExternal": false,
        "Level": 0
    }
]


#12 Tikuf OFFLINE  

Tikuf

    Obsolete User

  • Members
  • 3656 posts
  • Local time: 09:55 AM

Posted 15 April 2014 - 07:27 PM

Roku is transcoding because it is not capable play back of 59.94006 frame per second content  (it is likely that the content is not actually 59.94006 fps it is more likely it is 29ish and interlaced or at least the original source was and that value wasn't changed during your conversion)


Edited by Tikuf, 15 April 2014 - 07:30 PM.


#13 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 08:20 PM

So is this something that can be fixed by altering metadata?  Or does this require a re encode to fix?



#14 Tikuf OFFLINE  

Tikuf

    Obsolete User

  • Members
  • 3656 posts
  • Local time: 09:55 AM

Posted 15 April 2014 - 08:37 PM

TBH I am not sure. I don't know if ffprobe is calculating that value or reading it from the embedded metadata in the file.

 

You could try running it through mvkmerge gui and changing the fps to see if it makes a difference. (the fps section in the below image)

 

534dd0b7b08e3_notsure.jpg


Edited by Tikuf, 15 April 2014 - 08:38 PM.


#15 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 11:14 PM

I'll give that a try.  I also noticed that even my DVD MKV's are transcoding.  This doesn't have the same frame rate error.  Any thoughts?
 

 

 
Media Streams:
 
[
    {
        "Codec": "mpeg2video",
        "Language": "eng",
        "IsInterlaced": false,
        "BitRate": 4980206,
        "IsDefault": false,
        "IsForced": false,
        "Height": 480,
        "Width": 720,
        "AverageFrameRate": 29.97003,
        "RealFrameRate": 29.97003,
        "Profile": "Main",
        "Type": "Video",
        "AspectRatio": "16:9",
        "Index": 0,
        "IsExternal": false,
        "PixelFormat": "yuv420p",
        "Level": 8
    },
    {
        "Codec": "ac3",
        "Language": "eng",
        "IsInterlaced": false,
        "ChannelLayout": "5.1",
        "BitRate": 448000,
        "Channels": 6,
        "SampleRate": 48000,
        "IsDefault": false,
        "IsForced": false,
        "Type": "Audio",
        "Index": 1,
        "IsExternal": false,
        "Level": 0
    },
    {
        "Codec": "ac3",
        "Language": "eng",
        "IsInterlaced": false,
        "ChannelLayout": "stereo",
        "BitRate": 192000,
        "Channels": 2,
        "SampleRate": 48000,
        "IsDefault": false,
        "IsForced": false,
        "Type": "Audio",
        "Index": 2,
        "IsExternal": false,
        "Level": 0
    }


#16 Tikuf OFFLINE  

Tikuf

    Obsolete User

  • Members
  • 3656 posts
  • Local time: 09:55 AM

Posted 15 April 2014 - 11:24 PM

Roku doesnt support mpeg2



#17 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 11:26 PM

Duh,  thank you. 



#18 gcw07 OFFLINE  

gcw07

    Roku Master

  • Members
  • 2505 posts
  • Local time: 05:55 PM
  • LocationOklahoma

Posted 15 April 2014 - 11:37 PM

Also just wanted to make sure. Can you copy the rest of the data from the library viewer on that one that is transcoding? Thanks.



#19 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 11:42 PM

So I decided to re encode a test file (from the previous MKV).  I put it on a flash drive, and it played with the Roku Media Player Channel.  Though, when I play it with media browser, it is still transcoding.  

 

The media info is attached.

 

Thanks for being so patient with my noob questions.

Attached Files



#20 whitestrat13 OFFLINE  

whitestrat13

    Advanced Member

  • Members
  • 80 posts
  • Local time: 06:55 PM

Posted 15 April 2014 - 11:45 PM

@gcw07

 

Here is the whole file

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users