u/Hot-Permission2495

Problem with non standard video resolutions in transcoding (FFmpeg) + my solution
▲ 5 r/ffmpeg+1 crossposts

Problem with non standard video resolutions in transcoding (FFmpeg) + my solution

I was working on video transcoding pipeline and I found a problem that keep coming again and again.

Some videos don’t have standard resolution (like 1920x1080 or 1280x720).
They can come from phones, screen record, user uploads, etc.

This causes problems like:

  • bad scaling in HLS/DASH
  • black bars or stretched video
  • ABR ladder not matching well
  • users can get confused when they see strange resolutions like 1344x756 or 1438x1072 (they think something is wrong)

I tried to solve this in a simple and practical way using FFmpeg.

I wrote everything here with examples and explanation:

https://medium.com/@youssefbennour/conquering-non-standard-resolutions-a-practical-guide-to-video-transcoding-fd06b78c8978

Maybe it can help someone working on video pipeline or streaming.

If anyone here already handled this in a better way, I’m curious to know.

u/Hot-Permission2495 — 8 days ago