Jump to content
marmei

XMLTV several image formats

Recommended Posts

marmei
Is it possible that Emby displays the image in the correct format in the grid?
In my XMLTV file, several image formats are included (2x3, 3x4, 4x3, 16x9)
 
On the Apple TV (Emby Beta) the different image formats are used.
 
<programme channel="guide2go.86886.schedulesdirect.org" start="20181112030500 +0000" stop="20181112035000 +0000">
<title lang="de">Terra X (Der Mond - unser magischer Trabant)</title>
    <sub-title lang="de">(Der Mond - unser magischer Trabant) Diese Sendung berichtet über die Rolle, die der Mond in der Wissenschaft spielt.</sub-title>
    <desc lang="de">Diese Sendung berichtet über den Mond. Dieser bestimmte unsere Geschichte und hält eine spektakuläre Zukunft bereit. Der Mond wurde als erster Himmelskörper von Menschen betreten und soll in naher Zukunft als Forschungsstation dienen.</desc>
    <category lang="en">Documentary</category>
    <category lang="en">History</category>
    <category lang="en">Science</category>
    <episode-num system="original-air-date">2018-11-11</episode-num>
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9587122_b_v7_ad.jpg"height="720" width="480"></icon>
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9587122_b_v4_ad.jpg"height="720" width="540"></icon>
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9587122_b_h11_ae.jpg"height="540" width="960"></icon>
    <video></video>
    <audio></audio>
    <previously-shown start="2018-11-11"></previously-shown>
</programme>

Data comes from Schedules Direct

I'm sorry, the picture is the wrong way around  :wacko:

 

post-368909-0-33221500-1541868913_thumb.jpg

Edited by marmei

Share this post


Link to post
Share on other sites
Luke

What exactly is the problem?

Share this post


Link to post
Share on other sites
marmei

As I see it, Emby uses the 2x3 format, does not look nice if the image is then cropped in (middle row in the photo)

Share this post


Link to post
Share on other sites
Luke

i will add support for multiple image types. we can examine the width/height of each and assign them to the various image types - poster, thumb, etc. the apps will then utilize them. thanks.

  • Like 1

Share this post


Link to post
Share on other sites
marmei

i will add support for multiple image types. we can examine the width/height of each and assign them to the various image types - poster, thumb, etc. the apps will then utilize them. thanks.

Great, that would have been my suggestion.

Share this post


Link to post
Share on other sites
garyan2

@@Luke, just want to verify this has been incorporated at least in the beta. I've added code to EPG123 to have all aspect ratio images included in the XMLTV file (2x3, 3x2, 3x4, 16x9, ?). It looks like the beta server is selecting the correct format, but I just want to make sure before I finalize.

  <programme start="20190104040000 +0000" stop="20190104050000 +0000" channel="EPG123.42676.schedulesdirect.org">
    <title>The Blacklist</title>
    <sub-title>Dr. Hans Koehler</sub-title>
    <desc>Liz and her sister, Jennifer, secretly investigate the night the real Raymond Reddington died, while Red puts the task force on the case of a doctor who changes criminals' identities through plastic surgery.</desc>
    <credits>
      <director>Bill Roe</director>
      <actor role="Raymond "Red" Reddington">James Spader</actor>
      <actor role="Elizabeth Keen">Megan Boone</actor>
      <actor role="Donald Ressler">Diego Klattenhoff</actor>
      <actor role="Harold Cooper">Harry Lennix</actor>
      <actor role="Tom Keen">Ryan Eggold</actor>
      <actor role="Samar Navabi">Mozhan Marnò</actor>
      <actor role="Dembe Zuma">Hisham Tawfiq</actor>
      <actor role="Aram Mojtabai">Amir Arison</actor>
      <writer>Jon Bokenkamp</writer>
      <writer>John Eisendrath</writer>
      <producer>Jon Bokenkamp</producer>
      <producer>John Eisendrath</producer>
      <producer>John Davis</producer>
      <producer>John Fox</producer>
      <guest>Kenneth Tigar</guest>
      <guest>Fiona Dourif</guest>
      <guest>Vasili Bogazianos</guest>
      <guest>Tessa Kim</guest>
      <guest>Geraldine Singer</guest>
      <guest>Shamika Cotton</guest>
      <guest>Christopher Lambert</guest>
      <guest>Maria-Christina Oliveras</guest>
      <guest>Bill Cwikowski</guest>
      <guest>Vick Krishna</guest>
      <guest>Vasile Flutur</guest>
      <guest>Anthony Simone</guest>
      <guest>Norma Chu</guest>
      <guest>Stephen Medina</guest>
      <guest>Chanel Carroll</guest>
    </credits>
    <date>20190103</date>
    <category>Series</category>
    <category>Crime Drama</category>
    <category>Action</category>
    <category>Suspense</category>
    <language>en</language>
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9972804_b_h3_ah.jpg" width="360" height="270" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9972804_b_v3_ah.jpg" width="270" height="360" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9972804_b_h12_ah.jpg" width="960" height="540" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p9972804_b_v5_ah.jpg" width="240" height="360" />
    <episode-num system="dd_progid">EP01738690.0119</episode-num>
    <episode-num system="xmltv_ns">5.0.0/1</episode-num>
    <episode-num system="thetvdb.com">series/266189</episode-num>
    <video>
      <quality>HDTV</quality>
    </video>
    <audio>
      <stereo>dolby digital</stereo>
    </audio>
    <premiere>Season Premiere</premiere>
    <new />
    <subtitles type="teletext" />
    <rating system="USA Parental Rating">
      <value>TV14</value>
    </rating>
    <rating system="VCHIP">
      <value>TV-14</value>
    </rating>
    <rating system="advisory">
      <value>Violence</value>
    </rating>
  </programme>

