I
Immich•3d ago
Chaos

Video Transcoding education

I feel I don't understand this feature enough, even after reading the docs. I'm using default settings for transcoding (required) I think, just changed it to VP9. I have 3500 files in encoded-video, which surprises me as it's like all videos were transcoded for some reason. They all come from Google Photos, from diff cameras etc, and never had any issues playing any. - When uploaded, do original videos get saved in the library, or in /encoded-video? - Am I losing the original file when it's transcoded? - Why is the default target resolution so low (720p)? I know I can increase it, but are people ok in general with their 4K videos to be reduced so much? Maybe I don't understand properly what's the purpose of this. I can't currently check in-server as I'm taking my first huge backup to the cloud (3 days and ongoing). Thanks!
18 Replies
Immich
Immich•3d ago
:wave: Hey @Chaos, 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. :ballot_box_with_check: uploaded the relevant information (see below). 7. :blue_square: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Xiticks
Xiticks•3d ago
1) The videos are saved in the upload folder, or the library folder if you have enabled the storage template The encoded-video only contains the videos that have been transcoded 2) No you don't loose the original when transcoded (as they're in the upload or library folder) 3) I can't tell exactly the reason behind 720p, but it is probably to save space as it is a "duplicate" of the original only created to be read on a lot of devices. The default settings used by Immich aimed to make your videos compatible with the widest range of device. But you could change the transcodes preferences so it does not transcode most of your videos, but only the few that you know won't work on your devices As for backing up to the cloud, you could save space by not backing up the encoded-video and the thumbs folder, as they can be regenerated by Immich
Chaos
ChaosOP•3d ago
Thank you so much. This clarifies a lot. So basically they're duplicates only created to be served as a more compatible version, right? Similar to thumbnails (for quicker load) but for compatibility? In that case, serving a smaller version makes sense, as it's a small sacrifice. But you're not losing the original and you can see it in compatible devices, right? Once I get access to the server I'll dive into finding out why so many were transcoded then, as it doesn't seem normal.
Chaos
ChaosOP•3d ago
yeah, I think I'll tweak the backup to exclude the encoded videos at least, as they're basically half the backup size, and not necessary.
No description
Xiticks
Xiticks•3d ago
Yes that is kind of the same idea as thumbnails However I don't think you can see the original on compatible devices (unlike thumbs where you can choose to load the original file when you click on the image), but if you download the video, you will download the full quality one, not the transcoded version. So this means, but I would have to double check that you'll most of the time see 720p videos
Chaos
ChaosOP•3d ago
hmm, that's a bit worse. I'd hoped it'd only server the "downscaled" version when needed, and otherwise the better one
Xiticks
Xiticks•3d ago
Well I stand corrected On mobile settings -> asset viewer, you can enable "force original video" On web I don't think it is possible though There is https://my.immich.app/user-settings?isOpen=app-settings where you can select to display original photos, but not video
Chaos
ChaosOP•3d ago
yeah, but it's a "dumb" setting. As in, it's manually chosen. Ideally you'd want to server a format based on the player capabilities. Similar to how it happens in web browsers with images. If compatible, they server webp, and if not, then png/jpg good to know though, thanks
Xiticks
Xiticks•3d ago
Maybe this will come one day, there is also mention of "live" transcoding (like Immich or Plex) which could be done in the future, but I don't know if that will be done
Chaos
ChaosOP•3d ago
nice, will look forward to that man, this clarification alone helped cut the backup size by 50%. Such a relief. 😂
Xiticks
Xiticks•3d ago
Yeah when you mentionned you were doing a backup I knew I had to tell to excludes these 2 folders (40gb of thumbs is also a lot) SHould save you some money
Chaos
ChaosOP•3d ago
idk, thumbs are done by default and a set size, right? I don't think I did anything with that.
Xiticks
Xiticks•3d ago
No but I meant that you don't need to backup thumbs either, if you loose them, as long as you have the originals they can be regenerated
Chaos
ChaosOP•3d ago
yeah I get that. I meant that I'm not sure why it's so big as you said
Xiticks
Xiticks•3d ago
That's is not necessarily that big (you can change some setting to gain space) but 40gb for a library of 300 gb, is I think "ok"
Chaos
ChaosOP•3d ago
oh ok, I got confused with your "40gb of thumbs is also a lot" but it's fine then
Xiticks
Xiticks•3d ago
Yeah I meant it is a lot wasted space for your backup Sorry I should have explained this in a better way
Chaos
ChaosOP•3d ago
no prob, it's been very helpful

Did you find this page helpful?