Log in

View Full Version : Video encoded with HuffYUV has jumbled pixels


seggitek
22nd February 2022, 21:32
I've encoded a video using Sony Vegas and used the HuffYUV codec for rendering the video.

During the entire video the top 66% of the frame is jumbled with colored pixels. It looks like this:

https://thumbs2.imgbox.com/f1/d3/0tKPDLxn_t.jpg (https://imgbox.com/0tKPDLxn)

The bottom part of the video looks fine. Any ideas what could be causing this?

I remember once having this issue when the width or height of the frame was not a multiple of 4. But since this video has a resolution of 1280x720 this can't be the case here.

FranceBB
23rd February 2022, 02:03
I've encoded a video using Sony Vegas and used the HuffYUV codec for rendering the video.

Any particular reason why you used Sony Vegas as a decoder and as the program to call the installed huffyuv encoder? The error might be because of bit depth mismatch and I wouldn't be surprised given that the installable codec I think is stuck to 8bit planar only. If I were you, I would try to do the same thing but with FFMpeg instead as huffyuv Encoder. Oh and instead of the old 8bit huffyuv, try to call ffvhuff which is the "new" high bit depth aware (up to 16bit planar) version. I'm sure the problem will go away. ;)

jpsdr
23rd February 2022, 18:58
If you want free lossless codec, you should try UTVideo. I used, once, a lot of years ago HuffYUV, but i strongly suggest you switch to UTVideo (or MagicYUV).

seggitek
3rd March 2022, 21:36
Sorry, I forgot to report back. Thanks for your replies. I switched to FFV1 and the error doesn't show up with that codec.