Transcode videos job always has some missing videos to transcode #5277

Closed
opened 2026-02-05 11:18:11 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @dotr on GitHub (Jan 29, 2025).

The bug

Transcode videos job always has something to transcode - clicking Missing button always brings few thousand videos to be transcoded every time. And the number to transcode is always a bit different. In my case about ~4300, but the job ends pretty fast for such number of videos - it finishes in about 2 minutes. I'm running it on Odroid H4 Plus with Intel N97 which is not the fastest CPU in the world. So it feels like it's doing nothing. But it takes about 90% CPU when running.

From the processes running I can see it just runs ffprobe:

Image

There are also some errors printed to the log, log pasted.

The OS that Immich Server is running on

Alpine Linux v3.20

Version of Immich Server

v1.125.6

Version of Immich Mobile App

v1.125.6

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

#
# WARNING: 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:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    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
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command:
      [
        'postgres',
        '-c',
        'shared_preload_libraries=vectors.so',
        '-c',
        'search_path="$$user", public, vectors',
        '-c',
        'logging_collector=on',
        '-c',
        'max_wal_size=2GB',
        '-c',
        'shared_buffers=512MB',
        '-c',
        'wal_compression=on',
      ]
    restart: always

volumes:
  model-cache:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=REDACTED

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=REDACTED

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Go to Administration > Jobs
  2. On Transcode Videos job click Missing button
  3. Job will show it has videos to process, let it finish
  4. When run is finished, click Missing button again
  5. It will find missing videos again even it finished the run before
  6. Repeat - there will always be videos missing
    ...

Relevant log output

