Jump to content

Getting a lot of errors "ImageProcessor: Error encoding image"


Samkook
Go to solution Solved by Samkook,

Recommended Posts

After a library call update from a test version of sickgear, my emby log started filling up with "ImageProcessor: Error encoding image" errors, here's the first 3 of many:

2023-09-15 22:08:05.185 Info Server: http/1.1 POST http://192.168.1.14:8096/emby/Library/Series/Updated. UserAgent: SickGear/(FreeBSD; 13.2-RELEASE; 752e9ac6-5434-11ee-9096-a8a1599b6a25)
2023-09-15 22:08:05.186 Info Server: http/1.1 Response 204 to 192.168.1.14. Time: 1ms. http://192.168.1.14:8096/emby/Library/Series/Updated
2023-09-15 22:08:42.169 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/metadata/library/c7/c735475fd3048dd042a7e86b71da07ec/poster.jpg
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)
2023-09-15 22:08:42.169 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/metadata/library/f8/f81a4d7a14eedd5883778d920f05b497/poster.jpg
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)
2023-09-15 22:08:42.172 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/metadata/library/de/de2d5f1c0273059eb6f8f1ba17e45d4e/poster.jpg
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)

What is that about? I haven't seen those during the last global library update from the scheduled tasks.

I checked "/var/db/emby-server/metadata/library/c7/c735475fd3048dd042a7e86b71da07ec/poster.jpg" and emby has read/write permission on it and I assume the rest of them too.

 

Edit: last error of the bunch so it lasted about 11 mins:

2023-09-15 22:19:13.986 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/metadata/people/Peter Krause-tmdb-23119/folder.jpg
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)

 

Edited by Samkook
  • Agree 1
Link to comment
Share on other sites

Forgot to specify I'm on 4.7.14.0, even though the log says it and I wouldn't think it would require a specific example but since I've been wrong before about that in the past, this example applies to get the problem, only difference since then is that it's a dev build of sickgear but that shouldn't have anything to do with it other than the api call might be wrong: 

 

Link to comment
Share on other sites

Also, all of my home libraries generated thumbnails are black since.

Most of my pictures for media metadata are local and generated by other software so I haven't noticed if this affects more than those:

emby_home_black.jpg.103480e0a78c97c39d7e59be5a8dda03.jpg

Link to comment
Share on other sites

Didn't help, they're back to black. At least that means sickgear wasn't to blame. Deleted 4 and got 4 errors in the log:

2023-09-16 16:09:25.612 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/config/users/9c8998e571c14070a6ffd285fb5106a8/poster.jpg
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)
2023-09-16 16:09:29.177 Info Server: http/1.1 POST http://192.168.1.14:8096/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=1f4f2904-eba3-4481-bb58-b1637f42e962&X-Emby-Client-Version=4.7.14.0&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
2023-09-16 16:09:29.178 Info Server: http/1.1 Response 204 to host2. Time: 1ms. http://192.168.1.14:8096/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=1f4f2904-eba3-4481-bb58-b1637f42e962&X-Emby-Client-Version=4.7.14.0&X-Emby-Language=en-us&reqformat=json
2023-09-16 16:09:29.665 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /tome/Series/Only Murders in the Building/poster.jpg
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)
2023-09-16 16:09:29.665 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /tome/Series/Riverdale/poster.jpg
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)
2023-09-16 16:09:30.973 Error ImageProcessor: Error encoding image
*** Error Report ***
Version: 4.7.14.0
Command line: /usr/local/lib/emby-server/system/EmbyServer.dll -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server
Operating system: FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Framework: .NET 6.0.21
OS/Process: x64/x64
Runtime: usr/local/lib/emby-server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: /var/db/emby-server
Application path: /usr/local/lib/emby-server/system
System.Exception: System.Exception: SKCodec had an error reading /var/db/emby-server/config/users/9c8998e571c14070a6ffd285fb5106a8/poster.jpg
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)

 

Link to comment
Share on other sites

Hi, when did you install 4.7.14? A revision was posted so you could try installing it again on top of itself. That should resolve the image processing errors.

Link to comment
Share on other sites

  • Solution

Yeah, I just checked and saw there was one. I also updated ffmpeg at the same time and the problem is fixed now, thanks.

Updated:

emby-server: 4.7.14.0 -> 4.7.14.0_1

ffmpeg: 6.0,1 -> 6.0_2,1

ffmpeg4: 4.4.4_2 -> 4.4.4_3

Wasn't sure which ffmpeg version emby used, I assume 6.

  • Thanks 1
Link to comment
Share on other sites

And did you try updating the freeBSD packages to the latest for the emby server and ffmpeg?

Edited by Samkook
Link to comment
Share on other sites

  • 3 weeks later...
dogfighdogfight
On 2023/9/17 at PM9点35分, Luke said:

@狗战狗战 是的,已发布更新,因此您只需安装它即可。如果这有帮助,请告诉我们。谢谢。

Fixed thanks
  • Thanks 1
Link to comment
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...