utamovita 0 Posted May 30, 2020 Share Posted May 30, 2020 I am new to Emby and media servers and have created one in my house, I wonder if there is any way to disable transcoding on MKV files in order to use direct-play, I am converting the files into MKV to MP4 using Handbrake to avoid high CPU usage.The files in MKV are animes, usually with dual-audio and subtitles, below an example: Link to comment Share on other sites More sharing options...
Solution pwhodges 1528 Posted May 30, 2020 Solution Share Posted May 30, 2020 (edited) Emby will always prefer direct play unless (1) the container is not handled by the client, (2) the codec (video, audio, subtitles) is not handled by the client, (3) the bandwidth required is greater than that available (taking into account restrictions in the server and client settings). Various clients have different limitations because of both hardware and software differences, and so it is up to you to ensure that your files are in a format that can be direct-played on your devices. You can look at the stats for nerds (an on-screen option while playing) to see the reason for transcoding in any specific instance. Emby's transcoding uses h.264 and aac as the most universally compatible codecs; mp4 is a more widely compatible container than mkv, and it's only serious limitation is in limiting numbers of subtitles. So if you use those as your targets in Handbrake, and specify a bandwidth that will meet your network's situation, you should be good to go with no transcoding. EDIT: Just realised you said anime. Sure, that's my main usage too. Multiple audios is no problem in mp4, but I believe multiple subtitles is (actually, I mainly use mkv, but I'm happy with the transcoding). The way to get around this is to extract the subtitles and have them in separate files - Emby handles that fine (like most video players). One last comment. If you use compatible codecs, Emby is also capable of remuxing from an mkv file on the fly, but without transcoding. Obviously this is less load on the server. So it may be that sometimes when you think you are seeing transcoding, you are not, in fact. Check the stats for nerds to find out. Paul Edited May 30, 2020 by pwhodges 2 Link to comment Share on other sites More sharing options...
Luke 37060 Posted May 30, 2020 Share Posted May 30, 2020 That's right, Emby will always direct play whenever possible, so there's nothing you need to do to force that. What Emby app did you try playing from? Link to comment Share on other sites More sharing options...
utamovita 0 Posted May 31, 2020 Author Share Posted May 31, 2020 Emby will always prefer direct play unless (1) the container is not handled by the client, (2) the codec (video, audio, subtitles) is not handled by the client, (3) the bandwidth required is greater than that available (taking into account restrictions in the server and client settings). Various clients have different limitations because of both hardware and software differences, and so it is up to you to ensure that your files are in a format that can be direct-played on your devices. You can look at the stats for nerds (an on-screen option while playing) to see the reason for transcoding in any specific instance. Emby's transcoding uses h.264 and aac as the most universally compatible codecs; mp4 is a more widely compatible container than mkv, and it's only serious limitation is in limiting numbers of subtitles. So if you use those as your targets in Handbrake, and specify a bandwidth that will meet your network's situation, you should be good to go with no transcoding. EDIT: Just realised you said anime. Sure, that's my main usage too. Multiple audios is no problem in mp4, but I believe multiple subtitles is (actually, I mainly use mkv, but I'm happy with the transcoding). The way to get around this is to extract the subtitles and have them in separate files - Emby handles that fine (like most video players). One last comment. If you use compatible codecs, Emby is also capable of remuxing from an mkv file on the fly, but without transcoding. Obviously this is less load on the server. So it may be that sometimes when you think you are seeing transcoding, you are not, in fact. Check the stats for nerds to find out. Paul Thanks! That's right, Emby will always direct play whenever possible, so there's nothing you need to do to force that. What Emby app did you try playing from? I'm using it on mobile and in my browser(Firefox). Link to comment Share on other sites More sharing options...
pwhodges 1528 Posted May 31, 2020 Share Posted May 31, 2020 (edited) Browsers do not handle h.265, so will always require transcoding if that's your main storage codec. When you say "mobile", what do you mean? Android? iOS? They have different capabilities, and in the case of Android (I can't remember on iOS) you can specify for the client to use a different player if you have one installed that you prefer. Indeed, I'm about to try that out, as I've found that my Android device won't play h.265/main10 - so it transcodes, and I get a good result; but it will play h.265/main - so it direct plays, but the Android actually plays it badly and I get a choppy result (things can get messy!). Paul Edited May 31, 2020 by pwhodges Link to comment Share on other sites More sharing options...
utamovita 0 Posted May 31, 2020 Author Share Posted May 31, 2020 Browsers do not handle h.265, so will always require transcoding if that's your main storage codec. When you say "mobile", what do you mean? Android? iOS? They have different capabilities, and in the case of Android (I can't remember on iOS) you can specify for the client to use a different player if you have one installed that you prefer. Indeed, I'm about to try that out, as I've found that my Android device won't play h.265/main10 - so it transcodes, and I get a good result; but it will play h.265/main - so it direct plays, but the Android actually plays it badly and I get a choppy result (things can get messy!). Paul Sorry, i'm using Android 9 Pie with MIUI Global 11. I encoded all the anime in my folders and the result was very good. It does not use anything from the processor and the video runs without lag on Desktop and Android. Link to comment Share on other sites More sharing options...
pwhodges 1528 Posted May 31, 2020 Share Posted May 31, 2020 Good to hear! Paul 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now