INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 6 7 8 9 [10] 11 12 13 14 ... 18   Go Down

Author Topic: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos  (Read 143974 times)

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #450 on: April 04, 2020, 04:14:55 pm »

Have you gotten the flag images yet?  If you haven't here is a good resource for small icons https://usefulshortcuts.com/skype-emoticons-and-shortcuts/Flags-of-the-World-in-Skypes.php

To display the flag it would be as easy as something like this

Code: [Select]
<img src="tooltip:[Subtitles]">
Then if the subtitle language is French, as long as you have an image called French.png in the default image folder C:\Program Files\J River\Media Center 26\Data\Tooltip it should display the flag.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #451 on: April 05, 2020, 01:17:56 am »

Great and thank you!
When downloading country flags they are all named after their country and not their language so I manually did rename the 40 or so country names into language names that I could identify in my movies.

Your expression works fine (and one flag is showing) if there is only one language in either the "Subtitles" and/or the "Audio language"
When there are multiple languages the expression do not show any flags at all.

Example, the movie Jumanji have:
Subtitles: English; French; Spanish; Swedish
Audio Language: English; French; Spanish

How should the expression look like to be able to show country flags for all languages?

Thanx,

//arcspin
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #452 on: April 05, 2020, 06:59:19 am »

Your expression works fine (and one flag is showing) if there is only one language in either the "Subtitles" and/or the "Audio language"
When there are multiple languages the expression do not show any flags at all.

Example, the movie Jumanji have:
Subtitles: English; French; Spanish; Swedish
Audio Language: English; French; Spanish

How should the expression look like to be able to show country flags for all languages?

If you want everything to be show you could use Replace() function to manipulate list (changes all ; to tooltip strings)
Code: [Select]
<img src="tooltip:country-Replace([Audio Language],; ,">/  <img src="tooltip:country-)">
Code: [Select]
<img src="tooltip:country-Replace([Subtitles],; ,">/  <img src="tooltip:country-)">
I'm currently just inefficiently checking if there significant language for me and only print those:
Code: [Select]
If(IsEqual([Audio Language],English,8),<img height="15" src="tooltip:country-UK">/  ,)If(IsEqual([Audio Language],Finnish,8),<img height="15" src="tooltip:country-Finland">/  ,)If(IsEqual([Audio Language],Danish,8),<img height="15" src="tooltip:country-Denmark">/  ,)If(IsEqual([Audio Language],Norwegian,8),<img height="15" src="tooltip:country-Norway">/  ,)If(IsEqual([Audio Language],Korean,8),<img height="15" src="tooltip:country-Korea">/  ,)If(IsEqual([Audio Language],Japanese,8),<img height="15" src="tooltip:country-Japan">/  ,)If(IsEqual([Audio Language],Chinese,8),<img height="15" src="tooltip:country-China">/  ,)If(IsEqual([Audio Language],French,8),<img height="15" src="tooltip:country-France">/  ,)If(IsEqual([Audio Language],Swedish,8),<img height="15" src="tooltip:country-Sweden">/  ,)
Code: [Select]
If(!IsEmpty([Subtitles]),<b>|/  SUBTITLES:  <//b>If(IsEqual([Subtitles],Finnish,8),<img height="15" src="tooltip:country-Finland">/  ,)If(IsEqual([Subtitles],English,8),<img height="15" src="tooltip:country-UK">,),)It's not optimal by all means but works for me for now

Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #453 on: April 05, 2020, 12:43:23 pm »

Thank you Lepa,
The code worked out just fine.
I had to rename United Kingdom to UK, other than that it worked.
I also downloaded two png icons one for audio language och one for subtitle instead of writing Subtitles and Language before the flags.
Se screenshot.

I have downloaded 260 country flags in png format if anyone is interested in using them.
They all have the prefix "Country-" to better conform to Lepas code.

Feel free to download the zip-file here:

https://www.dropbox.com/s/eclhyiflc0q0ckp/World%20Flags%20%28country-%29.zip?dl=0


Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #454 on: April 05, 2020, 02:22:36 pm »

Very nice arcspin and thanks for the countries  :)
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #455 on: April 05, 2020, 02:51:00 pm »

Lepa, that replace function thing you did is very slick!
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #456 on: April 05, 2020, 04:17:51 pm »

Lepa, that replace function thing you did is very slick!
Thanks! At first was thinking far too complicated to solve arspin's question. Neat thing is that same approach can be used e.g. actors which I think you already noticed...

Code: (Will create 6 image templates for actors separated by one space ) [Select]
<img src="C:\Actor Images\Replace(ListLimit([Actors],6),; ,.png">/ <img src="C:\Actors Images\).png">It will shorten at least my expressions nicely and make them more easy to read
Logged

rasmusklumpp

  • Recent member
  • *
  • Posts: 7
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #457 on: April 08, 2020, 11:57:47 am »

Hello outthere,
I have two expression questions.

In Theater View (Audio) I would like to display the Album Length. But I can't figure it out.
I have to say I am a really Idiot in Expression Language, the most Expressions I use are "borrowed" from Lepa and Moe......

And: I would like to display in Theater View The Actors who appear in more than 3 or x  Movies: Otherwise this List is endless.

Thanks for your Work. Great Forum.
Martin
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #458 on: April 13, 2020, 02:54:15 am »

Not easy to my knowledge. MC's database is not relational database so it's not easy to separate well known actors from nobodys.. I wondered this a while ago also...

