Jump to content

4k identifier in Emby WMC


bill the lizard

Recommended Posts

bill the lizard

So I discovered that the internal player in EMBY Classic, formerly MB Classic right?, is capable of playing 4k .mp4 home videos. I was happily surprised I suppose. One small thing though I thought would be easy to remedy. The resolution seems to be correctly identified when scanned based on the metadata in the web interface but in EMBY classic is still is identified as 1080 by those cute little icons. I assume it was simplified as if it is wider than XXX then it is labeled as 1080 but we are moving into a brave new world. Might it be possible to identify the 4k content with its own icon so I can tell the difference? Example of the icon I am talking about.5568cf653a9d9_classic.png

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
bill the lizard

Am I the only one that does any 4k? I figured this would be pretty simple. I would do I myself for my own system. I could Make my own icon and alter the array of choices if someone could point me to where it is in the code. Any help?

Link to comment
Share on other sites

AdrianW

You just need to place an image in your ImagesByName "MediaInfo" folder. The trick is getting its name correct.

 

I added an H265 icon and I had to name it codec_hevc.png (see this thread).

 

Have a look at the other resolution images in the MediaInfo folder and make your own 4K version that matches. Probably need to have 2160P in the name.

 

-edit-

Try hdtype_2160p.png

Edited by AdrianW
Link to comment
Share on other sites

You just need to place an image in your ImagesByName "MediaInfo" folder. The trick is getting its name correct.

 

I added an H265 icon and I had to name it codec_hevc.png (see this thread).

 

Have a look at the other resolution images in the MediaInfo folder and make your own 4K version that matches. Probably need to have 2160P in the name.

 

-edit-

Try hdtype_2160p.png

 

The first part of that will work but not the second because EMC is assuming anything over a certain width is 1080.

Link to comment
Share on other sites

bill the lizard

It assigns that value based on selections available in an array probably though. I could add to the choices in that array and then find the function that assigns an icon to display based on that value and alter it to handle an additional choice if I knew where to look. I was hoping someone might point the way. Maybe it is more complicated than that? I may look for it myself tonight. I don't have a lot of extra time to fiddle with that kind of stuff though, I though someone might know.

Link to comment
Share on other sites

It is going to be more complicated than that because the logic that displays these icons/indicators is littered throughout different themes as well as the core because it is something that has evolved since the very beginning.

Link to comment
Share on other sites

bill the lizard

Well I just use chocolate. I tried subdued but I didn't find it any better so I uninstalled it. I found another thread where this was feature requested about a year ago. I admit 4k is limited to home movies pretty much right now, unless you are a serious videographer viewing your own stuff, but 4k Blu-ray should be out there by Christmas according to this article? The standard was finalized in May. How long until we have it in our hands? I don't know, but I wouldn't paint myself into a corner on not being able to add something like this in development.

 

http://www.digitaltrends.com/home-theater/ultra-hd-blu-ray-finalized-4k-discs-headed-to-the-home-theater/

 

BTW I have scoured and cannot find a imagesbyname folder anywhere. I have a mediainfo folder which seems to contain remnant subdued image files. Where are these little icons now?

  • Like 1
Link to comment
Share on other sites

Unless you override them, it uses icons internal to the theme you are using.

 

ImagesByName was merged with your Metadata folder a few server releases back.  Whether or not you have them separate will depend on exactly when the server was first installed.

Link to comment
Share on other sites

bill the lizard

Ah I see. I have been having some disk utilization issues (intermittent 100% usage) so I recently uninstalled and reinstalled the server software. It must have merged then.

Link to comment
Share on other sites

bill the lizard

Okay so I found we can use custom icons by creating the mediainfo/all folder in metadata but I have no idea how to start trying to modify the way they show up since I can't find any code that does that so i decided to just turn the things off even though I like them because the 4k being labeled wrong bothers me, easy enough for the media info icons at the bottom but how do I get rid of the one that appears in several views in Chocolate next to the Movie rating icon? It is a grey brick shape with transparent 1080 lettering?

Link to comment
Share on other sites

Cheesegeezer

I agree with @@ebr regarding it's just not straight forward as us themers will have to alter the code on pretty much every view, however, the inevitable is the fact that 4K is coming and if we start now implementing it, then themers can start updating themes also.

 

I can't see it affecting us too much tho I would just have to add one line to my code.

 

<Condition Source="[item.HDType]" ConditionOp="Equals" SourceValue="4K" Target="[HDImage.Content]" Value="image://i:HDLogo4K" />

 

For you ebr, you could just assume that anything wider than 1080 is assumed as 4k. I dunno what you think, but i guess we should think about it now rather than rushing in 6months time

Link to comment
Share on other sites

bill the lizard

Well, I appreciate all of your work on this project whether this is added sooner or later. I know that right now it is probably .1% of people out there that are emby users and own a 4k video camera. They do sell a lot of GoPro's I think though. Before you do any work I might consider surveying whether people care about the difference between UHD and "true" 4k resolutions, whether they need a different icon or not? They technically are different. To me, meh, I call it all 4k but it is a better catch all to say 2160p since UHD and 4k are both that tall even though no one really calls it that. Maybe just call it all 4k and reflect the difference in aspect ratio icons. My two cents. Hopefully the 8k revolution is a ways off so I don't need to buy another tv.

 

Emby classic forever, it is the best.

Link to comment
Share on other sites

Cheese - the better option would be to take all that specific code out of the themes and just use the available Item.HDTypeImage.  Then, it won't be this hard going forward.

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...