Is there a way to ONLY transcode Hi10p and h265 files?
Posted: Thu Jan 07, 2016 7:16 am
Pretty much what the title says.
Transcode: 10-bit and h265.
Stream/remux: Everything else.
Transcode: 10-bit and h265.
Stream/remux: Everything else.
A short text to describe your forum
https://www.universalmediaserver.com/forum/
https://www.universalmediaserver.com/forum/viewtopic.php?t=5902
Ah yes, the thing is, my Nexus 7 2013 can play hi10p videos (and I think h265) however, the problem is, they're EXTREMELY laggy (lots of frame drops). So mediainfo isn't useful in this situation. I can get them to transcode if I enable "Encoded Audio Passthrough for AC-3 and DTS" but that option serves a different function.Wolfgan wrote:Make sure your renderer is properly detected, and then edit the .conf file and make sure "MediaInfo = true" and do not define those media types in the "Supported" lines (see http://www.universalmediaserver.com/faq ... erSupport1)
Code: Select all
MediaInfo = true
Code: Select all
Supported = f:mkv v:divx|h264|h265|mp4|mpeg2|vc1|vp8 a:aac|aac-he|ac3|adpcm|dts|eac3|flac|lpcm|mp3|mpa|opus|tta|vorbis|wavpack|wma m:video/x-matroska
Thanks Nadahar. It seems to be simple for h265, for it is resolvable in the way that you stated. Unfortunately, it's a little more difficult for hi10p as AFAIK there is no parameter for it (e.g hi10p or h264-hi10p). I'm sure you know what hi10p is, but I'll link the wiki for it anyway (it doesn't link directly so just read down a bit for anyone that is interested - https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles) - It's an encoding profile for h264 (maybe for h265, I don't know anything about h265 though) and it is very popular in the anime scene (hi444pp less popular), and a lot of files nowadays use it. As it stands, it appears I can't tell UMS to transcode 10-bit h264 files but leave 8-bit h264 files alone. It will either stream or transcode, regardless of the bitdepth.Nadahar wrote:It isn't part of default UMS yet, but I've made a pull request for it. I've gotten no response from the others though, so I guess time will show.
But you're wrong about mediainfo.tells UMS to use mediainfo to get information about a file's format and codecs, and is a requirement to be able to detect things like h265. So, it needs to be turned on for such a configuration to be possible. But, in the configuration you linked to, it also is.Code: Select all
MediaInfo = true
As long as mediainfo is enabled in the renderer configuration, you control what's streamed or transcoded via the "supported" lines. In the linked configuration you have for example this line:It tells UMS that if the format is mkv, video codec is divx, h264, h265, mp4, mpeg2, vc1 or vp8 AND the audio codec is one of those listed, the file should be streamed with mime type video/x-matroska. Editiing that line so that h265 isn't there will enable transcoding for mkv files with h265. You have to check all support lines if anything enables streaming of content you don't want to be streamed - anything not mentioned there will be transcoded.Code: Select all
Supported = f:mkv v:divx|h264|h265|mp4|mpeg2|vc1|vp8 a:aac|aac-he|ac3|adpcm|dts|eac3|flac|lpcm|mp3|mpa|opus|tta|vorbis|wavpack|wma m:video/x-matroska
I checked some sample videos and the MediaInfo detects the video asExSport wrote:If MediaInfo is able to detect Hi10p files then it should not be so hard.
Hi10p is supported on the latest HW so I suppose it should be disabled by default (Hi10p_Support = Yes/No) but enabled for latest renderers (Like Amlogic s905 TVBoxes etc...)
Then UMS will easily force transcoding for nonsupported devices.
How we can detect these kind of files with 100% success ratio?
Code: Select all
Format profile : High [email protected]
Bit depth : 10 bits
Code: Select all
Codec ID : V_MPEG4/ISO/AVC
Code: Select all
Hi10p_Support = Yes/No
Code: Select all
Hi10p_Support = Yes/No