Jump to content

Image Extraction Failed


Recommended Posts

Posted

I'm running Emby Server 4.8.11 on Windows Server 2025 Core. It frequently fails to extract cover.jpg images embedded in .mkv files. The log file is full of entries such as:

2025-09-16 18:17:19.087 Error QuickSingleImageExtractor: QuickSingleImageExtractor.RunExtraction [B6A996C1BCCB]: Error running quick-extract-image -f matroska -threads 1 -i file:"\\file\Videos\TV\Bloodline\S01E04.mkv" -map 0:3 -update 1 -vf "thumbnail=24" -vsync 0 -f image2 "C:\Emby-Server\programdata\cache\temp\07da0018-c66a-4a80-afac-e7b8669db220.jpg"
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.26100
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 2
	Data path: C:\Emby-Server\programdata
	Application path: C:\Emby-Server\system
	System.Exception: System.Exception: Error running ffmpeg quick-extract-image for file:"\\file\Videos\TV\Bloodline\S01E04.mkv" - Command: -f matroska -threads 1 -i file:"\\file\Videos\TV\Bloodline\S01E04.mkv" -map 0:3 -update 1 -vf "thumbnail=24" -vsync 0 -f image2 "C:\Emby-Server\programdata\cache\temp\07da0018-c66a-4a80-afac-e7b8669db220.jpg"
	   at Emby.Server.MediaEncoding.ImageExtraction.ImageExtractorBase.RunExtraction(String inputPath, Nullable`1 container, MediaStream videoStream, Nullable`1 protocol, Nullable`1 streamIndex, Nullable`1 threedFormat, Nullable`1 startOffset, Nullable`1 interval, String targetDirectory, String targetFilename, Nullable`1 maxWidth, Boolean enableThumbnailFilter, CancellationToken cancellationToken)
	Source: Emby.Server.MediaEncoding
	TargetSite: Void MoveNext()

However if I run the ffmpeg command manually it gives me the output:

ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
Execution Date: 2025-09-16 18:28:23
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
Input #0, matroska,webm, from 'file:\\file\Videos\TV\Bloodline\S01E04.mkv':
  Metadata:
    title           : S01E04
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2017-07-17T12:53:43.000000Z
  Duration: 00:52:39.16, start: 0.000000, bitrate: 11880 kb/s
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Level 41, 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 10368248
      BPS-eng         : 10368248
      DURATION        : 00:52:39.156000000
      DURATION-eng    : 00:52:39.156000000
      NUMBER_OF_FRAMES: 75744
      NUMBER_OF_FRAMES-eng: 75744
      NUMBER_OF_BYTES : 4094364194
      NUMBER_OF_BYTES-eng: 4094364194
  Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      BPS             : 1508999
      BPS-eng         : 1508999
      DURATION        : 00:52:39.158000000
      DURATION-eng    : 00:52:39.158000000
      NUMBER_OF_FRAMES: 296171
      NUMBER_OF_FRAMES-eng: 296171
      NUMBER_OF_BYTES : 595896052
      NUMBER_OF_BYTES-eng: 595896052
  Stream #0:2(eng): Subtitle: subrip
    Metadata:
      BPS             : 58
      BPS-eng         : 58
      DURATION        : 00:48:40.833000000
      DURATION-eng    : 00:48:40.833000000
      NUMBER_OF_FRAMES: 585
      NUMBER_OF_FRAMES-eng: 585
      NUMBER_OF_BYTES : 21523
      NUMBER_OF_BYTES-eng: 21523
  Stream #0:3: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1383x2048 [SAR 38:38 DAR 1383:2048], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
Stream mapping:
  Stream #0:3 -> #0:0 (mjpeg (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[Parsed_thumbnail_0 @ 00000232c2666f40] frame id #0 (pts_time=0.000000) selected from a set of 1 images
Output #0, image2, to 'C:\Emby-Server\programdata\cache\temp\07da0018-c66a-4a80-afac-e7b8669db220.jpg':
  Metadata:
    title           : S01E04
    encoder         : Lavf59.27.100
  Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown, progressive), 1383x2048 [SAR 38:38 DAR 1383:2048], q=2-31, 200 kb/s, 90k fps, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
      encoder         : Lavc59.37.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
elapsed=00:01:22.24 frame=    1 fps=0.0 q=9.5 Lsize=N/A time=00:00:00.00 bitrate=N/A throttle=off speed=1.34e-07x
video:170kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
EXIT

And the 07da0018-c66a-4a80-afac-e7b8669db220.jpg file is generated successfullyimage.thumb.jpeg.0ea8f92f0c1f85873254f13f386bdd07.jpeg

embyserver-63893644290.txt

Posted

Hello burnettm,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Posted

hi, ,this should be resolved in the upcoming 4.9 server release. Thanks.

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