[Nest] 7  - 01/29/2025, 6:54:08 PM     LOG [Microservices:MediaService] Transcoding video d1ccfc94-4228-4bc4-ae76-9f145e14f624 without hardware acceleration
[Nest] 7  - 01/29/2025, 6:54:08 PM     LOG [Microservices:MediaService] Transcoding video 4012534c-a9c3-42c8-a23e-a2c91520a065 without hardware acceleration
[Nest] 7  - 01/29/2025, 6:54:08 PM     LOG [Microservices:MediaService] Transcoding video 1fe1cc65-fabb-4fae-93cb-32f3b9224b66 without hardware acceleration
[Nest] 7  - 01/29/2025, 6:54:09 PM   ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[mpeg @ 0x48fde180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:2
[mpeg @ 0x48fde180180] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x48fde180180] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x48fde180180] Could not find codec parameters for stream 0 (Audio: ac3, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/50/45/50451e9c-8b03-44f7-8159-b0d6690817be.MPG':
  Duration: 00:00:07.69, start: 0.122878, bitrate: 1767 kb/s
  Stream #0:0[0x81]: Audio: ac3, 0 channels
  Stream #0:1[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn
      Side data:
        cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A
  Stream #0:2[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s
[out#0/mp4 @ 0x48fde090b80] Adding streams from explicit maps...
[vost#0:0 @ 0x48fde180480] Matched encoder 'libx264' for codec 'h264'.
[vost#0:0/libx264 @ 0x48fde180480] Created video stream from input stream 0:1
[aost#0:1/aac @ 0x48fde180a80] Created audio stream from input stream 0:0
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg1video (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (ac3 (native) -> aac (native))
[vost#0:0/libx264 @ 0x48fde180480] Starting thread...
[aost#0:1/aac @ 0x48fde180a80] Starting thread...
[vf#0:0 @ 0x48fde127ac0] Starting thread...
[af#0:1 @ 0x48fde127fc0] Starting thread...
[vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Starting thread...
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Starting thread...
[in#0/mpeg @ 0x48fde090280] Starting thread...
Press [q] to stop, [?] for help
[graph 0 input from stream 0:1 @ 0x48fea050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv
[graph 0 input from stream 0:1 @ 0x48fea050300] video frame properties congruent with link at pts_time: 0
[libx264 @ 0x48fde051d80] using SAR=1/1
[libx264 @ 0x48fde051d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x48fde051d80] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit
[libx264 @ 0x48fde051d80] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[in#0/mpeg @ 0x48fde090280] EOF while reading input
[in#0/mpeg @ 0x48fde090280] Terminating thread with return code 0 (success)
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Error submitting packet to decoder: Invalid data found when processing input
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decoder thread received EOF packet
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decoder returned EOF, finishing
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decode error rate 1 exceeds maximum 0.666667
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Task finished with error code: -1145393733 (Error number -1145393733 occurred)
[aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Terminating thread with return code -1145393733 (Error number -1145393733 occurred)
[graph_1_in_0:0 @ 0x48fe2050300] Neither number of channels nor channel layout specified
Error initializing filters!
[af#0:1 @ 0x48fde127fc0] Task finished with error code: -22 (Invalid argument)
[af#0:1 @ 0x48fde127fc0] Terminating thread with return code -22 (Invalid argument)
[vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Decoder thread received EOF packet
[vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Decoder returned EOF, finishing
[vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Terminating thread with return code 0 (success)
[vf#0:0 @ 0x48fde127ac0] Filtergraph returned EOF, finishing
[vf#0:0 @ 0x48fde127ac0] All consumers returned EOF
[vost#0:0/libx264 @ 0x48fde180480] Encoder thread received EOF
[vf#0:0 @ 0x48fde127ac0] Terminating thread with return code 0 (success)
[aost#0:1/aac @ 0x48fde180a80] Encoder thread received EOF
[aost#0:1/aac @ 0x48fde180a80] Could not open encoder before EOF
[aost#0:1/aac @ 0x48fde180a80] Task finished with error code: -22 (Invalid argument)
[aost#0:1/aac @ 0x48fde180a80] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/libx264 @ 0x48fde180480] Terminating thread with return code 0 (success)
[out#0/mp4 @ 0x48fde090b80] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=-1.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[libx264 @ 0x48fde051d80] frame I:1     Avg QP:20.00  size: 14803
[libx264 @ 0x48fde051d80] frame P:230   Avg QP:25.68  size:  4471
[libx264 @ 0x48fde051d80] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x48fde051d80] mb P  I16..4: 11.6%  0.0%  0.0%  P16..4: 71.1%  0.0%  0.0%  0.0%  0.0%    skip:17.3%
[libx264 @ 0x48fde051d80] coded y,uvDC,uvAC intra: 51.3% 70.8% 51.5% inter: 49.3% 48.2% 22.3%
[libx264 @ 0x48fde051d80] i16 v,h,dc,p: 40% 23% 20% 17%
[libx264 @ 0x48fde051d80] i8c dc,h,v,p: 47% 18% 24% 10%
[libx264 @ 0x48fde051d80] kb/s:1082.75
[AVIOContext @ 0x48fde141680] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpeg @ 0x48fde090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/50/45/50451e9c-8b03-44f7-8159-b0d6690817be.MPG):
[in#0/mpeg @ 0x48fde090280]   Input stream #0:0 (audio): 1 packets read (23613 bytes); 0 frames decoded; 1 decode errors (0 samples);
[in#0/mpeg @ 0x48fde090280]   Input stream #0:1 (video): 231 packets read (1448828 bytes); 231 frames decoded; 0 decode errors;
[in#0/mpeg @ 0x48fde090280]   Total: 232 packets (1472441 bytes) demuxed
[AVIOContext @ 0x48fde1a02c0] Statistics: 3752034 bytes read, 4 seeks
Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:09 PM   ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:11 PM   ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[ac3 @ 0x23778050580] Additional substreams is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[ac3 @ 0x23778050580] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[mpeg @ 0x23778180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:2
[mpeg @ 0x23778180180] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x23778180180] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x23778180180] Could not find codec parameters for stream 0 (Audio: ac3, 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/1d/f7/1df798a8-99b0-45d9-8dbd-902c73c17154.MPG':
  Duration: 00:01:03.15, start: 0.122878, bitrate: 1619 kb/s
  Stream #0:0[0x87]: Audio: ac3, 0 channels, fltp
  Stream #0:1[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn
      Side data:
        cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A
  Stream #0:2[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s
[out#0/mp4 @ 0x23778091080] Adding streams from explicit maps...
[vost#0:0 @ 0x23778181980] Matched encoder 'libx264' for codec 'h264'.
[vost#0:0/libx264 @ 0x23778181980] Created video stream from input stream 0:1
[aost#0:1/aac @ 0x23778181c80] Created audio stream from input stream 0:0
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg1video (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (ac3 (native) -> aac (native))
[vost#0:0/libx264 @ 0x23778181980] Starting thread...
[aost#0:1/aac @ 0x23778181c80] Starting thread...
[vf#0:0 @ 0x23778160440] Starting thread...
[af#0:1 @ 0x237781606c0] Starting thread...
[vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Starting thread...
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Starting thread...
[in#0/mpeg @ 0x23778090280] Starting thread...
Press [q] to stop, [?] for help
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Error submitting packet to decoder: Invalid data found when processing input
[ac3 @ 0x23778234400] Additional substreams is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[ac3 @ 0x23778234400] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[graph 0 input from stream 0:1 @ 0x2377c050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv
[graph 0 input from stream 0:1 @ 0x2377c050300] video frame properties congruent with link at pts_time: 0
[libx264 @ 0x23778235200] using SAR=1/1
[libx264 @ 0x23778235200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x23778235200] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit
[libx264 @ 0x23778235200] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[in#0/mpeg @ 0x23778090280] EOF while reading input
[in#0/mpeg @ 0x23778090280] Terminating thread with return code 0 (success)
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decoder thread received EOF packet
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decoder returned EOF, finishing
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decode error rate 1 exceeds maximum 0.666667
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Task finished with error code: -1145393733 (Error number -1145393733 occurred)
[aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Terminating thread with return code -1145393733 (Error number -1145393733 occurred)
[graph_1_in_0:0 @ 0x23780050300] Neither number of channels nor channel layout specified
Error initializing filters!
[af#0:1 @ 0x237781606c0] Task finished with error code: -22 (Invalid argument)
[af#0:1 @ 0x237781606c0] Terminating thread with return code -22 (Invalid argument)
[vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Decoder thread received EOF packet
[vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Decoder returned EOF, finishing
[vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Terminating thread with return code 0 (success)
[vf#0:0 @ 0x23778160440] Filtergraph returned EOF, finishing
[vf#0:0 @ 0x23778160440] All consumers returned EOF
[vf#0:0 @ 0x23778160440] Terminating thread with return code 0 (success)
[vost#0:0/libx264 @ 0x23778181980] Encoder thread received EOF
[aost#0:1/aac @ 0x23778181c80] Encoder thread received EOF
[aost#0:1/aac @ 0x23778181c80] Could not open encoder before EOF
[aost#0:1/aac @ 0x23778181c80] Task finished with error code: -22 (Invalid argument)
[aost#0:1/aac @ 0x23778181c80] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/libx264 @ 0x23778181980] Terminating thread with return code 0 (success)
[out#0/mp4 @ 0x23778091080] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=-1.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[libx264 @ 0x23778235200] frame I:8     Avg QP:22.25  size: 10535
[libx264 @ 0x23778235200] frame P:1886  Avg QP:25.77  size:  4850
[libx264 @ 0x23778235200] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x23778235200] mb P  I16..4: 11.4%  0.0%  0.0%  P16..4: 57.4%  0.0%  0.0%  0.0%  0.0%    skip:31.2%
[libx264 @ 0x23778235200] coded y,uvDC,uvAC intra: 32.7% 47.9% 23.2% inter: 42.8% 33.8% 13.0%
[libx264 @ 0x23778235200] i16 v,h,dc,p: 43% 21% 20% 16%
[libx264 @ 0x23778235200] i8c dc,h,v,p: 48% 21% 22%  9%
[libx264 @ 0x23778235200] kb/s:1168.55
[AVIOContext @ 0x237781a1300] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpeg @ 0x23778090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/1d/f7/1df798a8-99b0-45d9-8dbd-902c73c17154.MPG):
[in#0/mpeg @ 0x23778090280]   Input stream #0:0 (audio): 3 packets read (65013 bytes); 0 frames decoded; 1 decode errors (0 samples);
[in#0/mpeg @ 0x23778090280]   Input stream #0:1 (video): 1894 packets read (11838890 bytes); 1894 frames decoded; 0 decode errors;
[in#0/mpeg @ 0x23778090280]   Total: 1897 packets (11903903 bytes) demuxed
[AVIOContext @ 0x237781a02c0] Statistics: 14868925 bytes read, 3 seeks
Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:11 PM   ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:13 PM     LOG [Microservices:MediaService] Transcoding video 21cc6903-9174-4989-9fec-284567bdc89d without hardware acceleration
[Nest] 7  - 01/29/2025, 6:54:13 PM   ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[mpeg @ 0x2850c180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:3
[mpeg @ 0x2850c180180] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x2850c180180] start time for stream 1 is not set in estimate_timings_from_pts
[mpeg @ 0x2850c180180] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x2850c180180] stream 1 : no TS found at start of file, duration not set
[mpeg @ 0x2850c180180] Could not find codec parameters for stream 0 (Audio: dts, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x2850c180180] Could not find codec parameters for stream 1 (Audio: ac3, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/5c/14/5c14bc71-8b3c-4413-8732-4f1bf986c5e1.MPG':
  Duration: 00:02:10.82, start: 0.122878, bitrate: 1609 kb/s
  Stream #0:0[0x8b]: Audio: dts, 0 channels
  Stream #0:1[0x85]: Audio: ac3, 0 channels
  Stream #0:2[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn
      Side data:
        cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A
  Stream #0:3[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s
[out#0/mp4 @ 0x2850c090d80] Adding streams from explicit maps...
[vost#0:0 @ 0x2850c180480] Matched encoder 'libx264' for codec 'h264'.
[vost#0:0/libx264 @ 0x2850c180480] Created video stream from input stream 0:2
[aost#0:1/aac @ 0x2850c180a80] Created audio stream from input stream 0:0
Stream mapping:
  Stream #0:2 -> #0:0 (mpeg1video (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (dts (dca) -> aac (native))
[vost#0:0/libx264 @ 0x2850c180480] Starting thread...
[aost#0:1/aac @ 0x2850c180a80] Starting thread...
[vf#0:0 @ 0x2850c160440] Starting thread...
[af#0:1 @ 0x2850c127ac0] Starting thread...
[vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Starting thread...
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Starting thread...
[in#0/mpeg @ 0x2850c090280] Starting thread...
Press [q] to stop, [?] for help
[graph 0 input from stream 0:2 @ 0x2851a050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv
[graph 0 input from stream 0:2 @ 0x2851a050300] video frame properties congruent with link at pts_time: 0
[libx264 @ 0x2850c050580] using SAR=1/1
[libx264 @ 0x2850c050580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x2850c050580] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit
[libx264 @ 0x2850c050580] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[in#0/mpeg @ 0x2850c090280] EOF while reading input
[in#0/mpeg @ 0x2850c090280] Terminating thread with return code 0 (success)
[dca @ 0x2850c051d80] Not a valid DCA frame
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Error submitting packet to decoder: Invalid data found when processing input
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decoder thread received EOF packet
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decoder returned EOF, finishing
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decode error rate 1 exceeds maximum 0.666667
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Task finished with error code: -1145393733 (Error number -1145393733 occurred)
[aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Terminating thread with return code -1145393733 (Error number -1145393733 occurred)
Cannot determine format of input 0:0 after EOF
[af#0:1 @ 0x2850c127ac0] Task finished with error code: -1094995529 (Invalid data found when processing input)
[af#0:1 @ 0x2850c127ac0] Terminating thread with return code -1094995529 (Invalid data found when processing input)
[vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Decoder thread received EOF packet
[vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Decoder returned EOF, finishing
[vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Terminating thread with return code 0 (success)
[vf#0:0 @ 0x2850c160440] Filtergraph returned EOF, finishing
[vf#0:0 @ 0x2850c160440] All consumers returned EOF
[vost#0:0/libx264 @ 0x2850c180480] Encoder thread received EOF
[aost#0:1/aac @ 0x2850c180a80] Encoder thread received EOF
[aost#0:1/aac @ 0x2850c180a80] Could not open encoder before EOF
[aost#0:1/aac @ 0x2850c180a80] Task finished with error code: -22 (Invalid argument)
[aost#0:1/aac @ 0x2850c180a80] Terminating thread with return code -22 (Invalid argument)
[vf#0:0 @ 0x2850c160440] Terminating thread with return code 0 (success)
[vost#0:0/libx264 @ 0x2850c180480] Terminating thread with return code 0 (success)
[out#0/mp4 @ 0x2850c090d80] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=-1.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[libx264 @ 0x2850c050580] frame I:16    Avg QP:22.69  size: 15891
[libx264 @ 0x2850c050580] frame P:3906  Avg QP:25.74  size:  5804
[libx264 @ 0x2850c050580] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x2850c050580] mb P  I16..4:  8.0%  0.0%  0.0%  P16..4: 81.9%  0.0%  0.0%  0.0%  0.0%    skip:10.1%
[libx264 @ 0x2850c050580] coded y,uvDC,uvAC intra: 59.5% 60.2% 32.3% inter: 63.0% 46.6% 18.2%
[libx264 @ 0x2850c050580] i16 v,h,dc,p: 34% 21% 26% 19%
[libx264 @ 0x2850c050580] i8c dc,h,v,p: 45% 22% 25%  9%
[libx264 @ 0x2850c050580] kb/s:1401.52
[AVIOContext @ 0x2850c1a11c0] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpeg @ 0x2850c090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/5c/14/5c14bc71-8b3c-4413-8732-4f1bf986c5e1.MPG):
[in#0/mpeg @ 0x2850c090280]   Input stream #0:0 (audio): 1 packets read (65013 bytes); 0 frames decoded; 1 decode errors (0 samples);
[in#0/mpeg @ 0x2850c090280]   Input stream #0:2 (video): 3922 packets read (24517740 bytes); 3922 frames decoded; 0 decode errors;
[in#0/mpeg @ 0x2850c090280]   Total: 3923 packets (24582753 bytes) demuxed
[AVIOContext @ 0x2850c1a02c0] Statistics: 28396376 bytes read, 3 seeks
Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:13 PM   ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:13 PM   ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[avi @ 0x3b1b0180180] parser not found for codec pcm_s16le, packets or times may be invalid.
    Last message repeated 1 times
[avi @ 0x3b1b0180180] Could not find codec parameters for stream 0 (Video: mjpeg, 1 reference frame (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown, center), 640x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[aist#0:1/pcm_s16le @ 0x3b1b0140780] Guessed Channel Layout: mono
Input #0, avi, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/10/a2/10a23d55-3a61-481d-89d1-be8426ff279f.AVI':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: mjpeg, 1 reference frame (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown, center), 640x480, 0.0002 fps, 0.0002 tbr, 0.0002 tbn
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
[out#0/mp4 @ 0x3b1b0090880] Adding streams from explicit maps...
[vost#0:0 @ 0x3b1b0180480] Matched encoder 'libx264' for codec 'h264'.
[vost#0:0/libx264 @ 0x3b1b0180480] Created video stream from input stream 0:0
[aost#0:1/copy @ 0x3b1b0180780] Created audio stream from input stream 0:1
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
[vost#0:0/libx264 @ 0x3b1b0180480] Starting thread...
[vf#0:0 @ 0x3b1b0160280] Starting thread...
[vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Starting thread...
[in#0/avi @ 0x3b1b0090280] Starting thread...
Press [q] to stop, [?] for help
[in#0/avi @ 0x3b1b0090280] EOF while reading input
[in#0/avi @ 0x3b1b0090280] Terminating thread with return code 0 (success)
[vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Decoder thread received EOF packet
[vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Decoder returned EOF, finishing
[vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Terminating thread with return code 0 (success)
Cannot determine format of input 0:0 after EOF
[vf#0:0 @ 0x3b1b0160280] Task finished with error code: -1094995529 (Invalid data found when processing input)
[vf#0:0 @ 0x3b1b0160280] Terminating thread with return code -1094995529 (Invalid data found when processing input)
[vost#0:0/libx264 @ 0x3b1b0180480] Encoder thread received EOF
[vost#0:0/libx264 @ 0x3b1b0180480] Could not open encoder before EOF
[vost#0:0/libx264 @ 0x3b1b0180480] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libx264 @ 0x3b1b0180480] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x3b1b0090880] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[AVIOContext @ 0x3b1b01a0e00] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/avi @ 0x3b1b0090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/10/a2/10a23d55-3a61-481d-89d1-be8426ff279f.AVI):
[in#0/avi @ 0x3b1b0090280]   Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; 0 decode errors;
[in#0/avi @ 0x3b1b0090280]   Input stream #0:1 (audio): 1 packets read (932 bytes);
[in#0/avi @ 0x3b1b0090280]   Total: 1 packets (932 bytes) demuxed
[AVIOContext @ 0x3b1b01a02c0] Statistics: 33732 bytes read, 0 seeks
Conversion failed!

[Nest] 7  - 01/29/2025, 6:54:13 PM   ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 183: Conversion failed!

Additional information

No response

Originally created by @dotr on GitHub (Jan 29, 2025). ### The bug Transcode videos job always has something to transcode - clicking Missing button always brings few thousand videos to be transcoded every time. And the number to transcode is always a bit different. In my case about ~4300, but the job ends pretty fast for such number of videos - it finishes in about 2 minutes. I'm running it on Odroid H4 Plus with Intel N97 which is not the fastest CPU in the world. So it feels like it's doing nothing. But it takes about 90% CPU when running. From the processes running I can see it just runs ffprobe: ![Image](https://github.com/user-attachments/assets/dea7762c-d06d-4fdd-b981-7f83477d0d9e) There are also some errors printed to the log, log pasted. ### The OS that Immich Server is running on Alpine Linux v3.20 ### Version of Immich Server v1.125.6 ### Version of Immich Mobile App v1.125.6 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML # # WARNING: 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:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' 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 - ${DB_DATA_LOCATION}:/var/lib/postgresql/data healthcheck: test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1 interval: 5m start_interval: 30s start_period: 5m command: [ 'postgres', '-c', 'shared_preload_libraries=vectors.so', '-c', 'search_path="$$user", public, vectors', '-c', 'logging_collector=on', '-c', 'max_wal_size=2GB', '-c', 'shared_buffers=512MB', '-c', 'wal_compression=on', ] restart: always volumes: model-cache: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=./library # The location where your database files are stored DB_DATA_LOCATION=./postgres # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List TZ=REDACTED # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=REDACTED # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps 1. Go to Administration > Jobs 2. On Transcode Videos job click Missing button 3. Job will show it has videos to process, let it finish 4. When run is finished, click Missing button again 5. It will find missing videos again even it finished the run before 6. Repeat - there will always be videos missing ... ### Relevant log output ```shell [Nest] 7 - 01/29/2025, 6:54:08 PM LOG [Microservices:MediaService] Transcoding video d1ccfc94-4228-4bc4-ae76-9f145e14f624 without hardware acceleration [Nest] 7 - 01/29/2025, 6:54:08 PM LOG [Microservices:MediaService] Transcoding video 4012534c-a9c3-42c8-a23e-a2c91520a065 without hardware acceleration [Nest] 7 - 01/29/2025, 6:54:08 PM LOG [Microservices:MediaService] Transcoding video 1fe1cc65-fabb-4fae-93cb-32f3b9224b66 without hardware acceleration [Nest] 7 - 01/29/2025, 6:54:09 PM ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers built with gcc 12 (Debian 12.2.0-14) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [mpeg @ 0x48fde180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:2 [mpeg @ 0x48fde180180] start time for stream 0 is not set in estimate_timings_from_pts [mpeg @ 0x48fde180180] stream 0 : no TS found at start of file, duration not set [mpeg @ 0x48fde180180] Could not find codec parameters for stream 0 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/50/45/50451e9c-8b03-44f7-8159-b0d6690817be.MPG': Duration: 00:00:07.69, start: 0.122878, bitrate: 1767 kb/s Stream #0:0[0x81]: Audio: ac3, 0 channels Stream #0:1[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A Stream #0:2[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s [out#0/mp4 @ 0x48fde090b80] Adding streams from explicit maps... [vost#0:0 @ 0x48fde180480] Matched encoder 'libx264' for codec 'h264'. [vost#0:0/libx264 @ 0x48fde180480] Created video stream from input stream 0:1 [aost#0:1/aac @ 0x48fde180a80] Created audio stream from input stream 0:0 Stream mapping: Stream #0:1 -> #0:0 (mpeg1video (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (ac3 (native) -> aac (native)) [vost#0:0/libx264 @ 0x48fde180480] Starting thread... [aost#0:1/aac @ 0x48fde180a80] Starting thread... [vf#0:0 @ 0x48fde127ac0] Starting thread... [af#0:1 @ 0x48fde127fc0] Starting thread... [vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Starting thread... [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Starting thread... [in#0/mpeg @ 0x48fde090280] Starting thread... Press [q] to stop, [?] for help [graph 0 input from stream 0:1 @ 0x48fea050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv [graph 0 input from stream 0:1 @ 0x48fea050300] video frame properties congruent with link at pts_time: 0 [libx264 @ 0x48fde051d80] using SAR=1/1 [libx264 @ 0x48fde051d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x48fde051d80] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit [libx264 @ 0x48fde051d80] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 [in#0/mpeg @ 0x48fde090280] EOF while reading input [in#0/mpeg @ 0x48fde090280] Terminating thread with return code 0 (success) [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Error submitting packet to decoder: Invalid data found when processing input [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decoder thread received EOF packet [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decoder returned EOF, finishing [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Decode error rate 1 exceeds maximum 0.666667 [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Task finished with error code: -1145393733 (Error number -1145393733 occurred) [aist#0:0/ac3 @ 0x48fde140900] [dec:ac3 @ 0x48fde1a0cc0] Terminating thread with return code -1145393733 (Error number -1145393733 occurred) [graph_1_in_0:0 @ 0x48fe2050300] Neither number of channels nor channel layout specified Error initializing filters! [af#0:1 @ 0x48fde127fc0] Task finished with error code: -22 (Invalid argument) [af#0:1 @ 0x48fde127fc0] Terminating thread with return code -22 (Invalid argument) [vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Decoder thread received EOF packet [vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Decoder returned EOF, finishing [vist#0:1/mpeg1video @ 0x48fde140a80] [dec:mpeg1video @ 0x48fde140300] Terminating thread with return code 0 (success) [vf#0:0 @ 0x48fde127ac0] Filtergraph returned EOF, finishing [vf#0:0 @ 0x48fde127ac0] All consumers returned EOF [vost#0:0/libx264 @ 0x48fde180480] Encoder thread received EOF [vf#0:0 @ 0x48fde127ac0] Terminating thread with return code 0 (success) [aost#0:1/aac @ 0x48fde180a80] Encoder thread received EOF [aost#0:1/aac @ 0x48fde180a80] Could not open encoder before EOF [aost#0:1/aac @ 0x48fde180a80] Task finished with error code: -22 (Invalid argument) [aost#0:1/aac @ 0x48fde180a80] Terminating thread with return code -22 (Invalid argument) [vost#0:0/libx264 @ 0x48fde180480] Terminating thread with return code 0 (success) [out#0/mp4 @ 0x48fde090b80] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=-1.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A [libx264 @ 0x48fde051d80] frame I:1 Avg QP:20.00 size: 14803 [libx264 @ 0x48fde051d80] frame P:230 Avg QP:25.68 size: 4471 [libx264 @ 0x48fde051d80] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x48fde051d80] mb P I16..4: 11.6% 0.0% 0.0% P16..4: 71.1% 0.0% 0.0% 0.0% 0.0% skip:17.3% [libx264 @ 0x48fde051d80] coded y,uvDC,uvAC intra: 51.3% 70.8% 51.5% inter: 49.3% 48.2% 22.3% [libx264 @ 0x48fde051d80] i16 v,h,dc,p: 40% 23% 20% 17% [libx264 @ 0x48fde051d80] i8c dc,h,v,p: 47% 18% 24% 10% [libx264 @ 0x48fde051d80] kb/s:1082.75 [AVIOContext @ 0x48fde141680] Statistics: 0 bytes written, 0 seeks, 0 writeouts [in#0/mpeg @ 0x48fde090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/50/45/50451e9c-8b03-44f7-8159-b0d6690817be.MPG): [in#0/mpeg @ 0x48fde090280] Input stream #0:0 (audio): 1 packets read (23613 bytes); 0 frames decoded; 1 decode errors (0 samples); [in#0/mpeg @ 0x48fde090280] Input stream #0:1 (video): 231 packets read (1448828 bytes); 231 frames decoded; 0 decode errors; [in#0/mpeg @ 0x48fde090280] Total: 232 packets (1472441 bytes) demuxed [AVIOContext @ 0x48fde1a02c0] Statistics: 3752034 bytes read, 4 seeks Conversion failed! [Nest] 7 - 01/29/2025, 6:54:09 PM ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed! [Nest] 7 - 01/29/2025, 6:54:11 PM ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers built with gcc 12 (Debian 12.2.0-14) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [ac3 @ 0x23778050580] Additional substreams is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [ac3 @ 0x23778050580] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) [mpeg @ 0x23778180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:2 [mpeg @ 0x23778180180] start time for stream 0 is not set in estimate_timings_from_pts [mpeg @ 0x23778180180] stream 0 : no TS found at start of file, duration not set [mpeg @ 0x23778180180] Could not find codec parameters for stream 0 (Audio: ac3, 0 channels, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/1d/f7/1df798a8-99b0-45d9-8dbd-902c73c17154.MPG': Duration: 00:01:03.15, start: 0.122878, bitrate: 1619 kb/s Stream #0:0[0x87]: Audio: ac3, 0 channels, fltp Stream #0:1[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A Stream #0:2[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s [out#0/mp4 @ 0x23778091080] Adding streams from explicit maps... [vost#0:0 @ 0x23778181980] Matched encoder 'libx264' for codec 'h264'. [vost#0:0/libx264 @ 0x23778181980] Created video stream from input stream 0:1 [aost#0:1/aac @ 0x23778181c80] Created audio stream from input stream 0:0 Stream mapping: Stream #0:1 -> #0:0 (mpeg1video (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (ac3 (native) -> aac (native)) [vost#0:0/libx264 @ 0x23778181980] Starting thread... [aost#0:1/aac @ 0x23778181c80] Starting thread... [vf#0:0 @ 0x23778160440] Starting thread... [af#0:1 @ 0x237781606c0] Starting thread... [vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Starting thread... [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Starting thread... [in#0/mpeg @ 0x23778090280] Starting thread... Press [q] to stop, [?] for help [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Error submitting packet to decoder: Invalid data found when processing input [ac3 @ 0x23778234400] Additional substreams is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [ac3 @ 0x23778234400] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) [graph 0 input from stream 0:1 @ 0x2377c050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv [graph 0 input from stream 0:1 @ 0x2377c050300] video frame properties congruent with link at pts_time: 0 [libx264 @ 0x23778235200] using SAR=1/1 [libx264 @ 0x23778235200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x23778235200] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit [libx264 @ 0x23778235200] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 [in#0/mpeg @ 0x23778090280] EOF while reading input [in#0/mpeg @ 0x23778090280] Terminating thread with return code 0 (success) [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decoder thread received EOF packet [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decoder returned EOF, finishing [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Decode error rate 1 exceeds maximum 0.666667 [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Task finished with error code: -1145393733 (Error number -1145393733 occurred) [aist#0:0/ac3 @ 0x23778140900] [dec:ac3 @ 0x237781a0f40] Terminating thread with return code -1145393733 (Error number -1145393733 occurred) [graph_1_in_0:0 @ 0x23780050300] Neither number of channels nor channel layout specified Error initializing filters! [af#0:1 @ 0x237781606c0] Task finished with error code: -22 (Invalid argument) [af#0:1 @ 0x237781606c0] Terminating thread with return code -22 (Invalid argument) [vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Decoder thread received EOF packet [vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Decoder returned EOF, finishing [vist#0:1/mpeg1video @ 0x23778140a80] [dec:mpeg1video @ 0x23778140d80] Terminating thread with return code 0 (success) [vf#0:0 @ 0x23778160440] Filtergraph returned EOF, finishing [vf#0:0 @ 0x23778160440] All consumers returned EOF [vf#0:0 @ 0x23778160440] Terminating thread with return code 0 (success) [vost#0:0/libx264 @ 0x23778181980] Encoder thread received EOF [aost#0:1/aac @ 0x23778181c80] Encoder thread received EOF [aost#0:1/aac @ 0x23778181c80] Could not open encoder before EOF [aost#0:1/aac @ 0x23778181c80] Task finished with error code: -22 (Invalid argument) [aost#0:1/aac @ 0x23778181c80] Terminating thread with return code -22 (Invalid argument) [vost#0:0/libx264 @ 0x23778181980] Terminating thread with return code 0 (success) [out#0/mp4 @ 0x23778091080] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=-1.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A [libx264 @ 0x23778235200] frame I:8 Avg QP:22.25 size: 10535 [libx264 @ 0x23778235200] frame P:1886 Avg QP:25.77 size: 4850 [libx264 @ 0x23778235200] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x23778235200] mb P I16..4: 11.4% 0.0% 0.0% P16..4: 57.4% 0.0% 0.0% 0.0% 0.0% skip:31.2% [libx264 @ 0x23778235200] coded y,uvDC,uvAC intra: 32.7% 47.9% 23.2% inter: 42.8% 33.8% 13.0% [libx264 @ 0x23778235200] i16 v,h,dc,p: 43% 21% 20% 16% [libx264 @ 0x23778235200] i8c dc,h,v,p: 48% 21% 22% 9% [libx264 @ 0x23778235200] kb/s:1168.55 [AVIOContext @ 0x237781a1300] Statistics: 0 bytes written, 0 seeks, 0 writeouts [in#0/mpeg @ 0x23778090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/1d/f7/1df798a8-99b0-45d9-8dbd-902c73c17154.MPG): [in#0/mpeg @ 0x23778090280] Input stream #0:0 (audio): 3 packets read (65013 bytes); 0 frames decoded; 1 decode errors (0 samples); [in#0/mpeg @ 0x23778090280] Input stream #0:1 (video): 1894 packets read (11838890 bytes); 1894 frames decoded; 0 decode errors; [in#0/mpeg @ 0x23778090280] Total: 1897 packets (11903903 bytes) demuxed [AVIOContext @ 0x237781a02c0] Statistics: 14868925 bytes read, 3 seeks Conversion failed! [Nest] 7 - 01/29/2025, 6:54:11 PM ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed! [Nest] 7 - 01/29/2025, 6:54:13 PM LOG [Microservices:MediaService] Transcoding video 21cc6903-9174-4989-9fec-284567bdc89d without hardware acceleration [Nest] 7 - 01/29/2025, 6:54:13 PM ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers built with gcc 12 (Debian 12.2.0-14) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [mpeg @ 0x2850c180180] max_analyze_duration 7000000 reached at 7003500 microseconds st:3 [mpeg @ 0x2850c180180] start time for stream 0 is not set in estimate_timings_from_pts [mpeg @ 0x2850c180180] start time for stream 1 is not set in estimate_timings_from_pts [mpeg @ 0x2850c180180] stream 0 : no TS found at start of file, duration not set [mpeg @ 0x2850c180180] stream 1 : no TS found at start of file, duration not set [mpeg @ 0x2850c180180] Could not find codec parameters for stream 0 (Audio: dts, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [mpeg @ 0x2850c180180] Could not find codec parameters for stream 1 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpeg, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/5c/14/5c14bc71-8b3c-4413-8732-4f1bf986c5e1.MPG': Duration: 00:02:10.82, start: 0.122878, bitrate: 1609 kb/s Stream #0:0[0x8b]: Audio: dts, 0 channels Stream #0:1[0x85]: Audio: ac3, 0 channels Stream #0:2[0x1e0]: Video: mpeg1video, 1 reference frame, yuv420p(tv, progressive, center), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 29.97 fps, 59.94 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 327680 vbv_delay: N/A Stream #0:3[0x1c0]: Audio: mp1, 44100 Hz, mono, s16p, 96 kb/s [out#0/mp4 @ 0x2850c090d80] Adding streams from explicit maps... [vost#0:0 @ 0x2850c180480] Matched encoder 'libx264' for codec 'h264'. [vost#0:0/libx264 @ 0x2850c180480] Created video stream from input stream 0:2 [aost#0:1/aac @ 0x2850c180a80] Created audio stream from input stream 0:0 Stream mapping: Stream #0:2 -> #0:0 (mpeg1video (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (dts (dca) -> aac (native)) [vost#0:0/libx264 @ 0x2850c180480] Starting thread... [aost#0:1/aac @ 0x2850c180a80] Starting thread... [vf#0:0 @ 0x2850c160440] Starting thread... [af#0:1 @ 0x2850c127ac0] Starting thread... [vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Starting thread... [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Starting thread... [in#0/mpeg @ 0x2850c090280] Starting thread... Press [q] to stop, [?] for help [graph 0 input from stream 0:2 @ 0x2851a050300] w:320 h:240 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 csp:unknown range:tv [graph 0 input from stream 0:2 @ 0x2851a050300] video frame properties congruent with link at pts_time: 0 [libx264 @ 0x2850c050580] using SAR=1/1 [libx264 @ 0x2850c050580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x2850c050580] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit [libx264 @ 0x2850c050580] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 [in#0/mpeg @ 0x2850c090280] EOF while reading input [in#0/mpeg @ 0x2850c090280] Terminating thread with return code 0 (success) [dca @ 0x2850c051d80] Not a valid DCA frame [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Error submitting packet to decoder: Invalid data found when processing input [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decoder thread received EOF packet [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decoder returned EOF, finishing [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Decode error rate 1 exceeds maximum 0.666667 [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Task finished with error code: -1145393733 (Error number -1145393733 occurred) [aist#0:0/dts @ 0x2850c140a80] [dec:dca @ 0x2850c1a0f40] Terminating thread with return code -1145393733 (Error number -1145393733 occurred) Cannot determine format of input 0:0 after EOF [af#0:1 @ 0x2850c127ac0] Task finished with error code: -1094995529 (Invalid data found when processing input) [af#0:1 @ 0x2850c127ac0] Terminating thread with return code -1094995529 (Invalid data found when processing input) [vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Decoder thread received EOF packet [vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Decoder returned EOF, finishing [vist#0:2/mpeg1video @ 0x2850c140d80] [dec:mpeg1video @ 0x2850c140300] Terminating thread with return code 0 (success) [vf#0:0 @ 0x2850c160440] Filtergraph returned EOF, finishing [vf#0:0 @ 0x2850c160440] All consumers returned EOF [vost#0:0/libx264 @ 0x2850c180480] Encoder thread received EOF [aost#0:1/aac @ 0x2850c180a80] Encoder thread received EOF [aost#0:1/aac @ 0x2850c180a80] Could not open encoder before EOF [aost#0:1/aac @ 0x2850c180a80] Task finished with error code: -22 (Invalid argument) [aost#0:1/aac @ 0x2850c180a80] Terminating thread with return code -22 (Invalid argument) [vf#0:0 @ 0x2850c160440] Terminating thread with return code 0 (success) [vost#0:0/libx264 @ 0x2850c180480] Terminating thread with return code 0 (success) [out#0/mp4 @ 0x2850c090d80] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=-1.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A [libx264 @ 0x2850c050580] frame I:16 Avg QP:22.69 size: 15891 [libx264 @ 0x2850c050580] frame P:3906 Avg QP:25.74 size: 5804 [libx264 @ 0x2850c050580] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x2850c050580] mb P I16..4: 8.0% 0.0% 0.0% P16..4: 81.9% 0.0% 0.0% 0.0% 0.0% skip:10.1% [libx264 @ 0x2850c050580] coded y,uvDC,uvAC intra: 59.5% 60.2% 32.3% inter: 63.0% 46.6% 18.2% [libx264 @ 0x2850c050580] i16 v,h,dc,p: 34% 21% 26% 19% [libx264 @ 0x2850c050580] i8c dc,h,v,p: 45% 22% 25% 9% [libx264 @ 0x2850c050580] kb/s:1401.52 [AVIOContext @ 0x2850c1a11c0] Statistics: 0 bytes written, 0 seeks, 0 writeouts [in#0/mpeg @ 0x2850c090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/5c/14/5c14bc71-8b3c-4413-8732-4f1bf986c5e1.MPG): [in#0/mpeg @ 0x2850c090280] Input stream #0:0 (audio): 1 packets read (65013 bytes); 0 frames decoded; 1 decode errors (0 samples); [in#0/mpeg @ 0x2850c090280] Input stream #0:2 (video): 3922 packets read (24517740 bytes); 3922 frames decoded; 0 decode errors; [in#0/mpeg @ 0x2850c090280] Total: 3923 packets (24582753 bytes) demuxed [AVIOContext @ 0x2850c1a02c0] Statistics: 28396376 bytes read, 3 seeks Conversion failed! [Nest] 7 - 01/29/2025, 6:54:13 PM ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 69: Conversion failed! [Nest] 7 - 01/29/2025, 6:54:13 PM ERROR [Microservices:MediaRepository] ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers built with gcc 12 (Debian 12.2.0-14) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --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. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [avi @ 0x3b1b0180180] parser not found for codec pcm_s16le, packets or times may be invalid. Last message repeated 1 times [avi @ 0x3b1b0180180] Could not find codec parameters for stream 0 (Video: mjpeg, 1 reference frame (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown, center), 640x480): unspecified pixel format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [aist#0:1/pcm_s16le @ 0x3b1b0140780] Guessed Channel Layout: mono Input #0, avi, from 'upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/10/a2/10a23d55-3a61-481d-89d1-be8426ff279f.AVI': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, 1 reference frame (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown, center), 640x480, 0.0002 fps, 0.0002 tbr, 0.0002 tbn Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s [out#0/mp4 @ 0x3b1b0090880] Adding streams from explicit maps... [vost#0:0 @ 0x3b1b0180480] Matched encoder 'libx264' for codec 'h264'. [vost#0:0/libx264 @ 0x3b1b0180480] Created video stream from input stream 0:0 [aost#0:1/copy @ 0x3b1b0180780] Created audio stream from input stream 0:1 Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) [vost#0:0/libx264 @ 0x3b1b0180480] Starting thread... [vf#0:0 @ 0x3b1b0160280] Starting thread... [vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Starting thread... [in#0/avi @ 0x3b1b0090280] Starting thread... Press [q] to stop, [?] for help [in#0/avi @ 0x3b1b0090280] EOF while reading input [in#0/avi @ 0x3b1b0090280] Terminating thread with return code 0 (success) [vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Decoder thread received EOF packet [vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Decoder returned EOF, finishing [vist#0:0/mjpeg @ 0x3b1b0140600] [dec:mjpeg @ 0x3b1b0140900] Terminating thread with return code 0 (success) Cannot determine format of input 0:0 after EOF [vf#0:0 @ 0x3b1b0160280] Task finished with error code: -1094995529 (Invalid data found when processing input) [vf#0:0 @ 0x3b1b0160280] Terminating thread with return code -1094995529 (Invalid data found when processing input) [vost#0:0/libx264 @ 0x3b1b0180480] Encoder thread received EOF [vost#0:0/libx264 @ 0x3b1b0180480] Could not open encoder before EOF [vost#0:0/libx264 @ 0x3b1b0180480] Task finished with error code: -22 (Invalid argument) [vost#0:0/libx264 @ 0x3b1b0180480] Terminating thread with return code -22 (Invalid argument) [out#0/mp4 @ 0x3b1b0090880] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A [AVIOContext @ 0x3b1b01a0e00] Statistics: 0 bytes written, 0 seeks, 0 writeouts [in#0/avi @ 0x3b1b0090280] Input file #0 (upload/upload/6ad81e37-d3bf-4170-8203-68451892e2a0/10/a2/10a23d55-3a61-481d-89d1-be8426ff279f.AVI): [in#0/avi @ 0x3b1b0090280] Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; 0 decode errors; [in#0/avi @ 0x3b1b0090280] Input stream #0:1 (audio): 1 packets read (932 bytes); [in#0/avi @ 0x3b1b0090280] Total: 1 packets (932 bytes) demuxed [AVIOContext @ 0x3b1b01a02c0] Statistics: 33732 bytes read, 0 seeks Conversion failed! [Nest] 7 - 01/29/2025, 6:54:13 PM ERROR [Microservices:MediaService] Error occurred during transcoding: ffmpeg exited with code 183: Conversion failed! ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Jan 29, 2025):

Invalid data found when processing input

These files are broken in some way, so the transcoding errors out and ends up skipping them.

@bo0tzz commented on GitHub (Jan 29, 2025): > Invalid data found when processing input These files are broken in some way, so the transcoding errors out and ends up skipping them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5277