[Feature] Do not transcode videos with certain audio codecs #10955
Replies: 3 comments 7 replies
-
I think someone else mentioned pcm as well. I'm fine with adding that as an accepted audio codec. In the meantime, if you know you don't need transcoding, you can disable it in the transcode policy. We do plan to add realtime transcoding at some point, but there's a lot that needs to happen for that. |
Beta Was this translation helpful? Give feedback.
-
That would be really great if you could add it! Yes, I am aware of disabling transcoding altogether. The thing is that I also have several old mpeg's that need to be transcoded, otherwise that will not be played on mobile. Real-time transcoding would be awesome! I will be watching the roadmap ;) Thanks for your great work. |
Beta Was this translation helpful? Give feedback.
-
Based on this post, it seems PCM support for MP4 is fairly new. I'm not sure if FFmpeg implemented this yet. I can't promise that we can implement this given that, but I'll give it a test. |
Beta Was this translation helpful? Give feedback.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
Loving Immich thus far! There is however one issue that I cannot fix/solve, and that is that Immich wants to transcode almost all of my video's in my main external library (1.4TB large...). Since I do not have a spare 1.4TB SSD to store these I need another solution. I did some digging and this is what I found:
Getting the asset ID info:
Transcode log:
Seems that Immich copies over the video stream (since that is in H264, and therefore fine), but transcodes the audio stream. Please note that I set AAC, MP3 and Opus as 'accepted audio codecs' in the settings (to prevent transcoding of those).
If I then look at the ffprobe output of the original and transcodes file I get:
And the transcoded one:
To me it seem like Immich wants to transcode this file because of the audio codec. From:
to:
These videos are shot on a Canon EOS 550d. And I have many, many videos from that camera.
Would it be possible to, either:
Such that the videos with the above audio codec is not transcoded?
Add an option that prevents transcoding of videos with a mis-matching audio codec all together
Add an option (ultimate solution) that real-time transcodes videos. Like Plex is doing. This might increase latency a bit, but with the benefit of not needing to transcode large amount of videos.
Platform
Beta Was this translation helpful? Give feedback.
All reactions