For the album length I suppose you could do some calculating using MC variables so something like this would calculate album length:
Code: [Select]
[=Save(0, v_AlbumDuration[Album Artist (auto)][Album])1]=1 [=Save(Math([Duration,0] + Load(v_AlbumDuration[Album Artist (auto)][Album])), v_AlbumDuration[Album Artist (auto)][Album])1]=1
To load the value:
Code: [Select]
FormatDuration(Load(v_AlbumDuration[Album Artist (auto)][Album]))
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #459 on: April 13, 2020, 03:10:56 am »

Come on now lepa, don't whip out the variables on the poor guy.  There's a much simpler way.

Just add the following as an expression to display in any Album view:
GroupSummary(Duration)

That will calculate the total album duration for you.


So you might have a sublevel in your Artists view that displays [Album].  Just replace that [Album] level with an Expression..

Expression to Group By:  [Album]
Expression to Display: [Album]  GroupSummary(Duration)

Easy.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #460 on: April 13, 2020, 03:56:58 am »

Come on now lepa, don't whip out the variables on the poor guy.  There's a much simpler way.

Just add the following as an expression to display in any Album view:
GroupSummary(Duration)

That will calculate the total album duration for you.


So you might have a sublevel in your Artists view that displays [Album].  Just replace that [Album] level with an Expression..

Expression to Group By:  [Album]
Expression to Display: [Album]  GroupSummary(Duration)

Easy.
But for that to work I need to be in that sub level in order to GroupSummary(Duration) to give me desired value, don't I? Actually what I do is that I'm saving value to tags when finalizing my tags as I need the value in different situation like in small view in theaterviews playing now. Correct me if I'm wrong but GroupSummary would work when I'm browsing album's files (i.e. view has only files of that album) but not e.g. in that Playing Now List view.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #461 on: April 13, 2020, 04:45:19 am »

Well, maybe I misunderstood his request, but he said he would like to display the album length.  Where else would you display an album length except looking at albums?

I guess you could want it after you already drilled down into an album, and were looking at the file list of tracks in that album.  At that point, no, GroupSummary wouldn't give you album duration, and you'd have to use variables.

But it seemed to me he was asking the simpler question...
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #462 on: April 13, 2020, 04:52:28 am »

But it seemed to me he was asking the simpler question...
Options are always good to have so simpler GroupSummary() is surely worth mentioning  :)

My scenario:
Theaterview is kind of limited in some place. In this case in illustrating groups like Albums (same applies to series etc)

I'm currently experimenting again to show grouped data in small theaterview view so that it remains (mostly) same for every track in album (dr, total tracks, catalog, duration etc). In other words for music it will show album specific data, not the selected track's data. So for me total time cannot change depending on context I'm browsing in and that small view is shown also in other places than just browsing album. That's why I used variables to save total duration into tag.
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #463 on: April 13, 2020, 06:17:57 am »

Well, maybe I misunderstood his request, but he said he would like to display the album length.  Where else would you display an album length except looking at albums?

I guess you could want it after you already drilled down into an album, and were looking at the file list of tracks in that album.  At that point, no, GroupSummary wouldn't give you album duration, and you'd have to use variables.

But it seemed to me he was asking the simpler question...
It wasn't obvious to me that he was only asking the simpler question.  My impression was that ANY time he displays info about a track, he would like to be able to display the length of the entire album that track is a part of.  If that's the case, then the GroupSummary option won't work.  Perhaps we could get the folks at JRiver to add some sort of AlbumInfo function that could return various info about the album that current items is tagged with.
Logged

rasmusklumpp

  • Recent member
  • *
  • Posts: 7
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #464 on: April 13, 2020, 07:56:47 am »

Hello Guys,
i think i have to clear the situation. The arrow shows the position where the album duration should be.                                                                                                  
Logged

rasmusklumpp

  • Recent member
  • *
  • Posts: 7
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #465 on: April 13, 2020, 07:57:39 am »

failed
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #466 on: April 13, 2020, 12:33:30 pm »

Actually Matt is working on an extension to the expression language I proposed that will make things like this both possible and easy.  :)
Logged

rasmusklumpp

  • Recent member
  • *
  • Posts: 7
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #467 on: April 13, 2020, 02:56:23 pm »

So. Next try to post a screenshot!
javascript:displayWindow('https://pix01.jriver.com/gI1@a09G')
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #468 on: April 13, 2020, 03:17:09 pm »

Like wer said, there should be easy automatic solution if you are willing to wait a moment
ref: https://yabb.jriver.com/interact/index.php/topic,124543.msg864781.html#msg864781
Logged

rasmusklumpp

  • Recent member
  • *
  • Posts: 7
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #469 on: April 14, 2020, 12:25:29 am »

Ok, thank you very much. ;D
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #470 on: April 19, 2020, 05:05:00 am »

There is now GroupSummaryQuery() expression which can sum duration per album etc but for me it's currently too slow and at least for now I'm sticking with global variables are loaded when view is refreshed so they'll slow down UI only when entering the view.

Meanwhile did tinker my TV Show tooltip a bit. It's still a bit rough on edges though

