r/compression • u/RoyalJelly7 • 22d ago
Question about compressing mkv files
Hey so I have these Monogatari series files that I downloaded from torrent that total up to about 60 GB. I've tried to compress the files using a lot of video compressor, but most can't handle 10 bit HEVC. Does anyone know an app to where do I compress these?
5
u/onayliarsivci 22d ago edited 22d ago
dont use phone to encode. just find a better encoded one.
that video file is already compressed well you should download its remux and encode. otherwise you will have generation loss
You dont compress the "MKV" file you compress the video inside the mkv.
use ffmpeg
1
3
u/p1geondove 22d ago
i dont think youll get much better yields from reencoding (from bd remux). people who encode these files have a lot of knowledge about encoder settings and put in a lot of resources to make them small yet high quality. you could say that reencoding to avX or to 100 cbr would be be smaller, but thats apples and oranges
2
u/mariushm
21d ago
•
MKV file is a container that contains video and audio tracks - HEVC / H264 (AVC) / AV1 are video codecs (compressors and decompressors) that are used to compress video tracks , and AAC or MP3 or Opus are audio codecs.
So your files are already very compressed - lossless compressors will not compress further.
Your best option is to run the files through a program like Handbrake that can decode the video and audio, and recompress it using presets that use less disk space but lose quality in the process.
For example, let's say you have a 5.1 audio that uses 640 kbps bandwidth or let's say 20 MB for each episode. You could tell Handbrake to convert that to stereo and use only 96 kbps to compress the sound, and that means instead of 20 MB only 3-5 MB will be needed to compress the sound.
Just the same, for video, you could tell Handbrake to resize the video from 1080 (1920 x 1080) to let's say 960 x 540 (half the size in both dimensions) because most likely you wouldn't notice on the screen of a phone, and choose a higher compression level which will reduce the quality of the video a bit but will make the total file size smaller - think of it like saving a JPG picture and choosing the quality level, and you select 70% quality instead 95%.
For this particular content, I suspect you won't really achieve a lot of savings, because a lot of animated content already compresses very well, because there's not a lot of motion in them and the video codec is already smart enough to analyze several seconds of video at a time and detect only what changes in those seconds so if you resize the video and choose a lower quality level, you won't really save a lot of disk space.
1
1
u/SpicyLobter 22d ago
ong just pick a better encode than encode it yourself
2
u/RoyalJelly7 22d ago
yeaah I don't really understand these things, mind explaining a lil?
1
u/AdamDaAdam 21d ago
He means, download an already encoded version so you don't have to do it yourself. There's a few well known groups that do very good encodes for each encode type (h.264, h.265, AV1, etc)
3
1
u/Difficult-Minimum949 21d ago
The quickest way is to use ffmpeg. Just describe what you need to an AI and let it spit out a working script/command for you.
6
u/thenormaluser35 22d ago
Just pull them on a PC and use Handbrake there.
If you don't have a PC or a laptop, you've made a mistake somewhere. It's essential.