umezawatakeshi / utvideo

Ut Video Codec Suite - fast lossless video codec
http://umezawatakeshi.github.io/utvideo/
GNU General Public License v2.0
288 stars 12 forks source link

New YUV color format? #41

Closed Davidtengler closed 2 years ago

Davidtengler commented 2 years ago

Hi Umezawatakeshi!

I have a capture device which only support YUV I420, however Ut video had to transform it in its internal format YV12. Right?

I used the Virtualdub2 software, however during the compression process the colors are reversed (like swap U and V channels)

Can you make an edit, which will automatically transform it to the right colors?

1000 Thanks!

Have a nice day!

Davidtengler commented 2 years ago

I420 seems an important format, because it is very common like the NV12 and YV12 colors

https://wiki.videolan.org/YUV

umezawatakeshi commented 2 years ago

Do you want just direct support of I420 by UtVideo, similar to those of YV12 and NV12 ?

umezawatakeshi commented 2 years ago

Reading your post, you seem to be saying that the color changes during the editing process. If that is the case, it is due to a bug in some other software and not something that should be addressed in UtVideo.

Davidtengler commented 2 years ago

Hello Umezawatakeshi!

I made some tests. I used virtualdub2 in Capture mode, even the uncompressed video swapped U and V if the input was I420. There was no problem with the colors if the input was NV12. Only the I420 had problems with all codecs. However when I enabled in the video menü the "enable filter chain" the colors become correct. I can't understand it, because NV12 don't need that option, it is always look correct.

I could solve the problem with that option. Thank you for your patience!

Davidtengler commented 2 years ago

But it is still strange, because the NV12 does not need the "enable filter chain" option in Virtualdub2, and the colors are always correct in the recorded video file.

Only the I420 source needed that Virtualdub post correction option....

So there is still something issue with that I420 sources