Сегодняшний вечер был посвящён кодированию видео.

1. Конвертируем H264 .mp4 в ,yuv
2. Кодируем .yuv в AV1 .mkv

Итог:

Было - Danmachi_1080p_30s.mp4 - 193.7 MiB
Получил - Danmachi_1080p_30s.yuv - 4.2 GiB
Результат - Danmachi_1080p_30s.mkv - 4.2 MiB

Затрата времени на ролик длиной 30 секунд - 4-5 минут.

Считаю это победой.

#H264 #MP4 #YUV #AV1 #MKV
is the #multimedia field so small or why can’t you find anything/much about #V4L2 #YUV and related topics?

I also tried turning the comparison function around, such that it looks for the furthest colour instead of the closest one, which also resulted in some interesting patterns.

#programming #development #cplusplus #cpp #cpp20 #immediate2d #rgb #hsv #yuv #art #pixelart #rainbow #noise #gamedev #opengl #math #mathematics

I was experimenting with colour distances at work today. I need to find out how similar two colours are, so I wrote a little test program and it was surprisingly pretty.

The algorithm is simple:

1. Fill the canvas with random colours.
2. Set the first pixel (top left) to red.
3. For all pixels, find the most similar pixel and move it next to the current pixel.

To determine the similarity, I calculated the 3D distance in the RGB, HSV and YUV color spaces, which brought very different results. Now, it's quite possible that my HSV and YUV conversion functions were just broken, but that's okay.

(I recommend zooming in!)

#programming #development #cplusplus #cpp #cpp20 #immediate2d #rgb #hsv #yuv #art #pixelart #rainbow #noise #gamedev #opengl #math #mathematics

🎮 YUV is not RGB
YUV (Component) signifie Luminance (Y), Luminance Bleue (U), Luminance rouge (V), ce n'est pas une norme, mais un espace colorimétrique tous comme le RGB (RVB) d'ailleurs.
Y est la composante de Luminance ou "luminosité" (niveaux de gris) (ou l'image
en noir et blanc).
U est la valeur de Luminance bleue, avec un facteur d'échelle appliquée.
V est la valeur de Luminance rouge, avec un facteur d'échelle appliquée. #YUV

"What idiot designed this?"

A history of video standards, from its origin to now, as told from a US point of view.

https://www.youtube.com/watch?v=s661CU6Fvl4

#video #YUV #NTSC #ATSC

What Idiot Designed This?! [Keynote by Matt Szatmary at Demuxed 2015]

YouTube