Error when generating thumbnail on an uncorrupted AVi file #7102

Open
opened 2026-02-20 04:59:32 -05:00 by deekerman · 2 comments
Owner

Originally created by @AdrianChandra on GitHub (Oct 19, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When i run Refresh thumbnails an an AVI files the log show ffmpeg error (log in the relevant log output)

I try troubleshooting by removing 'reverse' on the -vf and it run sucessfully:

root@immich_server:/usr/src/app# /usr/bin/ffmpeg -skip_frame nointra -sws_flags accurate_rnd+full_chroma_int -i "/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi" -y -fps_mode vfr -frames:v 1 -update 1 -v verbose -vf "fps=12:start_time=0:eof_action=pass:round=down,thumbnail=12,select=gt(scene,0.1)-eq(prev_selected_n,n)+isnan(prev_selected_n)+gt(n,20),trim=end_frame=2,format=yuv420p" tes.jpeg
ffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14 (Debian 14.2.0-19)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[avi @ 0x641bd13fd940] parser not found for codec rawvideo, packets or times may be invalid.
Last message repeated 1 times
Input #0, avi, from '/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi':
Duration: 00:00:21.80, start: 0.000000, bitrate: 32577 kb/s
Stream #0:0: Video: rawvideo, 1 reference frame, bgra, 714x536, 33147 kb/s, 2.66 fps, 2.67 tbr, 2.66 tbn
Metadata:
title : XTD
[out#0/image2 @ 0x641bd14040c0] No explicit maps, mapping streams automatically...
[vost#0:0/mjpeg @ 0x641bd14027c0] Created video stream from input stream 0:0
[Parsed_thumbnail_1 @ 0x641bd1404dc0] batch size: 12 frames
[Parsed_fps_0 @ 0x641bd1403340] 0 frames in, 0 frames out; 0 frames dropped, 0 frames duplicated.
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
[vost#0:0/mjpeg @ 0x641bd14027c0] Starting thread...
[vf#0:0 @ 0x641bd1403000] Starting thread...
[vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Starting thread...
[in#0/avi @ 0x641bd13fd680] Starting thread...
Press [q] to stop, [?] for help
[Parsed_thumbnail_1 @ 0x7d93bc002980] batch size: 12 frames
[graph -1 input from stream 0:0 @ 0x7d93bc00d680] w:714 h:536 pixfmt:bgra tb:50/133 fr:8/3 sar:0/1 csp:unknown range:unknown
[auto_scale_0 @ 0x7d93bc010140] w:iw h:ih flags:'' interl:0
[Parsed_format_4 @ 0x7d93bc003180] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_trim_3' and the filter 'Parsed_format_4'
[Parsed_fps_0 @ 0x7d93bc0012c0] Set first pts to (in:0 out:0) from start time 0.000000
[Parsed_fps_0 @ 0x7d93bc0012c0] fps=12/1
[auto_scale_0 @ 0x7d93bc010140] w:714 h:536 fmt:bgra csp:gbr range:pc sar:0/1 -> w:714 h:536 fmt:yuv420p csp:unknown range:pc sar:0/1 flags:0x00000004
[auto_scale_0 @ 0x7d93bc010140] [framesync @ 0x7d93bc010268] Selected 1/12 time base
[auto_scale_0 @ 0x7d93bc010140] [framesync @ 0x7d93bc010268] Sync level 1
[graph -1 input from stream 0:0 @ 0x7d93bc00d680] video frame properties congruent with link at pts_time: 0
[Parsed_thumbnail_1 @ 0x7d93bc002980] frame id #4 (pts_time=0.333333) selected from a set of 12 images
Output #0, image2, to 'tes.jpeg':
Metadata:
encoder : Lavf61.7.100
Stream #0:0: Video: mjpeg, 1 reference frame, yuv420p(pc, progressive), 714x536, q=2-31, 200 kb/s, 12 fps, 12 tbn
Metadata:
title : XTD
encoder : Lavc61.19.101 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[out#0/image2 @ 0x641bd14040c0] Starting thread...
[vf#0:0 @ 0x641bd1403000] All consumers returned EOF
[Parsed_fps_0 @ 0x7d93bc0012c0] 4 frames in, 12 frames out; 1 frames dropped, 9 frames duplicated.
[vf#0:0 @ 0x641bd1403000] Terminating thread with return code 0 (success)
[vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Decoder returned EOF, finishing
[vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Terminating thread with return code 0 (success)
[vist#0:0/rawvideo @ 0x641bd1403ec0] All consumers of this stream are done
[in#0/avi @ 0x641bd13fd680] All consumers are done
[in#0/avi @ 0x641bd13fd680] Terminating thread with return code 0 (success)
[vost#0:0/mjpeg @ 0x641bd14027c0] Encoder thread received EOF
[vost#0:0/mjpeg @ 0x641bd14027c0] Terminating thread with return code 0 (success)
[AVIOContext @ 0x7d93b0041080] Statistics: 15128 bytes written, 0 seeks, 1 writeouts
[out#0/image2 @ 0x641bd14040c0] All streams finished
[out#0/image2 @ 0x641bd14040c0] Terminating thread with return code 0 (success)
[out#0/image2 @ 0x641bd14040c0] Output file #0 (tes.jpeg):
[out#0/image2 @ 0x641bd14040c0] Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (15128 bytes);
[out#0/image2 @ 0x641bd14040c0] Total: 1 packets (15128 bytes) muxed
[out#0/image2 @ 0x641bd14040c0] video:15KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame= 1 fps=0.0 q=3.9 Lsize=N/A time=00:00:00.41 bitrate=N/A speed=11.8x
[in#0/avi @ 0x641bd13fd680] Input file #0 (/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi):
[in#0/avi @ 0x641bd13fd680] Input stream #0:0 (video): 7 packets read (10715712 bytes); 6 frames decoded; 0 decode errors;
[in#0/avi @ 0x641bd13fd680] Total: 7 packets (10715712 bytes) demuxed
[AVIOContext @ 0x641bd1406100] Statistics: 10783696 bytes read, 4 seeks


Is there a possibility for me to change the ffmpeg parameter for the thumbnail generation?

The OS that Immich Server is running on

Debian

Version of Immich Server

v2.0.1

Version of Immich Mobile App

v2.0.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Android

Your docker-compose.yml content

#
# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:v2.0.1
    group_add:
      - '10001'
      - '10002'
    environment:
      DB_PASSWORD: 'casaos'
      DB_USERNAME: 'casaos'
      TZ: 'Asia/Jakarta' 
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - /mnt/wdmycloud3000/Public/CasaOS/immich:/data
      - /etc/localtime:/etc/localtime:ro
      - /mnt/wdmycloud3000/Public/Backup/personal_sorted:/mnt/wdmycloud3000/Public/Backup/personal_sorted
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false
    networks: 
      - immich_network

  immich-machine-learning:
    container_name: immich_machine_learning
    hostname: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:v2.0.1
    environment:
      TZ: 'Asia/Jakarta' 
    volumes:
      - /mnt/wdmycloud3000/Public/CasaOS/immich/cache:/cache
    ports:
      - '3003:3003'
    restart: always
    healthcheck:
      disable: false
    networks: 
      - immich_network

  redis:
    container_name: immich_redis
    hostname: immich-redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
    environment:
      TZ: 'Asia/Jakarta' 
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    networks: 
      - immich_network

  database:
    container_name: immich_postgres
    hostname: immich-postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: 'casaos'
      POSTGRES_USER: 'casaos'
      POSTGRES_DB: 'immich'
      POSTGRES_INITDB_ARGS: '--data-checksums'
      DB_STORAGE_TYPE: 'HDD'
      TZ: 'Asia/Jakarta' 
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - /DATA/AppData/big-bear-immich/pgdata:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always
    networks: 
      - immich_network



networks:
  immich_network:
    name: immich_network

Your .env content

inline on the yml

Reproduction steps

  1. Open the avi file
  2. Select Refresh thumbnail

Relevant log output

[Nest] 7  - 10/19/2025, 1:56:19 PM   DEBUG [Microservices:MediaRepository] ffmpeg -n 10 /usr/bin/ffmpeg -skip_frame nointra -sws_flags accurate_rnd+full_chroma_int -i /mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi -y -fps_mode vfr -frames:v 1 -update 1 -v verbose -vf fps=12:start_time=0:eof_action=pass:round=down,thumbnail=12,select=gt(scene\,0.1)-eq(prev_selected_n\,n)+isnan(prev_selected_n)+gt(n\,20),trim=end_frame=2,reverse,format=yuv420p /data/thumbs/c154b01f-0226-440d-951a-4a19644d9511/0a/fe/0afe47a4-88d3-4e22-ad22-fb88ce665ca2-preview.jpeg

[Nest] 7  - 10/19/2025, 1:56:19 PM   ERROR [Microservices:MediaRepository] ffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers

  built with gcc 14 (Debian 14.2.0-19)

  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc

  libavutil      59. 39.100 / 59. 39.100

  libavcodec     61. 19.101 / 61. 19.101

  libavformat    61.  7.100 / 61.  7.100

  libavdevice    61.  3.100 / 61.  3.100

  libavfilter    10.  4.100 / 10.  4.100

  libswscale      8.  3.100 /  8.  3.100

  libswresample   5.  3.100 /  5.  3.100

  libpostproc    58.  3.100 / 58.  3.100

[avi @ 0x6223ba218940] parser not found for codec rawvideo, packets or times may be invalid.

    Last message repeated 1 times

Input #0, avi, from '/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi':

  Duration: 00:00:21.80, start: 0.000000, bitrate: 32577 kb/s

  Stream #0:0: Video: rawvideo, 1 reference frame, bgra, 714x536, 33147 kb/s, 2.66 fps, 2.67 tbr, 2.66 tbn

      Metadata:

        title           : XTD

[out#0/image2 @ 0x6223ba21f0c0] No explicit maps, mapping streams automatically...

[vost#0:0/mjpeg @ 0x6223ba21d840] Created video stream from input stream 0:0

[Parsed_thumbnail_1 @ 0x6223ba21ff40] batch size: 12 frames

[Parsed_fps_0 @ 0x6223ba21fd80] 0 frames in, 0 frames out; 0 frames dropped, 0 frames duplicated.

Stream mapping:

  Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))

[vost#0:0/mjpeg @ 0x6223ba21d840] Starting thread...

[vf#0:0 @ 0x6223ba21e080] Starting thread...

[vist#0:0/rawvideo @ 0x6223ba21eec0] [dec:rawvideo @ 0x6223ba22fc80] Starting thread...

[in#0/avi @ 0x6223ba218680] Starting thread...

Press [q] to stop, [?] for help

[Parsed_thumbnail_1 @ 0x738294002ac0] batch size: 12 frames

[graph -1 input from stream 0:0 @ 0x73829400f9c0] w:714 h:536 pixfmt:bgra tb:50/133 fr:8/3 sar:0/1 csp:unknown range:unknown

[auto_scale_0 @ 0x7382940125c0] w:iw h:ih flags:'' interl:0

[Parsed_format_5 @ 0x738294003540] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_reverse_4' and the filter 'Parsed_format_5'

[Parsed_fps_0 @ 0x7382940028c0] Set first pts to (in:0 out:0) from start time 0.000000

[Parsed_fps_0 @ 0x7382940028c0] fps=12/1

[auto_scale_0 @ 0x7382940125c0] w:714 h:536 fmt:bgra csp:gbr range:pc sar:0/1 -> w:714 h:536 fmt:yuv420p csp:unknown range:pc sar:0/1 flags:0x00000004

[auto_scale_0 @ 0x7382940125c0] [framesync @ 0x738294012da8] Selected 1/12 time base

[auto_scale_0 @ 0x7382940125c0] [framesync @ 0x738294012da8] Sync level 1

[graph -1 input from stream 0:0 @ 0x73829400f9c0] video frame properties congruent with link at pts_time: 0

[Parsed_thumbnail_1 @ 0x738294002ac0] frame id #4 (pts_time=0.333333) selected from a set of 12 images

[Parsed_thumbnail_1 @ 0x738294002ac0] frame id #1 (pts_time=1.083333) selected from a set of 12 images

[Nest] 7  - 10/19/2025, 1:56:19 PM   ERROR [Microservices:{"id":"0afe47a4-88d3-4e22-ad22-fb88ce665ca2"}] Unable to run job handler (AssetGenerateThumbnails): Error: ffmpeg was killed with signal SIGSEGV

Error: ffmpeg was killed with signal SIGSEGV

    at ChildProcess.<anonymous> (/usr/src/app/server/node_modules/.pnpm/fluent-ffmpeg@2.1.3/node_modules/fluent-ffmpeg/lib/processor.js:178:22)

    at ChildProcess.emit (node:events:518:28)

    at ChildProcess._handle.onexit (node:internal/child_process:293:12)

Additional information

No response

Originally created by @AdrianChandra on GitHub (Oct 19, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug When i run Refresh thumbnails an an AVI files the log show ffmpeg error (log in the relevant log output) I try troubleshooting by removing 'reverse' on the -vf and it run sucessfully: root@immich_server:/usr/src/app# /usr/bin/ffmpeg -skip_frame nointra -sws_flags accurate_rnd+full_chroma_int -i "/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi" -y -fps_mode vfr -frames:v 1 -update 1 -v verbose -vf "fps=12:start_time=0:eof_action=pass:round=down,thumbnail=12,select=gt(scene\,0.1)-eq(prev_selected_n\,n)+isnan(prev_selected_n)+gt(n\,20),trim=end_frame=2,format=yuv420p" tes.jpeg ffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers built with gcc 14 (Debian 14.2.0-19) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.101 / 61. 19.101 libavformat 61. 7.100 / 61. 7.100 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 4.100 / 10. 4.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100 [avi @ 0x641bd13fd940] parser not found for codec rawvideo, packets or times may be invalid. Last message repeated 1 times Input #0, avi, from '/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi': Duration: 00:00:21.80, start: 0.000000, bitrate: 32577 kb/s Stream #0:0: Video: rawvideo, 1 reference frame, bgra, 714x536, 33147 kb/s, 2.66 fps, 2.67 tbr, 2.66 tbn Metadata: title : XTD [out#0/image2 @ 0x641bd14040c0] No explicit maps, mapping streams automatically... [vost#0:0/mjpeg @ 0x641bd14027c0] Created video stream from input stream 0:0 [Parsed_thumbnail_1 @ 0x641bd1404dc0] batch size: 12 frames [Parsed_fps_0 @ 0x641bd1403340] 0 frames in, 0 frames out; 0 frames dropped, 0 frames duplicated. Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native)) [vost#0:0/mjpeg @ 0x641bd14027c0] Starting thread... [vf#0:0 @ 0x641bd1403000] Starting thread... [vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Starting thread... [in#0/avi @ 0x641bd13fd680] Starting thread... Press [q] to stop, [?] for help [Parsed_thumbnail_1 @ 0x7d93bc002980] batch size: 12 frames [graph -1 input from stream 0:0 @ 0x7d93bc00d680] w:714 h:536 pixfmt:bgra tb:50/133 fr:8/3 sar:0/1 csp:unknown range:unknown [auto_scale_0 @ 0x7d93bc010140] w:iw h:ih flags:'' interl:0 [Parsed_format_4 @ 0x7d93bc003180] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_trim_3' and the filter 'Parsed_format_4' [Parsed_fps_0 @ 0x7d93bc0012c0] Set first pts to (in:0 out:0) from start time 0.000000 [Parsed_fps_0 @ 0x7d93bc0012c0] fps=12/1 [auto_scale_0 @ 0x7d93bc010140] w:714 h:536 fmt:bgra csp:gbr range:pc sar:0/1 -> w:714 h:536 fmt:yuv420p csp:unknown range:pc sar:0/1 flags:0x00000004 [auto_scale_0 @ 0x7d93bc010140] [framesync @ 0x7d93bc010268] Selected 1/12 time base [auto_scale_0 @ 0x7d93bc010140] [framesync @ 0x7d93bc010268] Sync level 1 [graph -1 input from stream 0:0 @ 0x7d93bc00d680] video frame properties congruent with link at pts_time: 0 [Parsed_thumbnail_1 @ 0x7d93bc002980] frame id #4 (pts_time=0.333333) selected from a set of 12 images Output #0, image2, to 'tes.jpeg': Metadata: encoder : Lavf61.7.100 Stream #0:0: Video: mjpeg, 1 reference frame, yuv420p(pc, progressive), 714x536, q=2-31, 200 kb/s, 12 fps, 12 tbn Metadata: title : XTD encoder : Lavc61.19.101 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A [out#0/image2 @ 0x641bd14040c0] Starting thread... [vf#0:0 @ 0x641bd1403000] All consumers returned EOF [Parsed_fps_0 @ 0x7d93bc0012c0] 4 frames in, 12 frames out; 1 frames dropped, 9 frames duplicated. [vf#0:0 @ 0x641bd1403000] Terminating thread with return code 0 (success) [vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Decoder returned EOF, finishing [vist#0:0/rawvideo @ 0x641bd1403ec0] [dec:rawvideo @ 0x641bd1414c80] Terminating thread with return code 0 (success) [vist#0:0/rawvideo @ 0x641bd1403ec0] All consumers of this stream are done [in#0/avi @ 0x641bd13fd680] All consumers are done [in#0/avi @ 0x641bd13fd680] Terminating thread with return code 0 (success) [vost#0:0/mjpeg @ 0x641bd14027c0] Encoder thread received EOF [vost#0:0/mjpeg @ 0x641bd14027c0] Terminating thread with return code 0 (success) [AVIOContext @ 0x7d93b0041080] Statistics: 15128 bytes written, 0 seeks, 1 writeouts [out#0/image2 @ 0x641bd14040c0] All streams finished [out#0/image2 @ 0x641bd14040c0] Terminating thread with return code 0 (success) [out#0/image2 @ 0x641bd14040c0] Output file #0 (tes.jpeg): [out#0/image2 @ 0x641bd14040c0] Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (15128 bytes); [out#0/image2 @ 0x641bd14040c0] Total: 1 packets (15128 bytes) muxed [out#0/image2 @ 0x641bd14040c0] video:15KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown frame= 1 fps=0.0 q=3.9 Lsize=N/A time=00:00:00.41 bitrate=N/A speed=11.8x [in#0/avi @ 0x641bd13fd680] Input file #0 (/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi): [in#0/avi @ 0x641bd13fd680] Input stream #0:0 (video): 7 packets read (10715712 bytes); 6 frames decoded; 0 decode errors; [in#0/avi @ 0x641bd13fd680] Total: 7 packets (10715712 bytes) demuxed [AVIOContext @ 0x641bd1406100] Statistics: 10783696 bytes read, 4 seeks --- Is there a possibility for me to change the ffmpeg parameter for the thumbnail generation? ### The OS that Immich Server is running on Debian ### Version of Immich Server v2.0.1 ### Version of Immich Mobile App v2.0.1 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model Android ### Your docker-compose.yml content ```YAML # # WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose # # Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v2.0.1 group_add: - '10001' - '10002' environment: DB_PASSWORD: 'casaos' DB_USERNAME: 'casaos' TZ: 'Asia/Jakarta' devices: - /dev/dri:/dev/dri volumes: - /mnt/wdmycloud3000/Public/CasaOS/immich:/data - /etc/localtime:/etc/localtime:ro - /mnt/wdmycloud3000/Public/Backup/personal_sorted:/mnt/wdmycloud3000/Public/Backup/personal_sorted ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false networks: - immich_network immich-machine-learning: container_name: immich_machine_learning hostname: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v2.0.1 environment: TZ: 'Asia/Jakarta' volumes: - /mnt/wdmycloud3000/Public/CasaOS/immich/cache:/cache ports: - '3003:3003' restart: always healthcheck: disable: false networks: - immich_network redis: container_name: immich_redis hostname: immich-redis image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 environment: TZ: 'Asia/Jakarta' healthcheck: test: redis-cli ping || exit 1 restart: always networks: - immich_network database: container_name: immich_postgres hostname: immich-postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 environment: POSTGRES_PASSWORD: 'casaos' POSTGRES_USER: 'casaos' POSTGRES_DB: 'immich' POSTGRES_INITDB_ARGS: '--data-checksums' DB_STORAGE_TYPE: 'HDD' TZ: 'Asia/Jakarta' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - /DATA/AppData/big-bear-immich/pgdata:/var/lib/postgresql/data shm_size: 128mb restart: always networks: - immich_network networks: immich_network: name: immich_network ``` ### Your .env content ```Shell inline on the yml ``` ### Reproduction steps 1. Open the avi file 2. Select Refresh thumbnail ### Relevant log output ```shell [Nest] 7 - 10/19/2025, 1:56:19 PM DEBUG [Microservices:MediaRepository] ffmpeg -n 10 /usr/bin/ffmpeg -skip_frame nointra -sws_flags accurate_rnd+full_chroma_int -i /mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi -y -fps_mode vfr -frames:v 1 -update 1 -v verbose -vf fps=12:start_time=0:eof_action=pass:round=down,thumbnail=12,select=gt(scene\,0.1)-eq(prev_selected_n\,n)+isnan(prev_selected_n)+gt(n\,20),trim=end_frame=2,reverse,format=yuv420p /data/thumbs/c154b01f-0226-440d-951a-4a19644d9511/0a/fe/0afe47a4-88d3-4e22-ad22-fb88ce665ca2-preview.jpeg [Nest] 7 - 10/19/2025, 1:56:19 PM ERROR [Microservices:MediaRepository] ffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers built with gcc 14 (Debian 14.2.0-19) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.101 / 61. 19.101 libavformat 61. 7.100 / 61. 7.100 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 4.100 / 10. 4.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100 [avi @ 0x6223ba218940] parser not found for codec rawvideo, packets or times may be invalid. Last message repeated 1 times Input #0, avi, from '/mnt/wdmycloud3000/Public/Backup/personal_sorted/2007-12-21/NURI_4D_14_A (2).avi': Duration: 00:00:21.80, start: 0.000000, bitrate: 32577 kb/s Stream #0:0: Video: rawvideo, 1 reference frame, bgra, 714x536, 33147 kb/s, 2.66 fps, 2.67 tbr, 2.66 tbn Metadata: title : XTD [out#0/image2 @ 0x6223ba21f0c0] No explicit maps, mapping streams automatically... [vost#0:0/mjpeg @ 0x6223ba21d840] Created video stream from input stream 0:0 [Parsed_thumbnail_1 @ 0x6223ba21ff40] batch size: 12 frames [Parsed_fps_0 @ 0x6223ba21fd80] 0 frames in, 0 frames out; 0 frames dropped, 0 frames duplicated. Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native)) [vost#0:0/mjpeg @ 0x6223ba21d840] Starting thread... [vf#0:0 @ 0x6223ba21e080] Starting thread... [vist#0:0/rawvideo @ 0x6223ba21eec0] [dec:rawvideo @ 0x6223ba22fc80] Starting thread... [in#0/avi @ 0x6223ba218680] Starting thread... Press [q] to stop, [?] for help [Parsed_thumbnail_1 @ 0x738294002ac0] batch size: 12 frames [graph -1 input from stream 0:0 @ 0x73829400f9c0] w:714 h:536 pixfmt:bgra tb:50/133 fr:8/3 sar:0/1 csp:unknown range:unknown [auto_scale_0 @ 0x7382940125c0] w:iw h:ih flags:'' interl:0 [Parsed_format_5 @ 0x738294003540] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_reverse_4' and the filter 'Parsed_format_5' [Parsed_fps_0 @ 0x7382940028c0] Set first pts to (in:0 out:0) from start time 0.000000 [Parsed_fps_0 @ 0x7382940028c0] fps=12/1 [auto_scale_0 @ 0x7382940125c0] w:714 h:536 fmt:bgra csp:gbr range:pc sar:0/1 -> w:714 h:536 fmt:yuv420p csp:unknown range:pc sar:0/1 flags:0x00000004 [auto_scale_0 @ 0x7382940125c0] [framesync @ 0x738294012da8] Selected 1/12 time base [auto_scale_0 @ 0x7382940125c0] [framesync @ 0x738294012da8] Sync level 1 [graph -1 input from stream 0:0 @ 0x73829400f9c0] video frame properties congruent with link at pts_time: 0 [Parsed_thumbnail_1 @ 0x738294002ac0] frame id #4 (pts_time=0.333333) selected from a set of 12 images [Parsed_thumbnail_1 @ 0x738294002ac0] frame id #1 (pts_time=1.083333) selected from a set of 12 images [Nest] 7 - 10/19/2025, 1:56:19 PM ERROR [Microservices:{"id":"0afe47a4-88d3-4e22-ad22-fb88ce665ca2"}] Unable to run job handler (AssetGenerateThumbnails): Error: ffmpeg was killed with signal SIGSEGV Error: ffmpeg was killed with signal SIGSEGV at ChildProcess.<anonymous> (/usr/src/app/server/node_modules/.pnpm/fluent-ffmpeg@2.1.3/node_modules/fluent-ffmpeg/lib/processor.js:178:22) at ChildProcess.emit (node:events:518:28) at ChildProcess._handle.onexit (node:internal/child_process:293:12) ``` ### Additional information _No response_
Author
Owner

@ccoles146 commented on GitHub (Dec 5, 2025):

I'm interested in this as it may be related to my problem. However, I have a thumbnail, and I have no errors in the logs. But AVIs simply do not play. I'll continue searching the issues and I'll submit my own if necessary.

@ccoles146 commented on GitHub (Dec 5, 2025): I'm interested in this as it may be related to my problem. However, I have a thumbnail, and I have no errors in the logs. But AVIs simply do not play. I'll continue searching the issues and I'll submit my own if necessary.
Author
Owner

@meesfrensel commented on GitHub (Dec 19, 2025):

Can you maybe share a file for which this error happens?

@meesfrensel commented on GitHub (Dec 19, 2025): Can you maybe share a file for which this error happens?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#7102
No description provided.