

You can use the format filter, or the legacy -pixfmt option, to set the pixel format. In ffmpeg yuv420p is called a pixel format. yuv420p is a chroma subsampling scheme, and the p stands for planar, not progressive. A profile defines the kind of methods that an encoder can use to generate streams and also a set of methods that a. indicates that the input stream codec is H.264 and the stream profile is Constrained Baseline.

Stream 0:0: Video: h264 (Constrained Baseline), yuv420p(progressive). Stream 0:0: Video: h264 (Main), yuv420p (progressive), 352x192, 29.97 tbr, 90k tbn, 180k tbc But then i changed to a newer camera, which has these parameters: Stream 0:0: Video: h264 (High), yuvj420p (pc, bt709, progressive), 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc My C++ program uses OpenCV3 to process the stream.

Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), gbrp(tv, gbr/unknown/unknown), 636x360, 928 kb/s, 27.05 fps, 27.05 tbr, 13524 tbn, 54. Use yuv420p There is no such thing as yuv480p or yuv720p because it is not tied to the video height. 'h264(constrained)' usually seen in the input file dump e.g. ffmpeg -y -i output.mp4 -c:v libx264rgb output264.mp4.
