Jump to content

Encoding settings for direct play


whitestrat13

Recommended Posts

whitestrat13

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.

Link to comment
Share on other sites

Koleckai Silvestri

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.

Link to comment
Share on other sites

gcw07

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.

Link to comment
Share on other sites

whitestrat13

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?

Link to comment
Share on other sites

gcw07

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

Link to comment
Share on other sites

whitestrat13

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

Link to comment
Share on other sites

whitestrat13

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.

Link to comment
Share on other sites

Redshirt

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

Link to comment
Share on other sites

gcw07

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.
Link to comment
Share on other sites

whitestrat13
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

    }

]

Link to comment
Share on other sites

Tikuf

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
Link to comment
Share on other sites

whitestrat13

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

Link to comment
Share on other sites

Tikuf

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
Link to comment
Share on other sites

whitestrat13

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
    }
Link to comment
Share on other sites

gcw07

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.

Link to comment
Share on other sites

whitestrat13

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.

I love you man.txt

Link to comment
Share on other sites

gcw07

That is just the media streams. I would need the entire data from that right pane. I want to check out some other data on the file. Thanks.

Link to comment
Share on other sites

gcw07

Can you show me the full path for the LOTR file too. Or just the full metadata on that one too. I think we know what it is, but want to make sure.

Link to comment
Share on other sites

gcw07

Thanks. We need to do a little testing locally, but think we know the problem and if it is confirmed, it should be fixed in the next release.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...