Transcoding issues - ffmpeg exited with code 1
Transcoding settings:
No Hardware Acceleration - Just CPU
CRF = 23
Preset = Slow
Audio codec = aac
Video = h264
Max bitrate = 4500k
Tone mapping = Habble
Two-pass encoding: Enabled/Disabled (problem described below)
No issues when two-pass encoding is disabled. Whenever I turn on two-pass encoding, I get the 'Error: ffmpg exited with code 1 issue'. With my minimal understanding of the log, looks like the transcoding works fine, but the thumbnail generation after the transcoding fails? Not sure.
Is it something with my configuration? Should I not be enabling two-pass encoding with the rest of the settings I have above?
Note: I did raise an issue on GitHub, but I thought Discord could be the preferred medium for questions and issues.

4 Replies
hmm, i think it's applying that setting to the thumbnail job when it shouldn't. should be a simple fix.
should be fixed with https://github.com/immich-app/immich/pull/4258
GitHub
fix(server): always disable two-pass mode for video thumbnails by m...
Description
This is a fix for a regression where video thumbnails can be called with two-pass mode, leading to errors. There's no point in two-pass mode here so it should always be set to false...
That was quick! Thank you very much.
fix merged, will be in next release