EmYaj 25 Posted June 3, 2024 Posted June 3, 2024 I noticed in my guide some of the channel images were starting to disappear. The m3u and the guide both point to the same image locations (github url mostly) and if I change the channel image source from guide to m3u and refresh it does not fix the issue. If I manually open the urls from the broken images in my browser they work fine. In an attempt to troubleshoot the issue, I cloned the emby container and the issue was still there, so I removed the m3u and the guide and added them both back and it fixed the issue. My question is - is there some other way to refresh the images without removing the m3u and guide? because the side effect was that all of my favorite channels have been deleted and I'm hoping not to have to force all of my users to redo all of theirs as well. I've attached 3 images, two showing the broken images (one guide and one in the channels editors) and one on the cloned container after I removed and re-added the m3u and guide)
EmYaj 25 Posted June 3, 2024 Author Posted June 3, 2024 5 minutes ago, Luke said: Hi, what version of the server? 4.8.7.0 originally but still an issue after updating to 4.8.8.0
Luke 42077 Posted June 3, 2024 Posted June 3, 2024 Try using the image editor to delete the existing images one at a time, then refresh your guide data.
EmYaj 25 Posted June 3, 2024 Author Posted June 3, 2024 Surprisingly that did not work. They came back right away as just blank gray images. When I tried to access them directly with my browser (which works with the other working images) it spit out this error: “http://my.dom.ain:8096/emby/Items/2970929/Images/Primary?tag=d49d80eb940f95121f42597ed84a3634&quality=90” cannot be displayed because it contains errors.
Luke 42077 Posted June 3, 2024 Posted June 3, 2024 Hi, please attach the emby server log: How to Report a Problem Thanks.
EmYaj 25 Posted June 3, 2024 Author Posted June 3, 2024 36 minutes ago, Luke said: Hi, please attach the emby server log: How to Report a Problem Thanks. Attached. Thank you embyserver(23).txt
Luke 42077 Posted June 3, 2024 Posted June 3, 2024 OK you can see in the log that there is an error trying to download the logo from your guide data source, or tuner if the logo url came from your m3u. The server recovers from this and removes the image, but then the next guide refresh probably brings it back and cause that to keep happening. If you can't fix or remove those bad urls, then you could manually set an image using the image editor. Once you have an image in place, then the server won't try to download a new one anymore.
EmYaj 25 Posted June 3, 2024 Author Posted June 3, 2024 1 hour ago, Luke said: OK you can see in the log that there is an error trying to download the logo from your guide data source, or tuner if the logo url came from your m3u. The server recovers from this and removes the image, but then the next guide refresh probably brings it back and cause that to keep happening. If you can't fix or remove those bad urls, then you could manually set an image using the image editor. Once you have an image in place, then the server won't try to download a new one anymore. Ok thanks for checking. Just to clarify, the url is fine. It's the image is hosted in GitHub and works fine from the browser. If I remove the tuner source and readd it to emby it fixes the issue - the reason I'm trying to avoid doing that is when I did it on a test instance if emby I lost all of my favourites which I'm trying to avoid doing to all of my users. No chance this is a bug of some sort?
Luke 42077 Posted June 4, 2024 Posted June 4, 2024 In the log it looks like an error coming from the server hosting the image.
EmYaj 25 Posted June 4, 2024 Author Posted June 4, 2024 24 minutes ago, Luke said: In the log it looks like an error coming from the server hosting the image. Here is an example of one that doesnt work: #EXTINF:-1 tvg-id="FOXKTTV.us" tvg-name="FOX WEST" tvg-logo="https://raw.githubusercontent.com/Fourqui/tv/master/countries/united-states/fox-us.png" group-title="NETWORK TV - USA",FOX WEST Here is an example of one that does work: #EXTINF:-1 tvg-id="FOXWNYW.us" tvg-name="FOX EAST" tvg-logo="https://raw.githubusercontent.com/Fourqui/tv/master/countries/united-states/fox-us.png" group-title="NETWORK TV - USA",FOX EAST Whats weird is that both work fine from my browser, and the one that doesnt work I can grab with wget on the server itself without issue. The reason I'm leaning towards emby is that if I remove the tuner source and re-add it, it's able to grab the images just fine.
Luke 42077 Posted June 4, 2024 Posted June 4, 2024 2024-06-03 10:53:20.179 Error App: Error downloading image: https://github.com/Tapiosinn/tv-logos/blob/master/countries/united-states/us-local/abc-9-kmbc-us.png?raw=true *** Error Report *** Version: 4.8.7.0 Command line: /app/emby/system/EmbyServer.dll -programdata /config -ffdetect /app/emby/bin/ffdetect -ffmpeg /app/emby/bin/ffmpeg -ffprobe /app/emby/bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.15.0-107-generic (buildd@lcy02-amd64-012) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #117-Ubun Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: app/emby/system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /app/emby/system System.ArgumentException: System.ArgumentException: Unable to determine image file extension from mime type text/html at Emby.Providers.Manager.ImageSaver.GetStandardSavePath(BaseItem item, LibraryOptions libraryOptions, ImageType type, Nullable`1 imageIndex, ReadOnlySpan`1 mimeType, Boolean saveLocally, Int64[] generatedFromItemIds) at Emby.Providers.Manager.ImageSaver.SaveImage(BaseItem item, LibraryOptions libraryOptions, IImageSource source, ReadOnlyMemory`1 mimeType, ImageType type, Nullable`1 imageIndex, Nullable`1 saveLocallyWithMedia, Int64[] generatedFromItemIds, IDirectoryService directoryService, Boolean updateImageCache, CancellationToken cancellationToken) at Emby.Providers.Manager.ProviderManager.SaveImageFromRemoteUrl(BaseItem item, LibraryOptions libraryOptions, String url, ImageType type, Nullable`1 imageIndex, Int64[] generatedFromItemIds, IDirectoryService directoryService, Boolean updateImageCache, CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken) Source: Emby.Providers TargetSite: System.Tuple`2[System.String,System.Boolean] GetStandardSavePath(MediaBrowser.Controller.Entities.BaseItem, MediaBrowser.Model.Configuration.LibraryOptions, MediaBrowser.Model.Entities.ImageType, System.Nullable`1[System.Int32], System.ReadOnlySpan`1[System.Char], Boolean, Int64[]) Try putting that url into the browser and see what you get.
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 That does not work but there are quite a few examples like the ones I showed above for FOX WEST and FOX EAST where the image is missing from the channel in Emby but the URL is accessible via browser. Also, just as a test I added the image manually via URL and it worked which is even more strange. (From my example, not yours) I checked your channel on the test server and its broken there too so it looks like some of the images in the guide are actually broken but most of them are not... Emby is still not refreshing some of the ones that should work fine.
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 10 minutes ago, Luke said: Log example from those? OK I found an example of a channel that works fine from my browser, but emby errors out when trying to process it. The error was produced by trying to manually add the image to the channel directly from the URL. Error(s) at the end of this attached log file. embyserver(24).txt
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 But that url can not be opened. But there are lots of wiki images this way as that is not the correct link. 1
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 And how about this one? As it is a different url. https://upload.wikimedia.org/wikipedia/commons/9/92/ABC_33-40_2022_logo.png 1
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 (edited) Thats the wrong channel. Here is the entry for the channel in question direct from the EPG: <display-name>CA Bakersfield CBS 29 (KBAK)</display-name> <icon src="https://static.wikia.nocookie.net/logopedia/images/f/f5/KBAK_CBS_29_LOGO_2.svg"/> That URL works in my browser but it does not work if I try to add it to the channel image using "Set Image From URL" . I rotated the log file, attempted to attach the image one time and then rotated the log file again so you'll see this attached log covers about 4 total seconds but produced a whole bunch of errors. embyserver-63853197739.txt Edited June 5, 2024 by EmYaj
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 Probably need to enable debug logging to show more info but looks like it applied just fine. 2024-06-05 15:22:15.935 Info HttpClient: GET https://static.wikia.nocookie.net/logopedia/images/f/f5/KBAK_CBS_29_LOGO_2.svg 2024-06-05 15:22:16.159 Info Server: http/1.1 Response 204 to host2. Time: 224ms. POST http://emby_remote_ip:8096/emby/Items/2971198/Images/Primary/0/Url?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox But your system is having encoding issues. 2024-06-05 15:22:16.572 Info MediaImageConverter: ProcessRun 'ffmpeg convert-image' Process exited with code 1 - Failed 2024-06-05 15:22:16.572 Error MediaImageConverter: ffmpeg image conversion failed for /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg 2024-06-05 15:22:16.572 Error ImageProcessor: Image conversion failed for /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg *** Error Report *** Version: 4.8.8.0 Command line: /app/emby/system/EmbyServer.dll -programdata /config -ffdetect /app/emby/bin/ffdetect -ffmpeg /app/emby/bin/ffmpeg -ffprobe /app/emby/bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.15.0-107-generic (buildd@lcy02-amd64-012) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #117-Ubun Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: app/emby/system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /app/emby/system System.Exception: System.Exception: ffmpeg image conversion failed for /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg at Emby.Server.MediaEncoding.ImageConversion.MediaImageConverter.ConvertImage(String inputPath, String outputPath) at Emby.Drawing.ImageProcessor.GetSupportedImage(ItemImageInfo originalImage, String currentImagePath, String inputFormat, IImageEncoder imageEncoder) Source: Emby.Server.MediaEncoding TargetSite: Void MoveNext() 2024-06-05 15:22:16.572 Error ImageProcessor: Error encoding image *** Error Report *** Version: 4.8.8.0 Command line: /app/emby/system/EmbyServer.dll -programdata /config -ffdetect /app/emby/bin/ffdetect -ffmpeg /app/emby/bin/ffmpeg -ffprobe /app/emby/bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.15.0-107-generic (buildd@lcy02-amd64-012) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #117-Ubun Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: app/emby/system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /app/emby/system System.Exception: System.Exception: SKCodec had an error reading /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat) at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken) Source: Emby.Drawing.Skia TargetSite: System.String EncodeImage(System.String, System.String, Boolean, System.Nullable`1[MediaBrowser.Model.Drawing.ImageOrientation], Int32, MediaBrowser.Controller.Drawing.ImageProcessingOptions, MediaBrowser.Model.Drawing.ImageFormat) 1
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 @Happy2PlayFirst off just want to say thanks for assisting. Are you saying that the errors are not related to the image? The error seems to refer to "poster.svg" - not sure if related but I just assumed it is because I think .svg files are static images unrelated to video. I know it looks like it imported correctly but this is what it looks like currently (I havent touched it since my previous post with the test). There is an image there but its just a gray image. (This is the case for dozens or maybe hundreds of channels and to fix the issue complete I can remove and readd the tv tuner as mentioned in the OP...)
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 If you went to /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg is it the https://static.wikia.nocookie.net/logopedia/images/f/f5/KBAK_CBS_29_LOGO_2.svg? Debug logging would have told us the save location/naming. But to me it appears this system or platform is having an image processing issue but devs will have to look at and confirm. 1
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 Apologies forgot to use debug. Here is the same thing with debugging on. I'm not sure exactly how to access the /config/ path - from this new log I tried mydomain.com:8096/config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg but got file not found error. embyserver-63853200109.txt
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 Just now, EmYaj said: Apologies forgot to use debug. Here is the same thing with debugging on. I'm not sure exactly how to access the /config/ path - from this new log I tried mydomain.com:8096/config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg but got file not found error. embyserver-63853200109.txt 34.52 kB · 0 downloads You have to go to filesystem and navigate to that path it is not a url location. 2024-06-05 16:01:24.076 Info App: Internal metadata path: /config/metadata But yes what I already posted is the image. 2024-06-05 16:01:42.336 Info HttpClient: GET https://static.wikia.nocookie.net/logopedia/images/f/f5/KBAK_CBS_29_LOGO_2.svg 2024-06-05 16:01:42.453 Debug ProviderManager: Saving image to /config/metadata/livetv/2381624067599958fc69a88113a34ac8/metadata/poster.svg 1
EmYaj 25 Posted June 5, 2024 Author Posted June 5, 2024 Ah gotcha, my bad. Yes, that file looks good. Moved it to my desktop PC and opened with chrome:
Happy2Play 9780 Posted June 5, 2024 Posted June 5, 2024 So images are gotten correctly the issue is Image Processing is choking on them on this platform. As I am not seeing this issue on Windows. So devs will have to look into image processing issue. May need to see server startup log to show image processor as rollover logs does not show this info.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now