immich icon indicating copy to clipboard operation
immich copied to clipboard

Error while transcoding videos

Open krypton9208 opened this issue 7 months ago • 7 comments

The bug

2024-07-16T05:45:45.045017807Z [Nest] 7  - 07/16/2024, 7:45:45 AM   ERROR [Microservices:MediaRepository] ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
2024-07-16T05:45:45.045064422Z   built with gcc 12 (Debian 12.2.0-14)
2024-07-16T05:45:45.045074043Z   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 --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --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
2024-07-16T05:45:45.045106292Z   libavutil      58.  2.100 / 58.  2.100
2024-07-16T05:45:45.045115183Z   libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
2024-07-16T05:45:45.045130063Z   libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
2024-07-16T05:45:45.045153383Z   libswresample   4. 10.100 /  4. 10.100
2024-07-16T05:45:45.045160943Z   libpostproc    57.  1.100 / 57.  1.100
2024-07-16T05:45:45.045169059Z [h264 @ 0x305e21e0580] Reinit context to 1088x1920, pix_fmt: yuv420p
2024-07-16T05:45:45.045177175Z Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'upload/upload/51977439-e226-4222-8e09-b30a4908c647/c6/0a/c60a83ed-b2a3-4891-8a92-8b713fdf6f7d.mp4':
2024-07-16T05:45:45.045184833Z   Metadata:
2024-07-16T05:45:45.045192756Z     major_brand     : mp42
2024-07-16T05:45:45.045200566Z     minor_version   : 0
2024-07-16T05:45:45.045207956Z     compatible_brands: isommp42
2024-07-16T05:45:45.045216011Z     creation_time   : 1970-01-01T00:00:00.000000Z
2024-07-16T05:45:45.045223517Z   Duration: 00:00:04.37, start: 0.000000, bitrate: 3637 kb/s
2024-07-16T05:45:45.045231544Z   Stream #0:0[0x1](und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, progressive, left), 1080x1920 (1088x1920) [SAR 1:1 DAR 9:16], 3556 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
2024-07-16T05:45:45.045239004Z     Metadata:
      creation_time   : 1970-01-01T00:00:00.000000Z
2024-07-16T05:45:45.045253800Z       handler_name    : ISO Media file produced by Google Inc.
2024-07-16T05:45:45.045261305Z       vendor_id       : [0][0][0][0]
2024-07-16T05:45:45.045269057Z   Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
2024-07-16T05:45:45.045276522Z     Metadata:
2024-07-16T05:45:45.045284193Z       creation_time   : 1970-01-01T00:00:00.000000Z
      handler_name    : ISO Media file produced by Google Inc.
2024-07-16T05:45:45.045299476Z       vendor_id       : [0][0][0][0]
2024-07-16T05:45:45.045306835Z Stream mapping:
2024-07-16T05:45:45.045314595Z   Stream #0:0 -> #0:0 (h264 (native) -> webp (libwebp_anim))
2024-07-16T05:45:45.045322043Z Press [q] to stop, [?] for help
2024-07-16T05:45:45.045329603Z [h264 @ 0x305e21e1580] Reinit context to 1088x1920, pix_fmt: yuv420p
2024-07-16T05:45:45.045337126Z EOF in input file 0
Terminating demuxer thread 0
[Parsed_thumbnail_1 @ 0x305e2162f40] batch size: 12 frames
2024-07-16T05:45:45.045359249Z [Parsed_scale_5 @ 0x305e2121080] w:250 h:-2 flags:'lanczos+accurate_rnd+full_chroma_int' interl:0
2024-07-16T05:45:45.045366834Z [graph 0 input from stream 0:0 @ 0x305e2120d80] w:1080 h:1920 pixfmt:yuv420p tb:1/15360 fr:30/1 sar:1/1
2024-07-16T05:45:45.045381629Z [Parsed_fps_0 @ 0x305e2162e80] fps=12/1
2024-07-16T05:45:45.045390336Z [Parsed_scale_5 @ 0x305e2121080] w:1080 h:1920 fmt:yuv420p sar:1/1 -> w:250 h:444 fmt:yuv420p sar:999/1000 flags:0x00042200
2024-07-16T05:45:45.045397969Z [Parsed_fps_0 @ 0x305e2162e80] Set first pts to 49
Output #0, webp, to 'upload/thumbs/51977439-e226-4222-8e09-b30a4908c647/e4/e2/e4e23291-88fe-49a7-944a-6229ebe48b39-thumbnail.webp':
2024-07-16T05:45:45.045413100Z   Metadata:
2024-07-16T05:45:45.045420637Z     major_brand     : mp42
2024-07-16T05:45:45.045428147Z     minor_version   : 0
2024-07-16T05:45:45.045435688Z     compatible_brands: isommp42
2024-07-16T05:45:45.045443245Z     encoder         : Lavf60.3.100
2024-07-16T05:45:45.045450938Z   Stream #0:0(und): Video: webp, 1 reference frame, yuv420p, 250x444 (0x0) [SAR 999:1000 DAR 9:16], q=2-31, 200 kb/s, 12 fps, 1k tbn (default)
2024-07-16T05:45:45.045458548Z     Metadata:
2024-07-16T05:45:45.045466170Z       creation_time   : 1970-01-01T00:00:00.000000Z
2024-07-16T05:45:45.045473880Z       handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
2024-07-16T05:45:45.045489036Z       encoder         : Lavc60.3.100 libwebp_anim
2024-07-16T05:45:45.045496629Z frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
2024-07-16T05:45:45.045504244Z No more output streams to write to, finishing.
2024-07-16T05:45:45.045511986Z [libwebp encoder @ 0x305e2180680] WebPAnimEncoderAssemble() failed with error: 1
[vost#0:0/libwebp_anim @ 0x305e2154080] Error submitting video frame to the encoder
[Parsed_fps_0 @ 0x305e2162e80] 2 frames in, 0 frames out; 2 frames dropped, 0 frames duplicated.
2024-07-16T05:45:45.045565335Z [out#0/webp @ 0x305e2160840] All streams finished
2024-07-16T05:45:45.045573005Z [out#0/webp @ 0x305e2160840] Terminating muxer thread
2024-07-16T05:45:45.045580589Z [AVIOContext @ 0x305e2180900] Statistics: 0 bytes written, 0 seeks, 0 writeouts
2024-07-16T05:45:45.045588232Z [AVIOContext @ 0x305e21802c0] Statistics: 1985124 bytes read, 0 seeks
2024-07-16T05:45:45.045595737Z Conversion failed!
2024-07-16T05:45:45.045603198Z 
2024-07-16T05:45:45.046178141Z [Nest] 7  - 07/16/2024, 7:45:45 AM   ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnail): Error: ffmpeg exited with code 1: Conversion failed!

[Nest] 7  - 07/16/2024, 7:45:45 AM   ERROR [Microservices:JobService] Error: ffmpeg exited with code 1: Conversion failed!

    at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
2024-07-16T05:45:45.046291550Z     at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

The OS that Immich Server is running on

helm

Version of Immich Server

v1.108.0

Version of Immich Mobile App

v1.108.0

Platform with the issue

  • [X] Server
  • [ ] Web
  • [ ] Mobile

Your docker-compose.yml content

normal

Your .env content

normal

Reproduction steps

1. Start video trancoding job
2. Show logs from pod.

Relevant log output

No response

Additional information

No response

krypton9208 avatar Jul 16 '24 05:07 krypton9208