Jump to content

Thumbnails periodically get reset, only seems to happen with WEBM files


Recommended Posts

Posted

I have a bunch of WEBM TV episodes with thumbnail attachments.  When I first add them, Emby uses the attachments for the thumbnail as expected.  But sometime later, they will get reset to the season thumbnail.  At that point, the only way to reset the thumbnails is to remove the episodes from the library completely and add them again.  Attempting to refresh the metadata with images does not change anything.  I never had this experience with MKV files.  I don't know if I am doing something to trigger this or if it is happening automatically.  Any ideas?

Posted

Hi there, can you please show a specific example? Thanks !

Posted

Sure.  Here is what it looks like when freshly added:

ex1.jpg.e6d4ded8e64235e7557c74f55d3536d5.jpg

And here is what it looks like a day or two later:

ex2.jpg.55050f7f89e386628f7458f4ecb10b96.jpg

Posted

I don't know what was going on, but it seems to have resolved itself.  Refreshing the metadata started to work again, restoring the images.  I guess we'll have to wait to see if it lasts.

Posted

Hi, thanks for following up.

Posted

I figured it out!  I add PNG thumbnails to the WEBM files.  Then, I normally move them to a .images subdirectory in case I need them again later.  If, instead, I forget and leave the images in the same directory with the video files and then try to refresh the metadata, I get the season thumbnail as shown in the images above.  As soon as I move the images out of the same directory, it works as expected.

Posted

What are all of the file names involved?

Posted

The thumbnail filenames are the same as the video, but with a PNG extension.  For example, "Death Valley Days S01E01 - 1080p.webm" and "Death Valley Days S01E01 - 1080p.png".

Posted

is your png thumbnail the black and white image?

Posted

Yes, that's right.

  • 5 weeks later...
Happy2Play
Posted
On 5/26/2025 at 4:50 PM, billcw said:

The thumbnail filenames are the same as the video, but with a PNG extension.  For example, "Death Valley Days S01E01 - 1080p.webm" and "Death Valley Days S01E01 - 1080p.png".

So the issue is .webm images eventually get replaced correct?

@Lukeis there full support for .webm images?

KB

Quote

Supported image extensions are jpg, jpeg, png, gif and tbn.

 

Posted

Now that I understand how Emby works, I'm not sure if it is worth the time to fix this problem, as I doubt that many people will run into it, but here is a sequence of screenshots to illustrate.  I ran refresh metadata with image replacement in between each step.  Everything works as expected except in case 3, where Emby produces a default thumbnail when it has two options for the custom thumbnail.

Case 1 (No custom thumbnails)

Thumbnail png files: No

Thumbnail webm attachments: No

Emby generates a default thumbnail for the episodes, as expected.

Step1-Noimageorattachment.thumb.png.436d90ec6b79980b78745a891d19e614.png

Case 2 (Thumbnails in separate images files)

Thumbnail png files: Yes

Thumbnail webm attachments: No

Emby uses the png thumbnails as expected.

Step2-Imagethumbsonly.thumb.png.163142cd584ccb5e7606fb56bcb11ace.png

Case 3 (Thumbnails both as image files and as webm attachments)

Thumbnail png files: Yes

Thumbnail webm attachments: Yes

You can see the webm attachment in the mkvmerge listing and the png files in the directory.  Emby uses the default, season thumbnail, which seems unexpected.

Step3-Imageandattachmentthumbs.thumb.png.fbc11aa189ec9669da028977fcaa6bf9.png

Case 4 (Thumbnail as webm attachment only)

Thumbnail png files: No

Thumbnail webm attachments: Yes

I have now moved the png thumbs out of the directory but left the attachments in the webm files.  Emby uses the expected thumbnail.

Step4-Attachmentthumbsonly.thumb.png.ea6a4e9f6c2a91de16e51e267ad5851c.png

Happy2Play
Posted (edited)

But attached image to this test file

image.png.58dcc70a0ed8e209bc741cc364ab566a.png

C:\Users\Media>C:\Users\Media\AppData\Roaming\Emby-Server\system\ffprobe.exe -i E:\Media\Photo2\big-buck-bunny\big-buck-bunny.webm
ffprobe version 5.1-emby_2023_06_25_p4 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
Input #0, matroska,webm, from 'E:\Media\Photo2\big-buck-bunny\big-buck-bunny.webm':
  Metadata:
    encoder         : http://sourceforge.net/projects/yamka
    creation_time   : 2010-05-20T08:21:12.000000Z
  Duration: 00:00:32.48, start: 0.000000, bitrate: 537 kb/s
  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 640x360, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: vorbis, 44100 Hz, mono, fltp (default)
  Stream #0:2: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 250x141 [SAR 100:100 DAR 250:141], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg

put in home video library

image.png.f4c09ceb15ce8444634ff4be15ce9fc9.png

2025-06-30 12:05:25.985 Info SingleImageExtractor: ProcessRun 'extract-image' Execute: C:\Users\Media\AppData\Roaming\Emby-Server\system\ffmpeg.exe -i file:"E:\Media\Photo2\big-buck-bunny\big-buck-bunny.webm" -map 0:2 -threads 0 -vf "thumbnail=24" -f image2 -b:v 100M "C:\Users\Media\AppData\Roaming\Emby-Server\programdata\cache\temp\d97cae43-294f-4123-a859-a275ddf77a88.jpg"
2025-06-30 12:05:25.998 Debug SingleImageExtractor: ProcessRun 'extract-image' Started.
2025-06-30 12:05:26.093 Info SingleImageExtractor: ProcessRun 'extract-image' Process exited with code 0 - Succeeded
2025-06-30 12:05:26.508 Info ProviderManager: Saving image to C:\Users\Media\AppData\Roaming\Emby-Server\programdata\metadata\library\07\07798aa33d41c46403297c6c6f40c6a4\poster.jpg

 

image.png.b14b3c3f7f250aa9e0694837d498054b.png

image.png.fd1013d047744b1402d5a0997b4b8246.png

Do have you verified your images options on the library?

 

Only tested on 4.9.1.3

Edited by Happy2Play
added server test version
Posted (edited)

Perhaps webm attachments should be ignored by Emby if they are unsupported, but they work reliably for me.  (I assume Emby just treats webm files as mkv, as many players seem to, since it also allows things like multiple audio tracks, which is clearly not allowed.)  However, I'm guessing that you would find that a lot of people are using webm thumbnails if you decided to ignore them.

Only the case where Emby has two options: both an external png image and a webm attachment, at the same time, doesn't work and perhaps the right fix for that is just documentation.

From the outside, it seems like the ideal solution would be that Emby just ignores any other thumbnail options if an external image file exists.

Edited by billcw
Happy2Play
Posted
5 hours ago, billcw said:

From the outside, it seems like the ideal solution would be that Emby just ignores any other thumbnail options if an external image file exists.

Guess I am confused as that is what Emby does.  If any correctly named image exists with media it will be used.  Local images will always superseded getting from online or extracting.

What is your library image settings?

I will have to setup a Series to test this as I can reproduce any issue with a movie.

Posted

So what you're seeing is the image that's embedded inside the webm file?

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