Skip to main content
Topic: ffmpeg has started outputting yuvj420p not yuv420p (Read 65 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ffmpeg has started outputting yuvj420p not yuv420p

Code: [Select]
$ ffmpeg -i PC277219.AVI -c:v libx264 -crf 25 -pix_fmt yuv420p test.mp4
Input:
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 13891 kb/s, 30 fps, 30 tbr, 30 tbn

What it says it is making while encoding:
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(pc, bt470bg/unknown/unknown, progressive), 640x480, q=2-31, 30 fps, 1000k tbn

Output of ffmpeg -i test.mp4 on resulting video file:
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/unknown/unknown, progressive), 640x480, 1411 kb/s, 30 fps, 30 tbr, 1000k tbn (default)

ffmpeg -i on video that was made in the same way late summer or autumn 2024
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 640x480, 3346 kb/s, 30 fps, 30 tbr, 1000k tbn (default)

The intention of making a video yuv420p is that it's multiplatform compatible whereas if it's left as the original yuvj422p it may not play on some Windows machines, you have to allow for non-Linux users sometimes. As for the compatibility of yuvj420p, I have no idea, but I was surprised to see that after I had specifically told it to make something as yuv420p it then decided to make yuvj420p instead, and it didn't seem to do this before.

 

Re: ffmpeg has started outputting yuvj420p not yuv420p

Reply #1
after I had specifically told it to make something as yuv420p it then decided to make yuvj420p instead
I tried it, same here. But I don't really know much about color spaces. Maybe post this as a bug upstream? This is most likely not an Artix' fault.