files/en-us/web/api/videoframe/format/index.md
{{APIRef("Web Codecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The format property of the {{domxref("VideoFrame")}} interface returns the pixel format of the VideoFrame.
A string containing a video pixel format, one of:
"I420"
"I420P10"
"I420P12"
"I420A"
"I422"
"I444"
"NV12"
"RGBA"
"RGBX"
"BGRA"
"BGRX"
The following example prints the format to the console.
console.log(VideoFrame.format);
{{Specifications}}
{{Compat}}