Code: [Select]
If(IsEqual([Media Sub Type],TV Show,1), <font size="140"><b>[Series] | [Name]<//b><//font>
<font size="110"><i>Season: [Season]  Episode: [Episode] <b>|<//b> [Duration]  <b>|<//b> [Date] <b>|<//b> ListLimit([Genre],1)  <b>|<//b> [Status] If(Compare([Rating],>,0),<b> | <//b><font color="ad900d">RatingStars()<//font><b> |<//b>,)<//i><//font>
  ______________________________________________________________________________________________________________

<font size="120" color="62a2ba"><b>starring<//b><//font>
If(!IsEmpty([Actors]),If(!IsEmpty([TMDb id]),<img src="tooltip:separator"><font size="800"><img src="D:\audio\Album Covers\Actors Series\Replace(ListLimit([Actors],6),; ,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\).png"><//font>,<font size="140" color="ffffff">Replace(ListLimit([Actors],6),;,/,)<//font>),)

If(!IsEmpty([Description]),<font size="120" color="62a2ba"><b>summary<//b><//font>
<font color="ffffff">[Description]<//font>,)

If(!IsEmpty([Guest Stars]),<font size="120" color="62a2ba"><b>guests<//b><//font>
<font size="140" color="ffffff">Replace(ListLimit([Guest Stars],4),;,/,)<//font>
,)If(!IsEmpty([Director]),<font size="120" color="62a2ba"><b>director<//b><//font>
<font size="140" color="ffffff">Replace([Director],;,/,)<//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="62a2ba"><b>screenwriter<//b><//font>
<font size="140" color="ffffff">Replace([Screenwriter],;,/,)<//font>
,)If(!IsEmpty([Creator]),<font size="120" color="62a2ba"><b>creator<//b><//font>
<font size="140" color="ffffff">Replace([Creator],;,/,)<//font>,)

<font size="180">If(!IsEmpty([Access Rating]),<img src="tooltip:rating-[Access Rating]">,)   <img src="tooltip:definition-[Definition]">/   <img src="tooltip:speakers-[Channels]">/   <img src="tooltip:audio-[Audio Codec]">If(Compare(Number([Critic Rating]),>,0),/   <img src="tooltip:web-tvdb">/ FormatNumber(Number([Critic Rating]),1),)If(Compare(Number([TMDb Rating]),>,0),/   <img src="tooltip:web-tmdb">/ FormatNumber(Number([TMDb Rating]),1),)<//font>

  ______________________________________________________________________________________________________________
[Filename],)
Logged

mvandyke

  • World Citizen
  • ***
  • Posts: 159
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #471 on: April 19, 2020, 07:28:35 am »

Looks good - I like it!
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #472 on: April 19, 2020, 05:11:51 pm »

I think I settle this now. If tmbd id is filled for me it means that there should also be actors images. If id is empty starring will show text only version.

As There is only so much space horizontally I created a little trick to show actor images. First two actors are now considered as a "main stars" and are shown always. Next four are then shown randomly from the rest of the actors. I could also make field which would contain "main stars" count so it could vary series by series. The Shuffle part of the template is a bit long due to MC's inconsistent list manipulation functions.

Code: [Select]
If(IsEqual([Media Sub Type],TV Show,1),/  <font size="170" color="ffffff"><b>[Series] | [Name]<//b><//font>
/  <font size="110"><i>Season: [Season]  Episode: [Episode] <b>|<//b> [Duration]  <b>|<//b> [Date] <b>|<//b> ListLimit([Genre],1)  <b>|<//b> [Status] If(Compare([Rating],>,0),<b> | <//b><font color="ad900d">RatingStars()<//font><b> |<//b>,)<//i><//font>

<font size="180">If(!IsEmpty([Access Rating]),<img src="tooltip:rating-[Access Rating]">,)   <img src="tooltip:definition-[Definition]">/   <img src="tooltip:speakers-[Channels]">/   <img src="tooltip:audio-[Audio Codec]">If(Compare(Number([Critic Rating]),>,0),/   <img src="tooltip:web-tvdb">/ FormatNumber(Number([Critic Rating]),1),)If(Compare(Number([TMDb Rating]),>,0),/   <img src="tooltip:web-tmdb">/ FormatNumber(Number([TMDb Rating]),1),)If(!IsEmpty([Production Companies]),/   <img src="tooltip:studio-ListItem([Production Companies],0)">,)<//font>
________________________________________________________________________________________________________________

If(!IsEmpty([Description]),<font size="120" color="62a2ba"><b>summary<//b><//font>
<font color="ffffff">[Description]<//font>,)

<font size="120" color="62a2ba"><b>starring<//b><//font>
If(!IsEmpty([Actors]),If(!IsEmpty([TMDb id]),<img src="tooltip:separator"><font size="800"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\Replace(ListLimit([Actors],2),;,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\).png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\Replace(Clean(ListLimit(ListShuffle(RemoveLeft([Actors], Math(Length(ListLimit([Actors],2)) + 2))),4)),;,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\).png"><//font>,<font size="140" color="ffffff">Replace(ListLimit([Actors],6),;,/,)<//font>),)

If(!IsEmpty([Guest Stars]),<font size="120" color="62a2ba"><b>guests<//b><//font>
<font size="140" color="ffffff">Replace(ListLimit([Guest Stars],4),;,/,)<//font>
,)If(!IsEmpty([Director]),<font size="120" color="62a2ba"><b>director<//b><//font>
<font size="140" color="ffffff">Replace([Director],;,/,)<//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="62a2ba"><b>screenwriter<//b><//font>
<font size="140" color="ffffff">Replace([Screenwriter],;,/,)<//font>
,)If(!IsEmpty([Creator]),<font size="120" color="62a2ba"><b>creator<//b><//font>
<font size="140" color="ffffff">Replace([Creator],;,/,)<//font>,)

________________________________________________________________________________________________________________
[Filename],)
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #473 on: April 23, 2020, 03:13:32 pm »

This thread has produced some really great and innovative work, and has provided a much-needed improvement to the appearance to Theater View.  Kudos especially to Lepa and Moe for leading the way on this.

I'd like to propose that we try and adopt some standards, to facilitate portability of these improvements.  Right now, for example there is considerable variance amongst file names and field names.  This makes it very difficult to move templates from one system to another.  This inhibits adoption by new users, and makes it less likely JRiver will incorporate any of this into the app.

For example, I downloaded one of the templates available on this thread the other day, and literally NOTHING worked in terms of images or fields.  All the fields names were custom, expected image names used by expressions did not match anything on Moe's site, and it didn't use the data populated by MCRatings.  It might have worked perfectly on the original user's system, but a new user would have had to change practically everything to get it to work.  So I think we should do something.  I mentioned this to Lepa, and he felt it was a conversation that should be had.

To get the conversation started, I'll propose some default standards I think would be helpful:

Custom Tooltip and Theater View Template Proposed Standards


Field Names: 
1. All Field Names referenced should be stock field names, or when new fields are introduced for extended metadata, those field names as used by MCRatings, when possible.  The app is actively developed, and is the easiest way for users to get started.  MCRatings uses stock field names, except for the new fields it adds for extended metadata.

2. If a custom field name only exists in MCutils, it should be added to MCRatings if possible, but if it is outside the scope of what MCRatings can do, then templates should use the field name from MCUtils.

File Locations:
1. All General Purpose tooltips, like format logos, should reside in the tooltip folder, so they can be accessed with tooltip: on every system.  Hard-coded paths outside the tooltip folder should not be used.

2. Large sets of non-general purpose images can be grouped in subfolders of the tooltip folder.  For example "Studios-" files could go in the tooltip\Studios directory.

3. Cast and Crew Images should go in the tooltip:\Images directory.  e.g. <img src="tooltip:Images\Humphrey Bogart">

File Names:
1. File Names should start with an appropriate prefix, to group files of similar use.

2. File Name Prefixes should match the Field Name they are used with followed by a dash, to facilitate ease of use in expressions. 
      For example: <img src="tooltip:studios-[Studios]">  (or <img src="tooltip:Studios\studios-[Studios]">  if using subdirectories)

3. The suffix on filenames (the part after the dash) should match the field contents it is used with.
      So a good well-named file would look like:  channels-6.png   and not speakers-51.png
      in order that it can be accessed with <img src="tooltip:channels-[channels]">

4. If you upload image files to Moe's site, make sure the filename fits the accepted standards.

Fonts:
1. If you specify font faces in your template, either use fonts that are included by default on Windows (and Mac?) or provide a link where the font can be downloaded.

2. Perhaps it is better that alternate font faces not be used, so that everything follows the font specified in MC preferences?  Size, bold, italic, underline, alpha, and color of course present no issue.

Images vs Fonts:
1. It is preferable to use individual image files rather than font characters to display special images like logos, for the following reasons:
    a.  Although the use of fonts for this is extremely clever and helps portability, it requires extensive expression language logic to implement and select the correct font character every time one is used.  By contrast, properly named images can be accessed very simply and directly from the expression language, now that the "tooltip:" extension is present.

    b.  Image files can be easily added to or edited by the end user to allow additional customization.  Fonts cannot, without obtaining and using special font editing software, and even then the process is considerably more labor intensive.

    c.  Expressions written using tooltip images are much more readable and easier to debug than expressions selecting individual font characters.



If I've left anything out of the above draft, or you think things need to be different, please chime in!

-Will
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #474 on: April 23, 2020, 04:12:24 pm »

@wer - generally speaking, those rules are a great starting point and some standardization is something I totally agree with.  I spent a lot of time a few weeks ago using the samples in this thread as a starting point and then figuring out how to make everything actually work for many of the reasons you mention.

I'd really like to see some standards that don't require the use of external tools like MCRatings though, for those of us who just use what's included with JRiver.  I suppose I could consider using MCRatings (I'm looking into it now), but it's not clear how much work would be involved to use it on an existing library that's reasonably large.

I think a few of your examples contradict some of the rules though - File Name rule 2, seems to have the wrong path, for example.  Rather than:

<img src="studios-[Studios]">

Since file location rule 2 suggests that studio files should be in a subfolder named "studios", shouldn't it be:

<img src="tooltip:Studios\studios-[Studios]">
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #475 on: April 23, 2020, 04:23:53 pm »

Regarding the path example, I wasn't necessarily expecting the subdirectories rule to be adopted so I didn't include it.  I can edit that  if it's confusing, but then people might ask other questions.

The use of MCRatings is not required.  Standardizing field names is.

MCratings is easy to use.  It mostly uses stock fields, but it introduces a few new fields to hold new types of metadata.  You can go without MCRatings and without the new fields, but then you will be missing that metadata. 

Anytime we collect expanded metadata there will be new fields, and thus new field names.  I've clarified that in the original post.

The point is we have two utils now, MCRatings and MCUtils.  Both can be modified and have things changed.  But we need to pick ONE standard.  Where the two tools conflict in nomenclature, to have a standard one must prevail.

I'm suggesting we pick MCRatings, as it will ease adoption.  MCUtils can still be used, but one should modify the field names to fit the standard. 

You can use neither, and then you will not have extended metadata, or things like actor images.  And it's the images that provide a lot of the facelift to Theater View.
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #476 on: April 23, 2020, 05:02:05 pm »

I just setup MCRatings and let it retrieve data for a few movies.  I had already added some of the fields it uses so the examples posted in this thread wouldn't give me errors.  The whole process really only took a few minutes.  Now I need to edit my templates to get support for the newly added data fully hooked up, but that shouldn't take too much work.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #477 on: April 23, 2020, 05:15:58 pm »

Bonus points if you can come up with a template and a set of stock images (rating logos, for example) that we can include in Media Center by default, preferably both for Shows and Movies, but just one for Movies would be a good start.

We can probably expand the default metadata lookup a bit if required (more ratings, etc), either from data we don't currently pull in from TMDb, or maybe expand the metadata sources if possible.
Feel free to suggest metadata you consider "mandatory" for this (or just want to have), and I'll see what I can do.

For images, we can include images with a limited pool of options, so images for ratings for example would be fine, or for audio/video formats, maybe even studios? but people would be out.

This would go well with your standardization efforts if we can provide a bigger "baseline" in MC itself already. And many users not willing or capable of setting this up would be happy, too, I'm sure!

If we can make use of this in MC itself for the majority of users with no external tool requirements and no manual setup, we can also expand the layout system a bit in the process.
Logged
~ nevcairiel
~ Author of LAV Filters

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #478 on: April 23, 2020, 05:30:24 pm »

Thanks Hendrik...

There's three things I would consider mandatory in my opinion, but only one part of that is metadata:

1. Extended metadata.  Just take a look at what MCRatings is pulling.  The most conspicuous thing is the ratings info from IMDB, Rotten Tomatoes, etc. Taglines too. I would also like to see the original film Aspect Ratio from IMDB.  The calculated AR stuff is for the birds, IMO.  Adding trivia, like IMDB has, would be nice.

2. Icons for all the various formats, logos, etc.  This is almost entirely derived from metadata MC already has, and the tooltip functionality was added to display it.  But including the actual icons with MC and making it easy to display in the app would go a long way.  Screenshots from this thread are full of this kind of iconography, from sound a file formats to studio logos.

3. Cast and Crew images.  This is the big one for me.  This totally transforms the look of your theater view screens.  MCRatings has this functionality integrated with ImageMagick so that the actor's real name and role name are superimposed on the image.  Awesome.  The only thing missing is age-appropriate photos.  Currently it will show you a 57 year old Jodie Foster in the metadata for Taxi Driver, and she was 13 when she made that movie.  I've suggested to Zybex more appropriate photos can be achieve by doing a google image search for "Jodie Foster 1976" (which is the year Taxi Driver was release, information MC and MCRatings already knows.  This would give you context-appropriate actor photos for every movie, and would be truly wonderful.

Those things, plus what you mentioned about improved layout tools (putting the image on the left instead of the right, text justification, etc) would give Theater View a much needed boost.

Edit: Re layout, being able to specify the height of an item would be helpful.  If I want to insert a 1-pixel high horizontal line as a separator, it takes up too much vertical space.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #479 on: April 23, 2020, 05:41:00 pm »

I'm looking for something that largely works with no additional user interaction. We're not going to do people images out of the box, its just too much finnicky manual work to select all the images for every movie. I understand many of you like them quite a bit, and of course we're not going to take anything away from your external solutions for them - and if we can do something to make them easier, we can also try to do that, but its not currently realistic to add lookup and processing into MC itself.

So what I am looking for, specifically:
- Tell me specifically which metadata is missing, and if its available in one of the databases we can use (primarily TMDb, maybe we can expand that), I'll include it (new fields are fine too). Many databases like IMDB itself are not available, as they are very expensive to use commercially.
- A Theater View template that makes use of this data (and/or a tooltip template, although personally I would be more after a Theater View one)
- A collection of the images required for that template


So in short, I can do some work on this, but for the sake of time efficiency (my list of things to work on is longer then I care to count), let me do the actual work, and not the research - which many of you have already done anyway, and would just need to properly present it for me to use. :)

If the regulars in this thread can put something together for that purpose, that would be great, and benefit MC as a whole!

I realize that might be asking a lot, but many of you guys already created those templates and have the images required all collected, so maybe just some adjustment and it might already be ready to go. And you guys get full control of what information you want on there - otherwise I will likely build something on my own eventually, but me personally? I probably care about much less information then you guys do, and it wouldn't be half as fancy.
Logged
~ nevcairiel
~ Author of LAV Filters

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #480 on: April 23, 2020, 05:59:00 pm »

Well done Wer on getting this standardisation process started. I haven't adopted any of this development yet, waiting for it to settle down and become more standard. But I have been watching carefully.

I can edit that  if it's confusing, ...

Yes please. Oh, it looks like you already have.  :D

Hendrik, great to hear you are happy to do more.

Everyone else, Hendrik indirectly referred to an issue that you need to consider in this standardisation, and use of MCRatings and MCUtils. That is, JRiver as a commercial organisation can't use commercial metadata sources in MC, with functionality built into the software. Hence Hendrik talks about using free databases. JRiver can't access the IMDB directly, as I understand it. That would lead to a lawsuit. However, it can access any IMDB metadata when it is stored on a free database. i.e. The "IMDB ID" is available from TMDB, which is a free service.

However, any user can access all the available metadata for free from commercial sites, when they offer it free, as it is for "personal use". Hence user utilities such as MCRatings and MCUtils can access that data. Hence any solution involving the collection of broader metadata must rely on such utilities.

Other than that, carry on. I look forward to prettier Theatre View displays.  8)

PS: I see Hendrik has clarified a bit further. This thread is a moving target!
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #481 on: April 23, 2020, 06:10:37 pm »

Everyone else, Hendrik indirectly referred to an issue that you need to consider in this standardisation, and use of MCRatings and MCUtils. That is, JRiver as a commercial organisation can't use commercial metadata sources in MC, with functionality built into the software. Hence Hendrik talks about using free databases. JRiver can't access the IMDB directly, as I understand it. That would lead to a lawsuit. However, it can access any IMDB metadata when it is stored on a free database. i.e. The "IMDB ID" is available from TMDB, which is a free service.

Thats an important point. Many of these sites are not free to use for commercial use. IMDB is a prime example of this, their API for full use in a commercial product is extremely expensive.
With every web service we use, we have to check for these things. Metadata doesn't come for free, at least not if you are a commercial piece of software. So we have to be very careful.

To that end, I've long wanted to make an extensible metadata framework, so that crafty users could provide additional metadata sources directly into MCs lookup functionality, without us having to deal with the possible consequences of "commercial use". But thats probably quite some ways away.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72548
  • Where did I put my teeth?
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #482 on: April 23, 2020, 09:34:45 pm »

To that end, I've long wanted to make an extensible metadata framework, so that crafty users could provide additional metadata sources directly into MCs lookup functionality, without us having to deal with the possible consequences of "commercial use". But thats probably quite some ways away.
I agree.  YADB could probably be harnessed.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #483 on: April 24, 2020, 01:34:23 am »

Great idea Wer, standards are always a good idea.

I agree with pretty much everything you said, except:

Quote
3. Cast and Crew Images should go in the tooltip:\Images directory.  e.g. <img src="tooltip:Images\Humphrey Bogart">

I strongly disagree with this.  I have so many cast/crew images that it lags my system if I don't put them in a structure like

Actors
     A
     B
     C
     ...
     Y
     Z

That said, it would be so much better if actor/crew images were generated on the fly within MC directly, like how we get background images.


Quote
We're not going to do people images out of the box, its just too much finnicky manual work to select all the images for every movie

I don't understand this?  TMDB, a source you're already pulling metadata from, has actor/director/etc images.  It seems to me that it wouldn't take a lot of work to generate these images on the fly.  Plex does it.

None of the tools used in this thread use IMDB data directly.  Even if it was, scraping non-copyrighted data is legal https://towardsdatascience.com/web-scraping-is-now-legal-6bf0e5730a78

The VAST majority of the data we are getting comes from TMDB, a resource MC is already using.  There is some data that comes from OMDB (I believe).  Some images are also coming from fanart.tv


Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #484 on: April 24, 2020, 01:45:04 am »

I don't understand this?  TMDB, a source you're already pulling metadata from, has actor/director/etc images.  It seems to me that it wouldn't take a lot of work to generate these images on the fly.  Plex does it.

If there is a one-stop source of images without requiring manual selection and post-processing, we can consider doing that. All I see here is talk about manually selecting images and processing them with ImageMagick, which is probably too much.

None of the tools used in this thread use IMDB data directly.  Even if it was, scraping non-copyrighted data is legal https://towardsdatascience.com/web-scraping-is-now-legal-6bf0e5730a78
That doesn't mean its the right thing to do. Besides its far more annoying to keep updating a web scraper for every website change, rather then use an API.

----

Either way, lets break this down into small chunks, and lets start with missing metadata or metadata improvements. Thats going to benefit everyone no matter what!
Logged
~ nevcairiel
~ Author of LAV Filters

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #485 on: April 24, 2020, 02:00:53 am »

The regular actor images are downloadable from TMDB/OMDB.  MCRatings does that automatically; it grabs the information from the actor field, and downloads the images that match the actor name.

MCRatings leverages ImageMagick to resize images, and to overlay text (actor name and role name) on the images.  MC already has the ability to resize images, and adding the text overlay not difficult, so it should present no challenge for MC to do that processing internally with routines it already has.

The images are downloaded and resized once, and it takes only a second because they are small.  The time of the Get Movie Info command would probably not be significantly increased.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #486 on: April 24, 2020, 02:12:15 am »

On a side note, has anyone noticed a strange scrolling problem with these templates?

Here's what I see:

1. With default JRiver Templates, vertical scrolling (done by leaning on the down or up arrow) is smooth.  The selection bar smoothly zips up and down the screen, no issues.

2. With a template using ONLY fonts to draw iconography, scrolling is just as smooth.

3. Using a template that uses actual tooltip images, scrolling is not smooth.  Keystrokes seem to get swallowed up or ignored.  If you lean on the down arrow, the selection bar might go down 1 (or 0) rows, and stop, all while you are leaning on the key.  After a few seconds it may descend some more, or it might not move until you release the key, and then scroll to the bottom element.  It's a very nasty scrolling experience.  Video performance, the actual rendering of the scroll animation as elements move on the screen, stays smooth.  It just doesn't seem to register the repeating keystrokes.

  If you tap the down arrow individually instead of holding it down, it moves each time you tap it.  Video performance of scrolling remains smooth.  Hold the key down, and scrolling grinds to a halt.

I've duplicated this on 2 different machines, and with both keyboard and IR Remote.  This is kind of a deal-breaker for a remote, as tap-tap-tapping the button individually each time is a pain.

Scrolling performance when using tooltip images just seems to be bad.

Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.
Logged

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 548
  • It's not easy being me, but it sure is fun!
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #487 on: April 24, 2020, 07:25:41 am »

Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.

Wer, I don't experience your issue. My tooltips scroll very smoothly. I have a nVidia GeForce GTX 970 video card.
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #488 on: April 24, 2020, 07:45:19 am »

My templates seem to scroll just fine as well.  I have a GTX 1070 card and recently upgraded my PC to an AMD 3900X CPU, so it's a fairly high end system (for now...).
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #489 on: April 24, 2020, 09:58:04 am »

Quote
If there is a one-stop source of images without requiring manual selection and post-processing, we can consider doing that. All I see here is talk about manually selecting images and processing them with ImageMagick, which is probably too much.

I don't think anyone is manually selecting actor images.  Lepa may have very early on, but we've had automated image gathering since at least October.

Here is an example movie from the tmdb api showing actor image, actor name and character name

Code: [Select]
{
  "id": 680,
  "cast": [
    {
      "cast_id": 2,
      "character": "Vincent Vega",
      "credit_id": "52fe4269c3a36847f801ca99",
      "gender": 2,
      "id": 8891,
      "name": "John Travolta",
      "order": 0,
      "profile_path": "/JSt3skdZpGPJYJixCZqH599WdI.jpg"
    },
    {
      "cast_id": 3,
      "character": "Jules Winfield",
      "credit_id": "52fe4269c3a36847f801ca9d",
      "gender": 2,
      "id": 2231,
      "name": "Samuel L. Jackson",
      "order": 1,
      "profile_path": "/mXN4Gw9tZJVKrLJHde2IcUHmV3P.jpg"
    },
    {
      "cast_id": 8,
      "character": "Mia Wallace",
      "credit_id": "52fe4269c3a36847f801cab7",
      "gender": 1,
      "id": 139,
      "name": "Uma Thurman",
      "order": 2,
      "profile_path": "/xuxgPXyv6KjUHIM8cZaxx4ry25L.jpg"
    },

With my limited knowledge, it seems like TMDB would make it pretty easy to get images. 

If I am reading the imagamagick license correctly, it's free to use for commercial products.  There are already at least two imagemagick "recipes" created to apply to images (one for rectangular images and one for round images).  This obviously doesn't include any other backend work needed to incorporate it with MC, but I think that would be fairly easy(?).

Quote
On a side note, has anyone noticed a strange scrolling problem with these templates?

I don't experience any issues with my scrolling either.
Logged

jimm2

  • Junior Woodchuck
  • **
  • Posts: 88
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #490 on: April 24, 2020, 10:15:46 am »

Scrolling performance when using tooltip images just seems to be bad.

Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.

Yes, I experience the same scrolling issue when using tooltip images. I found that reducing the file size of the images can help speed up scrolling but it's not really a fix.   
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #491 on: April 24, 2020, 12:57:43 pm »

Many discussions going on..
About Hendrik's request for baby steps:

EXPANDED METADATA

MEDIA PARSING:
I think that MC could do more analyzing of video file while importing. For example: parsing audio and subtitle track languages and also some compression info like audio/video codec for file or HDR/DV info
Currently I'm calculating or manually adding these to every file or using JMone's swag

my tags:
[Audio Language] = eng;ger;fre;etc (JMone Swag of tools)
[Subtitles] = eng;ger;fre;etc (JMone Swag of tools)
[Audio Codec] = aac;dolby digital;flac;etc (I determine this currently live from [Compression])
[Video Codec] = I currently don't have this field
[HDR] = Checkbox (Manual edit currently)
[Dolby Vision] = Checkbox (Manual edit currently)
[HD Audio] = Atmos, DTS:X  (calculated from [Compression] by searching Atmos or DTS:X)

My misc fields:
([Definition] = 4K, 1080p, 720p, 576p, 480p (calculated from width, yes width), I don't expect this to be stock field, just my preference instead of calculating it inside expressions everytime )
[Dynamic Range (album)] = I have calculated field which have average DR value for album, could this also be calculated during analyzing?
[Total Tracks] = total tracks of an album. MC I guess will fill this during ripping but it is not triggered from anywhere else

METADATA FROM INTERNET
Looked what MCRating is currently pulling and here are something I think stock MC could also pull
[TMDb Rating]
[IMDb Rating]
[Rotten Tomatoes]
[Metascore]
[Awards]
[Tag Line]
[Movie Series]
[Original Title]
[Studios]
or is studios already saved?

These would be the baby steps for me to get stock MC some more illustrative(?) data. So just parsing file into more tags ("update library from tags" would also trigger parsing) and getting few more lines from TMDb(/OMDb). Some images could then be added into tooltip folder structure which could be used to update current default movie template.




SECOND PHASE
Second phase could be then actor images. As Moe demonstrated, it should be fairly easy. MC would have default ImageMagick script for adding overlays which could be overwritten by user script.


SOME OTHER STUFF
Image alignation: images are drawn aligned to top left which makes them cumbersome to use images with text at same rows. You can't use common image but need to create new images for every situation depending on font size. Maybe drawing images at center of "cell" would fix this issue?

Thumbnail/Cover position: Now Cover is always on right. It would be at leas a little variation if one could mirror the position from the image template option

Client/Server Image distribution: I think that currently no images are transferred between server and client. So if I have two living room MC and bedroom MC I need to copy manually all the images to get them shown in both environment.

List style data linking ability Moe can refresh your memories about this. I'm now too exhausted to write anything

Bigger change would be possibility to show grouped data. To see artist page, album page, series page, season page. I know this probably don't fit on current MC theaterview navigation but would be nice addition and food for thought in the future. Now if I want read e.g. Album review I need to go all the way to one item (track) view. Ideally track level would show only track related data.

probably forgot many things but this post is already too long for anyone to read it...
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #492 on: April 24, 2020, 02:56:44 pm »

An update on the scrolling problem.

Some people are seeing it, some are not.

For the people who are seeing it, it occurs on both Windows 7 and Windows 10, and with AMD, Nvidia, and Intel graphics, on graphics cards 2GB and 4GB of memory.  Regular theater view scrolling, not using these templates, has no problems with keyboard responsiveness.

I found the problem can be reproduced using the unmodified template Lepa posted at this link as movie-template.txt
https://yabb.jriver.com/interact/index.php/topic,119385.msg825419.html#msg825419

There's speculation it might be due to image size.  Some of the images on Moe's site are ridiculously over-large for iconography, with dimensions greater than 1920x1080.  I'll experiment and report back.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #493 on: April 24, 2020, 03:07:59 pm »

Just a small note,
Everyone (as Lepa just wrote) who have a MC server and a MC client (I have a MC server PC in my movie room and a MC client PC in my bedroom) have to update the tooltip in both locations when adding icons, pictures and other stuff to the tooltip folder.
So to have cast/crew pictures in tooltip is not a good idea.

I have, as suggested by Moe, the pictures sorted in alphabetical folders and also stored on my Synology NAS so both the server and the client can fetch pictures from the same place.


Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #494 on: April 24, 2020, 03:25:50 pm »

An update on the scrolling problem.
There's speculation it might be due to image size.  Some of the images on Moe's site are ridiculously over-large for iconography, with dimensions greater than 1920x1080.  I'll experiment and report back.
I'll suspect that this is the case here. I have scaled my pictures down to size what is needed because IMO live scaling doesn't seem to be so good and also big files could slow the system down.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #495 on: April 24, 2020, 04:00:32 pm »

I'll suspect that this is the case here. I have scaled my pictures down to size what is needed because IMO live scaling doesn't seem to be so good and also big files could slow the system down.

I can confirm that this is absolutely the case.  Resizing all the image files to a small size before launching MC corrects the problem 100%.

MC is getting bogged down and misses keystrokes when it's loading and resizing large images at display time, even if loading from an SSD.  MC is doing some automagic resizing, because absurdly large images get resized to appropriate small sizes, even if no formatting like that is in the img src tag.  I think this is good behavior on MC's part, in terms of the automagic resizing.  In terms of the missing keystrokes, well...

The thing is, MC is being asked to do too much with these images that we've been downloading from Moe's site.

Some of the images sizes are absolutely obscene. Some have dimensions of 2819x2729.  This is for a freaking icon, people.  Don't upload crap like that.

Some have equally stupid sizes that interfere with automatic resizing. For example, how about an icon that's 1661x50   That's ridiculous.  You can't resize it without making the vertical component disappear.  If you have logos that look like that, they're inappropriate. CROP them to a reasonable aspect ratio before uploading.

These are supposed to be icons. They should not be in 4k or HD resolution.  300x300 max.  They should have aspect ratios in the range of roughly 1:1 to 4:1.  A logo with a 33:1 aspect ratio is useless, except as a separator.

Sorry for the rant, but people need to be more careful with the images they submit.  Unless the repository is sanitized, everyone will need to clean them up for themselves.

If you want to try, an example imagemagick command would be:
magick convert -resize 300x300^> %1 %1

This will only resize images larger than 300x300 down to that size, preserving aspect ratio.  You won't like what it does to an image with a 33:1 aspect ratio.  You need to crop those first.

At least this mystery is cleared up.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #496 on: April 24, 2020, 04:44:35 pm »

These are supposed to be icons. They should not be in 4k or HD resolution.  300x300 max.
And even then isn't it almost 15% of vertical resolution on 4K display  8)
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #497 on: April 24, 2020, 04:51:54 pm »

I've been meaning to introduce proper caching for the images used in tooltips/Theater View, that should resolve those performance problems, I reckon.
Logged
~ nevcairiel
~ Author of LAV Filters

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #498 on: April 24, 2020, 04:54:09 pm »

And even then isn't it almost 15% of vertical resolution on 4K display  8)

Yeah no kidding.  I just picked a number (300) and ran a resize, and it solved the problem.  So small enough to fix the issue, not so small you can't see it.  Searching for the optimal size I leave as an exercise to the reader.  MC seems to resize everything anyway according to some inscrutable and undisclosed rule, so everything fits.  I made a 2-px high separator image, and it displayed that properly without making it too big, and it also shrank down 2500px images so they were small like icons.  It just seems to always do the right thing without being told.

Some of the images are too small too... There's a bunch of "country" files (flags) that are only 16x11.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #499 on: April 24, 2020, 04:58:13 pm »

I've been meaning to introduce proper caching for the images used in tooltips/Theater View, that should resolve those performance problems, I reckon.

Maybe as a prophylactic measure if you think you need to, but honestly some of the image sizes in there were just stupid.  The software was being asked to do something unreasonable.  People should just be more careful with their maximum "icon" sizes.

Once all the images are a reasonable size, MC works fine.
Logged
Pages: 1 ... 6 7 8 9 [10] 11 12 13 14 ... 18   Go Up