Jump to content

SingleImageExtractor - Failed Command Runs Persistently, Waking Drives (v4.9.3.0)


Recommended Posts

K22R8CT
Posted (edited)

The image extractor is making invalid calls like the one below to ffmpeg:

2026-02-06 17:00:44.723 Info SingleImageExtractor: ProcessRun 'extract-image' Execute: /bin/ffmpeg -ss 00:05:35.428  -f mp4 -i file:"/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4" -an -sn -threads 0 -vf "thumbnail=24" -f image2 -b:v 100M "/config/cache/temp/151cd64d-40d8-4b0d-950b-dff40c4e220e.jpg"

2026-02-06 17:00:45.115 Info SingleImageExtractor: ProcessRun 'extract-image' Process exited with code 1

If I run the command manually it errors out as it should:

Spoiler
ffmpeg version 5.1-emby_2023_06_25_p4 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 10.3.0 (crosstool-NG 1.25.0)
Execution Date: 2026-02-07 00:07:03
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf60.3.100
  Duration: 00:55:54.29, start: 0.000000, bitrate: 439 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, progressive), 544x416 [SAR 1:1 DAR 17:13], 269 kb/s, Level 90, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.3.100 hevc_qsv
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
File '/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0xcd9b40] [swscaler @ 0xce6f80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xd06300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xd25140] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xce6f80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xd1aac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xcfbc80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xcfbc80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xce6f80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xd1aac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xcfbc80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xce6f80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xcd9b40] [swscaler @ 0xd1b800] deprecated pixel format used, make sure you did set range correctly
[Parsed_thumbnail_0 @ 0xa90ec0] frame id #13 (pts_time=0.440867) selected from a set of 24 images
Output #0, image2, to '/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf59.27.100
  Stream #0:0(und): Video: mjpeg, yuvj420p(pc, progressive), 544x416 [SAR 1:1 DAR 17:13], q=2-31, 100000 kb/s, 29.97 fps, 29.97 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/100000000 buffer size: 0 vbv_delay: N/A
[image2 @ 0xa3f400] The specified filename '/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0xa3f400] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0xa3f400] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
elapsed=00:00:00.42 frame=   14 fps=0.0 q=1.6 Lsize=N/A time=00:00:00.46 bitrate=N/A dup=13 drop=0 throttle=off speed=1.11x    
video:211kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
EXIT

Adding -frames:v 1 -update 1 fixes it:

Spoiler
/bin/ffmpeg -ss 00:05:35.428  -f mp4 -i file:"/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4" -an -sn -threads 0 -vf "thumbnail=24" -frames:v 1 -update 1 -f image2 -b:v 100M "/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg"

ffmpeg version 5.1-emby_2023_06_25_p4 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 10.3.0 (crosstool-NG 1.25.0)
Execution Date: 2026-02-07 00:08:24
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf60.3.100
  Duration: 00:55:54.29, start: 0.000000, bitrate: 439 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, progressive), 544x416 [SAR 1:1 DAR 17:13], 269 kb/s, Level 90, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.3.100 hevc_qsv
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
File '/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0xaaa500] [swscaler @ 0xcee0c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xd06dc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xd26140] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcee0c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcfe540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xd1bac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcee0c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xd1bac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcfe540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcee0c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xd1bac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xaaa500] [swscaler @ 0xcfe540] deprecated pixel format used, make sure you did set range correctly
[Parsed_thumbnail_0 @ 0xa73640] frame id #13 (pts_time=0.440867) selected from a set of 24 images
Output #0, image2, to '/config/cache/temp/e76225fa-77bd-47f0-b249-16d593e3cf94.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf59.27.100
  Stream #0:0(und): Video: mjpeg, yuvj420p(pc, progressive), 544x416 [SAR 1:1 DAR 17:13], q=2-31, 100000 kb/s, 29.97 fps, 29.97 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/100000000 buffer size: 0 vbv_delay: N/A
elapsed=00:00:00.34 frame=    1 fps=0.0 q=4.1 Lsize=N/A time=00:00:00.03 bitrate=N/A dup=1 drop=1 throttle=off speed=0.0963x    
video:11kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
EXIT

The failed call is run on a growing set of files (I believe all new media) every few hours.

I suspect this is a recent change.

Edited by K22R8CT
Posted

Hi, if the files are growing then this will cause other problems by subjecting them to library scans. My suggestion would be to look at preventing them from being scanned until they are completed.

K22R8CT
Posted

I meant "growing" as in, an increasing number of affected files.

The ffmpeg call itself (below) is invalid - it's trying to store multiple frames in a jpg.

Test it with any video file and it will fail.

