r/AskComputerScience • u/WonderOlymp2 • Feb 03 '26
ELI5: Why does re-encoding vidoes take an extremely long time?
Why does it take a very long time?
1
Upvotes
r/AskComputerScience • u/WonderOlymp2 • Feb 03 '26
Why does it take a very long time?
View all comments
17
u/two_three_five_eigth Feb 03 '26 edited Feb 03 '26
Each frame is a lot of data
2k = 2560x1440 pixels = 3686400 pixels
4k = 3840x2160 pixels = 8292400 pixels
So per frame the computer has to recompute many millions of pixels on top of whatever else the encoding does.
And the point of encoding is usually to save space at the cost of significant up-front computing, none of the algorithms were designed to encode fast, many were designed to decode fast.