dragonflight/services/worker/src
ZGaetano 508e978fe5 fix(worker): route SVG (and other image assets) through the image-poster
path instead of failing the video transcode

Previously IMAGE_CODECS contained the raster ffprobe codec names ('png',
'mjpeg', 'jpeg', 'webp', 'gif', 'tiff', 'bmp', 'jpegls') but not 'svg'.
An SVG-as-asset (e.g. an architecture diagram dragged into a project) was
correctly tagged media_type='image' in the DB but ffprobe reported its
codec as 'svg', which fell through to the video branch, found
durationMs===null, and died with 'Empty or truncated source: codec=svg,
resolution=0x0'. That clogs the failed-jobs list with red rows that have
nothing to do with broken captures.

Two fixes here:

1) Add 'svg' to IMAGE_CODECS so the existing transcodeImage()/poster
   path handles it.

2) Also bail to the poster path when the asset row itself says
   media_type='image', even if ffprobe didn't return a codec name we
   recognize (defensive — catches future formats like AVIF without
   requiring an explicit catalog update).

Closes part of #13.
2026-05-23 10:26:59 -04:00
..
db add services/worker/src/db/client.js 2026-04-07 21:58:20 -04:00
edl add services/worker/src/edl/parser.js 2026-04-07 21:58:20 -04:00
ffmpeg feat: SDK deployment UI, proxy encoding global settings, S3 env fallback 2026-05-23 02:58:32 +00:00
s3 feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel 2026-05-22 19:12:53 -04:00
workers fix(worker): route SVG (and other image assets) through the image-poster 2026-05-23 10:26:59 -04:00
index.js feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel 2026-05-22 19:12:53 -04:00