ColorBars
Raffriff42 (Talk | contribs) m (category source filters) |
Raffriff42 (Talk | contribs) m (add images) |
||
Line 2: | Line 2: | ||
'''ColorBars''' produces a video clip containing SMPTE color bars (Rec. ITU-R BT.801-1) scaled to any image size. | '''ColorBars''' produces a video clip containing SMPTE color bars (Rec. ITU-R BT.801-1) scaled to any image size. | ||
+ | |||
+ | [[File:SMPTE_Color_Bars-320x240.png]] | ||
:By default, a clip is produced of 640x480, RGB32 (alpha channel opaque), 29.97 fps, 1 hour long. | :By default, a clip is produced of 640x480, RGB32 (alpha channel opaque), 29.97 fps, 1 hour long. | ||
:''pixel_type'' may be any of the following: "YUY2" (v2.56), "YV12" (v2.56), "YV24" (v2.60), or (default) "RGB32". | :''pixel_type'' may be any of the following: "YUY2" (v2.56), "YV12" (v2.56), "YV24" (v2.60), or (default) "RGB32". | ||
+ | |||
'''ColorBarsHD''' (added in v2.60) produces a video clip containing SMPTE (Rec. ITU-R BT.709 / [http://www.arib.or.jp/english/html/overview/img/arib_std-b28v1.0_e.pdf arib std b28 v1.0]) color bars, scaled to any image size. | '''ColorBarsHD''' (added in v2.60) produces a video clip containing SMPTE (Rec. ITU-R BT.709 / [http://www.arib.or.jp/english/html/overview/img/arib_std-b28v1.0_e.pdf arib std b28 v1.0]) color bars, scaled to any image size. | ||
+ | |||
+ | [[File:SMPTE_Color_Bars16x9-320x180.png]] | ||
:By default, a clip is produced of 1288x720, YV24, TV range (see above), 29.97 fps, 1 hour long. | :By default, a clip is produced of 1288x720, YV24, TV range (see above), 29.97 fps, 1 hour long. | ||
:''pixel_type'' must be "YV24". | :''pixel_type'' must be "YV24". | ||
+ | |||
For both filters, in all color formats, luminance levels are [[Luminance_levels#What_are_luminance_levels.3F|TV range]], where 0 IRE "black"=16 and 100 IRE "white"=235, within a total possible range of 0-255. | For both filters, in all color formats, luminance levels are [[Luminance_levels#What_are_luminance_levels.3F|TV range]], where 0 IRE "black"=16 and 100 IRE "white"=235, within a total possible range of 0-255. |
Revision as of 03:25, 12 April 2015
ColorBars([int width] [, int height] [, string pixel_type])
ColorBarsHD([int width] [, int height] [, string pixel_type])
ColorBars produces a video clip containing SMPTE color bars (Rec. ITU-R BT.801-1) scaled to any image size.
- By default, a clip is produced of 640x480, RGB32 (alpha channel opaque), 29.97 fps, 1 hour long.
- pixel_type may be any of the following: "YUY2" (v2.56), "YV12" (v2.56), "YV24" (v2.60), or (default) "RGB32".
ColorBarsHD (added in v2.60) produces a video clip containing SMPTE (Rec. ITU-R BT.709 / arib std b28 v1.0) color bars, scaled to any image size.
- By default, a clip is produced of 1288x720, YV24, TV range (see above), 29.97 fps, 1 hour long.
- pixel_type must be "YV24".
For both filters, in all color formats, luminance levels are TV range, where 0 IRE "black"=16 and 100 IRE "white"=235, within a total possible range of 0-255.
The pluge (see below) goes to -4 IRE; 'blacker than black'.
For both filters, an audio tone is also generated. Test tone is a 440Hz sine at 48KHz, 16 bit, stereo. The tone pulses in the RIGHT speaker, being turned on and off once every second. Level is 0 dBFS (wikipedia).
Note, that for example
ColorBars(pixel_type="YUY2")
is equivalent to
ColorBars(pixel_type="RGB32") ConvertToYUY2(matrix="PC.601") # "PC.xxx" doesn't scale the luma range
When directly generating YUV format data the color transitions are arranged to occur on a chroma aligned boundary.
pluge
The lower part of ColorBars is called the pluge (wikipedia). From left to right it consists of: -I, white, +Q, black, -4/0/+4 IRE levels and black. The -4/0/4 IRE levels can be used to set the brightness correctly. The -4 IRE and 0 IRE should have the same brightness, and the +4 IRE should be a little brighter than -4/0 IRE. The -I/+Q levels are not really interesting, since they are not used anymore for NTSC (analog TV), but they were used to set the chrominance correctly. More information about the colorbars and the pluge can be found on the ColorBars_theory page.
Changes:
v2.56 | Added pixel_type="YUY2"/"YV12". |
v2.60 |
|