I
Immich2y ago
koyax

2-pass encoding fails on some media files. Single pass works fine.

I enabled 2-pass encoding for my video previews with h264 and realized, that for some assets the microservice failes with the following error message: This is testet with h264 and h265 videos as source.
[Nest] 8 - 06/30/2023, 1:23:21 PM LOG [MediaService] Start encoding video c72b957b-9fe4-4bad-8326-f905e57ee5a0 -vcodec h264,-acodec opus,-movflags faststart,-vf scale=720:-2,-preset fast,-threads 3,-x264-params "pools=none",-x264-params "frame-threads=3",-b:v 2483k,-minrate 1241.5k,-maxrate 3600k

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Unable to run job handler: Error: ffmpeg was killed with signal SIGSEGV

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Error: ffmpeg was killed with signal SIGSEGV

at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)

at ChildProcess.emit (node:events:513:28)

at ChildProcess._handle.onexit (node:internal/child_process:291:12)

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Object
[Nest] 8 - 06/30/2023, 1:23:21 PM LOG [MediaService] Start encoding video c72b957b-9fe4-4bad-8326-f905e57ee5a0 -vcodec h264,-acodec opus,-movflags faststart,-vf scale=720:-2,-preset fast,-threads 3,-x264-params "pools=none",-x264-params "frame-threads=3",-b:v 2483k,-minrate 1241.5k,-maxrate 3600k

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Unable to run job handler: Error: ffmpeg was killed with signal SIGSEGV

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Error: ffmpeg was killed with signal SIGSEGV

at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)

at ChildProcess.emit (node:events:513:28)

at ChildProcess._handle.onexit (node:internal/child_process:291:12)

[Nest] 8 - 06/30/2023, 1:23:22 PM ERROR [JobService] Object
3 Replies
Alex Tran
Alex Tran2y ago
Can you help opening an issue on GitHub so we can track? a reproducing steps would be great as well ❤️
koyax
koyaxOP2y ago
Yes, I'll create one.
koyax
koyaxOP2y ago
GitHub
[BUG] 2-Pass encoding fails for some videos · Issue #3049 · immich-...
The bug If I enable 2-pass encoding with h264, the encoding crashes for some of my assets. I get this error in the microservice: [Nest] 8 - 06/30/2023, 1:23:21 PM LOG [MediaService] Start encoding ...

Did you find this page helpful?