I
Immich•2w ago
BRO_OuafnicO

What codecs are supported by immich app?

Actually I've got to much space used by immich for encoded video (got almost 200GB of smartphones videos, and almost 200GB of immich encoded videos). Can you tell what codecs are supported by the android and ios app ? If it's related ? I would like to avoid to re-encode all my videos. Default parameters are for encoded all videos except H264. Thanks
18 Replies
Immich
Immich•2w ago
:wave: Hey @BRO_OuafnicO, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Xiticks
Xiticks•2w ago
Supported coded is by device Most modern phones should support HEVC (H265) IMO the default h264 is really conservative and I set everything to av1 but it's a personnal preference Changing the encode settings and running the job will only reencode the ones that do not respect the transcode policy you set and should/will delete the encoded-version that respect the policy
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
you only checked AV1 ?
Xiticks
Xiticks•2w ago
Not really, it's more "I accept everything that is lower or equal to the target resolution and in the listed codecs, otherwise transcode"
No description
Xiticks
Xiticks•2w ago
No description
Xiticks
Xiticks•2w ago
But it's really "my" preference as explained with the video codecs, you better use vp9 or h265 when you transcode (if you want more space perf) or keep h264
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
hum thanks I will try ...
Xiticks
Xiticks•2w ago
Well, what do you want to achieve in the end? There is probably a better solution for you
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
I don't think immich clean previous transcoded videos when the settings changes I just want to avoid the double size of my videos
Xiticks
Xiticks•2w ago
You have to rerun the transcode job on "all"
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
my encoded-video folder is almost same size than my uploads
Xiticks
Xiticks•2w ago
But you still want to be able to read videos that are stored only on Immich on your devices, right?
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
on web yes, on mobile, if possible actually uploads are 320GB, but encoded-videos 340GB... to much
Xiticks
Xiticks•2w ago
So yeah, most space efficent would be av1, but then there is less hardware support for it right now So i would either use vp9 or hevc As for target resolution, if you know you have "slow" internet speed, either upload speed where the immich server speed, or low donwload wherever the mobile/web access would be - e.g. cellular in the midlle of nowhere - or have capped bandwith; the lower the resolution will produce lower file size (but also worse quality) So you might need 720p or keep original quality For accepetec codec I would just uncheck av1, this way you allow the most compatibles one to don't be transcoded if not needed For audio and containers, I would suggest you to keep immich default checks, I don't remember what I changed in these and can't rememeber the reason
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
hum... many thanks for these details bandwith is not really a problem, and 90% of my videos are 1080p or 4K from smartphones. I guess I will try to let the original resolution. I'm checking if immich will clean the folder, or if I need to remove it all, and try again maybe one day S3 storage will be available, and I will be alble to push these encoded-videos somewhere else :p
Xiticks
Xiticks•2w ago
No problem, I'm not that good in this domain so it's my little knowledge, there are probably better things that can be set and someone else could give you better advice It's just what I would do But I know that most modern mobile should supprot hevc ant I think it can have around 40% of improvement on size encodinc just helps for cross compatibility but let's say you take videos on your iphone 15 and your samsung s24 Both should be able to read the video file of each other without a reencode needed
BRO_OuafnicO
BRO_OuafnicOOP•2w ago
I will see 😄
Mraedis
Mraedis•2w ago
Keep in mind that an unsupported audio codec will also create a whole new video @BRO_OuafnicO

Did you find this page helpful?