immich/server/src/utils
patrickgoering 1ca46fbd98
fix: video thumbnail generation for short videos (#20629)
fix video thumbnail generation for short videos

ffmpeg gives conversion failed with error 234 for short mp4 files (less
than 10s) that where converted from m2ts. Longer videos work fine.

It looks like ffmpeg has no frames left to use for generating a
thumbnail.

This change fixes this issue and seems to not change the behaviour for
other mp4 files (same thumbnail before and after change)

This might also fix all mts file thumbnail generation.
2025-08-06 13:10:49 +00:00
..
access.ts feat!: more permissions (#20250) 2025-07-25 15:25:23 -04:00
asset.util.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
bytes.ts feat(server): lighter buckets (#17831) 2025-05-19 16:40:48 -05:00
config.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
database.spec.ts refactor: database connection parsing (#17852) 2025-04-24 12:58:29 -04:00
database.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
date.ts fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
file.ts feat!: absolute file paths (#19995) 2025-07-18 10:57:29 -04:00
lifecycle.ts refactor(server): version logic (#9615) 2024-05-20 20:31:36 -04:00
logger.ts feat: schema diff sql tools (#17116) 2025-03-28 10:40:09 -04:00
media.ts fix: video thumbnail generation for short videos (#20629) 2025-08-06 13:10:49 +00:00
mime-types.spec.ts feat: sync pictureFile with oidc if it isn't set already (#17397) 2025-04-11 13:00:39 -05:00
mime-types.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
misc.spec.ts feat(server): library refresh go brrr (#14456) 2025-03-06 16:00:18 +01:00
misc.ts feat: better endpoint descriptions (#20439) 2025-07-30 13:29:36 -03:00
object.ts fix(server): skip smtp validation if unchanged (#12111) 2024-08-29 14:10:09 -04:00
pagination.ts chore: remove unused types and code (#17999) 2025-04-30 13:41:23 -04:00
preferences.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
replace-template-tags.ts feat: Notification Email Templates (#13940) 2024-12-04 20:26:02 +00:00
request.ts feat: tags (#11980) 2024-08-29 12:14:03 -04:00
response.ts refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
set.ts refactor: infra folder (#8138) 2024-03-20 23:15:09 -04:00
sync.ts refactor: sync service (#19225) 2025-06-17 16:06:40 +00:00
tag.ts refactor: database types (#17468) 2025-04-08 12:40:03 -04:00