r/AskComputerScience • • Feb 03 '26

ELI5: Why does re-encoding vidoes take an extremely long time?

Why does it take a very long time?

1 Upvotes

25 comments sorted by

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.

1

u/Somniferus Feb 08 '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

All of this is completely irrelevant to OP's question. Encoding is harder than decoding at any resolution. /u/OutsideTheSocialLoop's answer is much better than this one.

-3

u/Somniferus Feb 03 '26 edited Feb 03 '26

1440p isn't 2k, you're thinking of 1920x1080. ~2 million pixels/frame is already large enough for the purposes of this example, why make it more complicated?

If you want to make up a name for 1440p that ends in K then 3K would be closer and more clear.

2K = 1080p = ~2M pixels

3K = 1440p = ~4M pixels

4k = 2160p = ~8M pixels.

The number of people on this sub who apparently think 1080p and 1440p are basically the same thing is concerning.

2

u/two_three_five_eigth Feb 03 '26

Both of those actually count as “2k”. Used the larger one.

-3

u/Somniferus Feb 03 '26 edited Feb 03 '26

According to who?

Edit: I don't understand this new trend of people downvoting facts. If you disagree then cite a source, I'm willing to have my mind changed.

1

u/EnderAvni Feb 04 '26

https://en.wikipedia.org/wiki/1440p says it's used in consumer products

-1

u/Somniferus Feb 04 '26 edited Feb 04 '26

The label "2K" is sometimes used to refer to 2560 × 1440 (commonly known as 1440p). This is inconsistent with "4K" denoting approximately 4,000 horizontal pixels, which makes 1920 or 2048 pixels wide the closest to "2K", a label which predates the use of 2560 × 1440.[14][15] Some sources and manufacturers prefer "2.5K" as a term for 2560 × 1440[16] to avoid this confusion,

Thank you for trying! I don't find "The marketing department once used a confusing term" a very convincing argument.

1

u/Poddster Feb 05 '26

 I don't find "The marketing department once used a confusing term" a very convincing argument.

You're about to have a great shock when you find out why the term 4k exists.

-1

u/Somniferus Feb 05 '26 edited Feb 05 '26

The term "4K" is generic and refers to any resolution with a horizontal pixel count of approximately 4,000

What am I missing? 3840 ~ 4K. 1920 ~ 2K. Blu-Ray discs come in both of those resolutions, so in the context of video encoding they are both infinitely more popular than 1440p.

When have you ever heard of anyone encoding video to 1440p?

0

u/Poddster Feb 05 '26

What am I missing?

4k, 2k, HD, FHD -- these are all ill-defined terms created by marketing teams.

1920 ~ 2K.

Some source don't consider 1080p to be 2k, e.g. cinema formats.

Again: These are all ill-defined marketing terms, so I have no idea why you're saying it's ok some marketing departments to claim 1080p is 2k, but it's not ok for them to claim 1440p is 2k.

0

u/Somniferus Feb 05 '26 edited Feb 07 '26

4k, 2k, HD, FHD -- these are all ill-defined terms created by marketing teams.

I agree. The top reply in Ask Computer Science ought to use better terminology.

Some source don't consider 1080p to be 2k, e.g. cinema formats.

Who cares? The question was about video encoding. We're not talking about movie projectors. Literally no one is re-encoding videos to 1440p, its a bad example for the purposes of answering the original question.

→ More replies