/bin/ffmpeg -ss 00:05:35.428  -f mp4 -i file:"/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4" -an -sn -threads 0 -vf "thumbnail=24" -f image2 -b:v 100M "/config/cache/temp/151cd64d-40d8-4b0d-950b-dff40c4e220e.jpg"

 

K22R8CT
Posted
11 hours ago, Luke said:

Hi, if the files are growing then this will cause other problems by subjecting them to library scans.

Is it at least clear from my response (just above) what the problem is?

If not I can clarify further.

Posted
On 2/13/2026 at 7:30 AM, K22R8CT said:

I meant "growing" as in, an increasing number of affected files.

The ffmpeg call itself (below) is invalid - it's trying to store multiple frames in a jpg.

Test it with any video file and it will fail.

/bin/ffmpeg -ss 00:05:35.428  -f mp4 -i file:"/media/TV/Feynman Messenger Lectures/Season 1/Feynman Messenger Lectures S01E02 - The Relation of Mathematics to Physics.mp4" -an -sn -threads 0 -vf "thumbnail=24" -f image2 -b:v 100M "/config/cache/temp/151cd64d-40d8-4b0d-950b-dff40c4e220e.jpg"

 

Hi, what makes you think it's trying to store mulitple frames in a jpg?

  • 1 month later...
K22R8CT
Posted
On 2/21/2026 at 12:16 AM, Luke said:

Hi, what makes you think it's trying to store mulitple frames in a jpg?

That's how I interpreted the error message I get when I copy one of these failed command from the emby log and run it manually. I've included another example below.

Whatever the reason for failure I'd like to know how I can fix it because emby keeps retrying these failed commands on a growing number of files, which wakes my drives.

/ # /bin/ffmpeg -ss 00:05:14.052  -f mp4 -i file:"/media/TV/Pride and Prejudice/Season 1/Pride and Prejudice S01E06 - Episode 6.mp4" -an -sn -threads 0 -vf "thumbnail=24" -f image2 -b:v 100M "/config/cache/temp/fe8652e1-03d5-4273-974f-ec1b7
ed79826.jpg"
ffmpeg version 5.1-emby_2023_06_25_p4 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 10.3.0 (crosstool-NG 1.25.0)
Execution Date: 2026-03-29 20:26:18
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/TV/Pride and Prejudice/Season 1/Pride and Prejudice S01E06 - Episode 6.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    title           : Pride.and.Prejudice.1995.S01E06.1080p.BluRay.x265-RARBG
    encoder         : Lavf60.3.100
    comment         : Pride.and.Prejudice.1995.S01E06.1080p.BluRay.x265-RARBG
  Duration: 00:52:20.52, start: 0.000000, bitrate: 2136 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 1999 kb/s, Level 120, 23.98 fps, 23.98 tbr, 16k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
File '/config/cache/temp/fe8652e1-03d5-4273-974f-ec1b7ed79826.jpg' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0x78fb00] [swscaler @ 0xc63540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xca45c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xce7540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xc63540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xce5a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xca6800] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xc63540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xce4680] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xca8a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xc63540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xce4680] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x78fb00] [swscaler @ 0xca8a80] deprecated pixel format used, make sure you did set range correctly
[Parsed_thumbnail_0 @ 0x79dcc0] frame id #15 (pts_time=0.637000) selected from a set of 24 images
[mjpeg @ 0x762440] bitrate tolerance 4000000 too small for bitrate 100000000, overriding
Output #0, image2, to '/config/cache/temp/fe8652e1-03d5-4273-974f-ec1b7ed79826.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    title           : Pride.and.Prejudice.1995.S01E06.1080p.BluRay.x265-RARBG
    comment         : Pride.and.Prejudice.1995.S01E06.1080p.BluRay.x265-RARBG
    encoder         : Lavf59.27.100
  Stream #0:0(und): Video: mjpeg, yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 100000 kb/s, 23.98 fps, 23.98 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/100000000 buffer size: 0 vbv_delay: N/A
[image2 @ 0x739f80] The specified filename '/config/cache/temp/fe8652e1-03d5-4273-974f-ec1b7ed79826.jpg' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x739f80] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
[image2 @ 0x739f80] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?
av_interleaved_write_frame(): Invalid argument
elapsed=00:00:02.37 frame=   16 fps=6.7 q=1.6 Lsize=N/A time=00:00:00.66 bitrate=N/A dup=15 drop=0 throttle=off speed=0.281x    
video:2529kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
EXIT

 

K22R8CT
Posted

Gemini seems to recognize the problem. Its suggested fix (which matches mine) resolves it:image.thumb.png.9b67a8f95a8f6b8625208032e3da6ab3.png

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