Jump to content


Photo
Tizen

How to adjust quality of photos in the app?

jpg quality photos

  • Please log in to reply
11 replies to this topic

#1 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 01 July 2019 - 04:41 PM

Thanks for releasing the USB-sideload-Version of the app for Samsung TVs out of USA / UK. Works wonderful.

 

Is there any setting to increase the quality of photos (JPG Images) when viewed in the app? The Images don't even have Full HD resolution and the JEPG compression is way to high. All my photos look terrible when viewed on my 55" 4K MU8009 through the emby app. You can see the JEPG compression artifacts even when viewed from 5 meters away! Landscape images don't even fill the screen (because of low resolution?). There are thin black bars on all sides.



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134225 posts
  • Local time: 07:24 AM

Posted 01 July 2019 - 05:41 PM

Hi, what screens do they not look good in? Can you please go over an example? How does the web app compare?



#3 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 01 July 2019 - 06:58 PM

They look bad when i view the image in full screen.

 

The web app seems to do better but not that much and still way worse than the original image.

 

When I view the image details for the actual image displayed in the web app (Firefox 67 on Windows PC) it states that it is of image type webp, has a resolution of 1920 x 1280 px and a size of 468 kB. The original image is a jpeg with a resolution of 4147 x 2765 pixels and a size of 1,6 MB

 

I will attach both of them to this post for you.

In the zip file you will also find a screenshot (photo) of my samsung tv showing the exact same image with the samsung tv app. There you will see that all the details on the buildings on the photo are gone and only some really huge JPEG block artifacts are left. Also the resolution seems to be even worse than the 1920 x 1280 of the web app.

Attached Files


Edited by lejared, 01 July 2019 - 07:00 PM.


#4 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 07 July 2019 - 04:57 PM

Any feedback on this?



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134225 posts
  • Local time: 07:24 AM

Posted 07 July 2019 - 10:56 PM

Can you attach the emby server log? We can use that to see what resolution the Samsung app downloaded the image at. Thanks.



#6 FrostByte OFFLINE  

FrostByte

    Advanced Member

  • ForumMod
  • 4135 posts
  • Local time: 07:24 AM
  • LocationThe UP

Posted 07 July 2019 - 11:00 PM

That photo looks a little pixelated on my TV also, more so than on my computer.  I can see the blocks in the clouds and elsewhere also.  

 

To me it looks like since the app is displaying the photo maximized that there just isn't enough bits there for it to look good when it's blown up that big.  My photos which have a similar resolution but are much larger in size look good on my TV.



#7 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 08 July 2019 - 03:25 PM

Please find the log attached.

 

Arraound 434 there are some requests from the Samsung TV which look like this:

2019-07-08 21:02:23.109 Info HttpServer: HTTP Response 200 to 192.168.178.34. Time: 20ms. http://192.168.178.25:8096/emby/Items/12815/Images/Primary?maxWidth=1536&tag=f7dacec04228d2bff412aa9cda32833f&quality=50
2019-07-08 21:02:31.339 Info HttpServer: HTTP GET http://192.168.178.25:8096/dlna/9261ce1d65c840019b5e6b1be14ff5d3/description.xml. UserAgent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player-DMS/12.0.7601.17514 DLNADOC/1.50

Looks like the image size is limited to 1536px width and compression quality is set to 50. I'd expect something more like  maxWidth=3840 and quality=90 on a 4K TV.

But why resize and recompress the images anyway and not just "direct play" them to the TV?

 

On line 679 you'll find some request from a Firefox 67 on a Windows PC which look like this:

2019-07-08 21:05:16.492 Info HttpServer: HTTP GET http://stardust:8096/emby/Items/12805/Images/Primary?maxWidth=1920&tag=67d877d24239120a57b61f00e969965c&quality=90. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

It got some slightly better 1920px resolution and way better quality=90 compression.

 

 

 

@FrostByte:

This photo looks perfectly sharp and with no visual pixels or compression artifacts when directly played from an USB-drive on the TV or when played over DLNA from my Fritz Box's (Router) Media Server.

Attached Files


Edited by lejared, 08 July 2019 - 03:27 PM.

  • FrostByte likes this

#8 FrostByte OFFLINE  

FrostByte

    Advanced Member

  • ForumMod
  • 4135 posts
  • Local time: 07:24 AM
  • LocationThe UP

Posted 09 July 2019 - 10:14 AM

They do look better from USB on the TV.  Wonder why the app needs to change the quality at all, the built in viewer doesn't seem to do any converting. 

 

Mine are all being changed to 50 or 60 quality, but don't suffer quiet as bad because of higher dpi


Edited by FrostByte, 09 July 2019 - 10:15 AM.


#9 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 09 July 2019 - 11:54 AM

Mine are all being changed to 50 or 60 quality, but don't suffer quiet as bad because of higher dpi

 

The "quality" setting of jpeg compression does not rely on "higher dpi" or anything form the source image as long as the quality and resolution of the source image is significantly higher than the result image (after recompression), which is both given here.

 

The effect, that compression artifacts are more visual in some images than in others comes from the different contents of the image. Smooth gradients will suffer much more from lower compression quality settings than high contrast parts. Just try any image of your collection mostly showing water or sky at sunset or sun dawn and you will see the same obtrusive blocks there, regardless of how big or "good" the original image file was.
 

You can try yourself here interactively: http://regex.info/bl...es/jpeg-quality

Note how the sky example already becomes notably blocky on quality 60 and below while the more detailed example images can keep more details even at higher compression levels.

 

Also note that those images degradations become much more visible on high contrast screens like an HDR TV than on a standard contrast screen like a computer monitor.


  • FrostByte likes this

#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134225 posts
  • Local time: 07:24 AM

Posted 10 July 2019 - 02:39 AM

Great, thanks for the info. Please try the next update to the app.


  • FrostByte likes this

#11 lejared OFFLINE  

lejared

    Member

  • Members
  • 22 posts
  • Local time: 01:24 PM

Posted 28 July 2019 - 04:04 PM

I've just tried Samsung Emby App v 1.0.63

 

I can't see any Changes here. Still the same quality=50 and maxWith=1536 settiings.

 

Excerpt from the latest log:

2019-07-28 21:49:49.309 Info HttpServer: HTTP Response 200 to 192.168.178.34. Time: 940ms. http://192.168.178.25:8096/emby/Items/12806/Images/Primary?maxWidth=1536&tag=c860627456b590b44918bf66a6db2131&quality=50
2019-07-28 21:49:52.889 Info HttpServer: HTTP POST http://192.168.178.25:8096/emby/Sessions/Playing/Stopped. UserAgent: Mozilla/5.0 (SMART-TV; LINUX; Tizen 3.0) AppleWebKit/538.1 (KHTML, like Gecko) Version/3.0 TV Safari/538.1

Please also note, that the response time was 940ms.

This is the time it takes my machine to resize and re-encode the images on the fly. This also makes viewing the photo gallery very slow, because there is always a loading break on every image. Also CPU Load is on 100% while loading photos. My Emby server runs on a 3,5 GHz intel Dual Core.

 

I'd really love to see direct play for photos without resizing an re-encoding, at least on intranet.

Attached Files


  • FrostByte likes this

#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134225 posts
  • Local time: 07:24 AM

Posted 08 August 2019 - 12:31 AM

Ok sorry, that didn't make it in. It will be in the next update. Thanks.


  • FrostByte likes this





Also tagged with one or more of these keywords: Tizen, jpg quality, photos

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users