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.

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