Closed ryanwinter closed 1 month ago
Hello, can you provide the settings of your video transcoding setup? Also, if you can provide a sample video so we can help reproduce, that would be helpful
Hello, can you provide the settings of your video transcoding setup? Also, if you can provide a sample video so we can help reproduce, that would be helpful
Hey Alex,
These are my current settings: CRF: 30 Preset: superfast Codec: hvec / aac Target resolution: 480p Max bitrate: 0 Tone mapping: Hable Two-pass: off HW accel: off
You can see the output settings in the log above, but here it is in an easier to consume format :)
{
"outputOptions": [
"-c:v hevc",
"-c:a copy",
"-movflags faststart",
"-fps_mode passthrough",
"-map 0:0",
"-strict unofficial",
"-map 0:1",
"-tag:v hvc1",
"-v verbose",
"-vf scale=480:-2,format=yuv420p",
"-preset superfast",
"-crf 30"
],
"twoPass": false
}
Let me see if I can find a sample video that doesnt contain any person information. Maybe I can just try recording some new videos. I'll try and attach something tomorrow.,
Something I noticed, is when I do an ffprobe --show_frames
I get the following:
color_range=tv
color_space=reserved
color_primaries=reserved
color_transfer=smpte170m
I assumed reserved
is not expected here? If I force the output color space with -colorspace smpte170m
or -colorspace unknown
at the ffmpeg command line, then it completes as expected.
Just update that I'm still looking into this. All new videos are encoding successfully, so now I'm wondering where the failing videos came from. Its possible they were an output from some editing program.
I am closing the issue, feel free to reopen when we find the reproducible steps
The bug
Transcoding is failing for many videos in my library (around 4000).
It appears that the video files is missing some Matrix coefficients needed by the x265 encoder.
The OS that Immich Server is running on
Ubuntu
Version of Immich Server
v1.115.0
Version of Immich Mobile App
v1.115.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response