Share this post


Link to post
Share on other sites
Luke

Yes it should be, although I whipped it up blind because i don't have xml to test it with. thanks.

Share this post


Link to post
Share on other sites
garyan2

Yes it should be, although I whipped it up blind because i don't have xml to test it with. thanks.

 

I can spit out an XMLTV file for you if you want. Just let me know what lineup and how many days you want.

  • Like 1

Share this post


Link to post
Share on other sites
Spaceboy

I’ve been meaning to post on this topic. I’m using epg123 to pull my data down from schedules direct and then using it in xteve before it gets to emby but I’m having trouble working out which image size to use. Either causes issues one way or the other

Share this post


Link to post
Share on other sites
Luke

What issue?

Share this post


Link to post
Share on other sites
alturismo

i guess he means if there are different image formats and zoom instead taking the correct format.

 

sample

 

in xteve u can specify wich format to take (icon src) or use all

 

sample from xml

 

format limited to 2x3

---

      <programme channel="guide2go.83631.schedulesdirect.org" start="20190109005500 +0000" stop="20190109012000 +0000">
          <title lang="de">How I Met Your Mother</title>
          <sub-title lang="de">Hochzeitsgast plus eins</sub-title>
          <desc lang="de">Ted ist zu einer Hochzeit eingeladen und sucht noch nach einer Begleitung. Natürlich fragt er Robin, welche die Einladung auch annimmt und sich sehr darauf freut. Doch dank Ted trennt sich das Paar kurz vor der Hochzeit. [Hochzeitsgast plus eins]</desc>
          <category lang="en">Sitcom</category>
          <episode-num system="xmltv_ns">0.11.</episode-num>
          <episode-num system="original-air-date">2006-01-09</episode-num>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_v8_aa.jpg"height="1440" width="960"></icon>
          <video>
              <quality>HDTV</quality>
          </video>
---
 
not limited = all
---
      <programme channel="guide2go.83631.schedulesdirect.org" start="20190109005500 +0000" stop="20190109012000 +0000">
          <title lang="de">How I Met Your Mother</title>
          <sub-title lang="de">Hochzeitsgast plus eins</sub-title>
          <desc lang="de">Ted ist zu einer Hochzeit eingeladen und sucht noch nach einer Begleitung. Natürlich fragt er Robin, welche die Einladung auch annimmt und sich sehr darauf freut. Doch dank Ted trennt sich das Paar kurz vor der Hochzeit. [Hochzeitsgast plus eins]</desc>
          <category lang="en">Sitcom</category>
          <episode-num system="xmltv_ns">0.11.</episode-num>
          <episode-num system="original-air-date">2006-01-09</episode-num>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_v8_aa.jpg"height="1440" width="960"></icon>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_l_h9_aa.jpg"height="540" width="720"></icon>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_h10_aa.jpg"height="540" width="960"></icon>
          <video>
              <quality>HDTV</quality>
          </video>

---

 

as you see there are different formats available, question is, is emby looking therefore and taking the proper one meanwhile or just catch the 1st hit and zoom to fit your window ?

 

in my server it looks ok to me after a few clicks, no idea if you have added the support yet ?

Share this post


Link to post
Share on other sites
Spaceboy

What issue?

 

 

i guess he means if there are different image formats and zoom instead taking the correct format.

 

sample

 

in xteve u can specify wich format to take (icon src) or use all

 

sample from xml

 

format limited to 2x3

---

      <programme channel="guide2go.83631.schedulesdirect.org" start="20190109005500 +0000" stop="20190109012000 +0000">
          <title lang="de">How I Met Your Mother</title>
          <sub-title lang="de">Hochzeitsgast plus eins</sub-title>
          <desc lang="de">Ted ist zu einer Hochzeit eingeladen und sucht noch nach einer Begleitung. Natürlich fragt er Robin, welche die Einladung auch annimmt und sich sehr darauf freut. Doch dank Ted trennt sich das Paar kurz vor der Hochzeit. [Hochzeitsgast plus eins]</desc>
          <category lang="en">Sitcom</category>
          <episode-num system="xmltv_ns">0.11.</episode-num>
          <episode-num system="original-air-date">2006-01-09</episode-num>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_v8_aa.jpg"height="1440" width="960"></icon>
          <video>
              <quality>HDTV</quality>
          </video>
---
 
not limited = all
---
      <programme channel="guide2go.83631.schedulesdirect.org" start="20190109005500 +0000" stop="20190109012000 +0000">
          <title lang="de">How I Met Your Mother</title>
          <sub-title lang="de">Hochzeitsgast plus eins</sub-title>
          <desc lang="de">Ted ist zu einer Hochzeit eingeladen und sucht noch nach einer Begleitung. Natürlich fragt er Robin, welche die Einladung auch annimmt und sich sehr darauf freut. Doch dank Ted trennt sich das Paar kurz vor der Hochzeit. [Hochzeitsgast plus eins]</desc>
          <category lang="en">Sitcom</category>
          <episode-num system="xmltv_ns">0.11.</episode-num>
          <episode-num system="original-air-date">2006-01-09</episode-num>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_v8_aa.jpg"height="1440" width="960"></icon>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_l_h9_aa.jpg"height="540" width="720"></icon>
          <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p185124_i_h10_aa.jpg"height="540" width="960"></icon>
          <video>
              <quality>HDTV</quality>
          </video>

---

 

as you see there are different formats available, question is, is emby looking therefore and taking the proper one meanwhile or just catch the 1st hit and zoom to fit your window ?

 

in my server it looks ok to me after a few clicks, no idea if you have added the support yet ?

yes exactly that.

 

In epg123 it seems the default is for it to obtain images in 4x3 format or you can also request 2x3. both of these work but its an either or. emby seems to need the 2x3 images for some screens and 4x3 for others so its impossible to have one setting that satisfies both requirements. and the artwork in emby is often zoomed as a result

Share this post


Link to post
Share on other sites
Luke

Actually you could only have one image type if you wanted, and emby should adapt to it. Can you show screenshots of where this isn't happening? Thanks.

Share this post


Link to post
Share on other sites
Luke

I found one small issue so I'm adding a fix for that before the upcoming 4.0 release. Can any of you provide some screenshot examples of how we're looking right now? 

 

Ideally, in order to verify this works, you should be able to browse to the list screens that let you pick your image style and then select either Primary or Thumb.

 

So for example, from the Live TV suggestions tab, click the On Now heading. Then on the next screen, click the 3-dot button. Thanks.

Share this post


Link to post
Share on other sites
garyan2

Screenshots of 3.5.3 or the beta 4.0? and an XMLTV with a single image with/without dimension, or an XMLTV with multiple images with dimension?

Share this post


Link to post
Share on other sites
Luke

The 4.0 beta + multiple images.

 

Single image I'm pretty sure should already be fine. Thanks.

Share this post


Link to post
Share on other sites
Luke

Actually since you're adding sizes, we can put those in the database directly and avoid having to scan the images on the fly later. That is something i added for the gracenote data but never got to giving that to xmltv.

Share this post


Link to post
Share on other sites
garyan2

Sure. Give me some time to set it up.

Share this post


Link to post
Share on other sites
garyan2

I would say some success... but it didn't get all of them. It got some of the 4x3 images when I went to thumb, but didn't do them all. The first one is Jimmy Kimmel Live! that had the 4 images below in the XMLTV file. Were the thumbs to be 4x3 or 16x9?

    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p184869_b_h3_ag.jpg" width="360" height="270" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p184869_b_h12_af.jpg" width="960" height="540" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p184869_b_v3_ag.jpg" width="270" height="360" />
    <icon src="https://s3.amazonaws.com/schedulesdirect/assets/p184869_b_v5_ag.jpg" width="240" height="360" />

Primary

5c36e747b0f09_primary.png

 

 

Thumb

5c36e77b92ce1_thumb.png

Share this post


Link to post
Share on other sites
garyan2

Also, I just took a look at how it presents on SHIELD, and the images you see for the Thumbs view, are being zoomed in to fill a 16x9 frame (except for movies which only have a single 2x3 image).

  • Like 1

Share this post


Link to post
Share on other sites
Spaceboy

here is a screenshot from the web client. to me the pic's circled in red seem squashed. the pic's circled in blue appear wrongly on the Android TV home screen. it seems like emby has taken a 4x3 zoomed crop of the 2x3 image

5c371440ef2e7_Capture.png

Share this post


Link to post
Share on other sites
Luke

Also, I just took a look at how it presents on SHIELD, and the images you see for the Thumbs view, are being zoomed in to fill a 16x9 frame (except for movies which only have a single 2x3 image).

 

How does the web app compare?

Share this post


Link to post
Share on other sites
garyan2

I didn't look at all of them, but the images that were selected to display for image type of Thumbs, are what were used for display on the SHIELD. Those images were then zoomed to fill the 16x9 frame width. Basically what is shown on SHIELD agrees with what is displayed on the web app for thumbs.

  • Like 1

Share this post


Link to post
Share on other sites
Luke

Can you shut down the server, replace this file in your installation, and then start up and refresh the guide? Please let me know if anything changes after that. thanks.

 

Emby.LiveTV.zip

Share this post


Link to post
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...