aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/fate
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-04-13 11:18:59 -0300
committerJames Almer <jamrial@gmail.com>2016-04-13 11:37:14 -0300
commit33aa8a62219d07f77f11f38dd71c5999e0f8e242 (patch)
tree21d539d1e58d206b6f999cdf5b173732a60d8456 /tests/ref/fate
parent89ec4d46eedf0c4876d8942ff5616a40c2641af0 (diff)
downloadffmpeg-33aa8a62219d07f77f11f38dd71c5999e0f8e242.tar.gz
avformat/framecrc: enable new output
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/ref/fate')
-rw-r--r--tests/ref/fate/4xm-14
-rw-r--r--tests/ref/fate/4xm-24
-rw-r--r--tests/ref/fate/8bps8
-rw-r--r--tests/ref/fate/aasc4
-rw-r--r--tests/ref/fate/adpcm-4xm4
-rw-r--r--tests/ref/fate/adpcm-afc4
-rw-r--r--tests/ref/fate/adpcm-dtk4
-rw-r--r--tests/ref/fate/adpcm-ea-14
-rw-r--r--tests/ref/fate/adpcm-ea-24
-rw-r--r--tests/ref/fate/adpcm-ea-maxis-xa4
-rw-r--r--tests/ref/fate/adpcm-ea-r14
-rw-r--r--tests/ref/fate/adpcm-ima-amv4
-rw-r--r--tests/ref/fate/adpcm-ima-ea-eacs4
-rw-r--r--tests/ref/fate/adpcm-ima-ea-sead4
-rw-r--r--tests/ref/fate/adpcm-ima-smjpeg4
-rw-r--r--tests/ref/fate/adpcm-ima-ws4
-rw-r--r--tests/ref/fate/adpcm-ms-mono4
-rw-r--r--tests/ref/fate/adpcm-thp4
-rw-r--r--tests/ref/fate/adpcm-vima4
-rw-r--r--tests/ref/fate/adpcm-xa4
-rw-r--r--tests/ref/fate/aic4
-rw-r--r--tests/ref/fate/aic-oddsize4
-rw-r--r--tests/ref/fate/alg-mm4
-rw-r--r--tests/ref/fate/aliaspix-bgr4
-rw-r--r--tests/ref/fate/aliaspix-gray4
-rw-r--r--tests/ref/fate/amv4
-rw-r--r--tests/ref/fate/ansi4
-rw-r--r--tests/ref/fate/ansi2564
-rw-r--r--tests/ref/fate/armovie-escape1248
-rw-r--r--tests/ref/fate/armovie-escape1304
-rw-r--r--tests/ref/fate/asf-repldata4
-rw-r--r--tests/ref/fate/auravision-v14
-rw-r--r--tests/ref/fate/auravision-v24
-rw-r--r--tests/ref/fate/avio-direct4
-rw-r--r--tests/ref/fate/bethsoft-vid8
-rw-r--r--tests/ref/fate/bfi8
-rw-r--r--tests/ref/fate/bink-video-b4
-rw-r--r--tests/ref/fate/bink-video-f4
-rw-r--r--tests/ref/fate/bink-video-i4
-rw-r--r--tests/ref/fate/bmp-15bit4
-rw-r--r--tests/ref/fate/bmp-15bit-mask4
-rw-r--r--tests/ref/fate/bmp-16bit-mask4
-rw-r--r--tests/ref/fate/bmp-1bit4
-rw-r--r--tests/ref/fate/bmp-24bit4
-rw-r--r--tests/ref/fate/bmp-32bit4
-rw-r--r--tests/ref/fate/bmp-32bit-mask4
-rw-r--r--tests/ref/fate/bmp-4bit4
-rw-r--r--tests/ref/fate/bmp-4bit-os24
-rw-r--r--tests/ref/fate/bmp-8bit4
-rw-r--r--tests/ref/fate/bmp-8bit-os24
-rw-r--r--tests/ref/fate/bmp-rle44
-rw-r--r--tests/ref/fate/bmp-rle84
-rw-r--r--tests/ref/fate/bmpparser4
-rw-r--r--tests/ref/fate/bmv-audio4
-rw-r--r--tests/ref/fate/bmv-video4
-rw-r--r--tests/ref/fate/brenderpix-244
-rw-r--r--tests/ref/fate/brenderpix-5654
-rw-r--r--tests/ref/fate/brenderpix-defpal4
-rw-r--r--tests/ref/fate/brenderpix-intpal4
-rw-r--r--tests/ref/fate/brenderpix-y400a4
-rw-r--r--tests/ref/fate/canopus-cllc-argb4
-rw-r--r--tests/ref/fate/canopus-cllc-rgb4
-rw-r--r--tests/ref/fate/canopus-cllc-yuy2-noblock4
-rw-r--r--tests/ref/fate/canopus-hq_hqa-hq4
-rw-r--r--tests/ref/fate/canopus-hq_hqa-hqa4
-rw-r--r--tests/ref/fate/canopus-hq_hqa-inter4
-rw-r--r--tests/ref/fate/canopus-hqx4224
-rw-r--r--tests/ref/fate/canopus-hqx422a4
-rw-r--r--tests/ref/fate/cavs4
-rw-r--r--tests/ref/fate/cdgraphics4
-rw-r--r--tests/ref/fate/cdxl-bitline-ham64
-rw-r--r--tests/ref/fate/cdxl-demux8
-rw-r--r--tests/ref/fate/cdxl-ham64
-rw-r--r--tests/ref/fate/cdxl-ham84
-rw-r--r--tests/ref/fate/cdxl-pal84
-rw-r--r--tests/ref/fate/cdxl-pal8-small4
-rw-r--r--tests/ref/fate/cljr4
-rw-r--r--tests/ref/fate/corepng8
-rw-r--r--tests/ref/fate/creatureshock-avs8
-rw-r--r--tests/ref/fate/cscd4
-rw-r--r--tests/ref/fate/cvid-grayscale4
-rw-r--r--tests/ref/fate/cvid-palette4
-rw-r--r--tests/ref/fate/cvid-partial4
-rw-r--r--tests/ref/fate/cyberia-c938
-rw-r--r--tests/ref/fate/cyuv4
-rw-r--r--tests/ref/fate/d-cinema-demux4
-rw-r--r--tests/ref/fate/d-eavp6-demux8
-rw-r--r--tests/ref/fate/dds-argb4
-rw-r--r--tests/ref/fate/dds-argb-aexp4
-rw-r--r--tests/ref/fate/dds-dx10-bc14
-rw-r--r--tests/ref/fate/dds-dx10-bc1a4
-rw-r--r--tests/ref/fate/dds-dx10-bc24
-rw-r--r--tests/ref/fate/dds-dx10-bc34
-rw-r--r--tests/ref/fate/dds-dx10-bc44
-rw-r--r--tests/ref/fate/dds-dx10-bc54
-rw-r--r--tests/ref/fate/dds-dxt14
-rw-r--r--tests/ref/fate/dds-dxt1-normalmap4
-rw-r--r--tests/ref/fate/dds-dxt1a4
-rw-r--r--tests/ref/fate/dds-dxt24
-rw-r--r--tests/ref/fate/dds-dxt34
-rw-r--r--tests/ref/fate/dds-dxt44
-rw-r--r--tests/ref/fate/dds-dxt54
-rw-r--r--tests/ref/fate/dds-dxt5-aexp4
-rw-r--r--tests/ref/fate/dds-dxt5-normalmap4
-rw-r--r--tests/ref/fate/dds-dxt5-normalmap-ati4
-rw-r--r--tests/ref/fate/dds-dxt5-rbxg4
-rw-r--r--tests/ref/fate/dds-dxt5-rgxb4
-rw-r--r--tests/ref/fate/dds-dxt5-rxbg4
-rw-r--r--tests/ref/fate/dds-dxt5-rxgb4
-rw-r--r--tests/ref/fate/dds-dxt5-xgbr4
-rw-r--r--tests/ref/fate/dds-dxt5-xgxr4
-rw-r--r--tests/ref/fate/dds-dxt5-xrbg4
-rw-r--r--tests/ref/fate/dds-dxt5-ycocg4
-rw-r--r--tests/ref/fate/dds-dxt5-ycocg-scaled4
-rw-r--r--tests/ref/fate/dds-pal4
-rw-r--r--tests/ref/fate/dds-pal-ati4
-rw-r--r--tests/ref/fate/dds-rgb164
-rw-r--r--tests/ref/fate/dds-rgb244
-rw-r--r--tests/ref/fate/dds-rgba4
-rw-r--r--tests/ref/fate/dds-rgtc1s4
-rw-r--r--tests/ref/fate/dds-rgtc1u4
-rw-r--r--tests/ref/fate/dds-rgtc2s4
-rw-r--r--tests/ref/fate/dds-rgtc2u4
-rw-r--r--tests/ref/fate/dds-rgtc2u-xy4
-rw-r--r--tests/ref/fate/dds-uyvy4
-rw-r--r--tests/ref/fate/dds-xbgr4
-rw-r--r--tests/ref/fate/dds-xrgb4
-rw-r--r--tests/ref/fate/dds-y4
-rw-r--r--tests/ref/fate/dds-ya4
-rw-r--r--tests/ref/fate/dds-ycocg4
-rw-r--r--tests/ref/fate/dds-yuyv4
-rw-r--r--tests/ref/fate/delphine-cin-audio4
-rw-r--r--tests/ref/fate/delphine-cin-video4
-rw-r--r--tests/ref/fate/deluxepaint-anm4
-rw-r--r--tests/ref/fate/dfa14
-rw-r--r--tests/ref/fate/dfa104
-rw-r--r--tests/ref/fate/dfa114
-rw-r--r--tests/ref/fate/dfa24
-rw-r--r--tests/ref/fate/dfa34
-rw-r--r--tests/ref/fate/dfa44
-rw-r--r--tests/ref/fate/dfa54
-rw-r--r--tests/ref/fate/dfa64
-rw-r--r--tests/ref/fate/dfa74
-rw-r--r--tests/ref/fate/dfa84
-rw-r--r--tests/ref/fate/dfa94
-rw-r--r--tests/ref/fate/dirac4
-rw-r--r--tests/ref/fate/dnxhd-mbaff4
-rw-r--r--tests/ref/fate/dnxhr-4444
-rw-r--r--tests/ref/fate/dnxhr-parse4
-rw-r--r--tests/ref/fate/dpcm-idroq4
-rw-r--r--tests/ref/fate/dpcm-interplay4
-rw-r--r--tests/ref/fate/dpx4
-rw-r--r--tests/ref/fate/dpxparser4
-rw-r--r--tests/ref/fate/dss-lp4
-rw-r--r--tests/ref/fate/dss-sp4
-rw-r--r--tests/ref/fate/dxa-feeble4
-rw-r--r--tests/ref/fate/dxa-scummvm4
-rw-r--r--tests/ref/fate/dxtory8
-rw-r--r--tests/ref/fate/dxv-dxt14
-rw-r--r--tests/ref/fate/dxv-dxt54
-rw-r--r--tests/ref/fate/dxv3-dxt14
-rw-r--r--tests/ref/fate/dxv3-dxt54
-rw-r--r--tests/ref/fate/ea-cmv4
-rw-r--r--tests/ref/fate/ea-mad4
-rw-r--r--tests/ref/fate/ea-tgq4
-rw-r--r--tests/ref/fate/ea-tgv-14
-rw-r--r--tests/ref/fate/ea-tgv-24
-rw-r--r--tests/ref/fate/ea-tqi4
-rw-r--r--tests/ref/fate/exr-rgb-scanline-float-b444
-rw-r--r--tests/ref/fate/exr-rgb-scanline-half-b44-12x84
-rw-r--r--tests/ref/fate/exr-rgb-scanline-half-b44-13x94
-rw-r--r--tests/ref/fate/exr-rgb-scanline-pxr24-float-12x84
-rw-r--r--tests/ref/fate/exr-rgb-tile-float-raw-12x84
-rw-r--r--tests/ref/fate/exr-rgb-tile-float-raw-150x1304
-rw-r--r--tests/ref/fate/exr-rgb-tile-half-raw-12x84
-rw-r--r--tests/ref/fate/exr-rgba-multiscanline-half-b444
-rw-r--r--tests/ref/fate/exr-slice-pxr244
-rw-r--r--tests/ref/fate/exr-slice-raw4
-rw-r--r--tests/ref/fate/exr-slice-rle4
-rw-r--r--tests/ref/fate/exr-slice-zip14
-rw-r--r--tests/ref/fate/exr-slice-zip164
-rw-r--r--tests/ref/fate/ffmpeg-filter_colorkey8
-rw-r--r--tests/ref/fate/ffmpeg-filter_complex4
-rw-r--r--tests/ref/fate/ffmpeg-lavfi4
-rw-r--r--tests/ref/fate/fic-avi4
-rw-r--r--tests/ref/fate/film-cvid4
-rw-r--r--tests/ref/fate/filter-2xbr4
-rw-r--r--tests/ref/fate/filter-3xbr4
-rw-r--r--tests/ref/fate/filter-4xbr4
-rw-r--r--tests/ref/fate/filter-adelay4
-rw-r--r--tests/ref/fate/filter-alphaextract_alphamerge_rgb4
-rw-r--r--tests/ref/fate/filter-alphaextract_alphamerge_yuv4
-rw-r--r--tests/ref/fate/filter-atrim-duration4
-rw-r--r--tests/ref/fate/filter-atrim-mixed4
-rw-r--r--tests/ref/fate/filter-atrim-samples4
-rw-r--r--tests/ref/fate/filter-atrim-time4
-rw-r--r--tests/ref/fate/filter-boxblur4
-rw-r--r--tests/ref/fate/filter-codecview-mvs4
-rw-r--r--tests/ref/fate/filter-colorchannelmixer4
-rw-r--r--tests/ref/fate/filter-concat8
-rw-r--r--tests/ref/fate/filter-curves4
-rw-r--r--tests/ref/fate/filter-delogo4
-rw-r--r--tests/ref/fate/filter-drawbox4
-rw-r--r--tests/ref/fate/filter-fade4
-rw-r--r--tests/ref/fate/filter-fieldorder4
-rw-r--r--tests/ref/fate/filter-fps4
-rw-r--r--tests/ref/fate/filter-fps-cfr4
-rw-r--r--tests/ref/fate/filter-fps-r4
-rw-r--r--tests/ref/fate/filter-framepack-columns4
-rw-r--r--tests/ref/fate/filter-framepack-frameseq4
-rw-r--r--tests/ref/fate/filter-framepack-lines4
-rw-r--r--tests/ref/fate/filter-framepack-sbs4
-rw-r--r--tests/ref/fate/filter-framepack-tab4
-rw-r--r--tests/ref/fate/filter-gradfun4
-rw-r--r--tests/ref/fate/filter-gradfun-sample4
-rw-r--r--tests/ref/fate/filter-histogram-levels4
-rw-r--r--tests/ref/fate/filter-hls4
-rw-r--r--tests/ref/fate/filter-hq2x4
-rw-r--r--tests/ref/fate/filter-hq3x4
-rw-r--r--tests/ref/fate/filter-hq4x4
-rw-r--r--tests/ref/fate/filter-hqdn3d4
-rw-r--r--tests/ref/fate/filter-hqdn3d-sample4
-rw-r--r--tests/ref/fate/filter-idet4
-rw-r--r--tests/ref/fate/filter-interlace4
-rw-r--r--tests/ref/fate/filter-lavd-life4
-rw-r--r--tests/ref/fate/filter-lavd-scalenorm4
-rw-r--r--tests/ref/fate/filter-lavd-testsrc4
-rw-r--r--tests/ref/fate/filter-mcdeint-fast4
-rw-r--r--tests/ref/fate/filter-mcdeint-medium4
-rw-r--r--tests/ref/fate/filter-mergeplanes4
-rw-r--r--tests/ref/fate/filter-meta-4560-rotate08
-rw-r--r--tests/ref/fate/filter-mpdecimate4
-rw-r--r--tests/ref/fate/filter-negate4
-rw-r--r--tests/ref/fate/filter-overlay4
-rw-r--r--tests/ref/fate/filter-overlay-dvdsub-23978
-rw-r--r--tests/ref/fate/filter-overlay_rgb4
-rw-r--r--tests/ref/fate/filter-overlay_yuv4204
-rw-r--r--tests/ref/fate/filter-overlay_yuv4224
-rw-r--r--tests/ref/fate/filter-overlay_yuv4444
-rw-r--r--tests/ref/fate/filter-palettegen-14
-rw-r--r--tests/ref/fate/filter-palettegen-24
-rw-r--r--tests/ref/fate/filter-paletteuse-bayer4
-rw-r--r--tests/ref/fate/filter-paletteuse-nodither4
-rw-r--r--tests/ref/fate/filter-paletteuse-sierra2_4a4
-rw-r--r--tests/ref/fate/filter-phase4
-rw-r--r--tests/ref/fate/filter-pp4
-rw-r--r--tests/ref/fate/filter-removegrain-mode-004
-rw-r--r--tests/ref/fate/filter-removegrain-mode-014
-rw-r--r--tests/ref/fate/filter-removegrain-mode-024
-rw-r--r--tests/ref/fate/filter-removegrain-mode-034
-rw-r--r--tests/ref/fate/filter-removegrain-mode-044
-rw-r--r--tests/ref/fate/filter-removegrain-mode-054
-rw-r--r--tests/ref/fate/filter-removegrain-mode-064
-rw-r--r--tests/ref/fate/filter-removegrain-mode-074
-rw-r--r--tests/ref/fate/filter-removegrain-mode-084
-rw-r--r--tests/ref/fate/filter-removegrain-mode-094
-rw-r--r--tests/ref/fate/filter-removegrain-mode-104
-rw-r--r--tests/ref/fate/filter-removegrain-mode-114
-rw-r--r--tests/ref/fate/filter-removegrain-mode-124
-rw-r--r--tests/ref/fate/filter-removegrain-mode-134
-rw-r--r--tests/ref/fate/filter-removegrain-mode-144
-rw-r--r--tests/ref/fate/filter-removegrain-mode-154
-rw-r--r--tests/ref/fate/filter-removegrain-mode-164
-rw-r--r--tests/ref/fate/filter-removegrain-mode-174
-rw-r--r--tests/ref/fate/filter-removegrain-mode-184
-rw-r--r--tests/ref/fate/filter-removegrain-mode-194
-rw-r--r--tests/ref/fate/filter-removegrain-mode-204
-rw-r--r--tests/ref/fate/filter-removegrain-mode-214
-rw-r--r--tests/ref/fate/filter-removegrain-mode-224
-rw-r--r--tests/ref/fate/filter-removegrain-mode-234
-rw-r--r--tests/ref/fate/filter-removegrain-mode-244
-rw-r--r--tests/ref/fate/filter-scalechroma4
-rw-r--r--tests/ref/fate/filter-select4
-rw-r--r--tests/ref/fate/filter-select-alternate4
-rw-r--r--tests/ref/fate/filter-separatefields4
-rw-r--r--tests/ref/fate/filter-setpts4
-rw-r--r--tests/ref/fate/filter-showpalette4
-rw-r--r--tests/ref/fate/filter-shuffleplanes-dup-luma4
-rw-r--r--tests/ref/fate/filter-shuffleplanes-swapuv4
-rw-r--r--tests/ref/fate/filter-stereo3d-abr-ml4
-rw-r--r--tests/ref/fate/filter-stereo3d-abr-mr4
-rw-r--r--tests/ref/fate/filter-stereo3d-al-sbsl4
-rw-r--r--tests/ref/fate/filter-stereo3d-ar-abl4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-abl4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-abr4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-agmc4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-agmd4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-agmg4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-agmh4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-al4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-arbg4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-arcc4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-arcd4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-arcg4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-arch4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-argg4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-aybc4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-aybd4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-aybg4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-aybh4
-rw-r--r--tests/ref/fate/filter-stereo3d-sbsl-sbsr4
-rw-r--r--tests/ref/fate/filter-tblend4
-rw-r--r--tests/ref/fate/filter-telecine4
-rw-r--r--tests/ref/fate/filter-testsrc2-rgb244
-rw-r--r--tests/ref/fate/filter-testsrc2-yuv420p4
-rw-r--r--tests/ref/fate/filter-testsrc2-yuv444p4
-rw-r--r--tests/ref/fate/filter-transpose4
-rw-r--r--tests/ref/fate/filter-trim-duration4
-rw-r--r--tests/ref/fate/filter-trim-frame4
-rw-r--r--tests/ref/fate/filter-trim-mixed4
-rw-r--r--tests/ref/fate/filter-trim-time4
-rw-r--r--tests/ref/fate/filter-unsharp4
-rw-r--r--tests/ref/fate/filter-vectorscope_color4
-rw-r--r--tests/ref/fate/filter-vectorscope_color24
-rw-r--r--tests/ref/fate/filter-vectorscope_color34
-rw-r--r--tests/ref/fate/filter-vectorscope_color44
-rw-r--r--tests/ref/fate/filter-vectorscope_gray4
-rw-r--r--tests/ref/fate/filter-vectorscope_xy4
-rw-r--r--tests/ref/fate/filter-w3fdif-complex4
-rw-r--r--tests/ref/fate/filter-w3fdif-simple4
-rw-r--r--tests/ref/fate/filter-waveform_column4
-rw-r--r--tests/ref/fate/filter-waveform_envelope4
-rw-r--r--tests/ref/fate/filter-waveform_row4
-rw-r--r--tests/ref/fate/filter-waveform_uv4
-rw-r--r--tests/ref/fate/filter-yadif-mode04
-rw-r--r--tests/ref/fate/filter-yadif-mode14
-rw-r--r--tests/ref/fate/filter-yadif104
-rw-r--r--tests/ref/fate/filter-yadif164
-rw-r--r--tests/ref/fate/flic-af11-palette-change4
-rw-r--r--tests/ref/fate/flic-af124
-rw-r--r--tests/ref/fate/flic-magiccarpet4
-rw-r--r--tests/ref/fate/flv-demux8
-rw-r--r--tests/ref/fate/force_key_frames4
-rw-r--r--tests/ref/fate/fraps-v04
-rw-r--r--tests/ref/fate/fraps-v14
-rw-r--r--tests/ref/fate/fraps-v24
-rw-r--r--tests/ref/fate/fraps-v34
-rw-r--r--tests/ref/fate/fraps-v44
-rw-r--r--tests/ref/fate/fraps-v54
-rw-r--r--tests/ref/fate/frwu4
-rw-r--r--tests/ref/fate/g2m24
-rw-r--r--tests/ref/fate/g2m34
-rw-r--r--tests/ref/fate/g2m44
-rw-r--r--tests/ref/fate/g722dec-14
-rw-r--r--tests/ref/fate/g723_1-dec-14
-rw-r--r--tests/ref/fate/g723_1-dec-24
-rw-r--r--tests/ref/fate/g723_1-dec-34
-rw-r--r--tests/ref/fate/g723_1-dec-44
-rw-r--r--tests/ref/fate/g723_1-dec-54
-rw-r--r--tests/ref/fate/g723_1-dec-64
-rw-r--r--tests/ref/fate/g723_1-dec-74
-rw-r--r--tests/ref/fate/g723_1-dec-84
-rw-r--r--tests/ref/fate/gapless-mp36
-rw-r--r--tests/ref/fate/gif-color4
-rw-r--r--tests/ref/fate/gif-deal4
-rw-r--r--tests/ref/fate/gif-demux4
-rw-r--r--tests/ref/fate/gif-disposal-background4
-rw-r--r--tests/ref/fate/gif-disposal-restore4
-rw-r--r--tests/ref/fate/gif-gray4
-rw-r--r--tests/ref/fate/gifenc-bgr4_byte4
-rw-r--r--tests/ref/fate/gifenc-bgr84
-rw-r--r--tests/ref/fate/gifenc-gray4
-rw-r--r--tests/ref/fate/gifenc-pal84
-rw-r--r--tests/ref/fate/gifenc-rgb4_byte4
-rw-r--r--tests/ref/fate/gifenc-rgb84
-rw-r--r--tests/ref/fate/gsm-ms4
-rw-r--r--tests/ref/fate/gsm-toast4
-rw-r--r--tests/ref/fate/h264-conformance-aud_mw_e4
-rw-r--r--tests/ref/fate/h264-conformance-ba1_ft_c4
-rw-r--r--tests/ref/fate/h264-conformance-ba1_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-ba2_sony_f4
-rw-r--r--tests/ref/fate/h264-conformance-ba3_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-ba_mw_d4
-rw-r--r--tests/ref/fate/h264-conformance-bamq1_jvc_c4
-rw-r--r--tests/ref/fate/h264-conformance-bamq2_jvc_c4
-rw-r--r--tests/ref/fate/h264-conformance-banm_mw_d4
-rw-r--r--tests/ref/fate/h264-conformance-basqp1_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-caba1_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-caba1_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-caba2_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-caba2_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-caba3_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-caba3_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-caba3_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_fld0_full4
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_frm0_full4
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full4
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_picaff0_full4
-rw-r--r--tests/ref/fate/h264-conformance-cabaci3_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-cabast3_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-cabastbr3_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-cabref3_sand_d4
-rw-r--r--tests/ref/fate/h264-conformance-cacqp3_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-cafi1_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-cama1_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-cama1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-cama1_vtc_c4
-rw-r--r--tests/ref/fate/h264-conformance-cama2_vtc_b4
-rw-r--r--tests/ref/fate/h264-conformance-cama3_sand_e4
-rw-r--r--tests/ref/fate/h264-conformance-cama3_vtc_b4
-rw-r--r--tests/ref/fate/h264-conformance-camaci3_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-camanl1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-camanl2_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-camanl3_sand_e4
-rw-r--r--tests/ref/fate/h264-conformance-camasl3_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-camp_mot_mbaff_l304
-rw-r--r--tests/ref/fate/h264-conformance-camp_mot_mbaff_l314
-rw-r--r--tests/ref/fate/h264-conformance-canl1_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-canl1_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-canl1_toshiba_g4
-rw-r--r--tests/ref/fate/h264-conformance-canl2_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-canl2_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-canl3_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-canl3_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-canl4_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-canlma2_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-canlma3_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-capa1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-capama3_sand_f4
-rw-r--r--tests/ref/fate/h264-conformance-capcm1_sand_e4
-rw-r--r--tests/ref/fate/h264-conformance-capcmnl1_sand_e4
-rw-r--r--tests/ref/fate/h264-conformance-capm3_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-caqp1_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b4
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b4
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b4
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b4
-rw-r--r--tests/ref/fate/h264-conformance-cawp1_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-cawp5_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-ci1_ft_b4
-rw-r--r--tests/ref/fate/h264-conformance-ci_mw_d4
-rw-r--r--tests/ref/fate/h264-conformance-cvbs3_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvcanlma2_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvfc1_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sony_h4
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvma1_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-cvma1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvmanl1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvmanl2_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvmapaqp3_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-cvmaqp2_sony_g4
-rw-r--r--tests/ref/fate/h264-conformance-cvmaqp3_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi1_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi2_sony_h4
-rw-r--r--tests/ref/fate/h264-conformance-cvpa1_toshiba_b4
-rw-r--r--tests/ref/fate/h264-conformance-cvpcmnl1_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvpcmnl2_sva_c4
-rw-r--r--tests/ref/fate/h264-conformance-cvwp1_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-cvwp2_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-cvwp3_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-cvwp5_toshiba_e4
-rw-r--r--tests/ref/fate/h264-conformance-fi1_sony_e4
-rw-r--r--tests/ref/fate/h264-conformance-frext-alphaconformanceg4
-rw-r--r--tests/ref/fate/h264-conformance-frext-bcrm_freh104
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh114
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh34
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh44
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh54
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh84
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh94
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh12_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh1_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh2_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh64
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh7_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext01_jvc_d4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext02_jvc_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext1_panasonic_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext2_panasonic_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext3_panasonic_d4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext4_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpca_brcm_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcv_brcm_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b4
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a4
-rw-r--r--tests/ref/fate/h264-conformance-hcbp2_hhi_a4
-rw-r--r--tests/ref/fate/h264-conformance-hcmp1_hhi_a4
-rw-r--r--tests/ref/fate/h264-conformance-ls_sva_d4
-rw-r--r--tests/ref/fate/h264-conformance-midr_mw_d4
-rw-r--r--tests/ref/fate/h264-conformance-mps_mw_a4
-rw-r--r--tests/ref/fate/h264-conformance-mr1_bt_a4
-rw-r--r--tests/ref/fate/h264-conformance-mr1_mw_a4
-rw-r--r--tests/ref/fate/h264-conformance-mr2_mw_a4
-rw-r--r--tests/ref/fate/h264-conformance-mr2_tandberg_e4
-rw-r--r--tests/ref/fate/h264-conformance-mr3_tandberg_b4
-rw-r--r--tests/ref/fate/h264-conformance-mr4_tandberg_c4
-rw-r--r--tests/ref/fate/h264-conformance-mr5_tandberg_c4
-rw-r--r--tests/ref/fate/h264-conformance-mr6_bt_b4
-rw-r--r--tests/ref/fate/h264-conformance-mr7_bt_b4
-rw-r--r--tests/ref/fate/h264-conformance-mr8_bt_b4
-rw-r--r--tests/ref/fate/h264-conformance-mr9_bt_b4
-rw-r--r--tests/ref/fate/h264-conformance-mv1_brcm_d4
-rw-r--r--tests/ref/fate/h264-conformance-nl1_sony_d4
-rw-r--r--tests/ref/fate/h264-conformance-nl2_sony_h4
-rw-r--r--tests/ref/fate/h264-conformance-nl3_sva_e4
-rw-r--r--tests/ref/fate/h264-conformance-nlmq1_jvc_c4
-rw-r--r--tests/ref/fate/h264-conformance-nlmq2_jvc_c4
-rw-r--r--tests/ref/fate/h264-conformance-nrf_mw_e4
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_1_b4
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_2_b4
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_3_b4
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_1r24
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_2r4
-rw-r--r--tests/ref/fate/h264-conformance-sl1_sva_b4
-rw-r--r--tests/ref/fate/h264-conformance-sva_ba1_b4
-rw-r--r--tests/ref/fate/h264-conformance-sva_ba2_d4
-rw-r--r--tests/ref/fate/h264-conformance-sva_base_b4
-rw-r--r--tests/ref/fate/h264-conformance-sva_cl1_e4
-rw-r--r--tests/ref/fate/h264-conformance-sva_fm1_e4
-rw-r--r--tests/ref/fate/h264-conformance-sva_nl1_b4
-rw-r--r--tests/ref/fate/h264-conformance-sva_nl2_e4
-rw-r--r--tests/ref/fate/h264-direct-bff4
-rw-r--r--tests/ref/fate/h264-interlace-crop4
-rw-r--r--tests/ref/fate/h264-lossless4
-rw-r--r--tests/ref/fate/h264-reinit-large_420_8-to-small_420_84
-rw-r--r--tests/ref/fate/h264-reinit-small_420_8-to-large_444_104
-rw-r--r--tests/ref/fate/h264-reinit-small_420_9-to-small_420_84
-rw-r--r--tests/ref/fate/h264-reinit-small_422_9-to-small_420_94
-rw-r--r--tests/ref/fate/hap-chunk4
-rw-r--r--tests/ref/fate/hap14
-rw-r--r--tests/ref/fate/hap54
-rw-r--r--tests/ref/fate/hapy4
-rw-r--r--tests/ref/fate/hevc-conformance-ADJUST_IPRED_ANGLE_A_RExt_Mitsubishi_14
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_A_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_A_Samsung_64
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_B_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_B_Samsung_64
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_D_Hisilicon4
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_E_Hisilicon4
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_34
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_A_MTK_44
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_B_MTK_44
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_C_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_C_Samsung_64
-rw-r--r--tests/ref/fate/hevc-conformance-BUMPING_A_ericsson_14
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_44
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_44
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_34
-rw-r--r--tests/ref/fate/hevc-conformance-CIP_A_Panasonic_34
-rw-r--r--tests/ref/fate/hevc-conformance-CIP_C_Panasonic_24
-rw-r--r--tests/ref/fate/hevc-conformance-CONFWIN_A_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_34
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_A_SONY_34
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_B_SONY_34
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_C_SONY_34
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_D_VIXS_24
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_E_VIXS_24
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_F_VIXS_24
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_G_VIXS_24
-rw-r--r--tests/ref/fate/hevc-conformance-DELTAQP_A_BRCM_44
-rw-r--r--tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_34
-rw-r--r--tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_34
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_A_HHI_54
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_B_HHI_54
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_C_HHI_54
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_A_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_B_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_C_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-EXT_A_ericsson_44
-rw-r--r--tests/ref/fate/hevc-conformance-FILLER_A_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_24
-rw-r--r--tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_34
-rw-r--r--tests/ref/fate/hevc-conformance-INITQP_A_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-INITQP_B_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-IPCM_A_RExt_NEC4
-rw-r--r--tests/ref/fate/hevc-conformance-IPCM_B_RExt_NEC4
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_A_docomo_24
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_B_Nokia_34
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_34
-rw-r--r--tests/ref/fate/hevc-conformance-LS_A_Orange_24
-rw-r--r--tests/ref/fate/hevc-conformance-LS_B_ORANGE_44
-rw-r--r--tests/ref/fate/hevc-conformance-LTRPSPS_A_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_A_TI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_B_TI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_C_TI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_A_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_B_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_C_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_D_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_E_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_F_MTK_44
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_G_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_34
-rw-r--r--tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_34
-rw-r--r--tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_34
-rw-r--r--tests/ref/fate/hevc-conformance-Main_422_10_A_RExt_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-Main_422_10_B_RExt_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-NUT_A_ericsson_54
-rw-r--r--tests/ref/fate/hevc-conformance-NoOutPrior_A_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-NoOutPrior_B_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-OPFLAG_A_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-OPFLAG_B_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-OPFLAG_C_Qualcomm_14
-rw-r--r--tests/ref/fate/hevc-conformance-PERSIST_RPARAM_A_RExt_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_14
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_14
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_14
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_14
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_A_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_B_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_C_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_D_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_E_TI_34
-rw-r--r--tests/ref/fate/hevc-conformance-POC_A_Bossen_34
-rw-r--r--tests/ref/fate/hevc-conformance-PPS_A_qualcomm_74
-rw-r--r--tests/ref/fate/hevc-conformance-PS_A_VIDYO_34
-rw-r--r--tests/ref/fate/hevc-conformance-PS_B_VIDYO_34
-rw-r--r--tests/ref/fate/hevc-conformance-QMATRIX_A_RExt_Sony_14
-rw-r--r--tests/ref/fate/hevc-conformance-RAP_A_docomo_44
-rw-r--r--tests/ref/fate/hevc-conformance-RAP_B_Bossen_14
-rw-r--r--tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_44
-rw-r--r--tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_44
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_A_docomo_44
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_B_qualcomm_54
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_C_ericsson_54
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_D_ericsson_64
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_E_qualcomm_54
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_F_docomo_14
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_A_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_B_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_C_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_D_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_E_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_F_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_G_HHI_44
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_A_MediaTek_44
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_A_RExt_MediaTek_14
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_B_MediaTek_54
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_C_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_C_Samsung_54
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_D_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_D_Samsung_54
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_E_Canon_44
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_F_Canon_34
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_G_Canon_34
-rw-r--r--tests/ref/fate/hevc-conformance-SDH_A_Orange_34
-rw-r--r--tests/ref/fate/hevc-conformance-SLICES_A_Rovi_34
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_A_Sony_44
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_B_Sony_84
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_C_Sony_34
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_D_Sony_94
-rw-r--r--tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_14
-rw-r--r--tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_24
-rw-r--r--tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_54
-rw-r--r--tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_44
-rw-r--r--tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_64
-rw-r--r--tests/ref/fate/hevc-conformance-TILES_A_Cisco_24
-rw-r--r--tests/ref/fate/hevc-conformance-TILES_B_Cisco_14
-rw-r--r--tests/ref/fate/hevc-conformance-TMVP_A_MS_34
-rw-r--r--tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_54
-rw-r--r--tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_44
-rw-r--r--tests/ref/fate/hevc-conformance-TSKIP_A_MS_34
-rw-r--r--tests/ref/fate/hevc-conformance-TUSIZE_A_Samsung_14
-rw-r--r--tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_14
-rw-r--r--tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_24
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_24
-rw-r--r--tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_34
-rw-r--r--tests/ref/fate/hevc-conformance-WP_A_Toshiba_34
-rw-r--r--tests/ref/fate/hevc-conformance-WP_B_Toshiba_34
-rw-r--r--tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_34
-rw-r--r--tests/ref/fate/hevc-conformance-cip_B_NEC_34
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_A_NEC_34
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_B_NEC_34
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_C_NEC_34
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_D_NEC_34
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_E_NEC_24
-rw-r--r--tests/ref/fate/hevc-paramchange-yuv420p-yuv420p104
-rw-r--r--tests/ref/fate/id-cin-video8
-rw-r--r--tests/ref/fate/iff-byterun14
-rw-r--r--tests/ref/fate/iff-ilbm4
-rw-r--r--tests/ref/fate/indeo2-delta4
-rw-r--r--tests/ref/fate/indeo2-intra4
-rw-r--r--tests/ref/fate/indeo3-14
-rw-r--r--tests/ref/fate/indeo3-24
-rw-r--r--tests/ref/fate/indeo44
-rw-r--r--tests/ref/fate/indeo54
-rw-r--r--tests/ref/fate/interplay-mve-16bit4
-rw-r--r--tests/ref/fate/interplay-mve-8bit4
-rw-r--r--tests/ref/fate/iv8-demux4
-rw-r--r--tests/ref/fate/jpeg2000-dcinema4
-rw-r--r--tests/ref/fate/jv4
-rw-r--r--tests/ref/fate/jv-demux8
-rw-r--r--tests/ref/fate/kgv14
-rw-r--r--tests/ref/fate/kmvc4
-rw-r--r--tests/ref/fate/lagarith-red4
-rw-r--r--tests/ref/fate/lagarith-rgb244
-rw-r--r--tests/ref/fate/lagarith-rgb324
-rw-r--r--tests/ref/fate/lagarith-ticket41194
-rw-r--r--tests/ref/fate/lagarith-ticket4119-cfr4
-rw-r--r--tests/ref/fate/lagarith-ticket4119-drop4
-rw-r--r--tests/ref/fate/lagarith-ticket4119-pass4
-rw-r--r--tests/ref/fate/lagarith-ticket4119-vfr4
-rw-r--r--tests/ref/fate/lagarith-yuy24
-rw-r--r--tests/ref/fate/lagarith-yv124
-rw-r--r--tests/ref/fate/lmlm4-demux8
-rw-r--r--tests/ref/fate/loco-rgb4
-rw-r--r--tests/ref/fate/loco-yuy24
-rw-r--r--tests/ref/fate/m4v4
-rw-r--r--tests/ref/fate/m4v-cfr4
-rw-r--r--tests/ref/fate/maxis-xa4
-rw-r--r--tests/ref/fate/mdec4
-rw-r--r--tests/ref/fate/mdec-v34
-rw-r--r--tests/ref/fate/mimic4
-rw-r--r--tests/ref/fate/mjpegb4
-rw-r--r--tests/ref/fate/mkv8
-rw-r--r--tests/ref/fate/mkv-12428
-rw-r--r--tests/ref/fate/motionpixels4
-rw-r--r--tests/ref/fate/mov-mp3-demux4
-rw-r--r--tests/ref/fate/mpeg2-field-enc4
-rw-r--r--tests/ref/fate/mpeg4-packed4
-rw-r--r--tests/ref/fate/msmpeg4v14
-rw-r--r--tests/ref/fate/msrle-8bit4
-rw-r--r--tests/ref/fate/mss2-pal4
-rw-r--r--tests/ref/fate/mss2-pals4
-rw-r--r--tests/ref/fate/mss2-rgb5554
-rw-r--r--tests/ref/fate/mss2-rgb555s4
-rw-r--r--tests/ref/fate/mss2-wmv4
-rw-r--r--tests/ref/fate/msvideo1-16bit4
-rw-r--r--tests/ref/fate/msvideo1-8bit4
-rw-r--r--tests/ref/fate/mszh4
-rw-r--r--tests/ref/fate/mtv8
-rw-r--r--tests/ref/fate/mv-mvc14
-rw-r--r--tests/ref/fate/mv-mvc24
-rw-r--r--tests/ref/fate/mv-sgirle4
-rw-r--r--tests/ref/fate/mxf-demux8
-rw-r--r--tests/ref/fate/mxf-essencegroup-demux4
-rw-r--r--tests/ref/fate/mxpeg4
-rw-r--r--tests/ref/fate/nc-demux4
-rw-r--r--tests/ref/fate/nsv-demux8
-rw-r--r--tests/ref/fate/nuv-rtjpeg4
-rw-r--r--tests/ref/fate/nuv-rtjpeg-fh4
-rw-r--r--tests/ref/fate/oggopus-demux4
-rw-r--r--tests/ref/fate/oggvp8-demux4
-rw-r--r--tests/ref/fate/on2avc4
-rw-r--r--tests/ref/fate/paf-audio4
-rw-r--r--tests/ref/fate/paf-demux8
-rw-r--r--tests/ref/fate/paf-video4
-rw-r--r--tests/ref/fate/pcm-planar4
-rw-r--r--tests/ref/fate/pcm_dvd4
-rw-r--r--tests/ref/fate/pict4
-rw-r--r--tests/ref/fate/pictor4
-rw-r--r--tests/ref/fate/pmp-demux4
-rw-r--r--tests/ref/fate/png-gray164
-rw-r--r--tests/ref/fate/png-gray84
-rw-r--r--tests/ref/fate/png-rgb244
-rw-r--r--tests/ref/fate/png-rgb484
-rw-r--r--tests/ref/fate/png-rgba4
-rw-r--r--tests/ref/fate/png-ya164
-rw-r--r--tests/ref/fate/png-ya84
-rw-r--r--tests/ref/fate/pngparser4
-rw-r--r--tests/ref/fate/prores-4224
-rw-r--r--tests/ref/fate/prores-422_hq4
-rw-r--r--tests/ref/fate/prores-422_lt4
-rw-r--r--tests/ref/fate/prores-422_proxy4
-rw-r--r--tests/ref/fate/prores-alpha4
-rw-r--r--tests/ref/fate/prores-alpha_skip4
-rw-r--r--tests/ref/fate/prores-transparency8
-rw-r--r--tests/ref/fate/prores-transparency_skip8
-rw-r--r--tests/ref/fate/psx-str-demux8
-rw-r--r--tests/ref/fate/ptx4
-rw-r--r--tests/ref/fate/pva-demux8
-rw-r--r--tests/ref/fate/qpeg4
-rw-r--r--tests/ref/fate/qtrle-16bit4
-rw-r--r--tests/ref/fate/qtrle-1bit4
-rw-r--r--tests/ref/fate/qtrle-24bit4
-rw-r--r--tests/ref/fate/qtrle-2bit4
-rw-r--r--tests/ref/fate/qtrle-32bit4
-rw-r--r--tests/ref/fate/qtrle-4bit4
-rw-r--r--tests/ref/fate/qtrle-8bit4
-rw-r--r--tests/ref/fate/quickdraw4
-rw-r--r--tests/ref/fate/r2104
-rw-r--r--tests/ref/fate/ra3-1444
-rw-r--r--tests/ref/fate/redcode-demux8
-rw-r--r--tests/ref/fate/rl24
-rw-r--r--tests/ref/fate/roqvideo4
-rw-r--r--tests/ref/fate/rpza4
-rw-r--r--tests/ref/fate/rscc4
-rw-r--r--tests/ref/fate/rv20-12394
-rw-r--r--tests/ref/fate/rv304
-rw-r--r--tests/ref/fate/rv404
-rw-r--r--tests/ref/fate/sanm4
-rw-r--r--tests/ref/fate/screenpresso4
-rw-r--r--tests/ref/fate/sgi-gray164
-rw-r--r--tests/ref/fate/sgi-gray16-rle4
-rw-r--r--tests/ref/fate/sgi-gray84
-rw-r--r--tests/ref/fate/sgi-gray8-rle4
-rw-r--r--tests/ref/fate/sgi-rgb244
-rw-r--r--tests/ref/fate/sgi-rgb24-rle4
-rw-r--r--tests/ref/fate/sgi-rgb484
-rw-r--r--tests/ref/fate/sgi-rgb48-rle4
-rw-r--r--tests/ref/fate/sgi-rgba4
-rw-r--r--tests/ref/fate/sgi-rgba-rle4
-rw-r--r--tests/ref/fate/sgi-rgba644
-rw-r--r--tests/ref/fate/sgi-rgba64-rle4
-rw-r--r--tests/ref/fate/sierra-vmd-audio4
-rw-r--r--tests/ref/fate/sierra-vmd-video4
-rw-r--r--tests/ref/fate/siff-demux8
-rw-r--r--tests/ref/fate/smacker-audio4
-rw-r--r--tests/ref/fate/smacker-video4
-rw-r--r--tests/ref/fate/smc4
-rw-r--r--tests/ref/fate/smjpeg-demux8
-rw-r--r--tests/ref/fate/smvjpeg4
-rw-r--r--tests/ref/fate/sp5x8
-rw-r--r--tests/ref/fate/sub2video6
-rw-r--r--tests/ref/fate/sunraster-1bit-raw4
-rw-r--r--tests/ref/fate/sunraster-1bit-rle4
-rw-r--r--tests/ref/fate/sunraster-24bit-raw4
-rw-r--r--tests/ref/fate/sunraster-24bit-rle4
-rw-r--r--tests/ref/fate/sunraster-8bit-raw4
-rw-r--r--tests/ref/fate/sunraster-8bit-rle4
-rw-r--r--tests/ref/fate/sunraster-8bit_gray-raw4
-rw-r--r--tests/ref/fate/svq14
-rw-r--r--tests/ref/fate/svq1-headerswap4
-rw-r--r--tests/ref/fate/svq34
-rw-r--r--tests/ref/fate/targa-conformance-CBW84
-rw-r--r--tests/ref/fate/targa-conformance-CCM84
-rw-r--r--tests/ref/fate/targa-conformance-CTC164
-rw-r--r--tests/ref/fate/targa-conformance-CTC244
-rw-r--r--tests/ref/fate/targa-conformance-CTC324
-rw-r--r--tests/ref/fate/targa-conformance-UBW84
-rw-r--r--tests/ref/fate/targa-conformance-UCM84
-rw-r--r--tests/ref/fate/targa-conformance-UTC164
-rw-r--r--tests/ref/fate/targa-conformance-UTC244
-rw-r--r--tests/ref/fate/targa-conformance-UTC324
-rw-r--r--tests/ref/fate/targa-top-to-bottom4
-rw-r--r--tests/ref/fate/tdsc4
-rw-r--r--tests/ref/fate/theora-coeff-level644
-rw-r--r--tests/ref/fate/theora-offset4
-rw-r--r--tests/ref/fate/thp4
-rw-r--r--tests/ref/fate/tiertex-seq8
-rw-r--r--tests/ref/fate/tiff-fax-g34
-rw-r--r--tests/ref/fate/tiff-fax-g3s4
-rw-r--r--tests/ref/fate/tmv8
-rw-r--r--tests/ref/fate/truemotion1-154
-rw-r--r--tests/ref/fate/truemotion1-244
-rw-r--r--tests/ref/fate/truemotion24
-rw-r--r--tests/ref/fate/ts-demux8
-rw-r--r--tests/ref/fate/ts-opus-demux4
-rw-r--r--tests/ref/fate/tscc-15bit8
-rw-r--r--tests/ref/fate/tscc-32bit4
-rw-r--r--tests/ref/fate/tscc2-avi4
-rw-r--r--tests/ref/fate/tscc2-mov4
-rw-r--r--tests/ref/fate/txd-16bpp4
-rw-r--r--tests/ref/fate/txd-odd4
-rw-r--r--tests/ref/fate/txd-pal84
-rw-r--r--tests/ref/fate/ulti4
-rw-r--r--tests/ref/fate/utvideo_rgb_left4
-rw-r--r--tests/ref/fate/utvideo_rgb_median4
-rw-r--r--tests/ref/fate/utvideo_rgba_left4
-rw-r--r--tests/ref/fate/utvideo_rgba_median4
-rw-r--r--tests/ref/fate/utvideo_rgba_single_symbol4
-rw-r--r--tests/ref/fate/utvideo_yuv420_left4
-rw-r--r--tests/ref/fate/utvideo_yuv420_median4
-rw-r--r--tests/ref/fate/utvideo_yuv422_left4
-rw-r--r--tests/ref/fate/utvideo_yuv422_median4
-rw-r--r--tests/ref/fate/v2104
-rw-r--r--tests/ref/fate/v410dec4
-rw-r--r--tests/ref/fate/vb4
-rw-r--r--tests/ref/fate/vble4
-rw-r--r--tests/ref/fate/vc1-ism4
-rw-r--r--tests/ref/fate/vc1_ilaced_twomv4
-rw-r--r--tests/ref/fate/vc1_sa000404
-rw-r--r--tests/ref/fate/vc1_sa000504
-rw-r--r--tests/ref/fate/vc1_sa100914
-rw-r--r--tests/ref/fate/vc1_sa101434
-rw-r--r--tests/ref/fate/vc1_sa200214
-rw-r--r--tests/ref/fate/vcr14
-rw-r--r--tests/ref/fate/vcr24
-rw-r--r--tests/ref/fate/videoxl4
-rw-r--r--tests/ref/fate/vmnc-16bit4
-rw-r--r--tests/ref/fate/vmnc-32bit4
-rw-r--r--tests/ref/fate/vp314
-rw-r--r--tests/ref/fate/vp54
-rw-r--r--tests/ref/fate/vp604
-rw-r--r--tests/ref/fate/vp614
-rw-r--r--tests/ref/fate/vp6a4
-rw-r--r--tests/ref/fate/vp6a-skip_alpha4
-rw-r--r--tests/ref/fate/vp6f4
-rw-r--r--tests/ref/fate/vp74
-rw-r--r--tests/ref/fate/vp8-24514
-rw-r--r--tests/ref/fate/vp8-alpha4
-rw-r--r--tests/ref/fate/vqa-cc4
-rw-r--r--tests/ref/fate/vqf-demux2
-rw-r--r--tests/ref/fate/wav-ac34
-rw-r--r--tests/ref/fate/wc3movie-xan8
-rw-r--r--tests/ref/fate/westwood-aud4
-rw-r--r--tests/ref/fate/wmv8-drm4
-rw-r--r--tests/ref/fate/wmv8-drm-nodec8
-rw-r--r--tests/ref/fate/wnv14
-rw-r--r--tests/ref/fate/wtv-demux8
-rw-r--r--tests/ref/fate/xbm104
-rw-r--r--tests/ref/fate/xbm114
-rw-r--r--tests/ref/fate/xface4
-rw-r--r--tests/ref/fate/xmv-demux8
-rw-r--r--tests/ref/fate/xxan-wc44
-rw-r--r--tests/ref/fate/yop4
-rw-r--r--tests/ref/fate/zerocodec4
-rw-r--r--tests/ref/fate/zlib4
-rw-r--r--tests/ref/fate/zmbv-15bit4
-rw-r--r--tests/ref/fate/zmbv-16bit4
-rw-r--r--tests/ref/fate/zmbv-32bit4
-rw-r--r--tests/ref/fate/zmbv-8bit4
958 files changed, 3988 insertions, 6 deletions
diff --git a/tests/ref/fate/4xm-1 b/tests/ref/fate/4xm-1
index 37371aac66..96f3539406 100644
--- a/tests/ref/fate/4xm-1
+++ b/tests/ref/fate/4xm-1
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0xd82e4d57
0, 1, 1, 1, 921600, 0x83f2349c
0, 2, 2, 1, 921600, 0x70d87db0
diff --git a/tests/ref/fate/4xm-2 b/tests/ref/fate/4xm-2
index 6895d124d9..c28dc1465f 100644
--- a/tests/ref/fate/4xm-2
+++ b/tests/ref/fate/4xm-2
@@ -1,4 +1,8 @@
#tb 0: 4/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 240x112
+#sar 0: 0/1
0, 0, 0, 1, 80640, 0x00000000
0, 1, 1, 1, 80640, 0x3a942680
0, 2, 2, 1, 80640, 0x3a942680
diff --git a/tests/ref/fate/8bps b/tests/ref/fate/8bps
index 9db94301e0..c6287ffae0 100644
--- a/tests/ref/fate/8bps
+++ b/tests/ref/fate/8bps
@@ -1,5 +1,13 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 360x240
+#sar 0: 9/10
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 1, 259200, 0x7e91df07
1, 0, 0, 1024, 2048, 0x3d042426
1, 1024, 1024, 1024, 2048, 0x5bcae456
diff --git a/tests/ref/fate/aasc b/tests/ref/fate/aasc
index 83f83b984b..f69376e679 100644
--- a/tests/ref/fate/aasc
+++ b/tests/ref/fate/aasc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x175
+#sar 0: 0/1
0, 0, 0, 1, 168000, 0x00000000
0, 1, 1, 1, 168000, 0x00000000
0, 2, 2, 1, 168000, 0x00000000
diff --git a/tests/ref/fate/adpcm-4xm b/tests/ref/fate/adpcm-4xm
index eb5cfe6978..cb725e5d97 100644
--- a/tests/ref/fate/adpcm-4xm
+++ b/tests/ref/fate/adpcm-4xm
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1472, 5888, 0x9086e310
0, 1476, 1476, 1472, 5888, 0xac8491f5
0, 2952, 2952, 1472, 5888, 0xc9a08b6b
diff --git a/tests/ref/fate/adpcm-afc b/tests/ref/fate/adpcm-afc
index d1a1c36caa..0cf61a98b6 100644
--- a/tests/ref/fate/adpcm-afc
+++ b/tests/ref/fate/adpcm-afc
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 0, 0, 17920, 71680, 0x52373bc9
0, 17920, 17920, 17920, 71680, 0x1f854b27
0, 35840, 35840, 17920, 71680, 0x3d265a6d
diff --git a/tests/ref/fate/adpcm-dtk b/tests/ref/fate/adpcm-dtk
index 3640e1cb14..acdf0333b2 100644
--- a/tests/ref/fate/adpcm-dtk
+++ b/tests/ref/fate/adpcm-dtk
@@ -1,4 +1,8 @@
#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout 0: 3
0, 0, 0, 896, 3584, 0xdae789d5
0, 896, 896, 896, 3584, 0x168ed9b6
0, 1792, 1792, 896, 3584, 0x8920c8d5
diff --git a/tests/ref/fate/adpcm-ea-1 b/tests/ref/fate/adpcm-ea-1
index f5a33df710..fa9906c09c 100644
--- a/tests/ref/fate/adpcm-ea-1
+++ b/tests/ref/fate/adpcm-ea-1
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1484, 5936, 0x00000000
0, 1484, 1484, 1456, 5824, 0x00000000
0, 2940, 2940, 1484, 5936, 0x00000000
diff --git a/tests/ref/fate/adpcm-ea-2 b/tests/ref/fate/adpcm-ea-2
index f58d9a00ce..4743e3d6cd 100644
--- a/tests/ref/fate/adpcm-ea-2
+++ b/tests/ref/fate/adpcm-ea-2
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1484, 5936, 0xea261a29
0, 1484, 1484, 1456, 5824, 0x253df061
0, 2940, 2940, 1484, 5936, 0x603a5bd7
diff --git a/tests/ref/fate/adpcm-ea-maxis-xa b/tests/ref/fate/adpcm-ea-maxis-xa
index 5d6b5c07dc..b300c320ad 100644
--- a/tests/ref/fate/adpcm-ea-maxis-xa
+++ b/tests/ref/fate/adpcm-ea-maxis-xa
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 28, 112, 0x291d1be4
0, 28, 28, 28, 112, 0xf08d33cc
0, 56, 56, 28, 112, 0x5b1521de
diff --git a/tests/ref/fate/adpcm-ea-r1 b/tests/ref/fate/adpcm-ea-r1
index 74d15c6f67..2208eb0cb8 100644
--- a/tests/ref/fate/adpcm-ea-r1
+++ b/tests/ref/fate/adpcm-ea-r1
@@ -1,4 +1,8 @@
#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout 0: 3
0, 0, 0, 1624, 6496, 0x00000000
0, 1624, 1624, 1596, 6384, 0x00000000
0, 3220, 3220, 1596, 6384, 0x00000000
diff --git a/tests/ref/fate/adpcm-ima-amv b/tests/ref/fate/adpcm-ima-amv
index 4bd22af9b7..def9279099 100644
--- a/tests/ref/fate/adpcm-ima-amv
+++ b/tests/ref/fate/adpcm-ima-amv
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 1378, 2756, 0x0af35034
0, 1378, 1378, 1378, 2756, 0x8462443f
0, 2756, 2756, 1378, 2756, 0x9f493ba6
diff --git a/tests/ref/fate/adpcm-ima-ea-eacs b/tests/ref/fate/adpcm-ima-ea-eacs
index 9887296f45..d5ea2e5308 100644
--- a/tests/ref/fate/adpcm-ima-ea-eacs
+++ b/tests/ref/fate/adpcm-ima-ea-eacs
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1468, 5872, 0x00000000
0, 1468, 1468, 1468, 5872, 0x00000000
0, 2936, 2936, 1468, 5872, 0x00000000
diff --git a/tests/ref/fate/adpcm-ima-ea-sead b/tests/ref/fate/adpcm-ima-ea-sead
index 17c10875a6..563bb49f58 100644
--- a/tests/ref/fate/adpcm-ima-ea-sead
+++ b/tests/ref/fate/adpcm-ima-ea-sead
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 736, 2944, 0x00000000
0, 736, 736, 1472, 5888, 0x5ae3c2a4
0, 2208, 2208, 1472, 5888, 0x158fbcb4
diff --git a/tests/ref/fate/adpcm-ima-smjpeg b/tests/ref/fate/adpcm-ima-smjpeg
index 3a746b60d2..f88520d9a6 100644
--- a/tests/ref/fate/adpcm-ima-smjpeg
+++ b/tests/ref/fate/adpcm-ima-smjpeg
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 512, 1024, 0x00000000
0, 512, 512, 512, 1024, 0x00000000
0, 1024, 1024, 512, 1024, 0xed2d3f6b
diff --git a/tests/ref/fate/adpcm-ima-ws b/tests/ref/fate/adpcm-ima-ws
index 61e0def729..0e41e1eb0c 100644
--- a/tests/ref/fate/adpcm-ima-ws
+++ b/tests/ref/fate/adpcm-ima-ws
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 11024, 22048, 0x0665d7f4
0, 11024, 11024, 1470, 2940, 0x0f3c64cb
0, 12494, 12494, 1470, 2940, 0xc90b9e78
diff --git a/tests/ref/fate/adpcm-ms-mono b/tests/ref/fate/adpcm-ms-mono
index c4567087bc..254dc8a586 100644
--- a/tests/ref/fate/adpcm-ms-mono
+++ b/tests/ref/fate/adpcm-ms-mono
@@ -1,4 +1,8 @@
#tb 0: 1/11025
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 11025
+#channel_layout 0: 4
0, 0, 0, 500, 1000, 0x64cd9403
0, 500, 500, 500, 1000, 0xa4ef8a9d
0, 1000, 1000, 500, 1000, 0x75c19868
diff --git a/tests/ref/fate/adpcm-thp b/tests/ref/fate/adpcm-thp
index 0063b6c796..ff49303980 100644
--- a/tests/ref/fate/adpcm-thp
+++ b/tests/ref/fate/adpcm-thp
@@ -1,4 +1,8 @@
#tb 0: 1/32000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 32000
+#channel_layout 0: 3
0, 0, 0, 1078, 4312, 0x469714f6
0, 1078, 1078, 1064, 4256, 0x6ca28f25
0, 2142, 2142, 1078, 4312, 0xd466f806
diff --git a/tests/ref/fate/adpcm-vima b/tests/ref/fate/adpcm-vima
index 6984c5dfc6..5bc62c39e9 100644
--- a/tests/ref/fate/adpcm-vima
+++ b/tests/ref/fate/adpcm-vima
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 73500, 294000, 0x37d439ee
0, 73500, 73500, 1470, 5880, 0xe524b177
0, 74970, 74970, 1470, 5880, 0x9e784af1
diff --git a/tests/ref/fate/adpcm-xa b/tests/ref/fate/adpcm-xa
index 04be2b9067..e365227840 100644
--- a/tests/ref/fate/adpcm-xa
+++ b/tests/ref/fate/adpcm-xa
@@ -1,4 +1,8 @@
#tb 0: 1/37800
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 37800
+#channel_layout 0: 3
0, 0, 0, 2016, 8064, 0xa307ed8c
0, 2016, 2016, 2016, 8064, 0xd2551927
0, 4032, 4032, 2016, 8064, 0x3264a799
diff --git a/tests/ref/fate/aic b/tests/ref/fate/aic
index 90692f1d0f..1f50350b96 100644
--- a/tests/ref/fate/aic
+++ b/tests/ref/fate/aic
@@ -1,4 +1,8 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1440x1080
+#sar 0: 4/3
0, 0, 0, 1, 2332800, 0xd941b42f
0, 1, 1, 1, 2332800, 0xd941b42f
0, 2, 2, 1, 2332800, 0xae0f5983
diff --git a/tests/ref/fate/aic-oddsize b/tests/ref/fate/aic-oddsize
index 9183089971..3763e32b2c 100644
--- a/tests/ref/fate/aic-oddsize
+++ b/tests/ref/fate/aic-oddsize
@@ -1,4 +1,8 @@
#tb 0: 1000/14587
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 481x241
+#sar 0: 0/1
0, 0, 0, 1, 174243, 0xa40491e1
0, 1, 1, 1, 174243, 0xa12cbb56
0, 2, 2, 1, 174243, 0xa12cbb56
diff --git a/tests/ref/fate/alg-mm b/tests/ref/fate/alg-mm
index 5d97de9b92..5788012713 100644
--- a/tests/ref/fate/alg-mm
+++ b/tests/ref/fate/alg-mm
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x160
+#sar 0: 0/1
0, 0, 0, 1, 122880, 0x4ed8123f
0, 1, 1, 1, 122880, 0xc4c35304
0, 2, 2, 1, 122880, 0xbd3015fd
diff --git a/tests/ref/fate/aliaspix-bgr b/tests/ref/fate/aliaspix-bgr
index 8671d3ef7b..f5c6b7d475 100644
--- a/tests/ref/fate/aliaspix-bgr
+++ b/tests/ref/fate/aliaspix-bgr
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 201x79
+#sar 0: 0/1
0, 0, 0, 1, 47637, 0xcb77368f
diff --git a/tests/ref/fate/aliaspix-gray b/tests/ref/fate/aliaspix-gray
index 0433a36eb6..aa7b4649b2 100644
--- a/tests/ref/fate/aliaspix-gray
+++ b/tests/ref/fate/aliaspix-gray
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 199x81
+#sar 0: 0/1
0, 0, 0, 1, 16119, 0x3d0785f5
diff --git a/tests/ref/fate/amv b/tests/ref/fate/amv
index 407f077c7e..4b2c1682ac 100644
--- a/tests/ref/fate/amv
+++ b/tests/ref/fate/amv
@@ -1,4 +1,8 @@
#tb 0: 1/16
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 28800, 0x026058a9
0, 1, 1, 1, 28800, 0x5dc728de
0, 2, 2, 1, 28800, 0x83e19a2c
diff --git a/tests/ref/fate/ansi b/tests/ref/fate/ansi
index 78e853fc0b..5cf6ff95ca 100644
--- a/tests/ref/fate/ansi
+++ b/tests/ref/fate/ansi
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x400
+#sar 0: 0/1
0, 0, 0, 1, 768000, 0x772dd3d0
0, 1, 1, 1, 768000, 0xd7dab1d1
0, 2, 2, 1, 768000, 0x0e56f2d3
diff --git a/tests/ref/fate/ansi256 b/tests/ref/fate/ansi256
index 94acd45831..f68a0d1fbe 100644
--- a/tests/ref/fate/ansi256
+++ b/tests/ref/fate/ansi256
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x400
+#sar 0: 0/1
0, 0, 0, 1, 768000, 0x4dfbb6d0
0, 1, 1, 1, 768000, 0x22652a22
0, 2, 2, 1, 768000, 0x6c613e8c
diff --git a/tests/ref/fate/armovie-escape124 b/tests/ref/fate/armovie-escape124
index 83614c263d..5c8f0519b1 100644
--- a/tests/ref/fate/armovie-escape124
+++ b/tests/ref/fate/armovie-escape124
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 44100
+#channel_layout 1: 3
0, 0, 0, 1, 230400, 0xd133e177
1, 0, 0, 44100, 176400, 0xdd61578c
0, 1, 1, 1, 230400, 0xe3501bb2
diff --git a/tests/ref/fate/armovie-escape130 b/tests/ref/fate/armovie-escape130
index ee4ec26ee1..6925a48e39 100644
--- a/tests/ref/fate/armovie-escape130
+++ b/tests/ref/fate/armovie-escape130
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x160
+#sar 0: 0/1
0, 0, 0, 1, 76800, 0x860502ee
0, 1, 1, 1, 76800, 0x055da755
0, 2, 2, 1, 76800, 0x67969220
diff --git a/tests/ref/fate/asf-repldata b/tests/ref/fate/asf-repldata
index ff12ff0bfb..94744569f2 100644
--- a/tests/ref/fate/asf-repldata
+++ b/tests/ref/fate/asf-repldata
@@ -1,4 +1,8 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: msmpeg4v3
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 0, 23374, 0x8725b3b8
0, 122, 122, 0, 13732, 0x3ac8531a, F=0x0
0, 245, 245, 0, 615, 0xd31641b4, F=0x0
diff --git a/tests/ref/fate/auravision-v1 b/tests/ref/fate/auravision-v1
index 456f399ec8..25a15ce1c6 100644
--- a/tests/ref/fate/auravision-v1
+++ b/tests/ref/fate/auravision-v1
@@ -1,4 +1,8 @@
#tb 0: 33339/500000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 28800, 0x4a4efbbc
0, 1, 1, 1, 28800, 0xc6c7e26a
0, 2, 2, 1, 28800, 0x6cd40913
diff --git a/tests/ref/fate/auravision-v2 b/tests/ref/fate/auravision-v2
index f1e8e3a9e1..498944acc1 100644
--- a/tests/ref/fate/auravision-v2
+++ b/tests/ref/fate/auravision-v2
@@ -1,3 +1,7 @@
#tb 0: 33333/1000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x180
+#sar 0: 0/1
0, 0, 0, 1, 115200, 0x2f247f66
0, 1, 1, 1, 115200, 0xf492929e
diff --git a/tests/ref/fate/avio-direct b/tests/ref/fate/avio-direct
index 599683a8a3..c0628e9ac4 100644
--- a/tests/ref/fate/avio-direct
+++ b/tests/ref/fate/avio-direct
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 288x168
+#sar 0: 0/1
0, 0, 0, 1, 145152, 0x8458d4cb
0, 1, 1, 1, 145152, 0xa694d7c7
0, 2, 2, 1, 145152, 0x2bd4bfc9
diff --git a/tests/ref/fate/bethsoft-vid b/tests/ref/fate/bethsoft-vid
index 9f96da1e87..ccb0d377a3 100644
--- a/tests/ref/fate/bethsoft-vid
+++ b/tests/ref/fate/bethsoft-vid
@@ -1,5 +1,13 @@
#tb 0: 1/14
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
#tb 1: 1/11111
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 11111
+#channel_layout 1: 4
0, 0, 0, 1, 192000, 0x00000000
1, 0, 0, 740, 1480, 0x00000000
1, 740, 740, 740, 1480, 0x20a92bd4
diff --git a/tests/ref/fate/bfi b/tests/ref/fate/bfi
index 0d3d8f2b0a..807615c88c 100644
--- a/tests/ref/fate/bfi
+++ b/tests/ref/fate/bfi
@@ -1,5 +1,13 @@
#tb 0: 1/9
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x140
+#sar 0: 0/1
#tb 1: 1/11025
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 11025
+#channel_layout 1: 4
0, 0, 0, 1, 134400, 0xc218b00c
1, 0, 0, 8884, 17768, 0x07df135c
0, 1, 1, 1, 134400, 0x114daf7c
diff --git a/tests/ref/fate/bink-video-b b/tests/ref/fate/bink-video-b
index c772eda288..663457a3f1 100644
--- a/tests/ref/fate/bink-video-b
+++ b/tests/ref/fate/bink-video-b
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 200x116
+#sar 0: 0/1
0, 0, 0, 1, 34800, 0x4fd0a8e4
0, 1, 1, 1, 34800, 0xd381a7b7
0, 2, 2, 1, 34800, 0x688ca315
diff --git a/tests/ref/fate/bink-video-f b/tests/ref/fate/bink-video-f
index 40bc5a929e..912ceedaf9 100644
--- a/tests/ref/fate/bink-video-f
+++ b/tests/ref/fate/bink-video-f
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0xb06f7841
0, 1, 1, 1, 460800, 0x7ed06412
0, 2, 2, 1, 460800, 0xe82b5c3d
diff --git a/tests/ref/fate/bink-video-i b/tests/ref/fate/bink-video-i
index 32c5e10ec1..0d67e98aa3 100644
--- a/tests/ref/fate/bink-video-i
+++ b/tests/ref/fate/bink-video-i
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0xaef133d9
0, 1, 1, 1, 460800, 0x2da1248b
0, 2, 2, 1, 460800, 0x3d7945b4
diff --git a/tests/ref/fate/bmp-15bit b/tests/ref/fate/bmp-15bit
index a0f3bbf1db..29b6335b2d 100644
--- a/tests/ref/fate/bmp-15bit
+++ b/tests/ref/fate/bmp-15bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 16256, 0xdbcf881d
diff --git a/tests/ref/fate/bmp-15bit-mask b/tests/ref/fate/bmp-15bit-mask
index a0f3bbf1db..29b6335b2d 100644
--- a/tests/ref/fate/bmp-15bit-mask
+++ b/tests/ref/fate/bmp-15bit-mask
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 16256, 0xdbcf881d
diff --git a/tests/ref/fate/bmp-16bit-mask b/tests/ref/fate/bmp-16bit-mask
index afa5ab4591..8760ff8d60 100644
--- a/tests/ref/fate/bmp-16bit-mask
+++ b/tests/ref/fate/bmp-16bit-mask
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 16256, 0x44675948
diff --git a/tests/ref/fate/bmp-1bit b/tests/ref/fate/bmp-1bit
index 1c825b1498..a40328f8ca 100644
--- a/tests/ref/fate/bmp-1bit
+++ b/tests/ref/fate/bmp-1bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x4c968301
diff --git a/tests/ref/fate/bmp-24bit b/tests/ref/fate/bmp-24bit
index 8f1a615a9c..6394d2f59c 100644
--- a/tests/ref/fate/bmp-24bit
+++ b/tests/ref/fate/bmp-24bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/tests/ref/fate/bmp-32bit b/tests/ref/fate/bmp-32bit
index 8f1a615a9c..6394d2f59c 100644
--- a/tests/ref/fate/bmp-32bit
+++ b/tests/ref/fate/bmp-32bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/tests/ref/fate/bmp-32bit-mask b/tests/ref/fate/bmp-32bit-mask
index 8f1a615a9c..6394d2f59c 100644
--- a/tests/ref/fate/bmp-32bit-mask
+++ b/tests/ref/fate/bmp-32bit-mask
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/tests/ref/fate/bmp-4bit b/tests/ref/fate/bmp-4bit
index c0eedf1948..b4262c9bf6 100644
--- a/tests/ref/fate/bmp-4bit
+++ b/tests/ref/fate/bmp-4bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x322d81f4
diff --git a/tests/ref/fate/bmp-4bit-os2 b/tests/ref/fate/bmp-4bit-os2
index 8a5f6589c2..9cf9cf0e50 100644
--- a/tests/ref/fate/bmp-4bit-os2
+++ b/tests/ref/fate/bmp-4bit-os2
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x22
+#sar 0: 0/1
0, 0, 0, 1, 19800, 0x563b599a
diff --git a/tests/ref/fate/bmp-8bit b/tests/ref/fate/bmp-8bit
index 887113cdb5..3ecea53d6b 100644
--- a/tests/ref/fate/bmp-8bit
+++ b/tests/ref/fate/bmp-8bit
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/tests/ref/fate/bmp-8bit-os2 b/tests/ref/fate/bmp-8bit-os2
index 887113cdb5..3ecea53d6b 100644
--- a/tests/ref/fate/bmp-8bit-os2
+++ b/tests/ref/fate/bmp-8bit-os2
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/tests/ref/fate/bmp-rle4 b/tests/ref/fate/bmp-rle4
index c0eedf1948..b4262c9bf6 100644
--- a/tests/ref/fate/bmp-rle4
+++ b/tests/ref/fate/bmp-rle4
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0x322d81f4
diff --git a/tests/ref/fate/bmp-rle8 b/tests/ref/fate/bmp-rle8
index 887113cdb5..3ecea53d6b 100644
--- a/tests/ref/fate/bmp-rle8
+++ b/tests/ref/fate/bmp-rle8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x64
+#sar 0: 0/1
0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/tests/ref/fate/bmpparser b/tests/ref/fate/bmpparser
index 3cdd9864af..9340743c6f 100644
--- a/tests/ref/fate/bmpparser
+++ b/tests/ref/fate/bmpparser
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 40x30
+#sar 0: 0/1
0, 0, 0, 1, 3600, 0xd3a7c583
0, 1, 1, 1, 3600, 0x4602bbf9
0, 2, 2, 1, 3600, 0x3a96b8f8
diff --git a/tests/ref/fate/bmv-audio b/tests/ref/fate/bmv-audio
index 746bb0cd7a..62f9c5e56e 100644
--- a/tests/ref/fate/bmv-audio
+++ b/tests/ref/fate/bmv-audio
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1856, 7424, 0x18540b36
0, 1856, 1856, 1824, 7296, 0x5acd2484
0, 3680, 3680, 1856, 7424, 0xa1bc5c5a
diff --git a/tests/ref/fate/bmv-video b/tests/ref/fate/bmv-video
index f19cd45edc..d360d58c16 100644
--- a/tests/ref/fate/bmv-video
+++ b/tests/ref/fate/bmv-video
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x429
+#sar 0: 0/1
0, 0, 0, 1, 823680, 0xddb8a306
0, 1, 1, 1, 823680, 0xa95375c8
0, 2, 2, 1, 823680, 0xa95375c8
diff --git a/tests/ref/fate/brenderpix-24 b/tests/ref/fate/brenderpix-24
index 32b29a042d..be81fc2387 100644
--- a/tests/ref/fate/brenderpix-24
+++ b/tests/ref/fate/brenderpix-24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0x18bc6caa
diff --git a/tests/ref/fate/brenderpix-565 b/tests/ref/fate/brenderpix-565
index c243a4cf5a..bc92766f58 100644
--- a/tests/ref/fate/brenderpix-565
+++ b/tests/ref/fate/brenderpix-565
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0xfd855dda
diff --git a/tests/ref/fate/brenderpix-defpal b/tests/ref/fate/brenderpix-defpal
index 6c55740885..c5632ae744 100644
--- a/tests/ref/fate/brenderpix-defpal
+++ b/tests/ref/fate/brenderpix-defpal
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
0, 0, 0, 1, 196608, 0xada11d14
diff --git a/tests/ref/fate/brenderpix-intpal b/tests/ref/fate/brenderpix-intpal
index 473b1532ec..789c87d024 100644
--- a/tests/ref/fate/brenderpix-intpal
+++ b/tests/ref/fate/brenderpix-intpal
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
0, 0, 0, 1, 196608, 0x9662f917
diff --git a/tests/ref/fate/brenderpix-y400a b/tests/ref/fate/brenderpix-y400a
index 00e154009d..1f7c8db916 100644
--- a/tests/ref/fate/brenderpix-y400a
+++ b/tests/ref/fate/brenderpix-y400a
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 16x96
+#sar 0: 0/1
0, 0, 0, 1, 3072, 0x48280456
diff --git a/tests/ref/fate/canopus-cllc-argb b/tests/ref/fate/canopus-cllc-argb
index 4a5dce56db..bab7ed79ee 100644
--- a/tests/ref/fate/canopus-cllc-argb
+++ b/tests/ref/fate/canopus-cllc-argb
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 1/1
0, 0, 0, 1, 3686400, 0xb37a6e69
0, 1, 1, 1, 3686400, 0x66a45032
0, 2, 2, 1, 3686400, 0xdf0c861f
diff --git a/tests/ref/fate/canopus-cllc-rgb b/tests/ref/fate/canopus-cllc-rgb
index b4ca0553db..e9f54d1a41 100644
--- a/tests/ref/fate/canopus-cllc-rgb
+++ b/tests/ref/fate/canopus-cllc-rgb
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 1/1
0, 0, 0, 1, 921600, 0x82e44cb9
0, 1, 1, 1, 921600, 0x6ecc8a6c
0, 2, 2, 1, 921600, 0x0dc31839
diff --git a/tests/ref/fate/canopus-cllc-yuy2-noblock b/tests/ref/fate/canopus-cllc-yuy2-noblock
index 6ad59d504a..6242a82966 100644
--- a/tests/ref/fate/canopus-cllc-yuy2-noblock
+++ b/tests/ref/fate/canopus-cllc-yuy2-noblock
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 1/1
0, 0, 0, 1, 614400, 0x088c51de
0, 1, 1, 1, 614400, 0x93fff662
0, 2, 2, 1, 614400, 0x90ba6c28
diff --git a/tests/ref/fate/canopus-hq_hqa-hq b/tests/ref/fate/canopus-hq_hqa-hq
index ca376dc7b4..657e1e1457 100644
--- a/tests/ref/fate/canopus-hq_hqa-hq
+++ b/tests/ref/fate/canopus-hq_hqa-hq
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 64/45
0, 0, 0, 1, 829440, 0x8b6b2f6d
0, 1, 1, 1, 829440, 0x70382bf0
0, 2, 2, 1, 829440, 0xbfdf1f8d
diff --git a/tests/ref/fate/canopus-hq_hqa-hqa b/tests/ref/fate/canopus-hq_hqa-hqa
index 0996500884..1fd5bf7723 100644
--- a/tests/ref/fate/canopus-hq_hqa-hqa
+++ b/tests/ref/fate/canopus-hq_hqa-hqa
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 6220800, 0x2b2b17cc
diff --git a/tests/ref/fate/canopus-hq_hqa-inter b/tests/ref/fate/canopus-hq_hqa-inter
index 2880c95427..e4bbb5ec24 100644
--- a/tests/ref/fate/canopus-hq_hqa-inter
+++ b/tests/ref/fate/canopus-hq_hqa-inter
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 4147200, 0x418ecfe5
diff --git a/tests/ref/fate/canopus-hqx422 b/tests/ref/fate/canopus-hqx422
index 2e1fdf1bfd..5501abd888 100644
--- a/tests/ref/fate/canopus-hqx422
+++ b/tests/ref/fate/canopus-hqx422
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 64/45
0, 0, 0, 1, 1658880, 0x823fcbac
diff --git a/tests/ref/fate/canopus-hqx422a b/tests/ref/fate/canopus-hqx422a
index 0fd25774f0..e22af120ba 100644
--- a/tests/ref/fate/canopus-hqx422a
+++ b/tests/ref/fate/canopus-hqx422a
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 8294400, 0x9a22bebf
diff --git a/tests/ref/fate/cavs b/tests/ref/fate/cavs
index 87cf9ca83c..31b9d297f4 100644
--- a/tests/ref/fate/cavs
+++ b/tests/ref/fate/cavs
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 0/1
0, 0, 0, 1, 622080, 0x2276bc78
0, 1, 1, 1, 622080, 0xda1f698a
0, 2, 2, 1, 622080, 0xb9907023
diff --git a/tests/ref/fate/cdgraphics b/tests/ref/fate/cdgraphics
index ee02f5d526..f079bd4df0 100644
--- a/tests/ref/fate/cdgraphics
+++ b/tests/ref/fate/cdgraphics
@@ -1,4 +1,8 @@
#tb 0: 1/300
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x216
+#sar 0: 0/1
0, 0, 0, 1, 259200, 0x29aeb27e
0, 1, 1, 1, 259200, 0x29aeb27e
0, 2, 2, 1, 259200, 0x6779f55d
diff --git a/tests/ref/fate/cdxl-bitline-ham6 b/tests/ref/fate/cdxl-bitline-ham6
index 9ba7404b71..37c14596eb 100644
--- a/tests/ref/fate/cdxl-bitline-ham6
+++ b/tests/ref/fate/cdxl-bitline-ham6
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 162x130
+#sar 0: 0/1
0, 0, 0, 1, 63180, 0xcda82c16
0, 1, 1, 1, 63180, 0xa6097bf9
0, 2, 2, 1, 63180, 0x4c2fb091
diff --git a/tests/ref/fate/cdxl-demux b/tests/ref/fate/cdxl-demux
index 7e4c4c82eb..828b2c91fa 100644
--- a/tests/ref/fate/cdxl-demux
+++ b/tests/ref/fate/cdxl-demux
@@ -1,5 +1,13 @@
#tb 0: 1/11025
+#media_type 0: video
+#codec_id 0: cdxl
+#dimensions 0: 176x128
+#sar 0: 0/1
#tb 1: 1/11025
+#media_type 1: audio
+#codec_id 1: pcm_s8
+#sample_rate 1: 11025
+#channel_layout 1: 4
0, 0, 0, 1884, 22688, 0xc954a244
1, 0, 0, 1884, 1884, 0x06925e3e
0, 1884, 1884, 1884, 22688, 0x3ee4a304
diff --git a/tests/ref/fate/cdxl-ham6 b/tests/ref/fate/cdxl-ham6
index 6426d45014..1602c8af3e 100644
--- a/tests/ref/fate/cdxl-ham6
+++ b/tests/ref/fate/cdxl-ham6
@@ -1,4 +1,8 @@
#tb 0: 52/525
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 57600, 0x87887a7b
0, 1, 1, 1, 57600, 0x10c301d2
0, 2, 2, 1, 57600, 0xd1a6f910
diff --git a/tests/ref/fate/cdxl-ham8 b/tests/ref/fate/cdxl-ham8
index 1eebea37c7..ab1f76afa8 100644
--- a/tests/ref/fate/cdxl-ham8
+++ b/tests/ref/fate/cdxl-ham8
@@ -1,2 +1,6 @@
#tb 0: 12/281
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x128
+#sar 0: 0/1
0, 0, 0, 1, 67584, 0xce0cade5
diff --git a/tests/ref/fate/cdxl-pal8 b/tests/ref/fate/cdxl-pal8
index b2fb04518e..a242b0ce66 100644
--- a/tests/ref/fate/cdxl-pal8
+++ b/tests/ref/fate/cdxl-pal8
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x128
+#sar 0: 0/1
0, 0, 0, 1, 67584, 0x5eae629b
0, 1, 1, 1, 67584, 0x32591227
0, 2, 2, 1, 67584, 0x4e4424c7
diff --git a/tests/ref/fate/cdxl-pal8-small b/tests/ref/fate/cdxl-pal8-small
index f7a1a465ab..326eef7763 100644
--- a/tests/ref/fate/cdxl-pal8-small
+++ b/tests/ref/fate/cdxl-pal8-small
@@ -1,4 +1,8 @@
#tb 0: 368/11025
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x80
+#sar 0: 0/1
0, 0, 0, 1, 30720, 0x0d552cfd
0, 1, 1, 1, 30720, 0x3cf93291
0, 2, 2, 1, 30720, 0xe45b2868
diff --git a/tests/ref/fate/cljr b/tests/ref/fate/cljr
index 584254154a..ad4388d43a 100644
--- a/tests/ref/fate/cljr
+++ b/tests/ref/fate/cljr
@@ -1,4 +1,8 @@
#tb 0: 3521/100000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 240x180
+#sar 0: 0/1
0, 0, 0, 1, 64800, 0x63132a60
0, 1, 1, 1, 64800, 0xb3c729a3
0, 2, 2, 1, 64800, 0xa27b1e0e
diff --git a/tests/ref/fate/corepng b/tests/ref/fate/corepng
index e20071405d..4c106ed410 100644
--- a/tests/ref/fate/corepng
+++ b/tests/ref/fate/corepng
@@ -1,5 +1,13 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 1/11025
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 11025
+#channel_layout 1: 4
0, 0, 0, 1, 230400, 0x03e25ead
1, 0, 0, 5513, 11026, 0x27ad637c
0, 1, 1, 1, 230400, 0x0a520ffd
diff --git a/tests/ref/fate/creatureshock-avs b/tests/ref/fate/creatureshock-avs
index 4c721d8594..82460b243f 100644
--- a/tests/ref/fate/creatureshock-avs
+++ b/tests/ref/fate/creatureshock-avs
@@ -1,5 +1,13 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 318x198
+#sar 0: 0/1
#tb 1: 1/22222
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22222
+#channel_layout 1: 4
0, 0, 0, 1, 188892, 0x9f47a5ec
1, 0, 0, 8186, 16372, 0xfaaab59d
0, 1, 1, 1, 188892, 0xdece0269
diff --git a/tests/ref/fate/cscd b/tests/ref/fate/cscd
index 74fe94ef64..9af7b2fd63 100644
--- a/tests/ref/fate/cscd
+++ b/tests/ref/fate/cscd
@@ -1,4 +1,8 @@
#tb 0: 1/200
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x300
+#sar 0: 0/1
0, 0, 0, 1, 270000, 0xf90015d8
0, 9, 9, 1, 270000, 0xf90015d8
0, 15, 15, 1, 270000, 0xf90015d8
diff --git a/tests/ref/fate/cvid-grayscale b/tests/ref/fate/cvid-grayscale
index 1b586b3dde..a4f8dde805 100644
--- a/tests/ref/fate/cvid-grayscale
+++ b/tests/ref/fate/cvid-grayscale
@@ -1,4 +1,8 @@
#tb 0: 99561/500000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 100x75
+#sar 0: 0/1
0, 0, 0, 1, 22500, 0x0f8e562e
0, 1, 1, 1, 22500, 0x507aef06
0, 2, 2, 1, 22500, 0x059d6137
diff --git a/tests/ref/fate/cvid-palette b/tests/ref/fate/cvid-palette
index 49de1c1a05..eae41618b5 100644
--- a/tests/ref/fate/cvid-palette
+++ b/tests/ref/fate/cvid-palette
@@ -1,4 +1,8 @@
#tb 0: 200/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 57600, 0x1f5c89b7
0, 1, 1, 1, 57600, 0xd2055aaf
0, 2, 2, 1, 57600, 0x22336052
diff --git a/tests/ref/fate/cvid-partial b/tests/ref/fate/cvid-partial
index bb368a1eae..990939db1c 100644
--- a/tests/ref/fate/cvid-partial
+++ b/tests/ref/fate/cvid-partial
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 400x187
+#sar 0: 0/1
0, 0, 0, 1, 224400, 0xd8f2f310
0, 1, 1, 1, 224400, 0xe38676c2
0, 2, 2, 1, 224400, 0x7163b6ad
diff --git a/tests/ref/fate/cyberia-c93 b/tests/ref/fate/cyberia-c93
index f02435c090..5eb433649b 100644
--- a/tests/ref/fate/cyberia-c93
+++ b/tests/ref/fate/cyberia-c93
@@ -1,5 +1,13 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x192
+#sar 0: 5/6
#tb 1: 1/16129
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 16129
+#channel_layout 1: 4
0, 0, 0, 1, 184320, 0x8433f0f8
1, 0, 0, 14184, 28368, 0xaacc96a5
0, 1, 1, 1, 184320, 0xd0d480f7
diff --git a/tests/ref/fate/cyuv b/tests/ref/fate/cyuv
index 37bdd2ff9b..18caeb879c 100644
--- a/tests/ref/fate/cyuv
+++ b/tests/ref/fate/cyuv
@@ -1,4 +1,8 @@
#tb 0: 33333/1000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x501e6abe
0, 1, 1, 1, 38016, 0x84976f13
0, 2, 2, 1, 38016, 0x8c487acb
diff --git a/tests/ref/fate/d-cinema-demux b/tests/ref/fate/d-cinema-demux
index 2f28e46efe..8e747de2a1 100644
--- a/tests/ref/fate/d-cinema-demux
+++ b/tests/ref/fate/d-cinema-demux
@@ -1,4 +1,8 @@
#tb 0: 1/90000
+#media_type 0: audio
+#codec_id 0: pcm_s24daud
+#sample_rate 0: 96000
+#channel_layout 0: 60f
0, 0, 0, 1875, 36000, 0xd592781d
0, 1875, 1875, 1875, 36000, 0xd592781d
0, 3750, 3750, 1875, 36000, 0xd592781d
diff --git a/tests/ref/fate/d-eavp6-demux b/tests/ref/fate/d-eavp6-demux
index 3587a0837c..7cc13cf82a 100644
--- a/tests/ref/fate/d-eavp6-demux
+++ b/tests/ref/fate/d-eavp6-demux
@@ -1,5 +1,13 @@
#tb 0: 32767/982027
+#media_type 0: video
+#codec_id 0: vp6
+#dimensions 0: 64x64
+#sar 0: 0/1
#tb 1: 32767/982027
+#media_type 1: video
+#codec_id 1: vp6
+#dimensions 1: 64x64
+#sar 1: 0/1
0, 0, 0, 1, 1860, 0xbd548c4c
1, 0, 0, 1, 1748, 0x96046284
0, 1, 1, 1, 1044, 0x814efc86, F=0x0
diff --git a/tests/ref/fate/dds-argb b/tests/ref/fate/dds-argb
index fbde4242e4..f230133f71 100644
--- a/tests/ref/fate/dds-argb
+++ b/tests/ref/fate/dds-argb
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 220x64
+#sar 0: 0/1
0, 0, 0, 1, 56320, 0xfcaa920b
diff --git a/tests/ref/fate/dds-argb-aexp b/tests/ref/fate/dds-argb-aexp
index f52410f98e..0e2b9af009 100644
--- a/tests/ref/fate/dds-argb-aexp
+++ b/tests/ref/fate/dds-argb-aexp
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xfdd37c43
diff --git a/tests/ref/fate/dds-dx10-bc1 b/tests/ref/fate/dds-dx10-bc1
index 84efd9f5ce..e99bf00eb5 100644
--- a/tests/ref/fate/dds-dx10-bc1
+++ b/tests/ref/fate/dds-dx10-bc1
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xed2f850f
diff --git a/tests/ref/fate/dds-dx10-bc1a b/tests/ref/fate/dds-dx10-bc1a
index 8cb4589e9b..53a2256fe9 100644
--- a/tests/ref/fate/dds-dx10-bc1a
+++ b/tests/ref/fate/dds-dx10-bc1a
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x473b484b
diff --git a/tests/ref/fate/dds-dx10-bc2 b/tests/ref/fate/dds-dx10-bc2
index a25180de24..5c31b38a6b 100644
--- a/tests/ref/fate/dds-dx10-bc2
+++ b/tests/ref/fate/dds-dx10-bc2
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x2bce3baa
diff --git a/tests/ref/fate/dds-dx10-bc3 b/tests/ref/fate/dds-dx10-bc3
index 296c94523d..4bc4ef43d9 100644
--- a/tests/ref/fate/dds-dx10-bc3
+++ b/tests/ref/fate/dds-dx10-bc3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xb91d3c62
diff --git a/tests/ref/fate/dds-dx10-bc4 b/tests/ref/fate/dds-dx10-bc4
index 4583d258c1..8d57cfa993 100644
--- a/tests/ref/fate/dds-dx10-bc4
+++ b/tests/ref/fate/dds-dx10-bc4
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xfdfd1751
diff --git a/tests/ref/fate/dds-dx10-bc5 b/tests/ref/fate/dds-dx10-bc5
index bf595eb4e2..d8e473422c 100644
--- a/tests/ref/fate/dds-dx10-bc5
+++ b/tests/ref/fate/dds-dx10-bc5
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x79bd207e
diff --git a/tests/ref/fate/dds-dxt1 b/tests/ref/fate/dds-dxt1
index 24774069db..f1c6c9ce13 100644
--- a/tests/ref/fate/dds-dxt1
+++ b/tests/ref/fate/dds-dxt1
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x64
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0xf52adc80
diff --git a/tests/ref/fate/dds-dxt1-normalmap b/tests/ref/fate/dds-dxt1-normalmap
index 3f77547c05..15d63b1101 100644
--- a/tests/ref/fate/dds-dxt1-normalmap
+++ b/tests/ref/fate/dds-dxt1-normalmap
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x2b411855
diff --git a/tests/ref/fate/dds-dxt1a b/tests/ref/fate/dds-dxt1a
index 05be314bb9..1786b49dbd 100644
--- a/tests/ref/fate/dds-dxt1a
+++ b/tests/ref/fate/dds-dxt1a
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xcabb50ea
diff --git a/tests/ref/fate/dds-dxt2 b/tests/ref/fate/dds-dxt2
index 40bcf6ebab..b5bdfbadc3 100644
--- a/tests/ref/fate/dds-dxt2
+++ b/tests/ref/fate/dds-dxt2
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x11cebeb0
diff --git a/tests/ref/fate/dds-dxt3 b/tests/ref/fate/dds-dxt3
index 41401daeb2..d93e35c43d 100644
--- a/tests/ref/fate/dds-dxt3
+++ b/tests/ref/fate/dds-dxt3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x729b74ba
diff --git a/tests/ref/fate/dds-dxt4 b/tests/ref/fate/dds-dxt4
index dc5d73f540..136dfd8006 100644
--- a/tests/ref/fate/dds-dxt4
+++ b/tests/ref/fate/dds-dxt4
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x31aaacd6
diff --git a/tests/ref/fate/dds-dxt5 b/tests/ref/fate/dds-dxt5
index 399d6d954d..696e0389e4 100644
--- a/tests/ref/fate/dds-dxt5
+++ b/tests/ref/fate/dds-dxt5
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xfd3166aa
diff --git a/tests/ref/fate/dds-dxt5-aexp b/tests/ref/fate/dds-dxt5-aexp
index ff91afde53..334dcc1ccb 100644
--- a/tests/ref/fate/dds-dxt5-aexp
+++ b/tests/ref/fate/dds-dxt5-aexp
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x3c987914
diff --git a/tests/ref/fate/dds-dxt5-normalmap b/tests/ref/fate/dds-dxt5-normalmap
index 680d1b7ff2..b562b1914a 100644
--- a/tests/ref/fate/dds-dxt5-normalmap
+++ b/tests/ref/fate/dds-dxt5-normalmap
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xd29b1ea1
diff --git a/tests/ref/fate/dds-dxt5-normalmap-ati b/tests/ref/fate/dds-dxt5-normalmap-ati
index 7f088f7584..b1fb53d9ff 100644
--- a/tests/ref/fate/dds-dxt5-normalmap-ati
+++ b/tests/ref/fate/dds-dxt5-normalmap-ati
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x54cb212f
diff --git a/tests/ref/fate/dds-dxt5-rbxg b/tests/ref/fate/dds-dxt5-rbxg
index 7dbecf4235..01779464c5 100644
--- a/tests/ref/fate/dds-dxt5-rbxg
+++ b/tests/ref/fate/dds-dxt5-rbxg
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x37588d12
diff --git a/tests/ref/fate/dds-dxt5-rgxb b/tests/ref/fate/dds-dxt5-rgxb
index 137913d83b..522679cb97 100644
--- a/tests/ref/fate/dds-dxt5-rgxb
+++ b/tests/ref/fate/dds-dxt5-rgxb
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xfb6b91cf
diff --git a/tests/ref/fate/dds-dxt5-rxbg b/tests/ref/fate/dds-dxt5-rxbg
index b6e12d3d71..cc6a23992b 100644
--- a/tests/ref/fate/dds-dxt5-rxbg
+++ b/tests/ref/fate/dds-dxt5-rxbg
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xc6cb8cbe
diff --git a/tests/ref/fate/dds-dxt5-rxgb b/tests/ref/fate/dds-dxt5-rxgb
index a4190d5493..9d70af87c0 100644
--- a/tests/ref/fate/dds-dxt5-rxgb
+++ b/tests/ref/fate/dds-dxt5-rxgb
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xb67d936a
diff --git a/tests/ref/fate/dds-dxt5-xgbr b/tests/ref/fate/dds-dxt5-xgbr
index 95404f2297..2f82cdc020 100644
--- a/tests/ref/fate/dds-dxt5-xgbr
+++ b/tests/ref/fate/dds-dxt5-xgbr
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xb0e69293
diff --git a/tests/ref/fate/dds-dxt5-xgxr b/tests/ref/fate/dds-dxt5-xgxr
index 3ed73c395f..3555449919 100644
--- a/tests/ref/fate/dds-dxt5-xgxr
+++ b/tests/ref/fate/dds-dxt5-xgxr
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xa93de1ad
diff --git a/tests/ref/fate/dds-dxt5-xrbg b/tests/ref/fate/dds-dxt5-xrbg
index f6479554c4..e6228f7c66 100644
--- a/tests/ref/fate/dds-dxt5-xrbg
+++ b/tests/ref/fate/dds-dxt5-xrbg
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xf20d8b69
diff --git a/tests/ref/fate/dds-dxt5-ycocg b/tests/ref/fate/dds-dxt5-ycocg
index 1dd8bef855..7f98652ef6 100644
--- a/tests/ref/fate/dds-dxt5-ycocg
+++ b/tests/ref/fate/dds-dxt5-ycocg
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x0d0c8d20
diff --git a/tests/ref/fate/dds-dxt5-ycocg-scaled b/tests/ref/fate/dds-dxt5-ycocg-scaled
index 5a70b490f8..2e74a8419b 100644
--- a/tests/ref/fate/dds-dxt5-ycocg-scaled
+++ b/tests/ref/fate/dds-dxt5-ycocg-scaled
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x5a089973
diff --git a/tests/ref/fate/dds-pal b/tests/ref/fate/dds-pal
index 575a4bd51b..08c14a2bf1 100644
--- a/tests/ref/fate/dds-pal
+++ b/tests/ref/fate/dds-pal
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 65536, 0x4287e5cd
diff --git a/tests/ref/fate/dds-pal-ati b/tests/ref/fate/dds-pal-ati
index 6de8adb445..3303f7614f 100644
--- a/tests/ref/fate/dds-pal-ati
+++ b/tests/ref/fate/dds-pal-ati
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x6ac18060
diff --git a/tests/ref/fate/dds-rgb16 b/tests/ref/fate/dds-rgb16
index 40a9938f34..7865070c06 100644
--- a/tests/ref/fate/dds-rgb16
+++ b/tests/ref/fate/dds-rgb16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xc8910265
diff --git a/tests/ref/fate/dds-rgb24 b/tests/ref/fate/dds-rgb24
index 3eeb1eb04c..2d4e7ed7a4 100644
--- a/tests/ref/fate/dds-rgb24
+++ b/tests/ref/fate/dds-rgb24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x64
+#sar 0: 0/1
0, 0, 0, 1, 24576, 0xef0f9653
diff --git a/tests/ref/fate/dds-rgba b/tests/ref/fate/dds-rgba
index 803b40a70a..7a14673c62 100644
--- a/tests/ref/fate/dds-rgba
+++ b/tests/ref/fate/dds-rgba
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 80x80
+#sar 0: 0/1
0, 0, 0, 1, 25600, 0xa2a47b2f
diff --git a/tests/ref/fate/dds-rgtc1s b/tests/ref/fate/dds-rgtc1s
index 5085962e55..f0e271b52c 100644
--- a/tests/ref/fate/dds-rgtc1s
+++ b/tests/ref/fate/dds-rgtc1s
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xcda652a4
diff --git a/tests/ref/fate/dds-rgtc1u b/tests/ref/fate/dds-rgtc1u
index b7cff66eb3..5ef5c0540b 100644
--- a/tests/ref/fate/dds-rgtc1u
+++ b/tests/ref/fate/dds-rgtc1u
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x629a1b44
diff --git a/tests/ref/fate/dds-rgtc2s b/tests/ref/fate/dds-rgtc2s
index 722760205d..9e8653b141 100644
--- a/tests/ref/fate/dds-rgtc2s
+++ b/tests/ref/fate/dds-rgtc2s
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0xa0135ca8
diff --git a/tests/ref/fate/dds-rgtc2u b/tests/ref/fate/dds-rgtc2u
index 0b6678bbfa..9d3683f77e 100644
--- a/tests/ref/fate/dds-rgtc2u
+++ b/tests/ref/fate/dds-rgtc2u
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x38cb221a
diff --git a/tests/ref/fate/dds-rgtc2u-xy b/tests/ref/fate/dds-rgtc2u-xy
index bf595eb4e2..d8e473422c 100644
--- a/tests/ref/fate/dds-rgtc2u-xy
+++ b/tests/ref/fate/dds-rgtc2u-xy
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x79bd207e
diff --git a/tests/ref/fate/dds-uyvy b/tests/ref/fate/dds-uyvy
index 2bcbaa0455..b6fa221486 100644
--- a/tests/ref/fate/dds-uyvy
+++ b/tests/ref/fate/dds-uyvy
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 8192, 0x3c658750
diff --git a/tests/ref/fate/dds-xbgr b/tests/ref/fate/dds-xbgr
index eb7a0246db..d4f4d98517 100644
--- a/tests/ref/fate/dds-xbgr
+++ b/tests/ref/fate/dds-xbgr
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x70336a28
diff --git a/tests/ref/fate/dds-xrgb b/tests/ref/fate/dds-xrgb
index 63e5225f89..23d466721d 100644
--- a/tests/ref/fate/dds-xrgb
+++ b/tests/ref/fate/dds-xrgb
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x702f6a28
diff --git a/tests/ref/fate/dds-y b/tests/ref/fate/dds-y
index ae62091b65..9a8f01dd96 100644
--- a/tests/ref/fate/dds-y
+++ b/tests/ref/fate/dds-y
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x64
+#sar 0: 0/1
0, 0, 0, 1, 8192, 0x56eca90f
diff --git a/tests/ref/fate/dds-ya b/tests/ref/fate/dds-ya
index d6527c638d..1de0436b83 100644
--- a/tests/ref/fate/dds-ya
+++ b/tests/ref/fate/dds-ya
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 220x64
+#sar 0: 0/1
0, 0, 0, 1, 28160, 0xd3981fcb
diff --git a/tests/ref/fate/dds-ycocg b/tests/ref/fate/dds-ycocg
index f3dd727cbe..6d22842a6f 100644
--- a/tests/ref/fate/dds-ycocg
+++ b/tests/ref/fate/dds-ycocg
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x4cb08d0a
diff --git a/tests/ref/fate/dds-yuyv b/tests/ref/fate/dds-yuyv
index e65c9507da..07efd876ac 100644
--- a/tests/ref/fate/dds-yuyv
+++ b/tests/ref/fate/dds-yuyv
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 8192, 0xc1108750
diff --git a/tests/ref/fate/delphine-cin-audio b/tests/ref/fate/delphine-cin-audio
index 1a94a6be0a..5a69640a4c 100644
--- a/tests/ref/fate/delphine-cin-audio
+++ b/tests/ref/fate/delphine-cin-audio
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 88224, 176448, 0x541ddc55
0, 88224, 88224, 1838, 3676, 0xaf455081
0, 90062, 90062, 1838, 3676, 0x27ef4e91
diff --git a/tests/ref/fate/delphine-cin-video b/tests/ref/fate/delphine-cin-video
index feaea26d44..6d25164a94 100644
--- a/tests/ref/fate/delphine-cin-video
+++ b/tests/ref/fate/delphine-cin-video
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x160
+#sar 0: 0/1
0, 0, 0, 1, 153600, 0x00000000
0, 1, 1, 1, 153600, 0x9c77862c
0, 2, 2, 1, 153600, 0xd487c33c
diff --git a/tests/ref/fate/deluxepaint-anm b/tests/ref/fate/deluxepaint-anm
index e69b95e125..e466f25330 100644
--- a/tests/ref/fate/deluxepaint-anm
+++ b/tests/ref/fate/deluxepaint-anm
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x82a79641
0, 1, 1, 1, 192000, 0x43079971
0, 2, 2, 1, 192000, 0x6311f1e5
diff --git a/tests/ref/fate/dfa1 b/tests/ref/fate/dfa1
index 7bc5bf1e48..3764391c35 100644
--- a/tests/ref/fate/dfa1
+++ b/tests/ref/fate/dfa1
@@ -1,4 +1,8 @@
#tb 0: 16/125
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0xb69faa34
0, 1, 1, 1, 921600, 0x38680829
0, 2, 2, 1, 921600, 0xa7263c5a
diff --git a/tests/ref/fate/dfa10 b/tests/ref/fate/dfa10
index a799f03b22..8e0e3c9ec1 100644
--- a/tests/ref/fate/dfa10
+++ b/tests/ref/fate/dfa10
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x7384f9b2
0, 1, 1, 1, 192000, 0xd1f61c71
0, 2, 2, 1, 192000, 0x0c6937d1
diff --git a/tests/ref/fate/dfa11 b/tests/ref/fate/dfa11
index 30b4b71032..22571b594e 100644
--- a/tests/ref/fate/dfa11
+++ b/tests/ref/fate/dfa11
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x4269d703
0, 1, 1, 1, 192000, 0xdf8667e7
0, 2, 2, 1, 192000, 0x450026ad
diff --git a/tests/ref/fate/dfa2 b/tests/ref/fate/dfa2
index cc4b454fa9..0fd55b738b 100644
--- a/tests/ref/fate/dfa2
+++ b/tests/ref/fate/dfa2
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x8a5d15df
0, 1, 1, 1, 921600, 0x92c01362
0, 2, 2, 1, 921600, 0xe1a31643
diff --git a/tests/ref/fate/dfa3 b/tests/ref/fate/dfa3
index 9b170ec69b..417250cb18 100644
--- a/tests/ref/fate/dfa3
+++ b/tests/ref/fate/dfa3
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x236a1b54
0, 1, 1, 1, 192000, 0xfb438b68
0, 2, 2, 1, 192000, 0xde504563
diff --git a/tests/ref/fate/dfa4 b/tests/ref/fate/dfa4
index 0e0dc020a4..76a4edecb7 100644
--- a/tests/ref/fate/dfa4
+++ b/tests/ref/fate/dfa4
@@ -1,4 +1,8 @@
#tb 0: 71/500
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x00000000
0, 1, 1, 1, 921600, 0xd9e060e3
0, 2, 2, 1, 921600, 0x15e28dc7
diff --git a/tests/ref/fate/dfa5 b/tests/ref/fate/dfa5
index 3be3c5269a..c836bf7202 100644
--- a/tests/ref/fate/dfa5
+++ b/tests/ref/fate/dfa5
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x9754890f
0, 1, 1, 1, 192000, 0x01668965
0, 2, 2, 1, 192000, 0xbd1b5e12
diff --git a/tests/ref/fate/dfa6 b/tests/ref/fate/dfa6
index 535f98b346..83b1998369 100644
--- a/tests/ref/fate/dfa6
+++ b/tests/ref/fate/dfa6
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0xb718dc63
0, 1, 1, 1, 192000, 0x2efb7b89
0, 2, 2, 1, 192000, 0x70827047
diff --git a/tests/ref/fate/dfa7 b/tests/ref/fate/dfa7
index 28122c5287..6a62f727fe 100644
--- a/tests/ref/fate/dfa7
+++ b/tests/ref/fate/dfa7
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 46x57
+#sar 0: 0/1
0, 0, 0, 1, 7866, 0xab73dae7
0, 1, 1, 1, 7866, 0x100adec8
0, 2, 2, 1, 7866, 0x1a20ddfa
diff --git a/tests/ref/fate/dfa8 b/tests/ref/fate/dfa8
index 866260a10c..7b83f3e23b 100644
--- a/tests/ref/fate/dfa8
+++ b/tests/ref/fate/dfa8
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 218x206
+#sar 0: 0/1
0, 0, 0, 1, 134724, 0x53784ca9
0, 1, 1, 1, 134724, 0x14c345b7
0, 2, 2, 1, 134724, 0xe0d0dd51
diff --git a/tests/ref/fate/dfa9 b/tests/ref/fate/dfa9
index 99eb3f678d..74b596fd65 100644
--- a/tests/ref/fate/dfa9
+++ b/tests/ref/fate/dfa9
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 338x225
+#sar 0: 0/1
0, 0, 0, 1, 228150, 0xde68df49
0, 1, 1, 1, 228150, 0x8e12bcaf
0, 2, 2, 1, 228150, 0x851b04f7
diff --git a/tests/ref/fate/dirac b/tests/ref/fate/dirac
index 7781b4e5dd..f3f3dafb19 100644
--- a/tests/ref/fate/dirac
+++ b/tests/ref/fate/dirac
@@ -1,3 +1,7 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0xf73819e8
0, 1, 1, 1, 115200, 0x082e3788
diff --git a/tests/ref/fate/dnxhd-mbaff b/tests/ref/fate/dnxhd-mbaff
index 171c244d14..d694cfede2 100644
--- a/tests/ref/fate/dnxhd-mbaff
+++ b/tests/ref/fate/dnxhd-mbaff
@@ -1,2 +1,6 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1440x1080
+#sar 0: 4/3
0, 0, 0, 1, 6220800, 0xe78198c0
diff --git a/tests/ref/fate/dnxhr-444 b/tests/ref/fate/dnxhr-444
index f9e73c313e..25f42194ee 100644
--- a/tests/ref/fate/dnxhr-444
+++ b/tests/ref/fate/dnxhr-444
@@ -1,2 +1,6 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x839
+#sar 0: 0/1
0, 0, 0, 1, 9665280, 0x19ef4057
diff --git a/tests/ref/fate/dnxhr-parse b/tests/ref/fate/dnxhr-parse
index ae1bd8ab1a..2fc5a47f58 100644
--- a/tests/ref/fate/dnxhr-parse
+++ b/tests/ref/fate/dnxhr-parse
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 3840x2160
+#sar 0: 0/1
0, 0, 0, 1, 16588800, 0x67ebfdb1
0, 1, 1, 1, 16588800, 0x7fa687e6
0, 2, 2, 1, 16588800, 0x4e13f5eb
diff --git a/tests/ref/fate/dpcm-idroq b/tests/ref/fate/dpcm-idroq
index 85e8efb098..39f2c799a3 100644
--- a/tests/ref/fate/dpcm-idroq
+++ b/tests/ref/fate/dpcm-idroq
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 7456, 29824, 0x77e265b7
0, 7456, 7456, 736, 2944, 0x8dcdf50b
0, 8192, 8192, 736, 2944, 0xb135cd2a
diff --git a/tests/ref/fate/dpcm-interplay b/tests/ref/fate/dpcm-interplay
index bda8a8f8d9..87a28620a5 100644
--- a/tests/ref/fate/dpcm-interplay
+++ b/tests/ref/fate/dpcm-interplay
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 1462, 5848, 0xea04292b
0, 1462, 1462, 1472, 5888, 0x0e59e942
0, 2934, 2934, 1472, 5888, 0x56d480f6
diff --git a/tests/ref/fate/dpx b/tests/ref/fate/dpx
index fdb85ca9bc..d5f0ecbcb2 100644
--- a/tests/ref/fate/dpx
+++ b/tests/ref/fate/dpx
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 768x512
+#sar 0: 0/1
0, 0, 0, 1, 2359296, 0x30d4d24f
diff --git a/tests/ref/fate/dpxparser b/tests/ref/fate/dpxparser
index 0ecc36cab2..c21ad74396 100644
--- a/tests/ref/fate/dpxparser
+++ b/tests/ref/fate/dpxparser
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 130x130
+#sar 0: 0/1
0, 0, 0, 1, 50700, 0xe7153545
0, 1, 1, 1, 50700, 0x2bc92ece
0, 2, 2, 1, 50700, 0x83c731bb
diff --git a/tests/ref/fate/dss-lp b/tests/ref/fate/dss-lp
index b5bee182f9..6b5a7db8f5 100644
--- a/tests/ref/fate/dss-lp
+++ b/tests/ref/fate/dss-lp
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0xf1107658
0, 240, 240, 240, 480, 0x50dee179
0, 480, 480, 240, 480, 0x40090802
diff --git a/tests/ref/fate/dss-sp b/tests/ref/fate/dss-sp
index 111c621bb8..5caa46999a 100644
--- a/tests/ref/fate/dss-sp
+++ b/tests/ref/fate/dss-sp
@@ -1,4 +1,8 @@
#tb 0: 1/11025
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 11025
+#channel_layout 0: 4
0, 0, 0, 264, 528, 0xa2579e96
0, 264, 264, 264, 528, 0xf9b23172
0, 528, 528, 264, 528, 0x5571a0fe
diff --git a/tests/ref/fate/dxa-feeble b/tests/ref/fate/dxa-feeble
index 74b43dcf22..5fa4175a0c 100644
--- a/tests/ref/fate/dxa-feeble
+++ b/tests/ref/fate/dxa-feeble
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x0d03844f
0, 1, 1, 1, 921600, 0x0d03844f
0, 2, 2, 1, 921600, 0x649cdcea
diff --git a/tests/ref/fate/dxa-scummvm b/tests/ref/fate/dxa-scummvm
index 308a8964f2..e8817cb2f1 100644
--- a/tests/ref/fate/dxa-scummvm
+++ b/tests/ref/fate/dxa-scummvm
@@ -1,4 +1,8 @@
#tb 0: 8333/100000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x200
+#sar 0: 0/1
0, 0, 0, 1, 384000, 0xef37f34b
0, 1, 1, 1, 384000, 0xef37f34b
0, 2, 2, 1, 384000, 0xfca3cd8b
diff --git a/tests/ref/fate/dxtory b/tests/ref/fate/dxtory
index 7d3ecbdf0e..bda8872816 100644
--- a/tests/ref/fate/dxtory
+++ b/tests/ref/fate/dxtory
@@ -1,3 +1,11 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, 0, 0, 1, 1382400, 0x44373645
diff --git a/tests/ref/fate/dxv-dxt1 b/tests/ref/fate/dxv-dxt1
index 128dabaeed..d9f5ece1fb 100644
--- a/tests/ref/fate/dxv-dxt1
+++ b/tests/ref/fate/dxv-dxt1
@@ -1,2 +1,6 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x0797cd53
diff --git a/tests/ref/fate/dxv-dxt5 b/tests/ref/fate/dxv-dxt5
index 128dabaeed..d9f5ece1fb 100644
--- a/tests/ref/fate/dxv-dxt5
+++ b/tests/ref/fate/dxv-dxt5
@@ -1,2 +1,6 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x0797cd53
diff --git a/tests/ref/fate/dxv3-dxt1 b/tests/ref/fate/dxv3-dxt1
index e0f1f941dd..96ce66909b 100644
--- a/tests/ref/fate/dxv3-dxt1
+++ b/tests/ref/fate/dxv3-dxt1
@@ -1,2 +1,6 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x98bbcc85
diff --git a/tests/ref/fate/dxv3-dxt5 b/tests/ref/fate/dxv3-dxt5
index 128dabaeed..d9f5ece1fb 100644
--- a/tests/ref/fate/dxv3-dxt5
+++ b/tests/ref/fate/dxv3-dxt5
@@ -1,2 +1,6 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x0797cd53
diff --git a/tests/ref/fate/ea-cmv b/tests/ref/fate/ea-cmv
index 8f9049e907..793cb8496f 100644
--- a/tests/ref/fate/ea-cmv
+++ b/tests/ref/fate/ea-cmv
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 200x200
+#sar 0: 0/1
0, 0, 0, 1, 120000, 0x34ac91d2
0, 1, 1, 1, 120000, 0x17150729
0, 2, 2, 1, 120000, 0xc3f510bb
diff --git a/tests/ref/fate/ea-mad b/tests/ref/fate/ea-mad
index 1ea92fda42..ea92fe18f8 100644
--- a/tests/ref/fate/ea-mad
+++ b/tests/ref/fate/ea-mad
@@ -1,4 +1,8 @@
#tb 0: 33/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x496
+#sar 0: 0/1
0, 0, 0, 1, 535680, 0x889c32cf
0, 1, 1, 1, 535680, 0x0b1ef044
0, 2, 2, 1, 535680, 0xa7d0818b
diff --git a/tests/ref/fate/ea-tgq b/tests/ref/fate/ea-tgq
index 5c0648dbaf..2f38e71d25 100644
--- a/tests/ref/fate/ea-tgq
+++ b/tests/ref/fate/ea-tgq
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 208x112
+#sar 0: 0/1
0, 0, 0, 1, 34944, 0xe33671a4
0, 1, 1, 1, 34944, 0xe33671a4
0, 2, 2, 1, 34944, 0xe33671a4
diff --git a/tests/ref/fate/ea-tgv-1 b/tests/ref/fate/ea-tgv-1
index fc9218164b..7533af001e 100644
--- a/tests/ref/fate/ea-tgv-1
+++ b/tests/ref/fate/ea-tgv-1
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0xfbf2581e
0, 1, 1, 1, 230400, 0xfbf2581e
0, 2, 2, 1, 230400, 0xfbf2581e
diff --git a/tests/ref/fate/ea-tgv-2 b/tests/ref/fate/ea-tgv-2
index 5e9de02149..cfa100fdc4 100644
--- a/tests/ref/fate/ea-tgv-2
+++ b/tests/ref/fate/ea-tgv-2
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0xdfc2f225
0, 1, 1, 1, 192000, 0x059b57bd
0, 2, 2, 1, 192000, 0x766cb086
diff --git a/tests/ref/fate/ea-tqi b/tests/ref/fate/ea-tqi
index 72afb81ede..926ab6d5ab 100644
--- a/tests/ref/fate/ea-tqi
+++ b/tests/ref/fate/ea-tqi
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 400x192
+#sar 0: 0/1
0, 0, 0, 1, 115200, 0x375ec573
0, 1, 1, 1, 115200, 0x375ec573
0, 2, 2, 1, 115200, 0x375ec573
diff --git a/tests/ref/fate/exr-rgb-scanline-float-b44 b/tests/ref/fate/exr-rgb-scanline-float-b44
index d8f393405d..91b0e1fba1 100644
--- a/tests/ref/fate/exr-rgb-scanline-float-b44
+++ b/tests/ref/fate/exr-rgb-scanline-float-b44
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 1/1
0, 0, 0, 1, 576, 0x39c8e03e
diff --git a/tests/ref/fate/exr-rgb-scanline-half-b44-12x8 b/tests/ref/fate/exr-rgb-scanline-half-b44-12x8
index ce1e009d18..8464203e7a 100644
--- a/tests/ref/fate/exr-rgb-scanline-half-b44-12x8
+++ b/tests/ref/fate/exr-rgb-scanline-half-b44-12x8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 1/1
0, 0, 0, 1, 576, 0x506469f9
diff --git a/tests/ref/fate/exr-rgb-scanline-half-b44-13x9 b/tests/ref/fate/exr-rgb-scanline-half-b44-13x9
index e40608d9b0..675d2f0949 100644
--- a/tests/ref/fate/exr-rgb-scanline-half-b44-13x9
+++ b/tests/ref/fate/exr-rgb-scanline-half-b44-13x9
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 13x9
+#sar 0: 1/1
0, 0, 0, 1, 702, 0x6914838a
diff --git a/tests/ref/fate/exr-rgb-scanline-pxr24-float-12x8 b/tests/ref/fate/exr-rgb-scanline-pxr24-float-12x8
index 0f3a112415..13946d8e03 100644
--- a/tests/ref/fate/exr-rgb-scanline-pxr24-float-12x8
+++ b/tests/ref/fate/exr-rgb-scanline-pxr24-float-12x8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 1/1
0, 0, 0, 1, 576, 0x7120e072
diff --git a/tests/ref/fate/exr-rgb-tile-float-raw-12x8 b/tests/ref/fate/exr-rgb-tile-float-raw-12x8
index 1c209820a5..abe41b8a7a 100644
--- a/tests/ref/fate/exr-rgb-tile-float-raw-12x8
+++ b/tests/ref/fate/exr-rgb-tile-float-raw-12x8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 1/1
0, 0, 0, 1, 576, 0x6b950ce3
diff --git a/tests/ref/fate/exr-rgb-tile-float-raw-150x130 b/tests/ref/fate/exr-rgb-tile-float-raw-150x130
index 4efacaa4b9..3ac5c28df1 100644
--- a/tests/ref/fate/exr-rgb-tile-float-raw-150x130
+++ b/tests/ref/fate/exr-rgb-tile-float-raw-150x130
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 150x130
+#sar 0: 1/1
0, 0, 0, 1, 117000, 0xabc5eab2
diff --git a/tests/ref/fate/exr-rgb-tile-half-raw-12x8 b/tests/ref/fate/exr-rgb-tile-half-raw-12x8
index e03753e321..f59e248d69 100644
--- a/tests/ref/fate/exr-rgb-tile-half-raw-12x8
+++ b/tests/ref/fate/exr-rgb-tile-half-raw-12x8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 1/1
0, 0, 0, 1, 576, 0x667903f5
diff --git a/tests/ref/fate/exr-rgba-multiscanline-half-b44 b/tests/ref/fate/exr-rgba-multiscanline-half-b44
index e82481d873..4b9a88ba52 100644
--- a/tests/ref/fate/exr-rgba-multiscanline-half-b44
+++ b/tests/ref/fate/exr-rgba-multiscanline-half-b44
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 935x251
+#sar 0: 1/1
0, 0, 0, 1, 1877480, 0x6f28b860
diff --git a/tests/ref/fate/exr-slice-pxr24 b/tests/ref/fate/exr-slice-pxr24
index c46e897b13..99fbc05074 100644
--- a/tests/ref/fate/exr-slice-pxr24
+++ b/tests/ref/fate/exr-slice-pxr24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 800x800
+#sar 0: 1/1
0, 0, 0, 1, 3840000, 0xdcfb341d
diff --git a/tests/ref/fate/exr-slice-raw b/tests/ref/fate/exr-slice-raw
index a8b4b27331..cbe124b3e1 100644
--- a/tests/ref/fate/exr-slice-raw
+++ b/tests/ref/fate/exr-slice-raw
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 587x675
+#sar 0: 1/1
0, 0, 0, 1, 3169800, 0x6a356d0d
diff --git a/tests/ref/fate/exr-slice-rle b/tests/ref/fate/exr-slice-rle
index a8b4b27331..cbe124b3e1 100644
--- a/tests/ref/fate/exr-slice-rle
+++ b/tests/ref/fate/exr-slice-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 587x675
+#sar 0: 1/1
0, 0, 0, 1, 3169800, 0x6a356d0d
diff --git a/tests/ref/fate/exr-slice-zip1 b/tests/ref/fate/exr-slice-zip1
index a8b4b27331..cbe124b3e1 100644
--- a/tests/ref/fate/exr-slice-zip1
+++ b/tests/ref/fate/exr-slice-zip1
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 587x675
+#sar 0: 1/1
0, 0, 0, 1, 3169800, 0x6a356d0d
diff --git a/tests/ref/fate/exr-slice-zip16 b/tests/ref/fate/exr-slice-zip16
index a8b4b27331..cbe124b3e1 100644
--- a/tests/ref/fate/exr-slice-zip16
+++ b/tests/ref/fate/exr-slice-zip16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 587x675
+#sar 0: 1/1
0, 0, 0, 1, 3169800, 0x6a356d0d
diff --git a/tests/ref/fate/ffmpeg-filter_colorkey b/tests/ref/fate/ffmpeg-filter_colorkey
index 0e4780b085..9fbdfebb42 100644
--- a/tests/ref/fate/ffmpeg-filter_colorkey
+++ b/tests/ref/fate/ffmpeg-filter_colorkey
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 0/1
#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, 0, 0, 1, 622080, 0x4e30accb
1, 0, 0, 1152, 4608, 0x00000000
1, 1152, 1152, 1152, 4608, 0xbca29063
diff --git a/tests/ref/fate/ffmpeg-filter_complex b/tests/ref/fate/ffmpeg-filter_complex
index 54d318db9d..d85a4aa52f 100644
--- a/tests/ref/fate/ffmpeg-filter_complex
+++ b/tests/ref/fate/ffmpeg-filter_complex
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x375ec573
0, 1, 1, 1, 115200, 0x375ec573
0, 2, 2, 1, 115200, 0x375ec573
diff --git a/tests/ref/fate/ffmpeg-lavfi b/tests/ref/fate/ffmpeg-lavfi
index 54d318db9d..d85a4aa52f 100644
--- a/tests/ref/fate/ffmpeg-lavfi
+++ b/tests/ref/fate/ffmpeg-lavfi
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x375ec573
0, 1, 1, 1, 115200, 0x375ec573
0, 2, 2, 1, 115200, 0x375ec573
diff --git a/tests/ref/fate/fic-avi b/tests/ref/fate/fic-avi
index cc4ea5dfc9..df55789d54 100644
--- a/tests/ref/fate/fic-avi
+++ b/tests/ref/fate/fic-avi
@@ -1,4 +1,8 @@
#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1360x768
+#sar 0: 0/1
0, 0, 0, 1, 1566720, 0x7dae32e0
0, 1, 1, 1, 1566720, 0x7dae32e0
0, 2, 2, 1, 1566720, 0x6d1a9dc8
diff --git a/tests/ref/fate/film-cvid b/tests/ref/fate/film-cvid
index 3ca7b5981c..24540bf131 100644
--- a/tests/ref/fate/film-cvid
+++ b/tests/ref/fate/film-cvid
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x224
+#sar 0: 0/1
0, 0, 0, 1, 215040, 0x067c5362
0, 2, 2, 1, 215040, 0xd9eacb98
0, 4, 4, 1, 215040, 0x3c8a4cbd
diff --git a/tests/ref/fate/filter-2xbr b/tests/ref/fate/filter-2xbr
index 91e1d4c396..1114c31f06 100644
--- a/tests/ref/fate/filter-2xbr
+++ b/tests/ref/fate/filter-2xbr
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 382x574
+#sar 0: 1/1
0, 0, 0, 1, 877072, 0x5142c6cd
0, 1, 1, 1, 877072, 0xa01a3f47
diff --git a/tests/ref/fate/filter-3xbr b/tests/ref/fate/filter-3xbr
index 013f6a3ef8..0ed00281e6 100644
--- a/tests/ref/fate/filter-3xbr
+++ b/tests/ref/fate/filter-3xbr
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 573x861
+#sar 0: 1/1
0, 0, 0, 1, 1973412, 0xd4cf257b
0, 1, 1, 1, 1973412, 0x63fcd614
diff --git a/tests/ref/fate/filter-4xbr b/tests/ref/fate/filter-4xbr
index 92b70d9f15..a6567373f0 100644
--- a/tests/ref/fate/filter-4xbr
+++ b/tests/ref/fate/filter-4xbr
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 764x1148
+#sar 0: 1/1
0, 0, 0, 1, 3508288, 0xc7b1d170
0, 1, 1, 1, 3508288, 0x3fd0c3fb
diff --git a/tests/ref/fate/filter-adelay b/tests/ref/fate/filter-adelay
index ac1c5847f9..a03f516e4a 100644
--- a/tests/ref/fate/filter-adelay
+++ b/tests/ref/fate/filter-adelay
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 0, 0, 1024, 4096, 0x9d7bf760
0, 1024, 1024, 1024, 4096, 0xdf42c46b
0, 2048, 2048, 1024, 4096, 0x2214fd20
diff --git a/tests/ref/fate/filter-alphaextract_alphamerge_rgb b/tests/ref/fate/filter-alphaextract_alphamerge_rgb
index 1b1a48d4c9..eac9971638 100644
--- a/tests/ref/fate/filter-alphaextract_alphamerge_rgb
+++ b/tests/ref/fate/filter-alphaextract_alphamerge_rgb
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 405504, 0x6d5666c8
0, 1, 1, 1, 405504, 0x4813ba17
0, 2, 2, 1, 405504, 0x23880ee1
diff --git a/tests/ref/fate/filter-alphaextract_alphamerge_yuv b/tests/ref/fate/filter-alphaextract_alphamerge_yuv
index 37c3486202..2cae357b99 100644
--- a/tests/ref/fate/filter-alphaextract_alphamerge_yuv
+++ b/tests/ref/fate/filter-alphaextract_alphamerge_yuv
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 253440, 0x1ada7ac4
0, 1, 1, 1, 253440, 0x711c1599
0, 2, 2, 1, 253440, 0x533017ea
diff --git a/tests/ref/fate/filter-atrim-duration b/tests/ref/fate/filter-atrim-duration
index a51dff7dfd..6f16c8f5e0 100644
--- a/tests/ref/fate/filter-atrim-duration
+++ b/tests/ref/fate/filter-atrim-duration
@@ -1,2 +1,6 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 4410, 4410, 441, 1764, 0x61e374f7
diff --git a/tests/ref/fate/filter-atrim-mixed b/tests/ref/fate/filter-atrim-mixed
index ae3281a1a8..8f8b4ed62c 100644
--- a/tests/ref/fate/filter-atrim-mixed
+++ b/tests/ref/fate/filter-atrim-mixed
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 1025, 1025, 1023, 4092, 0x78560a4c
0, 2048, 2048, 1024, 4096, 0xc477fa99
0, 3072, 3072, 1024, 4096, 0x3bc0f14f
diff --git a/tests/ref/fate/filter-atrim-samples b/tests/ref/fate/filter-atrim-samples
index 3461666394..4dcb333b7e 100644
--- a/tests/ref/fate/filter-atrim-samples
+++ b/tests/ref/fate/filter-atrim-samples
@@ -1,2 +1,6 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 26, 26, 54, 216, 0x6b376c6c
diff --git a/tests/ref/fate/filter-atrim-time b/tests/ref/fate/filter-atrim-time
index a3682101ce..4ca3d7353d 100644
--- a/tests/ref/fate/filter-atrim-time
+++ b/tests/ref/fate/filter-atrim-time
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 4410, 4410, 710, 2840, 0x658982a3
0, 5120, 5120, 1024, 4096, 0xfd6a0070
0, 6144, 6144, 1024, 4096, 0x0b01f4cf
diff --git a/tests/ref/fate/filter-boxblur b/tests/ref/fate/filter-boxblur
index acb2beb022..d332f3a02a 100644
--- a/tests/ref/fate/filter-boxblur
+++ b/tests/ref/fate/filter-boxblur
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x113489f8
0, 1, 1, 1, 152064, 0x650a64ca
0, 2, 2, 1, 152064, 0x29ecf6b1
diff --git a/tests/ref/fate/filter-codecview-mvs b/tests/ref/fate/filter-codecview-mvs
index 13286f0fd6..4e1e53d897 100644
--- a/tests/ref/fate/filter-codecview-mvs
+++ b/tests/ref/fate/filter-codecview-mvs
@@ -1,4 +1,8 @@
#tb 0: 32768/785647
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 576x320
+#sar 0: 0/1
0, 0, 0, 1, 276480, 0x5f7a0d4f
0, 1, 1, 1, 276480, 0x5f7a0d4f
0, 2, 2, 1, 276480, 0x5f7a0d4f
diff --git a/tests/ref/fate/filter-colorchannelmixer b/tests/ref/fate/filter-colorchannelmixer
index 4e9e9d3a94..93f9a39e61 100644
--- a/tests/ref/fate/filter-colorchannelmixer
+++ b/tests/ref/fate/filter-colorchannelmixer
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x42900c13
0, 1, 1, 1, 304128, 0xfb0439bc
0, 2, 2, 1, 304128, 0x967b9f0d
diff --git a/tests/ref/fate/filter-concat b/tests/ref/fate/filter-concat
index 73e41857e0..f8f7353c97 100644
--- a/tests/ref/fate/filter-concat
+++ b/tests/ref/fate/filter-concat
@@ -1,5 +1,13 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 44100
+#channel_layout 1: 4
0, 0, 0, 1, 230400, 0x88c4d19a
1, 0, 0, 1024, 2048, 0xb3f10192
1, 1024, 1024, 1024, 2048, 0xb340fe4e
diff --git a/tests/ref/fate/filter-curves b/tests/ref/fate/filter-curves
index a96f0eea84..401bd2eaf9 100644
--- a/tests/ref/fate/filter-curves
+++ b/tests/ref/fate/filter-curves
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0xcf426780
0, 1, 1, 1, 921600, 0x7642892d
0, 2, 2, 1, 921600, 0x13c1ab7e
diff --git a/tests/ref/fate/filter-delogo b/tests/ref/fate/filter-delogo
index bf2b7513f4..0e59f82221 100644
--- a/tests/ref/fate/filter-delogo
+++ b/tests/ref/fate/filter-delogo
@@ -1,4 +1,8 @@
#tb 0: 32768/982057
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x240
+#sar 0: 0/1
0, 0, 0, 1, 126720, 0xcefaec47
0, 1, 1, 1, 126720, 0xa416ece5
0, 2, 2, 1, 126720, 0xa416ece5
diff --git a/tests/ref/fate/filter-drawbox b/tests/ref/fate/filter-drawbox
index c63d2fc5e5..8ffd381cd5 100644
--- a/tests/ref/fate/filter-drawbox
+++ b/tests/ref/fate/filter-drawbox
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9ada9be9
0, 1, 1, 1, 152064, 0xb0ec7d59
0, 2, 2, 1, 152064, 0x938816b8
diff --git a/tests/ref/fate/filter-fade b/tests/ref/fate/filter-fade
index 9d691ce90d..2ba7671c1a 100644
--- a/tests/ref/fate/filter-fade
+++ b/tests/ref/fate/filter-fade
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb4e6c735
0, 1, 1, 1, 152064, 0xb4e6c735
0, 2, 2, 1, 152064, 0xb4e6c735
diff --git a/tests/ref/fate/filter-fieldorder b/tests/ref/fate/filter-fieldorder
index 6bb647a966..9a73e6edaf 100644
--- a/tests/ref/fate/filter-fieldorder
+++ b/tests/ref/fate/filter-fieldorder
@@ -1,4 +1,8 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 202752, 0x789424b6
0, 1, 1, 1, 202752, 0x7a1f47a9
0, 2, 2, 1, 202752, 0xa55a9aba
diff --git a/tests/ref/fate/filter-fps b/tests/ref/fate/filter-fps
index eb21de2abd..55712cfb1c 100644
--- a/tests/ref/fate/filter-fps
+++ b/tests/ref/fate/filter-fps
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x182
+#sar 0: 0/1
0, 0, 0, 1, 30576, 0xcdc29b3d
0, 1, 1, 1, 30576, 0xcdc29b3d
0, 2, 2, 1, 30576, 0xcdc29b3d
diff --git a/tests/ref/fate/filter-fps-cfr b/tests/ref/fate/filter-fps-cfr
index 928c11ec59..fa71b59cd3 100644
--- a/tests/ref/fate/filter-fps-cfr
+++ b/tests/ref/fate/filter-fps-cfr
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x182
+#sar 0: 0/1
0, 0, 0, 1, 30576, 0xcdc29b3d
0, 1, 1, 1, 30576, 0xcdc29b3d
0, 2, 2, 1, 30576, 0xcdc29b3d
diff --git a/tests/ref/fate/filter-fps-r b/tests/ref/fate/filter-fps-r
index d91e48703c..826b1ed6c6 100644
--- a/tests/ref/fate/filter-fps-r
+++ b/tests/ref/fate/filter-fps-r
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x182
+#sar 0: 0/1
0, 0, 0, 1, 30576, 0xcdc29b3d
0, 1, 1, 1, 30576, 0xcdc29b3d
0, 2, 2, 1, 30576, 0xcdc29b3d
diff --git a/tests/ref/fate/filter-framepack-columns b/tests/ref/fate/filter-framepack-columns
index f38763286e..ac688c9060 100644
--- a/tests/ref/fate/filter-framepack-columns
+++ b/tests/ref/fate/filter-framepack-columns
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 704x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x8cde13ed
0, 1, 1, 1, 304128, 0xc97fcaa2
0, 2, 2, 1, 304128, 0x8139eca3
diff --git a/tests/ref/fate/filter-framepack-frameseq b/tests/ref/fate/filter-framepack-frameseq
index 83c08a0324..7174fe4ecd 100644
--- a/tests/ref/fate/filter-framepack-frameseq
+++ b/tests/ref/fate/filter-framepack-frameseq
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
0, 1, 1, 1, 152064, 0x05b789ef
0, 2, 2, 1, 152064, 0x4bb46551
diff --git a/tests/ref/fate/filter-framepack-lines b/tests/ref/fate/filter-framepack-lines
index d714462e55..d8cc2896bd 100644
--- a/tests/ref/fate/filter-framepack-lines
+++ b/tests/ref/fate/filter-framepack-lines
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x576
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x901a13ed
0, 1, 1, 1, 304128, 0x793ccaa2
0, 2, 2, 1, 304128, 0x9eafeca3
diff --git a/tests/ref/fate/filter-framepack-sbs b/tests/ref/fate/filter-framepack-sbs
index d714462e55..d4b47f07a8 100644
--- a/tests/ref/fate/filter-framepack-sbs
+++ b/tests/ref/fate/filter-framepack-sbs
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 704x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x901a13ed
0, 1, 1, 1, 304128, 0x793ccaa2
0, 2, 2, 1, 304128, 0x9eafeca3
diff --git a/tests/ref/fate/filter-framepack-tab b/tests/ref/fate/filter-framepack-tab
index 0346f06bce..500cfb7ce5 100644
--- a/tests/ref/fate/filter-framepack-tab
+++ b/tests/ref/fate/filter-framepack-tab
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x576
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x0b6b13ed
0, 1, 1, 1, 304128, 0x406bcaa2
0, 2, 2, 1, 304128, 0xb0deeca3
diff --git a/tests/ref/fate/filter-gradfun b/tests/ref/fate/filter-gradfun
index 794fae93e0..cadb9cb557 100644
--- a/tests/ref/fate/filter-gradfun
+++ b/tests/ref/fate/filter-gradfun
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xaebf898f
0, 1, 1, 1, 152064, 0x217b6560
0, 2, 2, 1, 152064, 0x0269f62d
diff --git a/tests/ref/fate/filter-gradfun-sample b/tests/ref/fate/filter-gradfun-sample
index 595f82ad24..e6e2dc8a44 100644
--- a/tests/ref/fate/filter-gradfun-sample
+++ b/tests/ref/fate/filter-gradfun-sample
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 76800, 0xea62ab65
0, 1, 1, 1, 76800, 0xbc0d8b58
0, 2, 2, 1, 76800, 0x682967d0
diff --git a/tests/ref/fate/filter-histogram-levels b/tests/ref/fate/filter-histogram-levels
index bd268ca2b1..697d7d19c0 100644
--- a/tests/ref/fate/filter-histogram-levels
+++ b/tests/ref/fate/filter-histogram-levels
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x636
+#sar 0: 1/1
0, 0, 0, 1, 488448, 0xc27a6cac
0, 1, 1, 1, 488448, 0xf00a152e
0, 2, 2, 1, 488448, 0x060b8c70
diff --git a/tests/ref/fate/filter-hls b/tests/ref/fate/filter-hls
index 30bd96fbbf..47bc51444c 100644
--- a/tests/ref/fate/filter-hls
+++ b/tests/ref/fate/filter-hls
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 4
0, 0, 0, 1152, 2304, 0x907cb7fa
0, 1152, 1152, 1152, 2304, 0xb8dc7525
0, 2304, 2304, 1152, 2304, 0x3e7d6905
diff --git a/tests/ref/fate/filter-hq2x b/tests/ref/fate/filter-hq2x
index dcf2a291cd..2c1d8b77ca 100644
--- a/tests/ref/fate/filter-hq2x
+++ b/tests/ref/fate/filter-hq2x
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 382x574
+#sar 0: 1/1
0, 0, 0, 1, 877072, 0x9369339e
0, 1, 1, 1, 877072, 0x32d119a1
diff --git a/tests/ref/fate/filter-hq3x b/tests/ref/fate/filter-hq3x
index 82153881d4..a7db99e312 100644
--- a/tests/ref/fate/filter-hq3x
+++ b/tests/ref/fate/filter-hq3x
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 573x861
+#sar 0: 1/1
0, 0, 0, 1, 1973412, 0xafc227fa
0, 1, 1, 1, 1973412, 0x93aebf19
diff --git a/tests/ref/fate/filter-hq4x b/tests/ref/fate/filter-hq4x
index c1d6fd8fac..6702fe4db7 100644
--- a/tests/ref/fate/filter-hq4x
+++ b/tests/ref/fate/filter-hq4x
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 764x1148
+#sar 0: 1/1
0, 0, 0, 1, 3508288, 0x034ef75e
0, 1, 1, 1, 3508288, 0x738e9bbb
diff --git a/tests/ref/fate/filter-hqdn3d b/tests/ref/fate/filter-hqdn3d
index 6f121c37fc..d6496295c6 100644
--- a/tests/ref/fate/filter-hqdn3d
+++ b/tests/ref/fate/filter-hqdn3d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x0c09883a
0, 1, 1, 1, 152064, 0xfc2748a0
0, 2, 2, 1, 152064, 0xb746eea8
diff --git a/tests/ref/fate/filter-hqdn3d-sample b/tests/ref/fate/filter-hqdn3d-sample
index 97718f92fc..24d25a6d74 100644
--- a/tests/ref/fate/filter-hqdn3d-sample
+++ b/tests/ref/fate/filter-hqdn3d-sample
@@ -1,4 +1,8 @@
#tb 0: 1/9
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x2c810465
0, 1, 1, 1, 115200, 0x957c0563
0, 2, 2, 1, 115200, 0x786c6d5b
diff --git a/tests/ref/fate/filter-idet b/tests/ref/fate/filter-idet
index 6283039055..a0f579d8c1 100644
--- a/tests/ref/fate/filter-idet
+++ b/tests/ref/fate/filter-idet
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x6e4f89ef
0, 1, 1, 1, 152064, 0x7f5f6551
0, 2, 2, 1, 152064, 0xc566f64a
diff --git a/tests/ref/fate/filter-interlace b/tests/ref/fate/filter-interlace
index 4659942590..24423ccbe9 100644
--- a/tests/ref/fate/filter-interlace
+++ b/tests/ref/fate/filter-interlace
@@ -1,4 +1,8 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x6077db38
0, 1, 1, 1, 152064, 0x3d4f1b15
0, 2, 2, 1, 152064, 0x447594f6
diff --git a/tests/ref/fate/filter-lavd-life b/tests/ref/fate/filter-lavd-life
index 565f88ab7a..48546ab0fd 100644
--- a/tests/ref/fate/filter-lavd-life
+++ b/tests/ref/fate/filter-lavd-life
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 40x40
+#sar 0: 1/1
0, 0, 0, 1, 4800, 0xf2a15b15
0, 1, 1, 1, 4800, 0x78c29dcf
0, 2, 2, 1, 4800, 0x28509d6e
diff --git a/tests/ref/fate/filter-lavd-scalenorm b/tests/ref/fate/filter-lavd-scalenorm
index c946b5c3b1..7b9a60aa68 100644
--- a/tests/ref/fate/filter-lavd-scalenorm
+++ b/tests/ref/fate/filter-lavd-scalenorm
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x96
+#sar 0: 1/1
0, 0, 0, 1, 18432, 0xac484db5
0, 1, 1, 1, 18432, 0x94734db6
0, 2, 2, 1, 18432, 0x3fac4db3
diff --git a/tests/ref/fate/filter-lavd-testsrc b/tests/ref/fate/filter-lavd-testsrc
index 0ea5a49531..a421cc404c 100644
--- a/tests/ref/fate/filter-lavd-testsrc
+++ b/tests/ref/fate/filter-lavd-testsrc
@@ -1,4 +1,8 @@
#tb 0: 1/7
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0x88c4d19a
0, 1, 1, 1, 230400, 0xcc930a2e
0, 2, 2, 1, 230400, 0x8e1b0e23
diff --git a/tests/ref/fate/filter-mcdeint-fast b/tests/ref/fate/filter-mcdeint-fast
index 000d43bd33..228be5e17d 100644
--- a/tests/ref/fate/filter-mcdeint-fast
+++ b/tests/ref/fate/filter-mcdeint-fast
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 10, 10, 1, 622080, 0xc6568bd7
0, 11, 11, 1, 622080, 0xa5b543c3
diff --git a/tests/ref/fate/filter-mcdeint-medium b/tests/ref/fate/filter-mcdeint-medium
index cfd504f084..05d1d722f8 100644
--- a/tests/ref/fate/filter-mcdeint-medium
+++ b/tests/ref/fate/filter-mcdeint-medium
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 10, 10, 1, 622080, 0x26a29152
0, 11, 11, 1, 622080, 0x787adddc
diff --git a/tests/ref/fate/filter-mergeplanes b/tests/ref/fate/filter-mergeplanes
index 841d14fcd6..e13670362d 100644
--- a/tests/ref/fate/filter-mergeplanes
+++ b/tests/ref/fate/filter-mergeplanes
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x90660272
0, 1, 1, 1, 304128, 0x6b09c8a6
0, 2, 2, 1, 304128, 0x343858f3
diff --git a/tests/ref/fate/filter-meta-4560-rotate0 b/tests/ref/fate/filter-meta-4560-rotate0
index a7bb9ce7bf..6e870c7afe 100644
--- a/tests/ref/fate/filter-meta-4560-rotate0
+++ b/tests/ref/fate/filter-meta-4560-rotate0
@@ -1,5 +1,13 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 480x272
+#sar 0: 0/1
#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 44100
+#channel_layout 1: 4
0, 0, 0, 1, 195840, 0x0602351d
1, 0, 0, 1024, 2048, 0x00000000
1, 1024, 1024, 1024, 2048, 0xe6b00ffc
diff --git a/tests/ref/fate/filter-mpdecimate b/tests/ref/fate/filter-mpdecimate
index 1e9652e323..d438dacc2e 100644
--- a/tests/ref/fate/filter-mpdecimate
+++ b/tests/ref/fate/filter-mpdecimate
@@ -1,4 +1,8 @@
#tb 0: 1/3
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 2, 2, 1, 115200, 0x6e318ba0
0, 3, 3, 1, 115200, 0x48d65876
diff --git a/tests/ref/fate/filter-negate b/tests/ref/fate/filter-negate
index 1d2ea73043..88d04718ae 100644
--- a/tests/ref/fate/filter-negate
+++ b/tests/ref/fate/filter-negate
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xef20e1ec
0, 1, 1, 1, 152064, 0x899606ec
0, 2, 2, 1, 152064, 0xaea175d2
diff --git a/tests/ref/fate/filter-overlay b/tests/ref/fate/filter-overlay
index f0f03d6ec7..bcbde5458f 100644
--- a/tests/ref/fate/filter-overlay
+++ b/tests/ref/fate/filter-overlay
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2b1a7a92
0, 1, 1, 1, 152064, 0x6f28685a
0, 2, 2, 1, 152064, 0xeac9f99c
diff --git a/tests/ref/fate/filter-overlay-dvdsub-2397 b/tests/ref/fate/filter-overlay-dvdsub-2397
index 318f739114..0e0444dd06 100644
--- a/tests/ref/fate/filter-overlay-dvdsub-2397
+++ b/tests/ref/fate/filter-overlay-dvdsub-2397
@@ -1,5 +1,13 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 1/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: dts
+#sample_rate 1: 48000
+#channel_layout 1: 60f
0, 0, 0, 1, 518400, 0x6b05d48a
1, 27, 27, 10, 2013, 0x68e7b03a
0, 1, 1, 1, 518400, 0x2c2219cd
diff --git a/tests/ref/fate/filter-overlay_rgb b/tests/ref/fate/filter-overlay_rgb
index cb94aa52db..89a0177ada 100644
--- a/tests/ref/fate/filter-overlay_rgb
+++ b/tests/ref/fate/filter-overlay_rgb
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x027e34c6
0, 1, 1, 1, 304128, 0xc436b3d2
0, 2, 2, 1, 304128, 0x86b77f58
diff --git a/tests/ref/fate/filter-overlay_yuv420 b/tests/ref/fate/filter-overlay_yuv420
index a1f6787d11..7cd0708a07 100644
--- a/tests/ref/fate/filter-overlay_yuv420
+++ b/tests/ref/fate/filter-overlay_yuv420
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xfbd72a27
0, 1, 1, 1, 152064, 0x06d10a14
0, 2, 2, 1, 152064, 0x629e9a71
diff --git a/tests/ref/fate/filter-overlay_yuv422 b/tests/ref/fate/filter-overlay_yuv422
index 982386b4a7..99ce8c59e9 100644
--- a/tests/ref/fate/filter-overlay_yuv422
+++ b/tests/ref/fate/filter-overlay_yuv422
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x9b9e09b2
0, 1, 1, 1, 304128, 0x33addb48
0, 2, 2, 1, 304128, 0xd5b973e9
diff --git a/tests/ref/fate/filter-overlay_yuv444 b/tests/ref/fate/filter-overlay_yuv444
index 0b2d9f77f4..3b6e53a26f 100644
--- a/tests/ref/fate/filter-overlay_yuv444
+++ b/tests/ref/fate/filter-overlay_yuv444
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 405504, 0xaa82add0
0, 1, 1, 1, 405504, 0x0e9d65d0
0, 2, 2, 1, 405504, 0xd8470d82
diff --git a/tests/ref/fate/filter-palettegen-1 b/tests/ref/fate/filter-palettegen-1
index 98b7159dc4..bebfd24e19 100644
--- a/tests/ref/fate/filter-palettegen-1
+++ b/tests/ref/fate/filter-palettegen-1
@@ -1,2 +1,6 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 16x16
+#sar 0: 1/1
0, 0, 0, 1, 1024, 0x3395ef5a
diff --git a/tests/ref/fate/filter-palettegen-2 b/tests/ref/fate/filter-palettegen-2
index 2f58b64ee8..aa07b6cb93 100644
--- a/tests/ref/fate/filter-palettegen-2
+++ b/tests/ref/fate/filter-palettegen-2
@@ -1,2 +1,6 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 16x16
+#sar 0: 1/1
0, 0, 0, 1, 1024, 0x906ff5aa
diff --git a/tests/ref/fate/filter-paletteuse-bayer b/tests/ref/fate/filter-paletteuse-bayer
index 4b449396c1..5ca0115053 100644
--- a/tests/ref/fate/filter-paletteuse-bayer
+++ b/tests/ref/fate/filter-paletteuse-bayer
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x180
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0x7b259d08
0, 1, 1, 1, 230400, 0xf04095e0
0, 2, 2, 1, 230400, 0x84d49cd5
diff --git a/tests/ref/fate/filter-paletteuse-nodither b/tests/ref/fate/filter-paletteuse-nodither
index 8171ffa171..a2e61c3690 100644
--- a/tests/ref/fate/filter-paletteuse-nodither
+++ b/tests/ref/fate/filter-paletteuse-nodither
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x180
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0x690560cb
0, 1, 1, 1, 230400, 0x197a5a54
0, 2, 2, 1, 230400, 0x665961db
diff --git a/tests/ref/fate/filter-paletteuse-sierra2_4a b/tests/ref/fate/filter-paletteuse-sierra2_4a
index 95d7636097..d257820a32 100644
--- a/tests/ref/fate/filter-paletteuse-sierra2_4a
+++ b/tests/ref/fate/filter-paletteuse-sierra2_4a
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x180
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0xa4f85758
0, 1, 1, 1, 230400, 0xbe83505c
0, 2, 2, 1, 230400, 0x0a09584e
diff --git a/tests/ref/fate/filter-phase b/tests/ref/fate/filter-phase
index e0ec8d65b9..b0f8a25717 100644
--- a/tests/ref/fate/filter-phase
+++ b/tests/ref/fate/filter-phase
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
0, 1, 1, 1, 152064, 0x4bb46551
0, 2, 2, 1, 152064, 0x9dddf64a
diff --git a/tests/ref/fate/filter-pp b/tests/ref/fate/filter-pp
index c1311beffd..5c0e2994c6 100644
--- a/tests/ref/fate/filter-pp
+++ b/tests/ref/fate/filter-pp
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 1/1
0, 1, 1, 1, 152064, 0x0af8a873
0, 2, 2, 1, 152064, 0xaeb99897
0, 3, 3, 1, 152064, 0x8f3712c8
diff --git a/tests/ref/fate/filter-removegrain-mode-00 b/tests/ref/fate/filter-removegrain-mode-00
index 115bc455e1..b38d3f4a71 100644
--- a/tests/ref/fate/filter-removegrain-mode-00
+++ b/tests/ref/fate/filter-removegrain-mode-00
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
diff --git a/tests/ref/fate/filter-removegrain-mode-01 b/tests/ref/fate/filter-removegrain-mode-01
index 0e74927f59..8108ab6b88 100644
--- a/tests/ref/fate/filter-removegrain-mode-01
+++ b/tests/ref/fate/filter-removegrain-mode-01
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x4f234e65
diff --git a/tests/ref/fate/filter-removegrain-mode-02 b/tests/ref/fate/filter-removegrain-mode-02
index be7a419626..5e12fdf2af 100644
--- a/tests/ref/fate/filter-removegrain-mode-02
+++ b/tests/ref/fate/filter-removegrain-mode-02
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xc2dd0535
diff --git a/tests/ref/fate/filter-removegrain-mode-03 b/tests/ref/fate/filter-removegrain-mode-03
index 7f98bec41a..61b64f69e2 100644
--- a/tests/ref/fate/filter-removegrain-mode-03
+++ b/tests/ref/fate/filter-removegrain-mode-03
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x09dbc38a
diff --git a/tests/ref/fate/filter-removegrain-mode-04 b/tests/ref/fate/filter-removegrain-mode-04
index 510371dfcb..d02989618f 100644
--- a/tests/ref/fate/filter-removegrain-mode-04
+++ b/tests/ref/fate/filter-removegrain-mode-04
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x32c6a66e
diff --git a/tests/ref/fate/filter-removegrain-mode-05 b/tests/ref/fate/filter-removegrain-mode-05
index 11ddc8979f..8fc5e25129 100644
--- a/tests/ref/fate/filter-removegrain-mode-05
+++ b/tests/ref/fate/filter-removegrain-mode-05
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xc3c64ec6
diff --git a/tests/ref/fate/filter-removegrain-mode-06 b/tests/ref/fate/filter-removegrain-mode-06
index 8d3d318b76..c000f013f2 100644
--- a/tests/ref/fate/filter-removegrain-mode-06
+++ b/tests/ref/fate/filter-removegrain-mode-06
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x38e84065
diff --git a/tests/ref/fate/filter-removegrain-mode-07 b/tests/ref/fate/filter-removegrain-mode-07
index 9ce721775a..c1a9836c1a 100644
--- a/tests/ref/fate/filter-removegrain-mode-07
+++ b/tests/ref/fate/filter-removegrain-mode-07
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xfbdeec94
diff --git a/tests/ref/fate/filter-removegrain-mode-08 b/tests/ref/fate/filter-removegrain-mode-08
index 3a05d10359..f382c11914 100644
--- a/tests/ref/fate/filter-removegrain-mode-08
+++ b/tests/ref/fate/filter-removegrain-mode-08
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x8f7c85a2
diff --git a/tests/ref/fate/filter-removegrain-mode-09 b/tests/ref/fate/filter-removegrain-mode-09
index 4787c223ce..3bb63fc693 100644
--- a/tests/ref/fate/filter-removegrain-mode-09
+++ b/tests/ref/fate/filter-removegrain-mode-09
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9609a659
diff --git a/tests/ref/fate/filter-removegrain-mode-10 b/tests/ref/fate/filter-removegrain-mode-10
index 7f76854276..cf72639578 100644
--- a/tests/ref/fate/filter-removegrain-mode-10
+++ b/tests/ref/fate/filter-removegrain-mode-10
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x4adb45d6
diff --git a/tests/ref/fate/filter-removegrain-mode-11 b/tests/ref/fate/filter-removegrain-mode-11
index f2c3be0e22..aa8793dbc8 100644
--- a/tests/ref/fate/filter-removegrain-mode-11
+++ b/tests/ref/fate/filter-removegrain-mode-11
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd0d891ff
diff --git a/tests/ref/fate/filter-removegrain-mode-12 b/tests/ref/fate/filter-removegrain-mode-12
index f2c3be0e22..aa8793dbc8 100644
--- a/tests/ref/fate/filter-removegrain-mode-12
+++ b/tests/ref/fate/filter-removegrain-mode-12
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd0d891ff
diff --git a/tests/ref/fate/filter-removegrain-mode-13 b/tests/ref/fate/filter-removegrain-mode-13
index b481928d1b..b70b9a107d 100644
--- a/tests/ref/fate/filter-removegrain-mode-13
+++ b/tests/ref/fate/filter-removegrain-mode-13
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x09d4da80
diff --git a/tests/ref/fate/filter-removegrain-mode-14 b/tests/ref/fate/filter-removegrain-mode-14
index 7355a61abf..2211372f7a 100644
--- a/tests/ref/fate/filter-removegrain-mode-14
+++ b/tests/ref/fate/filter-removegrain-mode-14
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x145f34c8
diff --git a/tests/ref/fate/filter-removegrain-mode-15 b/tests/ref/fate/filter-removegrain-mode-15
index 4c11088a67..fa9b94c488 100644
--- a/tests/ref/fate/filter-removegrain-mode-15
+++ b/tests/ref/fate/filter-removegrain-mode-15
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x11eea9b4
diff --git a/tests/ref/fate/filter-removegrain-mode-16 b/tests/ref/fate/filter-removegrain-mode-16
index 9b1ab23021..9d81e15afb 100644
--- a/tests/ref/fate/filter-removegrain-mode-16
+++ b/tests/ref/fate/filter-removegrain-mode-16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x8bc800ee
diff --git a/tests/ref/fate/filter-removegrain-mode-17 b/tests/ref/fate/filter-removegrain-mode-17
index 29b383e7ea..4f4b758a90 100644
--- a/tests/ref/fate/filter-removegrain-mode-17
+++ b/tests/ref/fate/filter-removegrain-mode-17
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x7195b9a7
diff --git a/tests/ref/fate/filter-removegrain-mode-18 b/tests/ref/fate/filter-removegrain-mode-18
index 84aa1ec9fe..a4422a75b4 100644
--- a/tests/ref/fate/filter-removegrain-mode-18
+++ b/tests/ref/fate/filter-removegrain-mode-18
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb47a081c
diff --git a/tests/ref/fate/filter-removegrain-mode-19 b/tests/ref/fate/filter-removegrain-mode-19
index 86887a6990..9ff361386b 100644
--- a/tests/ref/fate/filter-removegrain-mode-19
+++ b/tests/ref/fate/filter-removegrain-mode-19
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x948dc65d
diff --git a/tests/ref/fate/filter-removegrain-mode-20 b/tests/ref/fate/filter-removegrain-mode-20
index def86fe359..449ced8aeb 100644
--- a/tests/ref/fate/filter-removegrain-mode-20
+++ b/tests/ref/fate/filter-removegrain-mode-20
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x64a388ea
diff --git a/tests/ref/fate/filter-removegrain-mode-21 b/tests/ref/fate/filter-removegrain-mode-21
index 832c1b1bad..473b4fc8c4 100644
--- a/tests/ref/fate/filter-removegrain-mode-21
+++ b/tests/ref/fate/filter-removegrain-mode-21
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb7ae17f5
diff --git a/tests/ref/fate/filter-removegrain-mode-22 b/tests/ref/fate/filter-removegrain-mode-22
index f689e3f2d5..81857501bd 100644
--- a/tests/ref/fate/filter-removegrain-mode-22
+++ b/tests/ref/fate/filter-removegrain-mode-22
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xe5736698
diff --git a/tests/ref/fate/filter-removegrain-mode-23 b/tests/ref/fate/filter-removegrain-mode-23
index b0a588bade..1e8109d339 100644
--- a/tests/ref/fate/filter-removegrain-mode-23
+++ b/tests/ref/fate/filter-removegrain-mode-23
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x8d15a472
diff --git a/tests/ref/fate/filter-removegrain-mode-24 b/tests/ref/fate/filter-removegrain-mode-24
index 286ce22cbc..b246312771 100644
--- a/tests/ref/fate/filter-removegrain-mode-24
+++ b/tests/ref/fate/filter-removegrain-mode-24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x77f6d439
diff --git a/tests/ref/fate/filter-scalechroma b/tests/ref/fate/filter-scalechroma
index 930ffefa09..842769c2d5 100644
--- a/tests/ref/fate/filter-scalechroma
+++ b/tests/ref/fate/filter-scalechroma
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xdcab783a
0, 1, 1, 1, 152064, 0x79c7f1f6
0, 2, 2, 1, 152064, 0x3b810afb
diff --git a/tests/ref/fate/filter-select b/tests/ref/fate/filter-select
index 7c30292387..e0584e9538 100644
--- a/tests/ref/fate/filter-select
+++ b/tests/ref/fate/filter-select
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 1, 1, 1, 152064, 0x7f5f6551
0, 5, 5, 1, 152064, 0x287da8e6
0, 7, 7, 1, 152064, 0xe9028bac
diff --git a/tests/ref/fate/filter-select-alternate b/tests/ref/fate/filter-select-alternate
index 0776694278..044189de54 100644
--- a/tests/ref/fate/filter-select-alternate
+++ b/tests/ref/fate/filter-select-alternate
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
0, 2, 2, 1, 152064, 0x9dddf64a
0, 4, 4, 1, 152064, 0x4de3b652
diff --git a/tests/ref/fate/filter-separatefields b/tests/ref/fate/filter-separatefields
index 46cb4703a1..fb757cc85b 100644
--- a/tests/ref/fate/filter-separatefields
+++ b/tests/ref/fate/filter-separatefields
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x144
+#sar 0: 0/1
0, 0, 0, 1, 76032, 0x99276ab9
0, 1, 1, 1, 76032, 0x0b071f36
0, 2, 2, 1, 76032, 0x8b03b0e8
diff --git a/tests/ref/fate/filter-setpts b/tests/ref/fate/filter-setpts
index 5b1d73446f..efdcf6a16e 100644
--- a/tests/ref/fate/filter-setpts
+++ b/tests/ref/fate/filter-setpts
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
0, 1, 1, 1, 152064, 0x4bb46551
0, 2, 2, 1, 152064, 0x9dddf64a
diff --git a/tests/ref/fate/filter-showpalette b/tests/ref/fate/filter-showpalette
index 1a13c2356d..c5e699a28e 100644
--- a/tests/ref/fate/filter-showpalette
+++ b/tests/ref/fate/filter-showpalette
@@ -1,4 +1,8 @@
#tb 0: 1/35
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 48x48
+#sar 0: 0/1
0, 0, 0, 1, 9216, 0xc72e034e
0, 1, 1, 1, 9216, 0xc72e034e
0, 2, 2, 1, 9216, 0xc72e034e
diff --git a/tests/ref/fate/filter-shuffleplanes-dup-luma b/tests/ref/fate/filter-shuffleplanes-dup-luma
index 52041fad22..da111c2374 100644
--- a/tests/ref/fate/filter-shuffleplanes-dup-luma
+++ b/tests/ref/fate/filter-shuffleplanes-dup-luma
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 405504, 0x76625893
0, 1, 1, 1, 405504, 0x348f0b97
0, 2, 2, 1, 405504, 0x3de02149
diff --git a/tests/ref/fate/filter-shuffleplanes-swapuv b/tests/ref/fate/filter-shuffleplanes-swapuv
index 95da149ad3..9ff175b1f7 100644
--- a/tests/ref/fate/filter-shuffleplanes-swapuv
+++ b/tests/ref/fate/filter-shuffleplanes-swapuv
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x68b189ef
0, 1, 1, 1, 152064, 0x5cc66551
0, 2, 2, 1, 152064, 0x88f0f64a
diff --git a/tests/ref/fate/filter-stereo3d-abr-ml b/tests/ref/fate/filter-stereo3d-abr-ml
index d0597a7fb6..07c4cb7dd9 100644
--- a/tests/ref/fate/filter-stereo3d-abr-ml
+++ b/tests/ref/fate/filter-stereo3d-abr-ml
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x144
+#sar 0: 0/1
0, 0, 0, 1, 76032, 0xad4c8a22
0, 1, 1, 1, 76032, 0x0dfdc6ad
0, 2, 2, 1, 76032, 0x6341da83
diff --git a/tests/ref/fate/filter-stereo3d-abr-mr b/tests/ref/fate/filter-stereo3d-abr-mr
index 44a8091bb9..4e9edea909 100644
--- a/tests/ref/fate/filter-stereo3d-abr-mr
+++ b/tests/ref/fate/filter-stereo3d-abr-mr
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x144
+#sar 0: 0/1
0, 0, 0, 1, 76032, 0x5d0effbe
0, 1, 1, 1, 76032, 0x5bb49e95
0, 2, 2, 1, 76032, 0xb6301bc7
diff --git a/tests/ref/fate/filter-stereo3d-al-sbsl b/tests/ref/fate/filter-stereo3d-al-sbsl
index b19cbb82c9..6f42820c93 100644
--- a/tests/ref/fate/filter-stereo3d-al-sbsl
+++ b/tests/ref/fate/filter-stereo3d-al-sbsl
@@ -1,4 +1,8 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 704x288
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0xb9c0ef40
0, 1, 1, 1, 304128, 0xfa0b7709
0, 2, 2, 1, 304128, 0x14255f47
diff --git a/tests/ref/fate/filter-stereo3d-ar-abl b/tests/ref/fate/filter-stereo3d-ar-abl
index 0358199f9e..6b5a971d78 100644
--- a/tests/ref/fate/filter-stereo3d-ar-abl
+++ b/tests/ref/fate/filter-stereo3d-ar-abl
@@ -1,4 +1,8 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x576
+#sar 0: 0/1
0, 0, 0, 1, 304128, 0x7babef40
0, 1, 1, 1, 304128, 0x287d7709
0, 2, 2, 1, 304128, 0x385f5f47
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-abl b/tests/ref/fate/filter-stereo3d-sbsl-abl
index 273e520ba7..f0edf34b09 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-abl
+++ b/tests/ref/fate/filter-stereo3d-sbsl-abl
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x576
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2f9389ef
0, 1, 1, 1, 152064, 0x16c66551
0, 2, 2, 1, 152064, 0xd779f64a
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-abr b/tests/ref/fate/filter-stereo3d-sbsl-abr
index c827e3c456..2756d38427 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-abr
+++ b/tests/ref/fate/filter-stereo3d-sbsl-abr
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x576
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd1f489ef
0, 1, 1, 1, 152064, 0xe4fe6551
0, 2, 2, 1, 152064, 0xd0d9f64a
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmc b/tests/ref/fate/filter-stereo3d-sbsl-agmc
index 3a515b865e..d86a2267ee 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xa950d0d9
0, 1, 1, 1, 152064, 0x6a6933c3
0, 2, 2, 1, 152064, 0x66a1da3a
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmd b/tests/ref/fate/filter-stereo3d-sbsl-agmd
index 7d188d4fdf..ab915d601d 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmd
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x962d1371
0, 1, 1, 1, 152064, 0xe7db1d51
0, 2, 2, 1, 152064, 0x3bb0c409
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmg b/tests/ref/fate/filter-stereo3d-sbsl-agmg
index 3cae6f3812..4ad85b6820 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x45a6c9a8
0, 1, 1, 1, 152064, 0xe7ba65fc
0, 2, 2, 1, 152064, 0x88ab8fcc
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmh b/tests/ref/fate/filter-stereo3d-sbsl-agmh
index e6853a61df..b50f5af018 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmh
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmh
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x96464057
0, 1, 1, 1, 152064, 0x58c4e280
0, 2, 2, 1, 152064, 0xaf76fd24
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-al b/tests/ref/fate/filter-stereo3d-sbsl-al
index 5c8a429903..1f9aaa4bcb 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-al
+++ b/tests/ref/fate/filter-stereo3d-sbsl-al
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 76032, 0x3ff06515
0, 1, 1, 1, 76032, 0x00d824da
0, 2, 2, 1, 76032, 0x64a33c64
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arbg b/tests/ref/fate/filter-stereo3d-sbsl-arbg
index 1e87271669..b5e4996b30 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arbg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arbg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x4d83ea30
0, 1, 1, 1, 152064, 0xa4a3be5b
0, 2, 2, 1, 152064, 0x21032989
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcc b/tests/ref/fate/filter-stereo3d-sbsl-arcc
index 56f17fd961..bcecd8785e 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2760b14a
0, 1, 1, 1, 152064, 0xcf94baaf
0, 2, 2, 1, 152064, 0x9b5e0e0a
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcd b/tests/ref/fate/filter-stereo3d-sbsl-arcd
index fd9806b34e..b5f11e278e 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcd
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xa0261570
0, 1, 1, 1, 152064, 0x678403c8
0, 2, 2, 1, 152064, 0x1087e7b6
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcg b/tests/ref/fate/filter-stereo3d-sbsl-arcg
index 68f3f54a0b..f5c58450f4 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x70f5c9a8
0, 1, 1, 1, 152064, 0x56f165fc
0, 2, 2, 1, 152064, 0xe59f8fcc
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arch b/tests/ref/fate/filter-stereo3d-sbsl-arch
index 9c2fcd1763..d6767dfce4 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arch
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arch
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x81ab8dad
0, 1, 1, 1, 152064, 0x820fd98a
0, 2, 2, 1, 152064, 0x1ccc712b
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-argg b/tests/ref/fate/filter-stereo3d-sbsl-argg
index 91fb06455f..82fa276704 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-argg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-argg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2cfbea30
0, 1, 1, 1, 152064, 0x4c44be5b
0, 2, 2, 1, 152064, 0x87462989
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybc b/tests/ref/fate/filter-stereo3d-sbsl-aybc
index 72bd15c9ac..1c24262006 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xae8c985d
0, 1, 1, 1, 152064, 0x489e1535
0, 2, 2, 1, 152064, 0x01a83b2b
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybd b/tests/ref/fate/filter-stereo3d-sbsl-aybd
index d963480fb3..0aa4e8bc2c 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybd
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x7dc98468
0, 1, 1, 1, 152064, 0xf72db6c9
0, 2, 2, 1, 152064, 0x1630f53f
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybg b/tests/ref/fate/filter-stereo3d-sbsl-aybg
index 53f7f723a5..ebd8ba228a 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x1a57c9a8
0, 1, 1, 1, 152064, 0x789265fc
0, 2, 2, 1, 152064, 0x2bb78fcc
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybh b/tests/ref/fate/filter-stereo3d-sbsl-aybh
index c6fdd146ca..1b9edebb62 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybh
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybh
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf3ee182f
0, 1, 1, 1, 152064, 0x8b1c25f1
0, 2, 2, 1, 152064, 0xe78de2ac
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-sbsr b/tests/ref/fate/filter-stereo3d-sbsl-sbsr
index b417ae4f4e..9a5da962b4 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-sbsr
+++ b/tests/ref/fate/filter-stereo3d-sbsl-sbsr
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xbe2f89ef
0, 1, 1, 1, 152064, 0x4c806551
0, 2, 2, 1, 152064, 0x8165f64a
diff --git a/tests/ref/fate/filter-tblend b/tests/ref/fate/filter-tblend
index 3ff689ae57..80fea849f3 100644
--- a/tests/ref/fate/filter-tblend
+++ b/tests/ref/fate/filter-tblend
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 1, 1, 1, 152064, 0x8e50e5e5
0, 2, 2, 1, 152064, 0x7187a95e
0, 3, 3, 1, 152064, 0xbd73863e
diff --git a/tests/ref/fate/filter-telecine b/tests/ref/fate/filter-telecine
index b8a13a975f..6d3545e4d8 100644
--- a/tests/ref/fate/filter-telecine
+++ b/tests/ref/fate/filter-telecine
@@ -1,4 +1,8 @@
#tb 0: 4/125
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x05b789ef
0, 1, 1, 1, 152064, 0x4bb46551
0, 2, 2, 1, 152064, 0x40692c80
diff --git a/tests/ref/fate/filter-testsrc2-rgb24 b/tests/ref/fate/filter-testsrc2-rgb24
index 2fdfa003cc..207ddfc61a 100644
--- a/tests/ref/fate/filter-testsrc2-rgb24
+++ b/tests/ref/fate/filter-testsrc2-rgb24
@@ -1,4 +1,8 @@
#tb 0: 1/7
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0x1c012312
0, 1, 1, 1, 230400, 0xf7cf4e81
0, 2, 2, 1, 230400, 0x29a45e1c
diff --git a/tests/ref/fate/filter-testsrc2-yuv420p b/tests/ref/fate/filter-testsrc2-yuv420p
index 804e5fa370..aaf93ba02d 100644
--- a/tests/ref/fate/filter-testsrc2-yuv420p
+++ b/tests/ref/fate/filter-testsrc2-yuv420p
@@ -1,4 +1,8 @@
#tb 0: 1/7
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x3744b3ed
0, 1, 1, 1, 115200, 0x0c1062d6
0, 2, 2, 1, 115200, 0x201b9db1
diff --git a/tests/ref/fate/filter-testsrc2-yuv444p b/tests/ref/fate/filter-testsrc2-yuv444p
index c8cc7c17c5..4b60e6afa4 100644
--- a/tests/ref/fate/filter-testsrc2-yuv444p
+++ b/tests/ref/fate/filter-testsrc2-yuv444p
@@ -1,4 +1,8 @@
#tb 0: 1/7
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0xbfb96366
0, 1, 1, 1, 230400, 0xe63ca6e9
0, 2, 2, 1, 230400, 0xc6acccc8
diff --git a/tests/ref/fate/filter-transpose b/tests/ref/fate/filter-transpose
index 0f234230f5..2a5151b8ce 100644
--- a/tests/ref/fate/filter-transpose
+++ b/tests/ref/fate/filter-transpose
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 288x352
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xab5889ef
0, 1, 1, 1, 152064, 0x898b6551
0, 2, 2, 1, 152064, 0x231bf64a
diff --git a/tests/ref/fate/filter-trim-duration b/tests/ref/fate/filter-trim-duration
index db74add00e..9ba86f8e18 100644
--- a/tests/ref/fate/filter-trim-duration
+++ b/tests/ref/fate/filter-trim-duration
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 10, 10, 1, 152064, 0xb45c4760
diff --git a/tests/ref/fate/filter-trim-frame b/tests/ref/fate/filter-trim-frame
index 1749afd38b..5dbf6b7a96 100644
--- a/tests/ref/fate/filter-trim-frame
+++ b/tests/ref/fate/filter-trim-frame
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 3, 3, 1, 152064, 0xceb080b0
0, 4, 4, 1, 152064, 0x473db652
0, 5, 5, 1, 152064, 0x287da8e6
diff --git a/tests/ref/fate/filter-trim-mixed b/tests/ref/fate/filter-trim-mixed
index 5e003f665a..6b1a98c5f3 100644
--- a/tests/ref/fate/filter-trim-mixed
+++ b/tests/ref/fate/filter-trim-mixed
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 1, 1, 1, 152064, 0x7f5f6551
0, 2, 2, 1, 152064, 0xc566f64a
0, 3, 3, 1, 152064, 0xceb080b0
diff --git a/tests/ref/fate/filter-trim-time b/tests/ref/fate/filter-trim-time
index 2f860258bd..ce9fac6def 100644
--- a/tests/ref/fate/filter-trim-time
+++ b/tests/ref/fate/filter-trim-time
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x432
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x6e4f89ef
0, 1, 1, 1, 152064, 0x7f5f6551
diff --git a/tests/ref/fate/filter-unsharp b/tests/ref/fate/filter-unsharp
index 613163b180..c128241d7c 100644
--- a/tests/ref/fate/filter-unsharp
+++ b/tests/ref/fate/filter-unsharp
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x58100735
0, 1, 1, 1, 152064, 0x2967e43d
0, 2, 2, 1, 152064, 0x6f0c786d
diff --git a/tests/ref/fate/filter-vectorscope_color b/tests/ref/fate/filter-vectorscope_color
index 780c330caf..57875ab418 100644
--- a/tests/ref/fate/filter-vectorscope_color
+++ b/tests/ref/fate/filter-vectorscope_color
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0xf6e3aa30
0, 1, 1, 1, 196608, 0x5584acf9
0, 2, 2, 1, 196608, 0xa862775d
diff --git a/tests/ref/fate/filter-vectorscope_color2 b/tests/ref/fate/filter-vectorscope_color2
index 417c3e05b7..3b2ad90b9c 100644
--- a/tests/ref/fate/filter-vectorscope_color2
+++ b/tests/ref/fate/filter-vectorscope_color2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0x5e62fae5
0, 1, 1, 1, 196608, 0x4c27fcbf
0, 2, 2, 1, 196608, 0xb7531088
diff --git a/tests/ref/fate/filter-vectorscope_color3 b/tests/ref/fate/filter-vectorscope_color3
index 26831cfded..4baecca921 100644
--- a/tests/ref/fate/filter-vectorscope_color3
+++ b/tests/ref/fate/filter-vectorscope_color3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0x83df8770
0, 1, 1, 1, 196608, 0xa6a674a7
0, 2, 2, 1, 196608, 0x11757143
diff --git a/tests/ref/fate/filter-vectorscope_color4 b/tests/ref/fate/filter-vectorscope_color4
index 6bdfd5fa94..21d6762ff2 100644
--- a/tests/ref/fate/filter-vectorscope_color4
+++ b/tests/ref/fate/filter-vectorscope_color4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0x326953c4
0, 1, 1, 1, 196608, 0x870e1dcc
0, 2, 2, 1, 196608, 0x87cb8800
diff --git a/tests/ref/fate/filter-vectorscope_gray b/tests/ref/fate/filter-vectorscope_gray
index f09a9c7450..a81fbf8f87 100644
--- a/tests/ref/fate/filter-vectorscope_gray
+++ b/tests/ref/fate/filter-vectorscope_gray
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0x79ba71e2
0, 1, 1, 1, 196608, 0x909271e2
0, 2, 2, 1, 196608, 0x143971e2
diff --git a/tests/ref/fate/filter-vectorscope_xy b/tests/ref/fate/filter-vectorscope_xy
index 76987ef38d..83b719468c 100644
--- a/tests/ref/fate/filter-vectorscope_xy
+++ b/tests/ref/fate/filter-vectorscope_xy
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 1/1
0, 0, 0, 1, 196608, 0xa2899af1
0, 1, 1, 1, 196608, 0x26409af1
0, 2, 2, 1, 196608, 0xf5209af1
diff --git a/tests/ref/fate/filter-w3fdif-complex b/tests/ref/fate/filter-w3fdif-complex
index 32eadc9858..4b334daec1 100644
--- a/tests/ref/fate/filter-w3fdif-complex
+++ b/tests/ref/fate/filter-w3fdif-complex
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 18, 18, 1, 622080, 0x21d21485
0, 19, 19, 1, 622080, 0x600a5468
0, 20, 20, 1, 622080, 0x9526f7b8
diff --git a/tests/ref/fate/filter-w3fdif-simple b/tests/ref/fate/filter-w3fdif-simple
index 137d989de2..62efaae929 100644
--- a/tests/ref/fate/filter-w3fdif-simple
+++ b/tests/ref/fate/filter-w3fdif-simple
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 18, 18, 1, 622080, 0xc73774f5
0, 19, 19, 1, 622080, 0x4ea3a400
0, 20, 20, 1, 622080, 0x95153cda
diff --git a/tests/ref/fate/filter-waveform_column b/tests/ref/fate/filter-waveform_column
index 5e66db89aa..f35fb2471b 100644
--- a/tests/ref/fate/filter-waveform_column
+++ b/tests/ref/fate/filter-waveform_column
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x256
+#sar 0: 1/1
0, 0, 0, 1, 270336, 0x3af3cd54
0, 1, 1, 1, 270336, 0x892ccd54
0, 2, 2, 1, 270336, 0x2171cd54
diff --git a/tests/ref/fate/filter-waveform_envelope b/tests/ref/fate/filter-waveform_envelope
index 44384ebeec..13130c4399 100644
--- a/tests/ref/fate/filter-waveform_envelope
+++ b/tests/ref/fate/filter-waveform_envelope
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x256
+#sar 0: 1/1
0, 0, 0, 1, 270336, 0x24a46c67
0, 1, 1, 1, 270336, 0x622077e7
0, 2, 2, 1, 270336, 0xb96dd1a1
diff --git a/tests/ref/fate/filter-waveform_row b/tests/ref/fate/filter-waveform_row
index 95eaa45430..b436be5108 100644
--- a/tests/ref/fate/filter-waveform_row
+++ b/tests/ref/fate/filter-waveform_row
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x288
+#sar 0: 1/1
0, 0, 0, 1, 221184, 0x2a1149a3
0, 1, 1, 1, 221184, 0x698c49a3
0, 2, 2, 1, 221184, 0x9fc949a3
diff --git a/tests/ref/fate/filter-waveform_uv b/tests/ref/fate/filter-waveform_uv
index 6eb363c6f2..8cb3bc81f8 100644
--- a/tests/ref/fate/filter-waveform_uv
+++ b/tests/ref/fate/filter-waveform_uv
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x512
+#sar 0: 1/1
0, 0, 0, 1, 540672, 0x8a2521d6
0, 1, 1, 1, 540672, 0xb9a321d6
0, 2, 2, 1, 540672, 0x325421d6
diff --git a/tests/ref/fate/filter-yadif-mode0 b/tests/ref/fate/filter-yadif-mode0
index 4d428903b0..2c6346bd43 100644
--- a/tests/ref/fate/filter-yadif-mode0
+++ b/tests/ref/fate/filter-yadif-mode0
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 622080, 0x6331caee
0, 10, 10, 1, 622080, 0xa459e690
0, 11, 11, 1, 622080, 0x6429c648
diff --git a/tests/ref/fate/filter-yadif-mode1 b/tests/ref/fate/filter-yadif-mode1
index 08cd518570..e2d14d5605 100644
--- a/tests/ref/fate/filter-yadif-mode1
+++ b/tests/ref/fate/filter-yadif-mode1
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 18, 18, 1, 622080, 0x6331caee
0, 19, 19, 1, 622080, 0x625da883
0, 20, 20, 1, 622080, 0xa459e690
diff --git a/tests/ref/fate/filter-yadif10 b/tests/ref/fate/filter-yadif10
index aa27bfcbb4..09ab7458bb 100644
--- a/tests/ref/fate/filter-yadif10
+++ b/tests/ref/fate/filter-yadif10
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 1244160, 0x5b49e0c0
0, 10, 10, 1, 1244160, 0x76ba6bab
0, 11, 11, 1, 1244160, 0x0298cb8d
diff --git a/tests/ref/fate/filter-yadif16 b/tests/ref/fate/filter-yadif16
index 65427a2357..3386b026c9 100644
--- a/tests/ref/fate/filter-yadif16
+++ b/tests/ref/fate/filter-yadif16
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 1244160, 0xfb65caee
0, 10, 10, 1, 1244160, 0x6222e690
0, 11, 11, 1, 1244160, 0x020ac648
diff --git a/tests/ref/fate/flic-af11-palette-change b/tests/ref/fate/flic-af11-palette-change
index cd702b622c..acf000412a 100644
--- a/tests/ref/fate/flic-af11-palette-change
+++ b/tests/ref/fate/flic-af11-palette-change
@@ -1,4 +1,8 @@
#tb 0: 1/35
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x508ff8ac
0, 1, 1, 1, 192000, 0xef0d4274
0, 2, 2, 1, 192000, 0x0d50e0dd
diff --git a/tests/ref/fate/flic-af12 b/tests/ref/fate/flic-af12
index 227f26a4fd..46833467bd 100644
--- a/tests/ref/fate/flic-af12
+++ b/tests/ref/fate/flic-af12
@@ -1,4 +1,8 @@
#tb 0: 9/125
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x50a87396
0, 1, 1, 1, 921600, 0xa6e65d9e
0, 2, 2, 1, 921600, 0x05956f62
diff --git a/tests/ref/fate/flic-magiccarpet b/tests/ref/fate/flic-magiccarpet
index 23a93427db..b8d3fc2bd3 100644
--- a/tests/ref/fate/flic-magiccarpet
+++ b/tests/ref/fate/flic-magiccarpet
@@ -1,4 +1,8 @@
#tb 0: 1/14
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x00000000
0, 1, 1, 1, 192000, 0x03567eeb
0, 2, 2, 1, 192000, 0xe73db12c
diff --git a/tests/ref/fate/flv-demux b/tests/ref/fate/flv-demux
index 5db2305b76..79ee263262 100644
--- a/tests/ref/fate/flv-demux
+++ b/tests/ref/fate/flv-demux
@@ -1,7 +1,15 @@
#extradata 0: 39, 0xf8aa0d44
#extradata 1: 2, 0x00b600a3
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 426x240
+#sar 0: 1/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: aac
+#sample_rate 1: 22050
+#channel_layout 1: 3
0, 0, 0, 33, 135, 0x78b33078, S=1, 39, 0xf8aa0d44
1, 0, 0, 46, 9, 0x07bc01b8, S=1, 2, 0x00b600a3
0, 33, 33, 33, 92, 0x0d891dd0, F=0x0
diff --git a/tests/ref/fate/force_key_frames b/tests/ref/fate/force_key_frames
index 0a41378f64..26de0905e8 100644
--- a/tests/ref/fate/force_key_frames
+++ b/tests/ref/fate/force_key_frames
@@ -1,4 +1,4 @@
07567b9528b8de523faaf49e4e1e0fc6 *tests/data/fate/force_key_frames.avi
113312 tests/data/fate/force_key_frames.avi
-8f68ad2e602ecd87a3e0c097ba99d773 *tests/data/fate/force_key_frames.out.framecrc
-stddev:34363.01 PSNR: 5.61 MAXDIFF:56305 bytes: 7603200/ 186
+b2e92b97bac0243242281d71108ffdbd *tests/data/fate/force_key_frames.out.framecrc
+stddev:34612.83 PSNR: 5.54 MAXDIFF:61408 bytes: 7603200/ 264
diff --git a/tests/ref/fate/fraps-v0 b/tests/ref/fate/fraps-v0
index 3cba8312b7..97ada1317e 100644
--- a/tests/ref/fate/fraps-v0
+++ b/tests/ref/fate/fraps-v0
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 312x216
+#sar 0: 0/1
0, 0, 0, 1, 101088, 0x7bf448f8
0, 1, 1, 1, 101088, 0x1ba749ec
0, 2, 2, 1, 101088, 0x94eb4dc4
diff --git a/tests/ref/fate/fraps-v1 b/tests/ref/fate/fraps-v1
index 29c7e37df3..36fb7d8d4d 100644
--- a/tests/ref/fate/fraps-v1
+++ b/tests/ref/fate/fraps-v1
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x23c29d17
diff --git a/tests/ref/fate/fraps-v2 b/tests/ref/fate/fraps-v2
index 06e0024ced..3d85333823 100644
--- a/tests/ref/fate/fraps-v2
+++ b/tests/ref/fate/fraps-v2
@@ -1,3 +1,7 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 0, 0, 1, 1179648, 0x99f80436
0, 5, 5, 1, 1179648, 0xe8ae7a30
diff --git a/tests/ref/fate/fraps-v3 b/tests/ref/fate/fraps-v3
index 139ee7e470..93286d17ca 100644
--- a/tests/ref/fate/fraps-v3
+++ b/tests/ref/fate/fraps-v3
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x384
+#sar 0: 0/1
0, 0, 0, 1, 589824, 0x0b181bbf
0, 1, 1, 1, 589824, 0xcd740f79
0, 2, 2, 1, 589824, 0x16f8f90e
diff --git a/tests/ref/fate/fraps-v4 b/tests/ref/fate/fraps-v4
index 007916dc9d..c97f29b46a 100644
--- a/tests/ref/fate/fraps-v4
+++ b/tests/ref/fate/fraps-v4
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x512
+#sar 0: 0/1
0, 0, 0, 1, 491520, 0x68ff12c0
0, 1, 1, 1, 491520, 0x22d36f0d
0, 2, 2, 1, 491520, 0xce6f877d
diff --git a/tests/ref/fate/fraps-v5 b/tests/ref/fate/fraps-v5
index 599683a8a3..c0628e9ac4 100644
--- a/tests/ref/fate/fraps-v5
+++ b/tests/ref/fate/fraps-v5
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 288x168
+#sar 0: 0/1
0, 0, 0, 1, 145152, 0x8458d4cb
0, 1, 1, 1, 145152, 0xa694d7c7
0, 2, 2, 1, 145152, 0x2bd4bfc9
diff --git a/tests/ref/fate/frwu b/tests/ref/fate/frwu
index 32eaa6f029..918ef6c448 100644
--- a/tests/ref/fate/frwu
+++ b/tests/ref/fate/frwu
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 153600, 0x050422c0
0, 1, 1, 1, 153600, 0x0cf35359
0, 2, 2, 1, 153600, 0x2ae95db0
diff --git a/tests/ref/fate/g2m2 b/tests/ref/fate/g2m2
index 710dbd145f..42b7b6f2e1 100644
--- a/tests/ref/fate/g2m2
+++ b/tests/ref/fate/g2m2
@@ -1,4 +1,8 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 47, 47, 0, 2359296, 0xb4434e4f
0, 62, 62, 0, 2359296, 0x59cb5027
0, 78, 78, 0, 2359296, 0xe9bc578d
diff --git a/tests/ref/fate/g2m3 b/tests/ref/fate/g2m3
index e8fe6927da..b665d567b5 100644
--- a/tests/ref/fate/g2m3
+++ b/tests/ref/fate/g2m3
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x996
+#sar 0: 0/1
0, 0, 0, 1, 3824640, 0x9a253d29
0, 12, 12, 1, 3824640, 0xcb232b06
0, 15, 15, 1, 3824640, 0xb03c288c
diff --git a/tests/ref/fate/g2m4 b/tests/ref/fate/g2m4
index c9a6e12094..d5ecaebbbd 100644
--- a/tests/ref/fate/g2m4
+++ b/tests/ref/fate/g2m4
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x1024
+#sar 0: 0/1
0, 0, 0, 1, 3932160, 0x109148ee
0, 1, 1, 1, 3932160, 0xa87b7bff
0, 2, 2, 1, 3932160, 0x00e14d16
diff --git a/tests/ref/fate/g722dec-1 b/tests/ref/fate/g722dec-1
index e94c3e6a11..b7ec0d3753 100644
--- a/tests/ref/fate/g722dec-1
+++ b/tests/ref/fate/g722dec-1
@@ -1,4 +1,8 @@
#tb 0: 1/16000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 16000
+#channel_layout 0: 4
0, 0, 0, 2048, 4096, 0x4f9228b3
0, 2048, 2048, 2048, 4096, 0xfab58157
0, 4096, 4096, 2048, 4096, 0x0b641c78
diff --git a/tests/ref/fate/g723_1-dec-1 b/tests/ref/fate/g723_1-dec-1
index a3a7f67b44..01176fdba5 100644
--- a/tests/ref/fate/g723_1-dec-1
+++ b/tests/ref/fate/g723_1-dec-1
@@ -1,3 +1,7 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x7f6f3970
0, 240, 240, 240, 480, 0x1105a0d3
diff --git a/tests/ref/fate/g723_1-dec-2 b/tests/ref/fate/g723_1-dec-2
index e7fc9b2059..0711ae44b1 100644
--- a/tests/ref/fate/g723_1-dec-2
+++ b/tests/ref/fate/g723_1-dec-2
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x5d9d9091
0, 240, 240, 240, 480, 0x425095b7
0, 480, 480, 240, 480, 0xe7b6a1a7
diff --git a/tests/ref/fate/g723_1-dec-3 b/tests/ref/fate/g723_1-dec-3
index d1a29464e9..c1dde0c75b 100644
--- a/tests/ref/fate/g723_1-dec-3
+++ b/tests/ref/fate/g723_1-dec-3
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0xce908869
0, 240, 240, 240, 480, 0xfa63588e
0, 480, 480, 240, 480, 0x11ce850c
diff --git a/tests/ref/fate/g723_1-dec-4 b/tests/ref/fate/g723_1-dec-4
index 792899d38c..34817eecff 100644
--- a/tests/ref/fate/g723_1-dec-4
+++ b/tests/ref/fate/g723_1-dec-4
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0xa697b314
0, 240, 240, 240, 480, 0x43c5dc5a
0, 480, 480, 240, 480, 0xd2438147
diff --git a/tests/ref/fate/g723_1-dec-5 b/tests/ref/fate/g723_1-dec-5
index bdc2982740..7076fac322 100644
--- a/tests/ref/fate/g723_1-dec-5
+++ b/tests/ref/fate/g723_1-dec-5
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x4dce9773
0, 240, 240, 240, 480, 0xe6367ab8
0, 480, 480, 240, 480, 0xf36a589d
diff --git a/tests/ref/fate/g723_1-dec-6 b/tests/ref/fate/g723_1-dec-6
index eb0e4fa12c..b493b37338 100644
--- a/tests/ref/fate/g723_1-dec-6
+++ b/tests/ref/fate/g723_1-dec-6
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x4fa1aed9
0, 240, 240, 240, 480, 0x6d7ef391
0, 480, 480, 240, 480, 0xaecaf2c1
diff --git a/tests/ref/fate/g723_1-dec-7 b/tests/ref/fate/g723_1-dec-7
index cc301873cb..bd960f5aec 100644
--- a/tests/ref/fate/g723_1-dec-7
+++ b/tests/ref/fate/g723_1-dec-7
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x35e4a1fd
0, 240, 240, 240, 480, 0x2f7bdd60
0, 480, 480, 240, 480, 0x0407e499
diff --git a/tests/ref/fate/g723_1-dec-8 b/tests/ref/fate/g723_1-dec-8
index fc4d9f3977..3399d7ae9f 100644
--- a/tests/ref/fate/g723_1-dec-8
+++ b/tests/ref/fate/g723_1-dec-8
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 240, 480, 0x17930e0f
0, 240, 240, 240, 480, 0x7c7f4247
0, 480, 480, 240, 480, 0xbf3489e5
diff --git a/tests/ref/fate/gapless-mp3 b/tests/ref/fate/gapless-mp3
index 2ce4b8cc0b..ebe7bfa2d6 100644
--- a/tests/ref/fate/gapless-mp3
+++ b/tests/ref/fate/gapless-mp3
@@ -1,5 +1,5 @@
-d5c88cf38416329a052a9b0cb140fb4c *tests/data/fate/gapless-mp3.out-1
+37534a3bcc3ef306e8c5ebfcfedfc41c *tests/data/fate/gapless-mp3.out-1
c96c3ae7bd3300fd2f4debac222de5b7
-3386bc2009b31b7ef39247918cbb02a5 *tests/data/fate/gapless-mp3.out-2
+0cd1cdbcfd5cdbf6270cd98219bf31cd *tests/data/fate/gapless-mp3.out-2
c96c3ae7bd3300fd2f4debac222de5b7
-3ce35ec2a9a59b7459ecd6c98d8fa123 *tests/data/fate/gapless-mp3.out-3
+9d3d8ba8a61b534f2d02ee648d6a8229 *tests/data/fate/gapless-mp3.out-3
diff --git a/tests/ref/fate/gif-color b/tests/ref/fate/gif-color
index 5559186536..c88a05deee 100644
--- a/tests/ref/fate/gif-color
+++ b/tests/ref/fate/gif-color
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 188356, 0xf0944065
0, 1, 1, 1, 188356, 0x146ed4c4
0, 2, 2, 1, 188356, 0x96866a6f
diff --git a/tests/ref/fate/gif-deal b/tests/ref/fate/gif-deal
index 88371bbe3b..96b7723c1d 100644
--- a/tests/ref/fate/gif-deal
+++ b/tests/ref/fate/gif-deal
@@ -1,4 +1,8 @@
#tb 0: 12/109
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 430x181
+#sar 0: 0/1
0, 0, 0, 1, 311320, 0x71905396
0, 1, 1, 1, 311320, 0xed46b01e
0, 2, 2, 1, 311320, 0xcbb56aa8
diff --git a/tests/ref/fate/gif-demux b/tests/ref/fate/gif-demux
index 547b9ce3d6..3d46441d8e 100644
--- a/tests/ref/fate/gif-demux
+++ b/tests/ref/fate/gif-demux
@@ -1,4 +1,8 @@
#tb 0: 1/100
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 480x360
+#sar 0: 0/1
0, 0, 0, 5, 74699, 0xef7e91c8
0, 5, 5, 2, 10079, 0x2892d9e2, F=0x0
0, 7, 7, 2, 12369, 0xd7d73286, F=0x0
diff --git a/tests/ref/fate/gif-disposal-background b/tests/ref/fate/gif-disposal-background
index 838745b795..cd0d827b46 100644
--- a/tests/ref/fate/gif-disposal-background
+++ b/tests/ref/fate/gif-disposal-background
@@ -1,4 +1,8 @@
#tb 0: 1/2
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 72x36
+#sar 0: 0/1
0, 0, 0, 1, 10368, 0x8b200cc8
0, 1, 1, 1, 10368, 0x4e208e4f
0, 2, 2, 1, 10368, 0x044dba8b
diff --git a/tests/ref/fate/gif-disposal-restore b/tests/ref/fate/gif-disposal-restore
index 0ff1715153..b1282f61de 100644
--- a/tests/ref/fate/gif-disposal-restore
+++ b/tests/ref/fate/gif-disposal-restore
@@ -1,4 +1,8 @@
#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 468x60
+#sar 0: 0/1
0, 0, 0, 1, 112320, 0xb8afe429
0, 1, 1, 1, 112320, 0xae588a4b
0, 3, 3, 1, 112320, 0xccdd27b7
diff --git a/tests/ref/fate/gif-gray b/tests/ref/fate/gif-gray
index 5a133bd030..18705d01fe 100644
--- a/tests/ref/fate/gif-gray
+++ b/tests/ref/fate/gif-gray
@@ -1,4 +1,8 @@
#tb 0: 1/100
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 480x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0xef6c0f3d
0, 5, 5, 1, 691200, 0xc18b32de
0, 7, 7, 1, 691200, 0x2395a3d7
diff --git a/tests/ref/fate/gifenc-bgr4_byte b/tests/ref/fate/gifenc-bgr4_byte
index c0d39bdecd..3495a8bbed 100644
--- a/tests/ref/fate/gifenc-bgr4_byte
+++ b/tests/ref/fate/gifenc-bgr4_byte
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 508, 0xa1b80fc0
0, 1, 1, 1, 213, 0x4f554bd7, S=1, 1024, 0xb6327c81
0, 2, 2, 1, 131, 0x283b2988, S=1, 1024, 0xae3a7c81
diff --git a/tests/ref/fate/gifenc-bgr8 b/tests/ref/fate/gifenc-bgr8
index f3b7772785..0a4e5d48cd 100644
--- a/tests/ref/fate/gifenc-bgr8
+++ b/tests/ref/fate/gifenc-bgr8
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 552, 0x271a2dd3
0, 1, 1, 1, 297, 0x90168a95, S=1, 1024, 0xf351799f
0, 2, 2, 1, 438, 0x91efce1b, S=1, 1024, 0xf351799f
diff --git a/tests/ref/fate/gifenc-gray b/tests/ref/fate/gifenc-gray
index c11e132b8b..81cdd1888e 100644
--- a/tests/ref/fate/gifenc-gray
+++ b/tests/ref/fate/gifenc-gray
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 579, 0x0d0e3ab8
0, 1, 1, 1, 150, 0x178b3a8c, S=1, 1024, 0xc2f67c9f
0, 2, 2, 1, 155, 0x941743f5, S=1, 1024, 0xc2f67c9f
diff --git a/tests/ref/fate/gifenc-pal8 b/tests/ref/fate/gifenc-pal8
index a84efa0a06..a6d5741992 100644
--- a/tests/ref/fate/gifenc-pal8
+++ b/tests/ref/fate/gifenc-pal8
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 552, 0x271a2dd3, S=1, 1024, 0xec907a9e
0, 1, 1, 1, 297, 0x90168a95, S=1, 1024, 0xf351799f
0, 2, 2, 1, 438, 0x91efce1b, S=1, 1024, 0xf351799f
diff --git a/tests/ref/fate/gifenc-rgb4_byte b/tests/ref/fate/gifenc-rgb4_byte
index 9b00103c65..067accd694 100644
--- a/tests/ref/fate/gifenc-rgb4_byte
+++ b/tests/ref/fate/gifenc-rgb4_byte
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 508, 0xf04a113b
0, 1, 1, 1, 213, 0x23c24d3d, S=1, 1024, 0xf7700427
0, 2, 2, 1, 131, 0x56d22a39, S=1, 1024, 0x03730427
diff --git a/tests/ref/fate/gifenc-rgb8 b/tests/ref/fate/gifenc-rgb8
index d1a990d07e..490e4d0b19 100644
--- a/tests/ref/fate/gifenc-rgb8
+++ b/tests/ref/fate/gifenc-rgb8
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: gif
+#dimensions 0: 217x217
+#sar 0: 0/1
0, 0, 0, 1, 552, 0x47602c6c
0, 1, 1, 1, 297, 0x49dd8847, S=1, 1024, 0xcfc8799f
0, 2, 2, 1, 438, 0x4776d352, S=1, 1024, 0xcfc8799f
diff --git a/tests/ref/fate/gsm-ms b/tests/ref/fate/gsm-ms
index 6d15cb8f3f..92d78f3602 100644
--- a/tests/ref/fate/gsm-ms
+++ b/tests/ref/fate/gsm-ms
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 320, 640, 0xf79c59ee
0, 320, 320, 320, 640, 0x6e6248be
0, 640, 640, 320, 640, 0x2a5b3aed
diff --git a/tests/ref/fate/gsm-toast b/tests/ref/fate/gsm-toast
index 721e4e41d5..ebbfbbf82c 100644
--- a/tests/ref/fate/gsm-toast
+++ b/tests/ref/fate/gsm-toast
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 160, 320, 0x4c32ab06
0, 160, 160, 160, 320, 0x2052a4e7
0, 320, 320, 160, 320, 0xe9aeafca
diff --git a/tests/ref/fate/h264-conformance-aud_mw_e b/tests/ref/fate/h264-conformance-aud_mw_e
index 83c6faeeb7..890c7ff3fe 100644
--- a/tests/ref/fate/h264-conformance-aud_mw_e
+++ b/tests/ref/fate/h264-conformance-aud_mw_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xa6d63b2e
0, 1, 1, 1, 38016, 0x28bae101
0, 2, 2, 1, 38016, 0x139f9b29
diff --git a/tests/ref/fate/h264-conformance-ba1_ft_c b/tests/ref/fate/h264-conformance-ba1_ft_c
index 70db0bbfac..0b8f66e50f 100644
--- a/tests/ref/fate/h264-conformance-ba1_ft_c
+++ b/tests/ref/fate/h264-conformance-ba1_ft_c
@@ -1,4 +1,8 @@
#tb 0: 1/19
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xa6f9b2a8
0, 1, 1, 1, 152064, 0x936a8ed6
0, 2, 2, 1, 152064, 0xa9f47652
diff --git a/tests/ref/fate/h264-conformance-ba1_sony_d b/tests/ref/fate/h264-conformance-ba1_sony_d
index b0145cdbb4..c64462f758 100644
--- a/tests/ref/fate/h264-conformance-ba1_sony_d
+++ b/tests/ref/fate/h264-conformance-ba1_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0x99e1fe60
0, 2, 2, 1, 38016, 0x65eace24
diff --git a/tests/ref/fate/h264-conformance-ba2_sony_f b/tests/ref/fate/h264-conformance-ba2_sony_f
index 13a6462c67..86b2df3aed 100644
--- a/tests/ref/fate/h264-conformance-ba2_sony_f
+++ b/tests/ref/fate/h264-conformance-ba2_sony_f
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0x47b90d4b
0, 2, 2, 1, 38016, 0x3e99dfcf
diff --git a/tests/ref/fate/h264-conformance-ba3_sva_c b/tests/ref/fate/h264-conformance-ba3_sva_c
index cb775db75a..52d6bb0638 100644
--- a/tests/ref/fate/h264-conformance-ba3_sva_c
+++ b/tests/ref/fate/h264-conformance-ba3_sva_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xbf5f1df5
0, 1, 1, 1, 38016, 0x8de61f39
0, 2, 2, 1, 38016, 0xaeec0a18
diff --git a/tests/ref/fate/h264-conformance-ba_mw_d b/tests/ref/fate/h264-conformance-ba_mw_d
index 18a6717451..e237b58b1a 100644
--- a/tests/ref/fate/h264-conformance-ba_mw_d
+++ b/tests/ref/fate/h264-conformance-ba_mw_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x3ae838ee
0, 1, 1, 1, 38016, 0x9ed7e141
0, 2, 2, 1, 38016, 0x393097f9
diff --git a/tests/ref/fate/h264-conformance-bamq1_jvc_c b/tests/ref/fate/h264-conformance-bamq1_jvc_c
index 4a3066cfa7..a62ef085d6 100644
--- a/tests/ref/fate/h264-conformance-bamq1_jvc_c
+++ b/tests/ref/fate/h264-conformance-bamq1_jvc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x6951213f
0, 1, 1, 1, 38016, 0x82ddf39d
0, 2, 2, 1, 38016, 0x3f81c6b1
diff --git a/tests/ref/fate/h264-conformance-bamq2_jvc_c b/tests/ref/fate/h264-conformance-bamq2_jvc_c
index 3308f770ce..ef6d7bdc7d 100644
--- a/tests/ref/fate/h264-conformance-bamq2_jvc_c
+++ b/tests/ref/fate/h264-conformance-bamq2_jvc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x6951213f
0, 1, 1, 1, 38016, 0xd1bbf830
0, 2, 2, 1, 38016, 0x79dcc8cb
diff --git a/tests/ref/fate/h264-conformance-banm_mw_d b/tests/ref/fate/h264-conformance-banm_mw_d
index 6108ca3a2c..00b27bb1bc 100644
--- a/tests/ref/fate/h264-conformance-banm_mw_d
+++ b/tests/ref/fate/h264-conformance-banm_mw_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x3ae838ee
0, 1, 1, 1, 38016, 0x9ed7e141
0, 2, 2, 1, 38016, 0xaf9d9753
diff --git a/tests/ref/fate/h264-conformance-basqp1_sony_c b/tests/ref/fate/h264-conformance-basqp1_sony_c
index a5038e415d..24074314f5 100644
--- a/tests/ref/fate/h264-conformance-basqp1_sony_c
+++ b/tests/ref/fate/h264-conformance-basqp1_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xe2d73230
0, 1, 1, 1, 38016, 0xda4dfc8e
0, 2, 2, 1, 38016, 0x7334cb99
diff --git a/tests/ref/fate/h264-conformance-caba1_sony_d b/tests/ref/fate/h264-conformance-caba1_sony_d
index 35798202d6..dcd5976319 100644
--- a/tests/ref/fate/h264-conformance-caba1_sony_d
+++ b/tests/ref/fate/h264-conformance-caba1_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0x99e1fe60
0, 2, 2, 1, 38016, 0x65eace24
diff --git a/tests/ref/fate/h264-conformance-caba1_sva_b b/tests/ref/fate/h264-conformance-caba1_sva_b
index 8b255bc2f3..19daf44652 100644
--- a/tests/ref/fate/h264-conformance-caba1_sva_b
+++ b/tests/ref/fate/h264-conformance-caba1_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xee831fe4
0, 1, 1, 1, 38016, 0x1098ff23
0, 2, 2, 1, 38016, 0x8fc3e078
diff --git a/tests/ref/fate/h264-conformance-caba2_sony_e b/tests/ref/fate/h264-conformance-caba2_sony_e
index c30083c5e8..acfc842420 100644
--- a/tests/ref/fate/h264-conformance-caba2_sony_e
+++ b/tests/ref/fate/h264-conformance-caba2_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0x23a30e47
0, 2, 2, 1, 38016, 0xa0b7df0f
diff --git a/tests/ref/fate/h264-conformance-caba2_sva_b b/tests/ref/fate/h264-conformance-caba2_sva_b
index ca89226f41..8c77add756 100644
--- a/tests/ref/fate/h264-conformance-caba2_sva_b
+++ b/tests/ref/fate/h264-conformance-caba2_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xee831fe4
0, 1, 1, 1, 38016, 0xd9130e19
0, 2, 2, 1, 38016, 0x8ad70cae
diff --git a/tests/ref/fate/h264-conformance-caba3_sony_c b/tests/ref/fate/h264-conformance-caba3_sony_c
index c7aee37319..4e3593092f 100644
--- a/tests/ref/fate/h264-conformance-caba3_sony_c
+++ b/tests/ref/fate/h264-conformance-caba3_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0xb6261cdd
0, 2, 2, 1, 38016, 0x42ecede9
diff --git a/tests/ref/fate/h264-conformance-caba3_sva_b b/tests/ref/fate/h264-conformance-caba3_sva_b
index 7bdb3f8636..cfa3c164ff 100644
--- a/tests/ref/fate/h264-conformance-caba3_sva_b
+++ b/tests/ref/fate/h264-conformance-caba3_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x0e091175
0, 1, 1, 1, 38016, 0xe8f81506
0, 2, 2, 1, 38016, 0xf706f5cd
diff --git a/tests/ref/fate/h264-conformance-caba3_toshiba_e b/tests/ref/fate/h264-conformance-caba3_toshiba_e
index b31efe1564..7c6c4c3fd4 100644
--- a/tests/ref/fate/h264-conformance-caba3_toshiba_e
+++ b/tests/ref/fate/h264-conformance-caba3_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x72723ce4
0, 1, 1, 1, 38016, 0x347219d7
0, 2, 2, 1, 38016, 0x813ff182
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_fld0_full b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
index b131cdaa26..8778fef98e 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xbf168f4e
0, 1, 1, 1, 518400, 0xeda5e54f
0, 2, 2, 1, 518400, 0xef496d43
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_frm0_full b/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
index 58949e2442..3774cfdbbf 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x40c7e2d9
0, 1, 1, 1, 518400, 0xb16701a5
0, 2, 2, 1, 518400, 0x12c2f5b1
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full b/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
index 1e9313e00e..120871f2b9 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x8336b7db
0, 1, 1, 1, 518400, 0x9818c309
0, 2, 2, 1, 518400, 0x5417b6f9
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
index 484025e576..5651e4b57c 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xd8b58a23
0, 1, 1, 1, 518400, 0xe53b4aba
0, 2, 2, 1, 518400, 0x6cbca47a
diff --git a/tests/ref/fate/h264-conformance-cabaci3_sony_b b/tests/ref/fate/h264-conformance-cabaci3_sony_b
index 9dc4884fae..bcfce03230 100644
--- a/tests/ref/fate/h264-conformance-cabaci3_sony_b
+++ b/tests/ref/fate/h264-conformance-cabaci3_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x705f2f41
0, 1, 1, 1, 38016, 0xa76d1766
0, 2, 2, 1, 38016, 0xf367e6f4
diff --git a/tests/ref/fate/h264-conformance-cabast3_sony_e b/tests/ref/fate/h264-conformance-cabast3_sony_e
index 00519ef968..38da464a64 100644
--- a/tests/ref/fate/h264-conformance-cabast3_sony_e
+++ b/tests/ref/fate/h264-conformance-cabast3_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x96ebb3a2
0, 1, 1, 1, 152064, 0x5184d912
0, 2, 2, 1, 152064, 0xfa0c9abe
diff --git a/tests/ref/fate/h264-conformance-cabastbr3_sony_b b/tests/ref/fate/h264-conformance-cabastbr3_sony_b
index 765f53f632..0a3525039a 100644
--- a/tests/ref/fate/h264-conformance-cabastbr3_sony_b
+++ b/tests/ref/fate/h264-conformance-cabastbr3_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x96ebb3a2
0, 1, 1, 1, 152064, 0x5184d912
0, 2, 2, 1, 152064, 0xb7b5ba68
diff --git a/tests/ref/fate/h264-conformance-cabref3_sand_d b/tests/ref/fate/h264-conformance-cabref3_sand_d
index 9e555f6ee6..d5cd445879 100644
--- a/tests/ref/fate/h264-conformance-cabref3_sand_d
+++ b/tests/ref/fate/h264-conformance-cabref3_sand_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2061bbd0
0, 1, 1, 1, 152064, 0x41adb750
0, 2, 2, 1, 152064, 0x6e889e90
diff --git a/tests/ref/fate/h264-conformance-cacqp3_sony_d b/tests/ref/fate/h264-conformance-cacqp3_sony_d
index c3685296fb..788a0a52a1 100644
--- a/tests/ref/fate/h264-conformance-cacqp3_sony_d
+++ b/tests/ref/fate/h264-conformance-cacqp3_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x295a375c
0, 1, 1, 1, 38016, 0xd0da1f37
0, 2, 2, 1, 38016, 0x0e5ed514
diff --git a/tests/ref/fate/h264-conformance-cafi1_sva_c b/tests/ref/fate/h264-conformance-cafi1_sva_c
index 180adf186b..11d958fd4c 100644
--- a/tests/ref/fate/h264-conformance-cafi1_sva_c
+++ b/tests/ref/fate/h264-conformance-cafi1_sva_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x47bd73fa
0, 1, 1, 1, 518400, 0xfe3ea7cc
0, 2, 2, 1, 518400, 0x9bc549ae
diff --git a/tests/ref/fate/h264-conformance-cama1_sony_c b/tests/ref/fate/h264-conformance-cama1_sony_c
index 66852165d4..9a29e30245 100644
--- a/tests/ref/fate/h264-conformance-cama1_sony_c
+++ b/tests/ref/fate/h264-conformance-cama1_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x75701511
0, 1, 1, 1, 518400, 0xa7eeaa16
0, 2, 2, 1, 518400, 0xe0f32e35
diff --git a/tests/ref/fate/h264-conformance-cama1_toshiba_b b/tests/ref/fate/h264-conformance-cama1_toshiba_b
index ab2da4a736..6e854f2c31 100644
--- a/tests/ref/fate/h264-conformance-cama1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cama1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9a9ce366
0, 1, 1, 1, 152064, 0xf4639828
0, 2, 2, 1, 152064, 0x625024a3
diff --git a/tests/ref/fate/h264-conformance-cama1_vtc_c b/tests/ref/fate/h264-conformance-cama1_vtc_c
index eeb66b0e1c..bb863048fe 100644
--- a/tests/ref/fate/h264-conformance-cama1_vtc_c
+++ b/tests/ref/fate/h264-conformance-cama1_vtc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x41c2ce17
0, 1, 1, 1, 518400, 0x39f217da
0, 2, 2, 1, 518400, 0x5a108db9
diff --git a/tests/ref/fate/h264-conformance-cama2_vtc_b b/tests/ref/fate/h264-conformance-cama2_vtc_b
index 0dfe6a9ac3..c5c58a61a0 100644
--- a/tests/ref/fate/h264-conformance-cama2_vtc_b
+++ b/tests/ref/fate/h264-conformance-cama2_vtc_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 0/1
0, 0, 0, 1, 622080, 0x004bb93f
0, 1, 1, 1, 622080, 0xe70e193c
0, 2, 2, 1, 622080, 0xd394cf17
diff --git a/tests/ref/fate/h264-conformance-cama3_sand_e b/tests/ref/fate/h264-conformance-cama3_sand_e
index f89bc40d1f..e1e9784775 100644
--- a/tests/ref/fate/h264-conformance-cama3_sand_e
+++ b/tests/ref/fate/h264-conformance-cama3_sand_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf772f152
0, 1, 1, 1, 152064, 0x7c501772
0, 2, 2, 1, 152064, 0x98ed0a07
diff --git a/tests/ref/fate/h264-conformance-cama3_vtc_b b/tests/ref/fate/h264-conformance-cama3_vtc_b
index 46821c1798..288ddd1961 100644
--- a/tests/ref/fate/h264-conformance-cama3_vtc_b
+++ b/tests/ref/fate/h264-conformance-cama3_vtc_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 0/1
0, 0, 0, 1, 622080, 0xf3f0bf86
0, 1, 1, 1, 622080, 0x6aaf3d42
0, 2, 2, 1, 622080, 0xe53bcd5d
diff --git a/tests/ref/fate/h264-conformance-camaci3_sony_c b/tests/ref/fate/h264-conformance-camaci3_sony_c
index 5896460fe0..9d75d00e4a 100644
--- a/tests/ref/fate/h264-conformance-camaci3_sony_c
+++ b/tests/ref/fate/h264-conformance-camaci3_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0x9b5dcf28
0, 1, 1, 1, 36864, 0xb13d4fee
0, 2, 2, 1, 36864, 0x11c512ac
diff --git a/tests/ref/fate/h264-conformance-camanl1_toshiba_b b/tests/ref/fate/h264-conformance-camanl1_toshiba_b
index 2c3c557071..a62f917631 100644
--- a/tests/ref/fate/h264-conformance-camanl1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-camanl1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb1edd842
0, 1, 1, 1, 152064, 0x551f8f45
0, 2, 2, 1, 152064, 0xb4931cb2
diff --git a/tests/ref/fate/h264-conformance-camanl2_toshiba_b b/tests/ref/fate/h264-conformance-camanl2_toshiba_b
index 066c57fd30..6a2f321167 100644
--- a/tests/ref/fate/h264-conformance-camanl2_toshiba_b
+++ b/tests/ref/fate/h264-conformance-camanl2_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb1edd842
0, 1, 1, 1, 152064, 0x551f8f45
0, 2, 2, 1, 152064, 0xb4931cb2
diff --git a/tests/ref/fate/h264-conformance-camanl3_sand_e b/tests/ref/fate/h264-conformance-camanl3_sand_e
index a76170c757..901e4d0237 100644
--- a/tests/ref/fate/h264-conformance-camanl3_sand_e
+++ b/tests/ref/fate/h264-conformance-camanl3_sand_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x6c1ff6a7
0, 1, 1, 1, 152064, 0x17f1ff3a
0, 2, 2, 1, 152064, 0xf7ddcda8
diff --git a/tests/ref/fate/h264-conformance-camasl3_sony_b b/tests/ref/fate/h264-conformance-camasl3_sony_b
index 0cb41e194a..5bb38ab783 100644
--- a/tests/ref/fate/h264-conformance-camasl3_sony_b
+++ b/tests/ref/fate/h264-conformance-camasl3_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0xfe2ad849
0, 1, 1, 1, 36864, 0x37954ba1
0, 2, 2, 1, 36864, 0xaf0e0877
diff --git a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30 b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
index c4f2782db6..ab02c2b761 100644
--- a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
+++ b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x672279df
0, 1, 1, 1, 518400, 0xb248a762
0, 2, 2, 1, 518400, 0x4399de88
diff --git a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31 b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
index 1bee03729a..dc82250f58 100644
--- a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
+++ b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x077637bf
0, 1, 1, 1, 518400, 0xbd096d55
0, 2, 2, 1, 518400, 0x58b58820
diff --git a/tests/ref/fate/h264-conformance-canl1_sony_e b/tests/ref/fate/h264-conformance-canl1_sony_e
index d90e95758c..849ccefda5 100644
--- a/tests/ref/fate/h264-conformance-canl1_sony_e
+++ b/tests/ref/fate/h264-conformance-canl1_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc805351d
0, 1, 1, 1, 38016, 0x3809fec3
0, 2, 2, 1, 38016, 0xf698ce3c
diff --git a/tests/ref/fate/h264-conformance-canl1_sva_b b/tests/ref/fate/h264-conformance-canl1_sva_b
index 0436f43ceb..42ed8d74e1 100644
--- a/tests/ref/fate/h264-conformance-canl1_sva_b
+++ b/tests/ref/fate/h264-conformance-canl1_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x0bd22424
0, 1, 1, 1, 38016, 0x4eb601f0
0, 2, 2, 1, 38016, 0xe16de459
diff --git a/tests/ref/fate/h264-conformance-canl1_toshiba_g b/tests/ref/fate/h264-conformance-canl1_toshiba_g
index ced4c927e5..73e6b7ebbf 100644
--- a/tests/ref/fate/h264-conformance-canl1_toshiba_g
+++ b/tests/ref/fate/h264-conformance-canl1_toshiba_g
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x58892149
0, 1, 1, 1, 38016, 0xda2ded74
0, 2, 2, 1, 38016, 0x2661cdb0
diff --git a/tests/ref/fate/h264-conformance-canl2_sony_e b/tests/ref/fate/h264-conformance-canl2_sony_e
index 9a3b48fa2c..567e35f48b 100644
--- a/tests/ref/fate/h264-conformance-canl2_sony_e
+++ b/tests/ref/fate/h264-conformance-canl2_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc805351d
0, 1, 1, 1, 38016, 0x3017107e
0, 2, 2, 1, 38016, 0xe172e2d2
diff --git a/tests/ref/fate/h264-conformance-canl2_sva_b b/tests/ref/fate/h264-conformance-canl2_sva_b
index 0436f43ceb..42ed8d74e1 100644
--- a/tests/ref/fate/h264-conformance-canl2_sva_b
+++ b/tests/ref/fate/h264-conformance-canl2_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x0bd22424
0, 1, 1, 1, 38016, 0x4eb601f0
0, 2, 2, 1, 38016, 0xe16de459
diff --git a/tests/ref/fate/h264-conformance-canl3_sony_c b/tests/ref/fate/h264-conformance-canl3_sony_c
index 2e726cfd71..80d802970f 100644
--- a/tests/ref/fate/h264-conformance-canl3_sony_c
+++ b/tests/ref/fate/h264-conformance-canl3_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc805351d
0, 1, 1, 1, 38016, 0xa0b41fef
0, 2, 2, 1, 38016, 0x965cf070
diff --git a/tests/ref/fate/h264-conformance-canl3_sva_b b/tests/ref/fate/h264-conformance-canl3_sva_b
index dd56a43987..775550ac80 100644
--- a/tests/ref/fate/h264-conformance-canl3_sva_b
+++ b/tests/ref/fate/h264-conformance-canl3_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x0bd22424
0, 1, 1, 1, 38016, 0xc45d1947
0, 2, 2, 1, 38016, 0x9d3d1218
diff --git a/tests/ref/fate/h264-conformance-canl4_sva_b b/tests/ref/fate/h264-conformance-canl4_sva_b
index a9a2dd39f4..9945b0bd5b 100644
--- a/tests/ref/fate/h264-conformance-canl4_sva_b
+++ b/tests/ref/fate/h264-conformance-canl4_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x5d9514e3
0, 1, 1, 1, 38016, 0xf5e8155c
0, 2, 2, 1, 38016, 0xc0a5f88b
diff --git a/tests/ref/fate/h264-conformance-canlma2_sony_c b/tests/ref/fate/h264-conformance-canlma2_sony_c
index b6a759a73e..ba3e6bd472 100644
--- a/tests/ref/fate/h264-conformance-canlma2_sony_c
+++ b/tests/ref/fate/h264-conformance-canlma2_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xfbca00c6
0, 1, 1, 1, 518400, 0x82b80adf
0, 2, 2, 1, 518400, 0x87ecdf4a
diff --git a/tests/ref/fate/h264-conformance-canlma3_sony_c b/tests/ref/fate/h264-conformance-canlma3_sony_c
index 87ce78608d..57dda521b5 100644
--- a/tests/ref/fate/h264-conformance-canlma3_sony_c
+++ b/tests/ref/fate/h264-conformance-canlma3_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xfbca00c6
0, 1, 1, 1, 518400, 0x82b80adf
0, 2, 2, 1, 518400, 0x4874c24c
diff --git a/tests/ref/fate/h264-conformance-capa1_toshiba_b b/tests/ref/fate/h264-conformance-capa1_toshiba_b
index a0336f82e5..c88dc547ea 100644
--- a/tests/ref/fate/h264-conformance-capa1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-capa1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x4040d2fc
0, 1, 1, 1, 152064, 0x0d8f9897
0, 2, 2, 1, 152064, 0xc23321cd
diff --git a/tests/ref/fate/h264-conformance-capama3_sand_f b/tests/ref/fate/h264-conformance-capama3_sand_f
index b621b8138d..b847b9a2b9 100644
--- a/tests/ref/fate/h264-conformance-capama3_sand_f
+++ b/tests/ref/fate/h264-conformance-capama3_sand_f
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf772f152
0, 1, 1, 1, 152064, 0xc416d300
0, 2, 2, 1, 152064, 0xc2275c94
diff --git a/tests/ref/fate/h264-conformance-capcm1_sand_e b/tests/ref/fate/h264-conformance-capcm1_sand_e
index 392e8b45d3..2987c74403 100644
--- a/tests/ref/fate/h264-conformance-capcm1_sand_e
+++ b/tests/ref/fate/h264-conformance-capcm1_sand_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9989b588
0, 1, 1, 1, 152064, 0x7cbf85d4
0, 2, 2, 1, 152064, 0x72615cf1
diff --git a/tests/ref/fate/h264-conformance-capcmnl1_sand_e b/tests/ref/fate/h264-conformance-capcmnl1_sand_e
index baee0ae12d..d738158192 100644
--- a/tests/ref/fate/h264-conformance-capcmnl1_sand_e
+++ b/tests/ref/fate/h264-conformance-capcmnl1_sand_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf973b384
0, 1, 1, 1, 152064, 0x84418532
0, 2, 2, 1, 152064, 0x63165bc0
diff --git a/tests/ref/fate/h264-conformance-capm3_sony_d b/tests/ref/fate/h264-conformance-capm3_sony_d
index ab2b280c21..72f1e35658 100644
--- a/tests/ref/fate/h264-conformance-capm3_sony_d
+++ b/tests/ref/fate/h264-conformance-capm3_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xa3b72d2f
0, 1, 1, 1, 38016, 0x77d918ae
0, 2, 2, 1, 38016, 0x181ad684
diff --git a/tests/ref/fate/h264-conformance-caqp1_sony_b b/tests/ref/fate/h264-conformance-caqp1_sony_b
index beca1c5006..874d6ebc21 100644
--- a/tests/ref/fate/h264-conformance-caqp1_sony_b
+++ b/tests/ref/fate/h264-conformance-caqp1_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x25f92b0e
0, 1, 1, 1, 38016, 0x2ecbe752
0, 2, 2, 1, 38016, 0x3432e744
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
index f80c3be2e5..0ee9a397f5 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x99d0df36
0, 1, 1, 1, 518400, 0xa8601c1a
0, 2, 2, 1, 518400, 0x4a17d235
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
index edee4bfd9b..611ffcd4a8 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x21baedbf
0, 1, 1, 1, 518400, 0x6003273c
0, 2, 2, 1, 518400, 0x935d45d7
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
index 7d3ae3ee56..5915f98cdd 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x4cecc821
0, 1, 1, 1, 518400, 0xee49ea81
0, 2, 2, 1, 518400, 0x78b0d65f
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
index ed5e02eee6..c0f6a5ed12 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xf6b83a0e
0, 1, 1, 1, 518400, 0xc5e8b8ee
0, 2, 2, 1, 518400, 0xb3bc6e43
diff --git a/tests/ref/fate/h264-conformance-cawp1_toshiba_e b/tests/ref/fate/h264-conformance-cawp1_toshiba_e
index e5a6944010..111b2281b7 100644
--- a/tests/ref/fate/h264-conformance-cawp1_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cawp1_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xabf9ae05
0, 1, 1, 1, 152064, 0x20418b16
0, 2, 2, 1, 152064, 0xc26760ae
diff --git a/tests/ref/fate/h264-conformance-cawp5_toshiba_e b/tests/ref/fate/h264-conformance-cawp5_toshiba_e
index 5b48f8f428..2b055c2723 100644
--- a/tests/ref/fate/h264-conformance-cawp5_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cawp5_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xabf9ae05
0, 1, 1, 1, 152064, 0x20418b16
0, 2, 2, 1, 152064, 0x20f72775
diff --git a/tests/ref/fate/h264-conformance-ci1_ft_b b/tests/ref/fate/h264-conformance-ci1_ft_b
index 08e40f499d..650d5b5294 100644
--- a/tests/ref/fate/h264-conformance-ci1_ft_b
+++ b/tests/ref/fate/h264-conformance-ci1_ft_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb291a678
0, 1, 1, 1, 152064, 0x913c5a5d
0, 2, 2, 1, 152064, 0x9558a372
diff --git a/tests/ref/fate/h264-conformance-ci_mw_d b/tests/ref/fate/h264-conformance-ci_mw_d
index 7b5a7dc521..275affab24 100644
--- a/tests/ref/fate/h264-conformance-ci_mw_d
+++ b/tests/ref/fate/h264-conformance-ci_mw_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x3ae838ee
0, 1, 1, 1, 38016, 0x8523e136
0, 2, 2, 1, 38016, 0xcffc99dd
diff --git a/tests/ref/fate/h264-conformance-cvbs3_sony_c b/tests/ref/fate/h264-conformance-cvbs3_sony_c
index ad7485a80e..7c3ec2657e 100644
--- a/tests/ref/fate/h264-conformance-cvbs3_sony_c
+++ b/tests/ref/fate/h264-conformance-cvbs3_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb3883478
0, 1, 1, 1, 38016, 0xddf01d9d
0, 2, 2, 1, 38016, 0xb177ece2
diff --git a/tests/ref/fate/h264-conformance-cvcanlma2_sony_c b/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
index b6a759a73e..ba3e6bd472 100644
--- a/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
+++ b/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xfbca00c6
0, 1, 1, 1, 518400, 0x82b80adf
0, 2, 2, 1, 518400, 0x87ecdf4a
diff --git a/tests/ref/fate/h264-conformance-cvfc1_sony_c b/tests/ref/fate/h264-conformance-cvfc1_sony_c
index 1abe67f3b3..541432d2ef 100644
--- a/tests/ref/fate/h264-conformance-cvfc1_sony_c
+++ b/tests/ref/fate/h264-conformance-cvfc1_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x168
+#sar 0: 0/1
0, 0, 0, 1, 75600, 0x6f6a8c48
0, 1, 1, 1, 75600, 0x4b7ac558
0, 2, 2, 1, 75600, 0x907feda3
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sony_d b/tests/ref/fate/h264-conformance-cvfi1_sony_d
index 195c7d6c96..bf998bcf8a 100644
--- a/tests/ref/fate/h264-conformance-cvfi1_sony_d
+++ b/tests/ref/fate/h264-conformance-cvfi1_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xd9444d71
0, 1, 1, 1, 518400, 0x5d8928cd
0, 2, 2, 1, 518400, 0xea5bc08b
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sva_c b/tests/ref/fate/h264-conformance-cvfi1_sva_c
index c19bc0d338..55628842f5 100644
--- a/tests/ref/fate/h264-conformance-cvfi1_sva_c
+++ b/tests/ref/fate/h264-conformance-cvfi1_sva_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x8f022263
0, 1, 1, 1, 518400, 0x02692654
0, 2, 2, 1, 518400, 0x55eff579
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sony_h b/tests/ref/fate/h264-conformance-cvfi2_sony_h
index 0914e22951..deb9b38ad8 100644
--- a/tests/ref/fate/h264-conformance-cvfi2_sony_h
+++ b/tests/ref/fate/h264-conformance-cvfi2_sony_h
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xd9444d71
0, 1, 1, 1, 518400, 0x491faf75
0, 2, 2, 1, 518400, 0xf8b4d15c
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sva_c b/tests/ref/fate/h264-conformance-cvfi2_sva_c
index 7c3162a7e0..e2a0b6da78 100644
--- a/tests/ref/fate/h264-conformance-cvfi2_sva_c
+++ b/tests/ref/fate/h264-conformance-cvfi2_sva_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x4073cc0b
0, 1, 1, 1, 518400, 0x5f599a48
0, 2, 2, 1, 518400, 0xc6fe555a
diff --git a/tests/ref/fate/h264-conformance-cvma1_sony_d b/tests/ref/fate/h264-conformance-cvma1_sony_d
index 66852165d4..9a29e30245 100644
--- a/tests/ref/fate/h264-conformance-cvma1_sony_d
+++ b/tests/ref/fate/h264-conformance-cvma1_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x75701511
0, 1, 1, 1, 518400, 0xa7eeaa16
0, 2, 2, 1, 518400, 0xe0f32e35
diff --git a/tests/ref/fate/h264-conformance-cvma1_toshiba_b b/tests/ref/fate/h264-conformance-cvma1_toshiba_b
index ab2da4a736..6e854f2c31 100644
--- a/tests/ref/fate/h264-conformance-cvma1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cvma1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9a9ce366
0, 1, 1, 1, 152064, 0xf4639828
0, 2, 2, 1, 152064, 0x625024a3
diff --git a/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b b/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
index 2c3c557071..a62f917631 100644
--- a/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb1edd842
0, 1, 1, 1, 152064, 0x551f8f45
0, 2, 2, 1, 152064, 0xb4931cb2
diff --git a/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b b/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
index 066c57fd30..6a2f321167 100644
--- a/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb1edd842
0, 1, 1, 1, 152064, 0x551f8f45
0, 2, 2, 1, 152064, 0xb4931cb2
diff --git a/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
index 094fc9848f..8cc81e62ac 100644
--- a/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
+++ b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x80dffda2
0, 1, 1, 1, 518400, 0x9450183b
0, 2, 2, 1, 518400, 0x85d429a7
diff --git a/tests/ref/fate/h264-conformance-cvmaqp2_sony_g b/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
index 886ea4cd3f..a7f3e29887 100644
--- a/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
+++ b/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0xdee3d4e3
0, 1, 1, 1, 36864, 0xaa1a67ca
0, 2, 2, 1, 36864, 0xe00e0dec
diff --git a/tests/ref/fate/h264-conformance-cvmaqp3_sony_d b/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
index 7c3d96dc94..073422c3f9 100644
--- a/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
+++ b/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0xdee3d4e3
0, 1, 1, 1, 36864, 0xabec8d44
0, 2, 2, 1, 36864, 0x95d029fe
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
index 57fa2f7690..94d4dff0b1 100644
--- a/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xe9c7643e
0, 1, 1, 1, 518400, 0xba7456ec
0, 2, 2, 1, 518400, 0xdeb96749
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
index bc7e81e36d..fc6b1b7d5e 100644
--- a/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x7b2475e3
0, 1, 1, 1, 518400, 0xda786a87
0, 2, 2, 1, 518400, 0xb1dd8108
diff --git a/tests/ref/fate/h264-conformance-cvnlfi1_sony_c b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
index aa3c220fca..02a6b53752 100644
--- a/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
+++ b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x0fbb4e71
0, 1, 1, 1, 518400, 0x4b816734
0, 2, 2, 1, 518400, 0x0c350f19
diff --git a/tests/ref/fate/h264-conformance-cvnlfi2_sony_h b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
index fe2e4d14db..c7128ba336 100644
--- a/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
+++ b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x0fbb4e71
0, 1, 1, 1, 518400, 0xc46bec04
0, 2, 2, 1, 518400, 0xc50ffc1d
diff --git a/tests/ref/fate/h264-conformance-cvpa1_toshiba_b b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
index fd0911bb5f..6bf9ee3934 100644
--- a/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x128cd77a
0, 1, 1, 1, 152064, 0x565b9fc1
0, 2, 2, 1, 152064, 0xbe322679
diff --git a/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c b/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
index 95c99038ae..528d2a5947 100644
--- a/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
+++ b/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x19b8407d
0, 1, 1, 1, 152064, 0xab8bede6
0, 2, 2, 1, 152064, 0xf59acd09
diff --git a/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c b/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
index 4f92eab5a3..0303bc24e6 100644
--- a/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
+++ b/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0xccbe6bf8
0, 1, 1, 1, 1382400, 0x49c0cfd7
diff --git a/tests/ref/fate/h264-conformance-cvwp1_toshiba_e b/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
index b184c847c7..e7e6ec30c1 100644
--- a/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xabf9ae05
0, 1, 1, 1, 152064, 0x20418b16
0, 2, 2, 1, 152064, 0xe941572f
diff --git a/tests/ref/fate/h264-conformance-cvwp2_toshiba_e b/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
index 627f4b8f24..cd93fbc52d 100644
--- a/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf503fb79
0, 1, 1, 1, 152064, 0xeaa4ba5d
0, 2, 2, 1, 152064, 0x50865a33
diff --git a/tests/ref/fate/h264-conformance-cvwp3_toshiba_e b/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
index ca3b7b8461..285892ef7a 100644
--- a/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x3b3ffd31
0, 1, 1, 1, 152064, 0x14e0b899
0, 2, 2, 1, 152064, 0x50865a33
diff --git a/tests/ref/fate/h264-conformance-cvwp5_toshiba_e b/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
index 5b48f8f428..2b055c2723 100644
--- a/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
+++ b/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xabf9ae05
0, 1, 1, 1, 152064, 0x20418b16
0, 2, 2, 1, 152064, 0x20f72775
diff --git a/tests/ref/fate/h264-conformance-fi1_sony_e b/tests/ref/fate/h264-conformance-fi1_sony_e
index 6b5e0dbd52..c48306679c 100644
--- a/tests/ref/fate/h264-conformance-fi1_sony_e
+++ b/tests/ref/fate/h264-conformance-fi1_sony_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0x3d54d3e3
0, 1, 1, 1, 36864, 0xa9573ef0
0, 2, 2, 1, 36864, 0x0ea5f263
diff --git a/tests/ref/fate/h264-conformance-frext-alphaconformanceg b/tests/ref/fate/h264-conformance-frext-alphaconformanceg
index dee1c424ff..1e894cfd4b 100644
--- a/tests/ref/fate/h264-conformance-frext-alphaconformanceg
+++ b/tests/ref/fate/h264-conformance-frext-alphaconformanceg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 960x544
+#sar 0: 0/1
0, 0, 0, 1, 783360, 0xbc458a9a
0, 1, 1, 1, 783360, 0xc2b4a765
0, 2, 2, 1, 783360, 0x40a8ca87
diff --git a/tests/ref/fate/h264-conformance-frext-bcrm_freh10 b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
index 272a4aa235..7592f6c516 100644
--- a/tests/ref/fate/h264-conformance-frext-bcrm_freh10
+++ b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xbdc2b880
0, 1, 1, 1, 152064, 0x4ebf93fe
0, 2, 2, 1, 152064, 0xe30d6871
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh11 b/tests/ref/fate/h264-conformance-frext-brcm_freh11
index 3183c4dd0e..5bb9aa447e 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh11
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh11
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9744ac59
0, 1, 1, 1, 152064, 0x3eba88bf
0, 2, 2, 1, 152064, 0xd4105c5a
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh3 b/tests/ref/fate/h264-conformance-frext-brcm_freh3
index 9a40148572..932354ff47 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh3
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9f9caf3c
0, 1, 1, 1, 152064, 0x4e8e9dc4
0, 2, 2, 1, 152064, 0x7eab62be
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh4 b/tests/ref/fate/h264-conformance-frext-brcm_freh4
index ad3a3ec775..9898def9fd 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh4
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9744ac59
0, 1, 1, 1, 152064, 0xe1c69d97
0, 2, 2, 1, 152064, 0x9ae85f93
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh5 b/tests/ref/fate/h264-conformance-frext-brcm_freh5
index 9057c82fca..10ff8d0c23 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh5
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd816ae9a
0, 1, 1, 1, 152064, 0x970e9c33
0, 2, 2, 1, 152064, 0xbdd14635
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh8 b/tests/ref/fate/h264-conformance-frext-brcm_freh8
index 4cc7f0e120..552d5e8cec 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh8
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh8
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xdcc4ac76
0, 1, 1, 1, 152064, 0xfde6871a
0, 2, 2, 1, 152064, 0xe8a351b5
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh9 b/tests/ref/fate/h264-conformance-frext-brcm_freh9
index 44d5d1a410..77737107d7 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh9
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh9
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9f9caf3c
0, 1, 1, 1, 152064, 0x68f285b1
0, 2, 2, 1, 152064, 0x28bd4987
diff --git a/tests/ref/fate/h264-conformance-frext-freh12_b b/tests/ref/fate/h264-conformance-frext-freh12_b
index 9455cc2294..e32839f1bd 100644
--- a/tests/ref/fate/h264-conformance-frext-freh12_b
+++ b/tests/ref/fate/h264-conformance-frext-freh12_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x9f9caf3c
0, 1, 1, 1, 152064, 0x0ff688a6
0, 2, 2, 1, 152064, 0x247d4215
diff --git a/tests/ref/fate/h264-conformance-frext-freh1_b b/tests/ref/fate/h264-conformance-frext-freh1_b
index c5c0b253a5..8bf4b58c45 100644
--- a/tests/ref/fate/h264-conformance-frext-freh1_b
+++ b/tests/ref/fate/h264-conformance-frext-freh1_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x42a3d9ce
0, 1, 1, 1, 152064, 0xa95cc2ed
0, 2, 2, 1, 152064, 0xc48f8fdc
diff --git a/tests/ref/fate/h264-conformance-frext-freh2_b b/tests/ref/fate/h264-conformance-frext-freh2_b
index ff12025d6a..9ba128e973 100644
--- a/tests/ref/fate/h264-conformance-frext-freh2_b
+++ b/tests/ref/fate/h264-conformance-frext-freh2_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x1668b41a
0, 1, 1, 1, 152064, 0x953ca7fb
0, 2, 2, 1, 152064, 0x3e38bc6e
diff --git a/tests/ref/fate/h264-conformance-frext-freh6 b/tests/ref/fate/h264-conformance-frext-freh6
index c769038cfd..57ac261800 100644
--- a/tests/ref/fate/h264-conformance-frext-freh6
+++ b/tests/ref/fate/h264-conformance-frext-freh6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x3b21d6cd
0, 1, 1, 1, 152064, 0xc32088c6
0, 2, 2, 1, 152064, 0x65a64cee
diff --git a/tests/ref/fate/h264-conformance-frext-freh7_b b/tests/ref/fate/h264-conformance-frext-freh7_b
index 519c34676e..b078cf1b35 100644
--- a/tests/ref/fate/h264-conformance-frext-freh7_b
+++ b/tests/ref/fate/h264-conformance-frext-freh7_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x89f2e8d5
0, 1, 1, 1, 152064, 0x35b99397
0, 2, 2, 1, 152064, 0x6ef46744
diff --git a/tests/ref/fate/h264-conformance-frext-frext01_jvc_d b/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
index b82151e4be..ac992a8c86 100644
--- a/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
+++ b/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x31bc935e
0, 1, 1, 1, 152064, 0x501ea92a
0, 2, 2, 1, 152064, 0x8b2f6ead
diff --git a/tests/ref/fate/h264-conformance-frext-frext02_jvc_c b/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
index b82151e4be..ac992a8c86 100644
--- a/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
+++ b/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x31bc935e
0, 1, 1, 1, 152064, 0x501ea92a
0, 2, 2, 1, 152064, 0x8b2f6ead
diff --git a/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c b/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
index 81748f700b..7f3992d967 100644
--- a/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
+++ b/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf9c30518
0, 1, 1, 1, 152064, 0x509dd18f
0, 2, 2, 1, 152064, 0x7f5c8f07
diff --git a/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
index 7c53b5c9ee..76e4d26cf8 100644
--- a/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
+++ b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x0147a2a9
0, 1, 1, 1, 152064, 0xe2365351
0, 2, 2, 1, 152064, 0xb5f9daee
diff --git a/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d b/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
index 71b743e576..80ee19ff50 100644
--- a/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
+++ b/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xdd346292
0, 1, 1, 1, 152064, 0xb07e6efd
0, 2, 2, 1, 152064, 0x81b4d540
diff --git a/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
index c0886e446d..5640228a26 100644
--- a/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd604d440
0, 1, 1, 1, 152064, 0x08ef262c
0, 2, 2, 1, 152064, 0x992fca8e
diff --git a/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b b/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
index a964a38a15..dc783785a5 100644
--- a/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
+++ b/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x24846654
0, 1, 1, 1, 152064, 0xd33945be
0, 2, 2, 1, 152064, 0x961cbbfb
diff --git a/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
index eb41d46955..67badb6c2b 100644
--- a/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
+++ b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xb055a9bd
0, 1, 1, 1, 152064, 0x9e1eadb6
0, 2, 2, 1, 152064, 0x48f117d2
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c b/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
index 285f05760d..7035983a03 100644
--- a/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
+++ b/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd48c87b3
0, 1, 1, 1, 152064, 0xb7a67f8f
0, 2, 2, 1, 152064, 0x3c3f3c11
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
index 7149850a7b..4bc95d9032 100644
--- a/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
+++ b/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd5448f0e
0, 1, 1, 1, 152064, 0x93d022ba
0, 2, 2, 1, 152064, 0x1eaed76e
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
index 2ec9dce1ad..4fc2d99520 100644
--- a/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
+++ b/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xd5448f0e
0, 1, 1, 1, 152064, 0x665e33b5
0, 2, 2, 1, 152064, 0x6648e99d
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
index 00af8ff6d3..08146546ff 100644
--- a/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
+++ b/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xc7d8832d
0, 1, 1, 1, 152064, 0x8d9ffc59
0, 2, 2, 1, 152064, 0xaf3ea0d1
diff --git a/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b b/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
index df85212861..a56d7e2931 100644
--- a/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
+++ b/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x18f494ec
0, 1, 1, 1, 152064, 0x7515e6d7
0, 2, 2, 1, 152064, 0xaa8ee665
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b b/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
index 244e546cd0..15dfc4b8db 100644
--- a/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 202752, 0xffa1c502
0, 1, 1, 1, 202752, 0x51752f3c
0, 2, 2, 1, 202752, 0xe683991d
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b b/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
index 016abbce76..8758bf5c96 100644
--- a/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 405504, 0xe0f40e71
0, 1, 1, 1, 405504, 0x9bdb5900
0, 2, 2, 1, 405504, 0x527003ca
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a b/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
index 93a3aa4bde..7db8672bc5 100644
--- a/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 202752, 0xd5a1e49f
0, 1, 1, 1, 202752, 0x08352d61
0, 2, 2, 1, 202752, 0x43f78f47
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a b/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
index 4141eeeda8..6d26ee4ff7 100644
--- a/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 405504, 0x049ab58e
0, 1, 1, 1, 405504, 0x4f6226cb
0, 2, 2, 1, 405504, 0xaa5fcb44
diff --git a/tests/ref/fate/h264-conformance-frext-hpca_brcm_c b/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
index d608d8950a..2d0cd5ff1d 100644
--- a/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x995bb4bd
0, 1, 1, 1, 152064, 0xad287357
0, 2, 2, 1, 152064, 0x38fa4661
diff --git a/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
index 49249b3703..0d5794a24b 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf3c68dea
0, 1, 1, 1, 152064, 0xf52d483f
0, 2, 2, 1, 152064, 0x612f1792
diff --git a/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
index dbfec436bd..0febed6d6f 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x502ec077
0, 1, 1, 1, 152064, 0x84807243
0, 2, 2, 1, 152064, 0xd7474a6e
diff --git a/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
index 65a366e0cb..9958f1616f 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x3e39c08b
0, 1, 1, 1, 152064, 0xabc67990
0, 2, 2, 1, 152064, 0x19614e74
diff --git a/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
index 49249b3703..0d5794a24b 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf3c68dea
0, 1, 1, 1, 152064, 0xf52d483f
0, 2, 2, 1, 152064, 0x612f1792
diff --git a/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
index a81e91fef8..1b03e88a1f 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf8248ceb
0, 1, 1, 1, 152064, 0xb6204c81
0, 2, 2, 1, 152064, 0x22fb1737
diff --git a/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
index 00f04fdf61..33e0688491 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xac83f54f
0, 1, 1, 1, 152064, 0x4d673b43
0, 2, 2, 1, 152064, 0x9050731f
diff --git a/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c b/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
index 23ad267a2d..f3edba19ea 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2744afa1
0, 1, 1, 1, 152064, 0x17246583
0, 2, 2, 1, 152064, 0x501836ed
diff --git a/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
index 460f86ccac..b0412db847 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x712a2ad3
0, 1, 1, 1, 152064, 0x83420c9d
0, 2, 2, 1, 152064, 0xf3d77f46
diff --git a/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a b/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
index d608d8950a..2d0cd5ff1d 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x995bb4bd
0, 1, 1, 1, 152064, 0xad287357
0, 2, 2, 1, 152064, 0x38fa4661
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
index dbfec436bd..0febed6d6f 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x502ec077
0, 1, 1, 1, 152064, 0x84807243
0, 2, 2, 1, 152064, 0xd7474a6e
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
index 65a366e0cb..9958f1616f 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x3e39c08b
0, 1, 1, 1, 152064, 0xabc67990
0, 2, 2, 1, 152064, 0x19614e74
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
index 4179ace45f..f7223885df 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xa18cfb97
0, 1, 1, 1, 152064, 0x509b54d2
0, 2, 2, 1, 152064, 0x1ba0fb8e
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a b/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
index 23ad267a2d..f3edba19ea 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0x2744afa1
0, 1, 1, 1, 152064, 0x17246583
0, 2, 2, 1, 152064, 0x501836ed
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a
index 91e343623e..ccd932807a 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 2764800, 0xcc4df07d
0, 1, 1, 1, 2764800, 0x85f9e6d4
0, 2, 2, 1, 2764800, 0x23ffe90d
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a
index 1d6d4b590d..835c495a14 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 2764800, 0x4f710132
0, 1, 1, 1, 2764800, 0x57e5b713
0, 2, 2, 1, 2764800, 0xcca01477
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a
index a09e3973b7..f46dfaa798 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 2764800, 0xda69f69e
0, 1, 1, 1, 2764800, 0x29ed832f
0, 2, 2, 1, 2764800, 0xb3244cc4
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a
index adec6644da..c7dfa8e760 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 6220800, 0xca2a2a5e
0, 1, 1, 1, 6220800, 0x8009a65e
0, 2, 2, 1, 6220800, 0x63e72b3b
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a
index a4751979f5..52b3d242ba 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 6220800, 0x1df58ce9
0, 1, 1, 1, 6220800, 0x8f2859ce
0, 2, 2, 1, 6220800, 0x229cc7ff
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a
index 25d0eec539..d1eaf65e64 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 6220800, 0x408daf70
0, 1, 1, 1, 6220800, 0x59b254a3
0, 2, 2, 1, 6220800, 0x4cf4279c
diff --git a/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a
index 1090b49f24..7d55719cf6 100644
--- a/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 6220800, 0xf81873fe
0, 1, 1, 1, 6220800, 0x7b96fbdc
0, 2, 2, 1, 6220800, 0x75dbafc4
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
index 0957654b9c..3163089a54 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 3686400, 0x1f9b5bee
0, 1, 1, 1, 3686400, 0x657c3609
0, 2, 2, 1, 3686400, 0x75753934
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
index 79e69ebacc..faa75cae80 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 3686400, 0x8b3ff360
0, 1, 1, 1, 3686400, 0x422dead1
0, 2, 2, 1, 3686400, 0xbdd0e431
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
index fc4cc50a40..a9befbda4f 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 3686400, 0x97c36ae3
0, 1, 1, 1, 3686400, 0x6a0aa629
0, 2, 2, 1, 3686400, 0xc658d722
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
index 0aae9fedcb..6289caa3c8 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0xf50992f3
0, 1, 1, 1, 8294400, 0xd34cdf98
0, 2, 2, 1, 8294400, 0x76bced00
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
index c74483cbb2..b187532c47 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x96d051a1
0, 1, 1, 1, 8294400, 0xf3c2974e
0, 2, 2, 1, 8294400, 0xb18f3ed0
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
index 26d41d4cf7..817bc9c989 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x1b2f1079
0, 1, 1, 1, 8294400, 0x6646f91c
0, 2, 2, 1, 8294400, 0x17dc9f51
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
index 3f9bfed903..3219da0ca5 100644
--- a/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0xaa37ceea
0, 1, 1, 1, 8294400, 0xa7546d5c
0, 2, 2, 1, 8294400, 0xf2abaace
diff --git a/tests/ref/fate/h264-conformance-hcbp2_hhi_a b/tests/ref/fate/h264-conformance-hcbp2_hhi_a
index 977107e913..36d39c9cfe 100644
--- a/tests/ref/fate/h264-conformance-hcbp2_hhi_a
+++ b/tests/ref/fate/h264-conformance-hcbp2_hhi_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xf9deb95a
0, 1, 1, 1, 152064, 0xdce9c541
0, 2, 2, 1, 152064, 0xc45a8a77
diff --git a/tests/ref/fate/h264-conformance-hcmp1_hhi_a b/tests/ref/fate/h264-conformance-hcmp1_hhi_a
index be619dad71..578f98db14 100644
--- a/tests/ref/fate/h264-conformance-hcmp1_hhi_a
+++ b/tests/ref/fate/h264-conformance-hcmp1_hhi_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 152064, 0xda244f3f
0, 1, 1, 1, 152064, 0x35a1cb02
0, 2, 2, 1, 152064, 0xa729d9ca
diff --git a/tests/ref/fate/h264-conformance-ls_sva_d b/tests/ref/fate/h264-conformance-ls_sva_d
index 9d1d219049..d3826abd81 100644
--- a/tests/ref/fate/h264-conformance-ls_sva_d
+++ b/tests/ref/fate/h264-conformance-ls_sva_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x85d20fc6
0, 1, 1, 1, 38016, 0xc0432c21
0, 2, 2, 1, 38016, 0x1450168f
diff --git a/tests/ref/fate/h264-conformance-midr_mw_d b/tests/ref/fate/h264-conformance-midr_mw_d
index 51b7c0eed0..3afa65fa48 100644
--- a/tests/ref/fate/h264-conformance-midr_mw_d
+++ b/tests/ref/fate/h264-conformance-midr_mw_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x3ae838ee
0, 1, 1, 1, 38016, 0x9ed7e141
0, 2, 2, 1, 38016, 0x393097f9
diff --git a/tests/ref/fate/h264-conformance-mps_mw_a b/tests/ref/fate/h264-conformance-mps_mw_a
index 959a0ae681..ae38cfc31c 100644
--- a/tests/ref/fate/h264-conformance-mps_mw_a
+++ b/tests/ref/fate/h264-conformance-mps_mw_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x06150e88
0, 1, 1, 1, 38016, 0x32d90103
0, 2, 2, 1, 38016, 0x5b5f2fae
diff --git a/tests/ref/fate/h264-conformance-mr1_bt_a b/tests/ref/fate/h264-conformance-mr1_bt_a
index 11eb5903fe..273ee0859a 100644
--- a/tests/ref/fate/h264-conformance-mr1_bt_a
+++ b/tests/ref/fate/h264-conformance-mr1_bt_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc6658719
0, 1, 1, 1, 38016, 0x8a7c7423
0, 2, 2, 1, 38016, 0x97e99b66
diff --git a/tests/ref/fate/h264-conformance-mr1_mw_a b/tests/ref/fate/h264-conformance-mr1_mw_a
index da7631d930..7b154ba342 100644
--- a/tests/ref/fate/h264-conformance-mr1_mw_a
+++ b/tests/ref/fate/h264-conformance-mr1_mw_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc8981780
0, 1, 1, 1, 38016, 0xf089d880
0, 2, 2, 1, 38016, 0x5eee0731
diff --git a/tests/ref/fate/h264-conformance-mr2_mw_a b/tests/ref/fate/h264-conformance-mr2_mw_a
index fd4b5d9086..833cea9e44 100644
--- a/tests/ref/fate/h264-conformance-mr2_mw_a
+++ b/tests/ref/fate/h264-conformance-mr2_mw_a
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x06150e88
0, 1, 1, 1, 38016, 0x32d90103
0, 2, 2, 1, 38016, 0xb32d338f
diff --git a/tests/ref/fate/h264-conformance-mr2_tandberg_e b/tests/ref/fate/h264-conformance-mr2_tandberg_e
index 8fbac9f652..c0e1d83d09 100644
--- a/tests/ref/fate/h264-conformance-mr2_tandberg_e
+++ b/tests/ref/fate/h264-conformance-mr2_tandberg_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb96f1feb
0, 1, 1, 1, 38016, 0xca461abd
0, 2, 2, 1, 38016, 0x578a0c87
diff --git a/tests/ref/fate/h264-conformance-mr3_tandberg_b b/tests/ref/fate/h264-conformance-mr3_tandberg_b
index ee8014ef36..b0948448cd 100644
--- a/tests/ref/fate/h264-conformance-mr3_tandberg_b
+++ b/tests/ref/fate/h264-conformance-mr3_tandberg_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb96f1feb
0, 1, 1, 1, 38016, 0xca461abd
0, 2, 2, 1, 38016, 0x578a0c87
diff --git a/tests/ref/fate/h264-conformance-mr4_tandberg_c b/tests/ref/fate/h264-conformance-mr4_tandberg_c
index 0d5f646a20..87bcaa42c2 100644
--- a/tests/ref/fate/h264-conformance-mr4_tandberg_c
+++ b/tests/ref/fate/h264-conformance-mr4_tandberg_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb96f1feb
0, 1, 1, 1, 38016, 0x0ff111f0
0, 2, 2, 1, 38016, 0xbac70271
diff --git a/tests/ref/fate/h264-conformance-mr5_tandberg_c b/tests/ref/fate/h264-conformance-mr5_tandberg_c
index 0d5f646a20..87bcaa42c2 100644
--- a/tests/ref/fate/h264-conformance-mr5_tandberg_c
+++ b/tests/ref/fate/h264-conformance-mr5_tandberg_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb96f1feb
0, 1, 1, 1, 38016, 0x0ff111f0
0, 2, 2, 1, 38016, 0xbac70271
diff --git a/tests/ref/fate/h264-conformance-mr6_bt_b b/tests/ref/fate/h264-conformance-mr6_bt_b
index 3b02506562..34aa8bfd46 100644
--- a/tests/ref/fate/h264-conformance-mr6_bt_b
+++ b/tests/ref/fate/h264-conformance-mr6_bt_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0x954464be
0, 1, 1, 1, 36864, 0xace1d90b
0, 2, 2, 1, 36864, 0x8f149f03
diff --git a/tests/ref/fate/h264-conformance-mr7_bt_b b/tests/ref/fate/h264-conformance-mr7_bt_b
index 25b7054fa8..551767ce1d 100644
--- a/tests/ref/fate/h264-conformance-mr7_bt_b
+++ b/tests/ref/fate/h264-conformance-mr7_bt_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0x579e6274
0, 1, 1, 1, 36864, 0x8650c61c
0, 2, 2, 1, 36864, 0xbc359647
diff --git a/tests/ref/fate/h264-conformance-mr8_bt_b b/tests/ref/fate/h264-conformance-mr8_bt_b
index 220acf1e5f..7981c42245 100644
--- a/tests/ref/fate/h264-conformance-mr8_bt_b
+++ b/tests/ref/fate/h264-conformance-mr8_bt_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0x36df68f4
0, 1, 1, 1, 36864, 0x52d4c6d9
0, 2, 2, 1, 36864, 0xad16b0be
diff --git a/tests/ref/fate/h264-conformance-mr9_bt_b b/tests/ref/fate/h264-conformance-mr9_bt_b
index 3744802a6a..bbd90e67f9 100644
--- a/tests/ref/fate/h264-conformance-mr9_bt_b
+++ b/tests/ref/fate/h264-conformance-mr9_bt_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x128
+#sar 0: 0/1
0, 0, 0, 1, 36864, 0xb4c5642e
0, 1, 1, 1, 36864, 0x929fd05f
0, 2, 2, 1, 36864, 0x447c9b69
diff --git a/tests/ref/fate/h264-conformance-mv1_brcm_d b/tests/ref/fate/h264-conformance-mv1_brcm_d
index 47517ee3c6..a3ab27b08f 100644
--- a/tests/ref/fate/h264-conformance-mv1_brcm_d
+++ b/tests/ref/fate/h264-conformance-mv1_brcm_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0x230d7aa6
0, 1, 1, 1, 518400, 0x9fc976e0
0, 2, 2, 1, 518400, 0x51052db9
diff --git a/tests/ref/fate/h264-conformance-nl1_sony_d b/tests/ref/fate/h264-conformance-nl1_sony_d
index 98a56737bc..d6e0df92a6 100644
--- a/tests/ref/fate/h264-conformance-nl1_sony_d
+++ b/tests/ref/fate/h264-conformance-nl1_sony_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc805351d
0, 1, 1, 1, 38016, 0x3809fec3
0, 2, 2, 1, 38016, 0xf698ce3c
diff --git a/tests/ref/fate/h264-conformance-nl2_sony_h b/tests/ref/fate/h264-conformance-nl2_sony_h
index 73eb8581ea..1e7bfb3dff 100644
--- a/tests/ref/fate/h264-conformance-nl2_sony_h
+++ b/tests/ref/fate/h264-conformance-nl2_sony_h
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xc805351d
0, 1, 1, 1, 38016, 0x320510a8
0, 2, 2, 1, 38016, 0x3ef6e4c6
diff --git a/tests/ref/fate/h264-conformance-nl3_sva_e b/tests/ref/fate/h264-conformance-nl3_sva_e
index a4d6db670a..a09e083308 100644
--- a/tests/ref/fate/h264-conformance-nl3_sva_e
+++ b/tests/ref/fate/h264-conformance-nl3_sva_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x2fad15e2
0, 1, 1, 1, 38016, 0x7e391566
0, 2, 2, 1, 38016, 0x954001d4
diff --git a/tests/ref/fate/h264-conformance-nlmq1_jvc_c b/tests/ref/fate/h264-conformance-nlmq1_jvc_c
index 30301256f9..dbcdcdf388 100644
--- a/tests/ref/fate/h264-conformance-nlmq1_jvc_c
+++ b/tests/ref/fate/h264-conformance-nlmq1_jvc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xde1a2194
0, 1, 1, 1, 38016, 0x2957f3e5
0, 2, 2, 1, 38016, 0x9df4c6cf
diff --git a/tests/ref/fate/h264-conformance-nlmq2_jvc_c b/tests/ref/fate/h264-conformance-nlmq2_jvc_c
index 5258eb2646..8dc6285a87 100644
--- a/tests/ref/fate/h264-conformance-nlmq2_jvc_c
+++ b/tests/ref/fate/h264-conformance-nlmq2_jvc_c
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xde1a2194
0, 1, 1, 1, 38016, 0x8b6cf842
0, 2, 2, 1, 38016, 0x6dc7c88b
diff --git a/tests/ref/fate/h264-conformance-nrf_mw_e b/tests/ref/fate/h264-conformance-nrf_mw_e
index ee5f7193a0..b68a6a79f4 100644
--- a/tests/ref/fate/h264-conformance-nrf_mw_e
+++ b/tests/ref/fate/h264-conformance-nrf_mw_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x3ae838ee
0, 1, 1, 1, 38016, 0x9ed7e141
0, 2, 2, 1, 38016, 0x354e83ed
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_1_b b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
index 8512102bb3..cdabcceca6 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xc93c7c47
0, 1, 1, 1, 518400, 0xa3f2e502
0, 2, 2, 1, 518400, 0xb98920a4
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_2_b b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
index 5808141891..0574f8ff87 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xc93c7c47
0, 1, 1, 1, 518400, 0xf0c4b44a
0, 2, 2, 1, 518400, 0x3f5dc91c
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_3_b b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
index a572030f02..6a92245f2f 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xc93c7c47
0, 1, 1, 1, 518400, 0x7112ac25
0, 2, 2, 1, 518400, 0x28bc28d2
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2 b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
index d1a347ff26..8a7aa249f6 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xc93c7c47
0, 1, 1, 1, 518400, 0xfb452a9c
0, 2, 2, 1, 518400, 0x2f7a35bd
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_2r b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
index f2bf06f6ff..ded91a9bed 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 518400, 0xc93c7c47
0, 1, 1, 1, 518400, 0xfb452a9c
0, 2, 2, 1, 518400, 0x2f7a35bd
diff --git a/tests/ref/fate/h264-conformance-sl1_sva_b b/tests/ref/fate/h264-conformance-sl1_sva_b
index a2f16b4b6e..572d5a0f8e 100644
--- a/tests/ref/fate/h264-conformance-sl1_sva_b
+++ b/tests/ref/fate/h264-conformance-sl1_sva_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x666c110c
0, 1, 1, 1, 38016, 0xc87421f6
0, 2, 2, 1, 38016, 0x1b74033d
diff --git a/tests/ref/fate/h264-conformance-sva_ba1_b b/tests/ref/fate/h264-conformance-sva_ba1_b
index cc55ac9dbb..6b383486b9 100644
--- a/tests/ref/fate/h264-conformance-sva_ba1_b
+++ b/tests/ref/fate/h264-conformance-sva_ba1_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x359316a1
0, 1, 1, 1, 38016, 0xd5fafa54
0, 2, 2, 1, 38016, 0xea99e9be
diff --git a/tests/ref/fate/h264-conformance-sva_ba2_d b/tests/ref/fate/h264-conformance-sva_ba2_d
index b94086f9e4..7c5ec98bca 100644
--- a/tests/ref/fate/h264-conformance-sva_ba2_d
+++ b/tests/ref/fate/h264-conformance-sva_ba2_d
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x359316a1
0, 1, 1, 1, 38016, 0xd7bb1285
0, 2, 2, 1, 38016, 0x3c36059f
diff --git a/tests/ref/fate/h264-conformance-sva_base_b b/tests/ref/fate/h264-conformance-sva_base_b
index 30663ff4e7..3ed51fd685 100644
--- a/tests/ref/fate/h264-conformance-sva_base_b
+++ b/tests/ref/fate/h264-conformance-sva_base_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x1c131302
0, 1, 1, 1, 38016, 0xbbca0c4f
0, 2, 2, 1, 38016, 0x81f5fd7b
diff --git a/tests/ref/fate/h264-conformance-sva_cl1_e b/tests/ref/fate/h264-conformance-sva_cl1_e
index 27cba6d9be..2f32114eb5 100644
--- a/tests/ref/fate/h264-conformance-sva_cl1_e
+++ b/tests/ref/fate/h264-conformance-sva_cl1_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x6811161f
0, 1, 1, 1, 38016, 0x243a0d4e
0, 2, 2, 1, 38016, 0x0bc700de
diff --git a/tests/ref/fate/h264-conformance-sva_fm1_e b/tests/ref/fate/h264-conformance-sva_fm1_e
index 0e5f3e0082..52ed49baf8 100644
--- a/tests/ref/fate/h264-conformance-sva_fm1_e
+++ b/tests/ref/fate/h264-conformance-sva_fm1_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x1c131302
0, 1, 1, 1, 38016, 0x89dd0c15
0, 2, 2, 1, 38016, 0xaf7700bd
diff --git a/tests/ref/fate/h264-conformance-sva_nl1_b b/tests/ref/fate/h264-conformance-sva_nl1_b
index f2033d8693..c59aa2c885 100644
--- a/tests/ref/fate/h264-conformance-sva_nl1_b
+++ b/tests/ref/fate/h264-conformance-sva_nl1_b
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb9ac19bd
0, 1, 1, 1, 38016, 0x3898fc35
0, 2, 2, 1, 38016, 0xf6f4ed19
diff --git a/tests/ref/fate/h264-conformance-sva_nl2_e b/tests/ref/fate/h264-conformance-sva_nl2_e
index 1770eff2db..5f8006b937 100644
--- a/tests/ref/fate/h264-conformance-sva_nl2_e
+++ b/tests/ref/fate/h264-conformance-sva_nl2_e
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0xb9ac19bd
0, 1, 1, 1, 38016, 0x53c91566
0, 2, 2, 1, 38016, 0xb5bd089f
diff --git a/tests/ref/fate/h264-direct-bff b/tests/ref/fate/h264-direct-bff
index 4d233b5fc8..802733ebad 100644
--- a/tests/ref/fate/h264-direct-bff
+++ b/tests/ref/fate/h264-direct-bff
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x484
+#sar 0: 1/1
0, 0, 0, 1, 522720, 0x1ccad503
0, 1, 1, 1, 522720, 0xd266d6e8
0, 2, 2, 1, 522720, 0x535473b3
diff --git a/tests/ref/fate/h264-interlace-crop b/tests/ref/fate/h264-interlace-crop
index 81b979ca39..8dc73084c3 100644
--- a/tests/ref/fate/h264-interlace-crop
+++ b/tests/ref/fate/h264-interlace-crop
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 1/1
0, 0, 0, 1, 345600, 0xa9cb7e5a
0, 1, 1, 1, 345600, 0x73e47555
0, 2, 2, 1, 345600, 0x87aac593
diff --git a/tests/ref/fate/h264-lossless b/tests/ref/fate/h264-lossless
index 44cb13ba24..9c86db8ccd 100644
--- a/tests/ref/fate/h264-lossless
+++ b/tests/ref/fate/h264-lossless
@@ -1,4 +1,8 @@
#tb 0: 83333/5000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0x7731dd2f
0, 2, 2, 1, 460800, 0x944b8c64
0, 3, 3, 1, 460800, 0xbe833041
diff --git a/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8 b/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8
index 85188558ea..2c28386f93 100644
--- a/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8
+++ b/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 608256, 0x65574c43
0, 1, 1, 1, 608256, 0x5e5a1aa4
0, 2, 2, 1, 608256, 0xa9a5cbc5
diff --git a/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10 b/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10
index 7e7631ae1e..e727d07f79 100644
--- a/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10
+++ b/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 608256, 0x27a069a3
0, 1, 1, 1, 608256, 0x22a5ff96
0, 2, 2, 1, 608256, 0x29ad753f
diff --git a/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8 b/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8
index 662db29258..9b3d114c3c 100644
--- a/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8
+++ b/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 608256, 0xee06377f
0, 1, 1, 1, 608256, 0x9c22c5ee
0, 2, 2, 1, 608256, 0x322abee2
diff --git a/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9 b/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9
index b5a95052ab..15115b627b 100644
--- a/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9
+++ b/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x288
+#sar 0: 0/1
0, 0, 0, 1, 608256, 0x3aef31f3
0, 1, 1, 1, 608256, 0x05afe4e8
0, 2, 2, 1, 608256, 0x9d7dc9b1
diff --git a/tests/ref/fate/hap-chunk b/tests/ref/fate/hap-chunk
index 1e7b976fbd..8dd5039ede 100644
--- a/tests/ref/fate/hap-chunk
+++ b/tests/ref/fate/hap-chunk
@@ -1,2 +1,6 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x096d409e
diff --git a/tests/ref/fate/hap1 b/tests/ref/fate/hap1
index d3bdeae9fe..fcdf9851fe 100644
--- a/tests/ref/fate/hap1
+++ b/tests/ref/fate/hap1
@@ -1,2 +1,6 @@
#tb 0: 62/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1228800, 0x0fa946bc
diff --git a/tests/ref/fate/hap5 b/tests/ref/fate/hap5
index 458981e4d8..f46fe7845b 100644
--- a/tests/ref/fate/hap5
+++ b/tests/ref/fate/hap5
@@ -1,2 +1,6 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1228800, 0xb71ecf93
diff --git a/tests/ref/fate/hapy b/tests/ref/fate/hapy
index e7d7608395..61feb2e36d 100644
--- a/tests/ref/fate/hapy
+++ b/tests/ref/fate/hapy
@@ -1,2 +1,6 @@
#tb 0: 62/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1228800, 0x5993522d
diff --git a/tests/ref/fate/hevc-conformance-ADJUST_IPRED_ANGLE_A_RExt_Mitsubishi_1 b/tests/ref/fate/hevc-conformance-ADJUST_IPRED_ANGLE_A_RExt_Mitsubishi_1
index f73569f466..953fcf809f 100644
--- a/tests/ref/fate/hevc-conformance-ADJUST_IPRED_ANGLE_A_RExt_Mitsubishi_1
+++ b/tests/ref/fate/hevc-conformance-ADJUST_IPRED_ANGLE_A_RExt_Mitsubishi_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0xa061c78c
0, 1, 1, 1, 8294400, 0x60250c76
0, 2, 2, 1, 8294400, 0x48e3fbdb
diff --git a/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4 b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4
index 84487a515a..e5938e2d8b 100644
--- a/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 6144000, 0xf7da9a00
0, 1, 1, 1, 6144000, 0xf5cfc76f
0, 2, 2, 1, 6144000, 0x20663e82
diff --git a/tests/ref/fate/hevc-conformance-AMP_A_Samsung_6 b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_6
index 7693050e95..c5f59bed49 100644
--- a/tests/ref/fate/hevc-conformance-AMP_A_Samsung_6
+++ b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 6144000, 0x6f9dd380
0, 1, 1, 1, 6144000, 0x3ad765f8
0, 2, 2, 1, 6144000, 0xe301292d
diff --git a/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4 b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4
index 034f7b890c..10db6c3cad 100644
--- a/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 6144000, 0xcd32ef33
0, 1, 1, 1, 6144000, 0x58ce681d
0, 2, 2, 1, 6144000, 0x77a732b6
diff --git a/tests/ref/fate/hevc-conformance-AMP_B_Samsung_6 b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_6
index fd99c827ad..518d937b32 100644
--- a/tests/ref/fate/hevc-conformance-AMP_B_Samsung_6
+++ b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 6144000, 0x4217e40e
0, 1, 1, 1, 6144000, 0xafa3a676
0, 2, 2, 1, 6144000, 0xb8285522
diff --git a/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon b/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon
index 6e17b83d96..8d4e07963a 100644
--- a/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon
+++ b/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x1559c293
0, 1, 1, 1, 3110400, 0xd0802706
0, 2, 2, 1, 3110400, 0xb48cf229
diff --git a/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon b/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon
index c1b7f2ee9b..075d024ea8 100644
--- a/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon
+++ b/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0xf9342188
0, 1, 1, 1, 3110400, 0x46638dc4
0, 2, 2, 1, 3110400, 0x96da436e
diff --git a/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3 b/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3
index 71ce9c74cc..4a8849f5a9 100644
--- a/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3
+++ b/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0xa5d2b8b0
0, 1, 1, 1, 3110400, 0x13035cfa
0, 2, 2, 1, 3110400, 0x96b16f86
diff --git a/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4 b/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4
index 59115fb020..f44c1747f8 100644
--- a/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4
+++ b/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0xb769fa4c
diff --git a/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4 b/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4
index 1f998c4f0f..3fd21e22df 100644
--- a/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4
+++ b/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcfffa013
0, 1, 1, 1, 149760, 0x5166146a
0, 2, 2, 1, 149760, 0xc3cc318e
diff --git a/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4 b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4
index 16d3446953..649be46584 100644
--- a/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x8087662a
0, 1, 1, 1, 599040, 0x5278d8db
0, 2, 2, 1, 599040, 0x73c74090
diff --git a/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_6 b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_6
index 5ed71e2b8c..36d5577529 100644
--- a/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_6
+++ b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xd70f52b4
0, 1, 1, 1, 599040, 0xaf3d1311
0, 2, 2, 1, 599040, 0xc1b05eef
diff --git a/tests/ref/fate/hevc-conformance-BUMPING_A_ericsson_1 b/tests/ref/fate/hevc-conformance-BUMPING_A_ericsson_1
index 26387299bd..fe890040e6 100644
--- a/tests/ref/fate/hevc-conformance-BUMPING_A_ericsson_1
+++ b/tests/ref/fate/hevc-conformance-BUMPING_A_ericsson_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8ce7200b
0, 1, 1, 1, 149760, 0x73610669
0, 2, 2, 1, 149760, 0xc01620f4
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4 b/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4
index 53b621b70f..2ad98af6ce 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4
+++ b/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x001f0c48
0, 1, 1, 1, 599040, 0x83120d87
0, 2, 2, 1, 599040, 0x10c267aa
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4 b/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4
index 9aeb3b15eb..2ac978272c 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4
+++ b/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x001f0c48
0, 1, 1, 1, 599040, 0xf8160d82
0, 2, 2, 1, 599040, 0x5f2060e2
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3
index c891c44a82..11c98cb719 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x2b58dee2
0, 1, 1, 1, 599040, 0x2b58dee2
0, 2, 2, 1, 599040, 0xcd9295f4
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3
index 0294a7eefc..ad303fa06f 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x2b58dee2
0, 1, 1, 1, 599040, 0x2b58dee2
0, 2, 2, 1, 599040, 0xb055b638
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3
index 430426bd04..6dfd2212db 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x1cf21d79
0, 1, 1, 1, 599040, 0x1cf21d79
0, 2, 2, 1, 599040, 0xb54ee9e0
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3
index aeba53ba65..cbe498b71f 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x1cf21d79
0, 1, 1, 1, 599040, 0x1cf21d79
0, 2, 2, 1, 599040, 0xc182eaa8
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3
index e0501beab6..e7cc4bb625 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xd9b73cbe
0, 1, 1, 1, 599040, 0xd9b73cbe
0, 2, 2, 1, 599040, 0xe4e5dd7c
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3
index 01ab258d58..aadc24a612 100644
--- a/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3
+++ b/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xd9b73cbe
0, 1, 1, 1, 599040, 0xd9b73cbe
0, 2, 2, 1, 599040, 0x93a3fabf
diff --git a/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3 b/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3
index afa485470a..3adef2f366 100644
--- a/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3
+++ b/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x6e1f16d0
0, 1, 1, 1, 149760, 0x5be5bde9
diff --git a/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2 b/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2
index 3346e20a57..8e6c681cfe 100644
--- a/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2
+++ b/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcd1019b2
0, 1, 1, 1, 149760, 0xeb39efeb
diff --git a/tests/ref/fate/hevc-conformance-CONFWIN_A_Sony_1 b/tests/ref/fate/hevc-conformance-CONFWIN_A_Sony_1
index 3cd7a265e5..1d4af3d58c 100644
--- a/tests/ref/fate/hevc-conformance-CONFWIN_A_Sony_1
+++ b/tests/ref/fate/hevc-conformance-CONFWIN_A_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 412x236
+#sar 0: 0/1
0, 0, 0, 1, 145848, 0xad4f07d0
0, 1, 1, 1, 145848, 0x5825120c
0, 2, 2, 1, 145848, 0x3eeb0da2
diff --git a/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_3 b/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_3
index 50be4f1845..f33b1623c8 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_3
+++ b/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 76032, 0x4313935b
0, 1, 1, 1, 76032, 0x4c8071b5
0, 2, 2, 1, 76032, 0x5e627edc
diff --git a/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3
index 589cbf39bf..4571119a91 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3
+++ b/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x154e6dd9
0, 1, 1, 1, 599040, 0xcce25693
0, 2, 2, 1, 599040, 0x3dd84e88
diff --git a/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3
index 077b38e4fb..eebb5a3d01 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3
+++ b/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xda0cb5d4
0, 1, 1, 1, 599040, 0x352bc397
0, 2, 2, 1, 599040, 0x72bc28fe
diff --git a/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3
index 823988dfd7..c452c19f11 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3
+++ b/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x57369bf4
0, 1, 1, 1, 599040, 0x319aab9c
0, 2, 2, 1, 599040, 0xbc1b7698
diff --git a/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2
index 2bdc548bd0..4a15b950a6 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2
+++ b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0x6ef5c76e
0, 1, 1, 1, 1382400, 0x1e1926b1
0, 2, 2, 1, 1382400, 0x69888786
diff --git a/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2
index 4c8b07d726..8bde7a7ee7 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2
+++ b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0xecfdf606
0, 1, 1, 1, 1382400, 0x0b0382e1
0, 2, 2, 1, 1382400, 0xbef3afd6
diff --git a/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2
index 3ff62e5a45..8794dbbbf4 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2
+++ b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0xea27f7bd
0, 1, 1, 1, 1382400, 0x423e555b
0, 2, 2, 1, 1382400, 0x87898ae0
diff --git a/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2
index 4c8b07d726..8bde7a7ee7 100644
--- a/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2
+++ b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0xecfdf606
0, 1, 1, 1, 1382400, 0x0b0382e1
0, 2, 2, 1, 1382400, 0xbef3afd6
diff --git a/tests/ref/fate/hevc-conformance-DELTAQP_A_BRCM_4 b/tests/ref/fate/hevc-conformance-DELTAQP_A_BRCM_4
index d2ab0f57fa..2abd58b64b 100644
--- a/tests/ref/fate/hevc-conformance-DELTAQP_A_BRCM_4
+++ b/tests/ref/fate/hevc-conformance-DELTAQP_A_BRCM_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1088
+#sar 0: 0/1
0, 0, 0, 1, 3133440, 0xfbd10331
0, 1, 1, 1, 3133440, 0x7764ad70
0, 2, 2, 1, 3133440, 0xaeaf44c1
diff --git a/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3 b/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3
index 3ba3bb5a3e..b88c9f8d2a 100644
--- a/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3
+++ b/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x7ea9597c
0, 1, 1, 1, 599040, 0x3e7365e4
0, 2, 2, 1, 599040, 0x4a9149c9
diff --git a/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3 b/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3
index d616bac756..56d4f05bdd 100644
--- a/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3
+++ b/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xcb2969c5
0, 1, 1, 1, 599040, 0xd9825d1f
0, 2, 2, 1, 599040, 0x5ff4245a
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5
index 6cd113bf1a..999a76a704 100644
--- a/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5
+++ b/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0xdc18cd12
0, 1, 1, 1, 3110400, 0x42f7020d
0, 2, 2, 1, 3110400, 0x6ac4421a
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5
index 7626d76adf..84a0c79a7d 100644
--- a/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5
+++ b/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x96995c57
0, 1, 1, 1, 3110400, 0x2924a10f
0, 2, 2, 1, 3110400, 0x892e146c
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5
index c4275cb714..4b0d10866b 100644
--- a/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5
+++ b/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x62a2ceab
0, 1, 1, 1, 3110400, 0x5e4d6adc
0, 2, 2, 1, 3110400, 0x4ad0955d
diff --git a/tests/ref/fate/hevc-conformance-ENTP_A_Qualcomm_1 b/tests/ref/fate/hevc-conformance-ENTP_A_Qualcomm_1
index 4454bfadff..26848c51c0 100644
--- a/tests/ref/fate/hevc-conformance-ENTP_A_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-ENTP_A_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x26663e50
0, 1, 1, 1, 3110400, 0x64ae36c1
0, 2, 2, 1, 3110400, 0x5c72ac0b
diff --git a/tests/ref/fate/hevc-conformance-ENTP_B_Qualcomm_1 b/tests/ref/fate/hevc-conformance-ENTP_B_Qualcomm_1
index 547b590119..70f0a6df41 100644
--- a/tests/ref/fate/hevc-conformance-ENTP_B_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-ENTP_B_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x7d014690
0, 1, 1, 1, 3110400, 0xe02cd173
0, 2, 2, 1, 3110400, 0x2f9794c5
diff --git a/tests/ref/fate/hevc-conformance-ENTP_C_Qualcomm_1 b/tests/ref/fate/hevc-conformance-ENTP_C_Qualcomm_1
index 2c21f35d42..fd2c47fc55 100644
--- a/tests/ref/fate/hevc-conformance-ENTP_C_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-ENTP_C_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x4ea3fa57
0, 1, 1, 1, 3110400, 0xbe33724f
0, 2, 2, 1, 3110400, 0x9011755e
diff --git a/tests/ref/fate/hevc-conformance-EXT_A_ericsson_4 b/tests/ref/fate/hevc-conformance-EXT_A_ericsson_4
index bf4616a919..4e186d67e4 100644
--- a/tests/ref/fate/hevc-conformance-EXT_A_ericsson_4
+++ b/tests/ref/fate/hevc-conformance-EXT_A_ericsson_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8ce7200b
0, 1, 1, 1, 149760, 0xf97412f6
0, 2, 2, 1, 149760, 0x0ea132c4
diff --git a/tests/ref/fate/hevc-conformance-FILLER_A_Sony_1 b/tests/ref/fate/hevc-conformance-FILLER_A_Sony_1
index 809b4cd4ba..08c3375458 100644
--- a/tests/ref/fate/hevc-conformance-FILLER_A_Sony_1
+++ b/tests/ref/fate/hevc-conformance-FILLER_A_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x83261e41
0, 1, 1, 1, 149760, 0xa8c02e8e
0, 2, 2, 1, 149760, 0xb89d1fa0
diff --git a/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_2 b/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_2
index d887df2150..81f25a53db 100644
--- a/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_2
+++ b/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_2
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x49bcac59
0, 1, 1, 1, 149760, 0x30ffadcd
0, 2, 2, 1, 149760, 0x85ccc14a
diff --git a/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_3 b/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_3
index 7446ae8ad4..534874bd63 100644
--- a/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_3
+++ b/tests/ref/fate/hevc-conformance-HRD_A_Fujitsu_3
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xa329afaa
0, 1, 1, 1, 149760, 0xb326c405
0, 2, 2, 1, 149760, 0x7834b936
diff --git a/tests/ref/fate/hevc-conformance-INITQP_A_Sony_1 b/tests/ref/fate/hevc-conformance-INITQP_A_Sony_1
index e99e3897be..8cc652f476 100644
--- a/tests/ref/fate/hevc-conformance-INITQP_A_Sony_1
+++ b/tests/ref/fate/hevc-conformance-INITQP_A_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x59891e4e
0, 1, 1, 1, 149760, 0x6c152de8
0, 2, 2, 1, 149760, 0x6f2c0f37
diff --git a/tests/ref/fate/hevc-conformance-INITQP_B_Sony_1 b/tests/ref/fate/hevc-conformance-INITQP_B_Sony_1
index e00c29f1cc..ca98245748 100644
--- a/tests/ref/fate/hevc-conformance-INITQP_B_Sony_1
+++ b/tests/ref/fate/hevc-conformance-INITQP_B_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0x5514958a
0, 1, 1, 1, 299520, 0x06725ede
0, 2, 2, 1, 299520, 0xa71d1493
diff --git a/tests/ref/fate/hevc-conformance-IPCM_A_RExt_NEC b/tests/ref/fate/hevc-conformance-IPCM_A_RExt_NEC
index d05de74fa2..a0ed530c2c 100644
--- a/tests/ref/fate/hevc-conformance-IPCM_A_RExt_NEC
+++ b/tests/ref/fate/hevc-conformance-IPCM_A_RExt_NEC
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 399360, 0xbac29a51
diff --git a/tests/ref/fate/hevc-conformance-IPCM_B_RExt_NEC b/tests/ref/fate/hevc-conformance-IPCM_B_RExt_NEC
index a01c3b5d65..94c12476f0 100644
--- a/tests/ref/fate/hevc-conformance-IPCM_B_RExt_NEC
+++ b/tests/ref/fate/hevc-conformance-IPCM_B_RExt_NEC
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x1f808406
diff --git a/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2 b/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2
index 33878fd142..a66652424d 100644
--- a/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2
+++ b/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xac658d10
0, 1, 1, 1, 599040, 0xe3f65389
0, 2, 2, 1, 599040, 0xfbd644b0
diff --git a/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3 b/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3
index 4de7c3c7b1..f3e8d6bc71 100644
--- a/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3
+++ b/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x11ef5ddd
diff --git a/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_3 b/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_3
index 72a12e8ebc..9426a72a0a 100644
--- a/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_3
+++ b/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x6b61371d
0, 1, 1, 1, 599040, 0xd38a2e50
0, 2, 2, 1, 599040, 0xe8eb34bd
diff --git a/tests/ref/fate/hevc-conformance-LS_A_Orange_2 b/tests/ref/fate/hevc-conformance-LS_A_Orange_2
index 4dd4ad49ae..f49ae01a94 100644
--- a/tests/ref/fate/hevc-conformance-LS_A_Orange_2
+++ b/tests/ref/fate/hevc-conformance-LS_A_Orange_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x94a51701
0, 1, 1, 1, 149760, 0x67c71885
0, 2, 2, 1, 149760, 0x218f1751
diff --git a/tests/ref/fate/hevc-conformance-LS_B_ORANGE_4 b/tests/ref/fate/hevc-conformance-LS_B_ORANGE_4
index 34dc379c56..e8d815b5de 100644
--- a/tests/ref/fate/hevc-conformance-LS_B_ORANGE_4
+++ b/tests/ref/fate/hevc-conformance-LS_B_ORANGE_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x25267761
0, 1, 1, 1, 599040, 0x4b4b6846
0, 2, 2, 1, 599040, 0x78e251e8
diff --git a/tests/ref/fate/hevc-conformance-LTRPSPS_A_Qualcomm_1 b/tests/ref/fate/hevc-conformance-LTRPSPS_A_Qualcomm_1
index ddf25c9ddf..3479d627fd 100644
--- a/tests/ref/fate/hevc-conformance-LTRPSPS_A_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-LTRPSPS_A_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcfffa013
0, 1, 1, 1, 149760, 0x8ae80654
0, 2, 2, 1, 149760, 0xa79915b8
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4
index 9110cf6e6f..433e215732 100644
--- a/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x9cad90f9
0, 1, 1, 1, 149760, 0x7deeab1c
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4
index 5cad961c19..c18c13a1c7 100644
--- a/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x211e8487
0, 1, 1, 1, 149760, 0xa53b13d8
0, 2, 2, 1, 149760, 0xb63cc103
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4
index 2eb38437f0..db0e3f738a 100644
--- a/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xa8d7adfa
0, 1, 1, 1, 149760, 0x76d1ddfe
0, 2, 2, 1, 149760, 0x56599cae
diff --git a/tests/ref/fate/hevc-conformance-MERGE_A_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_A_TI_3
index 0ab6acc2e5..447fb6b772 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_A_TI_3
+++ b/tests/ref/fate/hevc-conformance-MERGE_A_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x16eb25a8
0, 2, 2, 1, 149760, 0xcfff29c8
diff --git a/tests/ref/fate/hevc-conformance-MERGE_B_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_B_TI_3
index 2f9395fbf5..dcab89ea8e 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_B_TI_3
+++ b/tests/ref/fate/hevc-conformance-MERGE_B_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0xb5932505
0, 2, 2, 1, 149760, 0xa5b20e66
diff --git a/tests/ref/fate/hevc-conformance-MERGE_C_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_C_TI_3
index bcc5a1a3e2..703480c898 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_C_TI_3
+++ b/tests/ref/fate/hevc-conformance-MERGE_C_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x88cb1216
0, 2, 2, 1, 149760, 0x6d1024da
diff --git a/tests/ref/fate/hevc-conformance-MERGE_D_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_D_TI_3
index 7b4df26d5d..c74094b109 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_D_TI_3
+++ b/tests/ref/fate/hevc-conformance-MERGE_D_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x3220183c
0, 2, 2, 1, 149760, 0x43a21acc
diff --git a/tests/ref/fate/hevc-conformance-MERGE_E_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_E_TI_3
index 8491172ca8..b300f8739d 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_E_TI_3
+++ b/tests/ref/fate/hevc-conformance-MERGE_E_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x187419b5
0, 2, 2, 1, 149760, 0x61100980
diff --git a/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4 b/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4
index 34a09795db..005ba59ce2 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4
+++ b/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcfffa013
0, 1, 1, 1, 149760, 0xec800e71
0, 2, 2, 1, 149760, 0x9fb014c7
diff --git a/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4 b/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4
index 2e88350fe0..6f66e4b3ee 100644
--- a/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4
+++ b/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x65433cfe
0, 1, 1, 1, 599040, 0x9309e2c5
diff --git a/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3 b/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3
index 675622169f..f1cf7e394f 100644
--- a/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3
+++ b/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xa5b11720
0, 1, 1, 1, 149760, 0x42e52c6e
0, 2, 2, 1, 149760, 0x27b15a30
diff --git a/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3 b/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3
index 2019db2621..789cd7c1bd 100644
--- a/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3
+++ b/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x9b27dc7d
0, 1, 1, 1, 599040, 0x796cdd26
0, 2, 2, 1, 599040, 0xd3c9dca9
diff --git a/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3 b/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3
index 0db06c5789..4c676ea18a 100644
--- a/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3
+++ b/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x1d68213a
0, 1, 1, 1, 149760, 0x9cc81d30
0, 2, 2, 1, 149760, 0xa3cf6438
diff --git a/tests/ref/fate/hevc-conformance-Main_422_10_A_RExt_Sony_1 b/tests/ref/fate/hevc-conformance-Main_422_10_A_RExt_Sony_1
index 6c43693876..43cfb611a1 100644
--- a/tests/ref/fate/hevc-conformance-Main_422_10_A_RExt_Sony_1
+++ b/tests/ref/fate/hevc-conformance-Main_422_10_A_RExt_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0xa189c341
0, 1, 1, 1, 8294400, 0xefe07f3f
0, 2, 2, 1, 8294400, 0xf11cd41f
diff --git a/tests/ref/fate/hevc-conformance-Main_422_10_B_RExt_Sony_1 b/tests/ref/fate/hevc-conformance-Main_422_10_B_RExt_Sony_1
index 2267a095e6..dd95b52329 100644
--- a/tests/ref/fate/hevc-conformance-Main_422_10_B_RExt_Sony_1
+++ b/tests/ref/fate/hevc-conformance-Main_422_10_B_RExt_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 16384000, 0xbf300829
0, 1, 1, 1, 16384000, 0x7beeab61
0, 2, 2, 1, 16384000, 0x5e55cd13
diff --git a/tests/ref/fate/hevc-conformance-NUT_A_ericsson_5 b/tests/ref/fate/hevc-conformance-NUT_A_ericsson_5
index fe65880bc5..7ac223ef7b 100644
--- a/tests/ref/fate/hevc-conformance-NUT_A_ericsson_5
+++ b/tests/ref/fate/hevc-conformance-NUT_A_ericsson_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8ce7200b
0, 1, 1, 1, 149760, 0x73610669
0, 2, 2, 1, 149760, 0x42942047
diff --git a/tests/ref/fate/hevc-conformance-NoOutPrior_A_Qualcomm_1 b/tests/ref/fate/hevc-conformance-NoOutPrior_A_Qualcomm_1
index 48ca5adb48..5de9da9a39 100644
--- a/tests/ref/fate/hevc-conformance-NoOutPrior_A_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-NoOutPrior_A_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x91d452d5
0, 1, 1, 1, 599040, 0x1b482509
0, 2, 2, 1, 599040, 0xbc51425c
diff --git a/tests/ref/fate/hevc-conformance-NoOutPrior_B_Qualcomm_1 b/tests/ref/fate/hevc-conformance-NoOutPrior_B_Qualcomm_1
index 872c5c22c5..f107e937d7 100644
--- a/tests/ref/fate/hevc-conformance-NoOutPrior_B_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-NoOutPrior_B_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x91d452d5
0, 1, 1, 1, 599040, 0x1b482509
0, 2, 2, 1, 599040, 0xbc51425c
diff --git a/tests/ref/fate/hevc-conformance-OPFLAG_A_Qualcomm_1 b/tests/ref/fate/hevc-conformance-OPFLAG_A_Qualcomm_1
index 74849ebd5e..ed2e9ec8eb 100644
--- a/tests/ref/fate/hevc-conformance-OPFLAG_A_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-OPFLAG_A_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcfffa013
0, 1, 1, 1, 149760, 0x8ae80654
0, 2, 2, 1, 149760, 0xa79915b8
diff --git a/tests/ref/fate/hevc-conformance-OPFLAG_B_Qualcomm_1 b/tests/ref/fate/hevc-conformance-OPFLAG_B_Qualcomm_1
index 55e4be0d73..cc4a22f92e 100644
--- a/tests/ref/fate/hevc-conformance-OPFLAG_B_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-OPFLAG_B_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x4246702a
0, 1, 1, 1, 599040, 0x25e02747
0, 2, 2, 1, 599040, 0x0894b9de
diff --git a/tests/ref/fate/hevc-conformance-OPFLAG_C_Qualcomm_1 b/tests/ref/fate/hevc-conformance-OPFLAG_C_Qualcomm_1
index e45005f39a..233b042671 100644
--- a/tests/ref/fate/hevc-conformance-OPFLAG_C_Qualcomm_1
+++ b/tests/ref/fate/hevc-conformance-OPFLAG_C_Qualcomm_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x91d452d5
0, 1, 1, 1, 599040, 0x1b482509
0, 2, 2, 1, 599040, 0xbc51425c
diff --git a/tests/ref/fate/hevc-conformance-PERSIST_RPARAM_A_RExt_Sony_1 b/tests/ref/fate/hevc-conformance-PERSIST_RPARAM_A_RExt_Sony_1
index 4e49caac6d..54f4db8c5f 100644
--- a/tests/ref/fate/hevc-conformance-PERSIST_RPARAM_A_RExt_Sony_1
+++ b/tests/ref/fate/hevc-conformance-PERSIST_RPARAM_A_RExt_Sony_1
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 400x384
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x702f0d67
0, 1, 1, 1, 921600, 0x99822b52
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1
index 4c09ca564b..5bb3f539ec 100644
--- a/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1056x8440
+#sar 0: 0/1
0, 0, 0, 1, 13368960, 0x830b3a1d
0, 1, 1, 1, 13368960, 0x120ca009
0, 2, 2, 1, 13368960, 0xc94e0d86
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1
index a3ab7c84a0..c1c6170a7b 100644
--- a/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 8440x1056
+#sar 0: 0/1
0, 0, 0, 1, 13368960, 0xe1e32c3d
0, 1, 1, 1, 13368960, 0x75a503d3
0, 2, 2, 1, 13368960, 0x71f33a0a
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1
index 10520d17b6..f3e2e02ca4 100644
--- a/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 528x4216
+#sar 0: 0/1
0, 0, 0, 1, 3339072, 0x28be238d
0, 1, 1, 1, 3339072, 0x43b62aae
0, 2, 2, 1, 3339072, 0x36259da6
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1
index 6f1c4fb0b2..a73a969021 100644
--- a/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 4216x528
+#sar 0: 0/1
0, 0, 0, 1, 3339072, 0xcb16f53e
0, 1, 1, 1, 3339072, 0x6f1da8ec
0, 2, 2, 1, 3339072, 0x978dae98
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3
index 8491172ca8..b300f8739d 100644
--- a/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3
+++ b/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x187419b5
0, 2, 2, 1, 149760, 0x61100980
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3
index 1f15a022ef..046c90aa6e 100644
--- a/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3
+++ b/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0xcebf1b76
0, 2, 2, 1, 149760, 0x33930fb0
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3
index bf474cc1c6..1269e53f0e 100644
--- a/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3
+++ b/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x2c271a9b
0, 2, 2, 1, 149760, 0x53e419f3
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3
index 2af0e1f864..474626c4ff 100644
--- a/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3
+++ b/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0xf11a32ce
0, 2, 2, 1, 149760, 0x0802237c
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3
index df97237fde..e8596992d3 100644
--- a/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3
+++ b/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0xea7b30bf
0, 2, 2, 1, 149760, 0x273d092a
diff --git a/tests/ref/fate/hevc-conformance-POC_A_Bossen_3 b/tests/ref/fate/hevc-conformance-POC_A_Bossen_3
index 885d0e4da9..940eede52d 100644
--- a/tests/ref/fate/hevc-conformance-POC_A_Bossen_3
+++ b/tests/ref/fate/hevc-conformance-POC_A_Bossen_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xda17acd4
0, 1, 1, 1, 149760, 0x1691b47f
0, 2, 2, 1, 149760, 0xeebeac0c
diff --git a/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7 b/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7
index ef57f74cde..de683100ad 100644
--- a/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7
+++ b/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x87159328
0, 1, 1, 1, 599040, 0x825672ff
0, 2, 2, 1, 599040, 0x2f4224ff
diff --git a/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3
index 8f7e5e6911..59b82b72bb 100644
--- a/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3
+++ b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x4121f7a2
diff --git a/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3 b/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3
index 8f7e5e6911..59b82b72bb 100644
--- a/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3
+++ b/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x4121f7a2
diff --git a/tests/ref/fate/hevc-conformance-QMATRIX_A_RExt_Sony_1 b/tests/ref/fate/hevc-conformance-QMATRIX_A_RExt_Sony_1
index 63baa95e77..98d0bb3527 100644
--- a/tests/ref/fate/hevc-conformance-QMATRIX_A_RExt_Sony_1
+++ b/tests/ref/fate/hevc-conformance-QMATRIX_A_RExt_Sony_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 2764800, 0xde442361
0, 1, 1, 1, 2764800, 0x8d482fdf
0, 2, 2, 1, 2764800, 0x9b431e37
diff --git a/tests/ref/fate/hevc-conformance-RAP_A_docomo_4 b/tests/ref/fate/hevc-conformance-RAP_A_docomo_4
index 268f4cdc46..51ea08b584 100644
--- a/tests/ref/fate/hevc-conformance-RAP_A_docomo_4
+++ b/tests/ref/fate/hevc-conformance-RAP_A_docomo_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x1ae5f13d
0, 1, 1, 1, 149760, 0x0a6ad0e3
0, 2, 2, 1, 149760, 0x2415af05
diff --git a/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1 b/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1
index 56f5b441aa..53e733bd75 100644
--- a/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1
+++ b/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xb989ae7a
0, 1, 1, 1, 149760, 0x4765caed
0, 2, 2, 1, 149760, 0xd908c148
diff --git a/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4 b/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4
index 372d1202f5..7cb2bdf17e 100644
--- a/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4
+++ b/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xdb5e3b56
0, 1, 1, 1, 149760, 0xd5320970
0, 2, 2, 1, 149760, 0x9387ed18
diff --git a/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4 b/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4
index a34dcc01bd..5515c6720e 100644
--- a/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4
+++ b/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x82ff0cca
0, 1, 1, 1, 149760, 0xcd05ba17
0, 2, 2, 1, 149760, 0x33a5b924
diff --git a/tests/ref/fate/hevc-conformance-RPS_A_docomo_4 b/tests/ref/fate/hevc-conformance-RPS_A_docomo_4
index e29a74b26f..5ec1474e2a 100644
--- a/tests/ref/fate/hevc-conformance-RPS_A_docomo_4
+++ b/tests/ref/fate/hevc-conformance-RPS_A_docomo_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x0bdf13f8
0, 2, 2, 1, 149760, 0x45e702c7
diff --git a/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5 b/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5
index 3b24e753b8..9c9d894d01 100644
--- a/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5
+++ b/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xdb5e3b56
0, 1, 1, 1, 149760, 0xe328e677
0, 2, 2, 1, 149760, 0x8f18f4c0
diff --git a/tests/ref/fate/hevc-conformance-RPS_C_ericsson_5 b/tests/ref/fate/hevc-conformance-RPS_C_ericsson_5
index e97e7eafa2..840d816ce3 100644
--- a/tests/ref/fate/hevc-conformance-RPS_C_ericsson_5
+++ b/tests/ref/fate/hevc-conformance-RPS_C_ericsson_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8ce7200b
0, 1, 1, 1, 149760, 0x85340cda
0, 2, 2, 1, 149760, 0x16fd1f91
diff --git a/tests/ref/fate/hevc-conformance-RPS_D_ericsson_6 b/tests/ref/fate/hevc-conformance-RPS_D_ericsson_6
index 2851704c52..9c0fc6c7fb 100644
--- a/tests/ref/fate/hevc-conformance-RPS_D_ericsson_6
+++ b/tests/ref/fate/hevc-conformance-RPS_D_ericsson_6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8ce7200b
0, 1, 1, 1, 149760, 0x73610669
0, 2, 2, 1, 149760, 0xc01620f4
diff --git a/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5 b/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5
index 82c25e171f..51c6300f69 100644
--- a/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5
+++ b/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0xd62a31bc
0, 2, 2, 1, 149760, 0xec822f84
diff --git a/tests/ref/fate/hevc-conformance-RPS_F_docomo_1 b/tests/ref/fate/hevc-conformance-RPS_F_docomo_1
index 06ae9c176a..0270e9d432 100644
--- a/tests/ref/fate/hevc-conformance-RPS_F_docomo_1
+++ b/tests/ref/fate/hevc-conformance-RPS_F_docomo_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x8edb27d7
0, 1, 1, 1, 149760, 0x0bdf13f8
0, 2, 2, 1, 149760, 0x45e702c7
diff --git a/tests/ref/fate/hevc-conformance-RQT_A_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_A_HHI_4
index 5f2b9dabd3..c5a106ef1f 100644
--- a/tests/ref/fate/hevc-conformance-RQT_A_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_A_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x5c0f5423
0, 1, 1, 1, 599040, 0x3d23be58
diff --git a/tests/ref/fate/hevc-conformance-RQT_B_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_B_HHI_4
index dcf2691738..f4f0c267d1 100644
--- a/tests/ref/fate/hevc-conformance-RQT_B_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_B_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x69854954
0, 1, 1, 1, 599040, 0x695ebc85
diff --git a/tests/ref/fate/hevc-conformance-RQT_C_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_C_HHI_4
index 2e88350fe0..6f66e4b3ee 100644
--- a/tests/ref/fate/hevc-conformance-RQT_C_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_C_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x65433cfe
0, 1, 1, 1, 599040, 0x9309e2c5
diff --git a/tests/ref/fate/hevc-conformance-RQT_D_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_D_HHI_4
index 7f73896084..016d9eb7da 100644
--- a/tests/ref/fate/hevc-conformance-RQT_D_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_D_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x88d741bf
0, 1, 1, 1, 599040, 0xbbd9ab22
diff --git a/tests/ref/fate/hevc-conformance-RQT_E_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_E_HHI_4
index f0623188fd..0cb376720f 100644
--- a/tests/ref/fate/hevc-conformance-RQT_E_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_E_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xce2e511d
0, 1, 1, 1, 599040, 0xe55192d0
diff --git a/tests/ref/fate/hevc-conformance-RQT_F_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_F_HHI_4
index 26bf5acc7a..f6904c6944 100644
--- a/tests/ref/fate/hevc-conformance-RQT_F_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_F_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x65433cfe
0, 1, 1, 1, 599040, 0x6f99cc5f
diff --git a/tests/ref/fate/hevc-conformance-RQT_G_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_G_HHI_4
index d36ea01172..ed67f43da9 100644
--- a/tests/ref/fate/hevc-conformance-RQT_G_HHI_4
+++ b/tests/ref/fate/hevc-conformance-RQT_G_HHI_4
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x5c0f5423
0, 1, 1, 1, 599040, 0xe805b181
diff --git a/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4 b/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4
index 01226d9776..d9066ff8d3 100644
--- a/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4
+++ b/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x304198c2
0, 1, 1, 1, 149760, 0xe765e30d
0, 2, 2, 1, 149760, 0x0130a054
diff --git a/tests/ref/fate/hevc-conformance-SAO_A_RExt_MediaTek_1 b/tests/ref/fate/hevc-conformance-SAO_A_RExt_MediaTek_1
index b6ed2112ae..24736a9410 100644
--- a/tests/ref/fate/hevc-conformance-SAO_A_RExt_MediaTek_1
+++ b/tests/ref/fate/hevc-conformance-SAO_A_RExt_MediaTek_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 24576000, 0x5b01ceed
0, 1, 1, 1, 24576000, 0x043fa798
0, 2, 2, 1, 24576000, 0x9ec62721
diff --git a/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5 b/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5
index 9da0268057..1e593b1e57 100644
--- a/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5
+++ b/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xe56f6a5c
0, 1, 1, 1, 599040, 0x31ec1bb9
0, 2, 2, 1, 599040, 0xf3ce0311
diff --git a/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4 b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4
index f87921d315..fa4cdfc1e6 100644
--- a/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xf923a1a0
0, 1, 1, 1, 149760, 0x614d851a
0, 2, 2, 1, 149760, 0xc3976ce4
diff --git a/tests/ref/fate/hevc-conformance-SAO_C_Samsung_5 b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_5
index 4cb1f78e52..2344dce32a 100644
--- a/tests/ref/fate/hevc-conformance-SAO_C_Samsung_5
+++ b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x6fe6508f
0, 1, 1, 1, 3110400, 0xa56a3403
0, 2, 2, 1, 3110400, 0x45db0973
diff --git a/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4 b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4
index ce1cefeeaa..df3e4172bb 100644
--- a/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x0d2edbbc
0, 1, 1, 1, 149760, 0x4830af95
0, 2, 2, 1, 149760, 0x39e8d3bb
diff --git a/tests/ref/fate/hevc-conformance-SAO_D_Samsung_5 b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_5
index a1884dd01b..1a51cf3a4c 100644
--- a/tests/ref/fate/hevc-conformance-SAO_D_Samsung_5
+++ b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0xcfb2f251
0, 1, 1, 1, 3110400, 0xc2621936
0, 2, 2, 1, 3110400, 0x5cb42788
diff --git a/tests/ref/fate/hevc-conformance-SAO_E_Canon_4 b/tests/ref/fate/hevc-conformance-SAO_E_Canon_4
index 92aa7f4f9a..7051b436ac 100644
--- a/tests/ref/fate/hevc-conformance-SAO_E_Canon_4
+++ b/tests/ref/fate/hevc-conformance-SAO_E_Canon_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x1613b277
0, 1, 1, 1, 149760, 0xf92d5543
0, 2, 2, 1, 149760, 0xf119ba8e
diff --git a/tests/ref/fate/hevc-conformance-SAO_F_Canon_3 b/tests/ref/fate/hevc-conformance-SAO_F_Canon_3
index cf240558cf..613e70d478 100644
--- a/tests/ref/fate/hevc-conformance-SAO_F_Canon_3
+++ b/tests/ref/fate/hevc-conformance-SAO_F_Canon_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x92b5107a
0, 1, 1, 1, 149760, 0x97eb31ef
0, 2, 2, 1, 149760, 0xeb743e30
diff --git a/tests/ref/fate/hevc-conformance-SAO_G_Canon_3 b/tests/ref/fate/hevc-conformance-SAO_G_Canon_3
index 5ce6772b21..8f3f9acb0f 100644
--- a/tests/ref/fate/hevc-conformance-SAO_G_Canon_3
+++ b/tests/ref/fate/hevc-conformance-SAO_G_Canon_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xc4f239e0
0, 1, 1, 1, 149760, 0xf57a2e44
0, 2, 2, 1, 149760, 0xbf1e9995
diff --git a/tests/ref/fate/hevc-conformance-SDH_A_Orange_3 b/tests/ref/fate/hevc-conformance-SDH_A_Orange_3
index caf90eed0b..f3ef192c6a 100644
--- a/tests/ref/fate/hevc-conformance-SDH_A_Orange_3
+++ b/tests/ref/fate/hevc-conformance-SDH_A_Orange_3
@@ -1,3 +1,7 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x0117aa5d
0, 1, 1, 1, 3110400, 0xa737bc56
diff --git a/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3 b/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3
index f884f7f8d7..c45dfd6e0d 100644
--- a/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3
+++ b/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0x7f06cb02
0, 1, 1, 1, 460800, 0x1ad483aa
0, 2, 2, 1, 460800, 0x1bbbc991
diff --git a/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4 b/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4
index ebb65c3e2f..9e68d0dbe7 100644
--- a/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4
+++ b/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xbd0eb43e
0, 1, 1, 1, 599040, 0x4c3a98b5
0, 2, 2, 1, 599040, 0x105410dc
diff --git a/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8 b/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8
index fc39039592..0164b31f2d 100644
--- a/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8
+++ b/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xbd0eb43e
0, 1, 1, 1, 599040, 0x3ea696c4
0, 2, 2, 1, 599040, 0x866beffc
diff --git a/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3 b/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3
index 482e56ff36..b40fa4142e 100644
--- a/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3
+++ b/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xc3e98658
0, 1, 1, 1, 599040, 0x621fa0b7
0, 2, 2, 1, 599040, 0x53b2e637
diff --git a/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9 b/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9
index 384f81f767..d26b75f738 100644
--- a/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9
+++ b/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0xf3038515
0, 1, 1, 1, 599040, 0xb1bc9386
0, 2, 2, 1, 599040, 0xa069e86f
diff --git a/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_1 b/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_1
index bbb3cfeaa1..6cd9643536 100644
--- a/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_1
+++ b/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x99440a14
diff --git a/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_2 b/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_2
index bbb3cfeaa1..6cd9643536 100644
--- a/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_2
+++ b/tests/ref/fate/hevc-conformance-SLPPLP_A_VIDYO_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x99440a14
diff --git a/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5 b/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5
index da5cfa1883..0916a9db87 100644
--- a/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5
+++ b/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x479fa7ca
0, 1, 1, 1, 149760, 0x761fb3a3
0, 2, 2, 1, 149760, 0xa0f4cd97
diff --git a/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4 b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4
index c03111c0c8..b95c176bea 100644
--- a/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4
+++ b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x4b489a60
0, 1, 1, 1, 599040, 0x80369c9a
0, 2, 2, 1, 599040, 0x33189b1a
diff --git a/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_6 b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_6
index 811c79019d..6127f769a1 100644
--- a/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_6
+++ b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_6
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 832x480
+#sar 0: 0/1
0, 0, 0, 1, 599040, 0x10e6d882
0, 1, 1, 1, 599040, 0x10e6d882
0, 2, 2, 1, 599040, 0x10e6d882
diff --git a/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2 b/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2
index 63c9722f5a..8d0b5276e6 100644
--- a/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2
+++ b/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0xfc052e85
0, 1, 1, 1, 3110400, 0xfb49bf20
0, 2, 2, 1, 3110400, 0x549eef2b
diff --git a/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1 b/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1
index 9c3712195f..b03a9c3f80 100644
--- a/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1
+++ b/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 3110400, 0x3471f473
0, 1, 1, 1, 3110400, 0xb371a3e8
0, 2, 2, 1, 3110400, 0x6d83c623
diff --git a/tests/ref/fate/hevc-conformance-TMVP_A_MS_3 b/tests/ref/fate/hevc-conformance-TMVP_A_MS_3
index 531370d26a..d037d38469 100644
--- a/tests/ref/fate/hevc-conformance-TMVP_A_MS_3
+++ b/tests/ref/fate/hevc-conformance-TMVP_A_MS_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xdb5e3b56
0, 1, 1, 1, 149760, 0x6d4418eb
0, 2, 2, 1, 149760, 0x0473e366
diff --git a/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5 b/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5
index 84d4219e37..7f875840c2 100644
--- a/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5
+++ b/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcfffa013
0, 1, 1, 1, 149760, 0x5166146a
0, 2, 2, 1, 149760, 0xc3cc318e
diff --git a/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4 b/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4
index 6ee24acf9e..c8b192404f 100644
--- a/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4
+++ b/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x99440a14
diff --git a/tests/ref/fate/hevc-conformance-TSKIP_A_MS_3 b/tests/ref/fate/hevc-conformance-TSKIP_A_MS_3
index b5eca3c3da..2f7ee57ec4 100644
--- a/tests/ref/fate/hevc-conformance-TSKIP_A_MS_3
+++ b/tests/ref/fate/hevc-conformance-TSKIP_A_MS_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0xaea37937
0, 1, 1, 1, 1382400, 0xea5c7b5d
0, 2, 2, 1, 1382400, 0x4e41e421
diff --git a/tests/ref/fate/hevc-conformance-TUSIZE_A_Samsung_1 b/tests/ref/fate/hevc-conformance-TUSIZE_A_Samsung_1
index 4886a40162..f0498e1a22 100644
--- a/tests/ref/fate/hevc-conformance-TUSIZE_A_Samsung_1
+++ b/tests/ref/fate/hevc-conformance-TUSIZE_A_Samsung_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2560x1600
+#sar 0: 0/1
0, 0, 0, 1, 6144000, 0x3681421d
0, 1, 1, 1, 6144000, 0xecf3f343
0, 2, 2, 1, 6144000, 0x53742db2
diff --git a/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_1 b/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_1
index bbb3cfeaa1..6cd9643536 100644
--- a/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_1
+++ b/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_1
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x99440a14
diff --git a/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_2 b/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_2
index bbb3cfeaa1..6cd9643536 100644
--- a/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_2
+++ b/tests/ref/fate/hevc-conformance-VPSID_A_VIDYO_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x88619f80
0, 1, 1, 1, 149760, 0x550bdaf0
0, 2, 2, 1, 149760, 0x99440a14
diff --git a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2
index fe46c99baf..8bed654e25 100644
--- a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0xa3f96d63
0, 1, 1, 1, 299520, 0x5f788f3f
0, 2, 2, 1, 299520, 0x41c7d0ae
diff --git a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2
index 497c8025de..1be833d37b 100644
--- a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xfbb3d914
0, 1, 1, 1, 149760, 0xdccd707b
0, 2, 2, 1, 149760, 0x32008963
diff --git a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2
index d199d383d1..b14666882e 100644
--- a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0x66b3cef3
0, 1, 1, 1, 299520, 0x99df880f
0, 2, 2, 1, 299520, 0xb4a03801
diff --git a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2
index bb61b103eb..9ac63c1438 100644
--- a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x3772de54
0, 1, 1, 1, 149760, 0x571d885e
0, 2, 2, 1, 149760, 0x71576f09
diff --git a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2
index b1e6312402..ee951bb284 100644
--- a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0xbc71d699
0, 1, 1, 1, 299520, 0x3207e1f9
0, 2, 2, 1, 299520, 0xdd2087b5
diff --git a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2
index 49c4f21af7..12fbbf6972 100644
--- a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x0948e521
0, 1, 1, 1, 149760, 0x37afb384
0, 2, 2, 1, 149760, 0xe1864c4a
diff --git a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2
index 83cf10ce38..6fc9a04971 100644
--- a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x240
+#sar 0: 0/1
0, 0, 0, 1, 46080, 0xc50ed6b4
0, 1, 1, 1, 46080, 0x2aeac52d
0, 2, 2, 1, 46080, 0xe3e36cd3
diff --git a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2
index 6e6fc32071..dc469f62ac 100644
--- a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x240
+#sar 0: 0/1
0, 0, 0, 1, 23040, 0x6977dbca
0, 1, 1, 1, 23040, 0xd9bfcb5c
0, 2, 2, 1, 23040, 0xbdd5a346
diff --git a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2
index dbf6f780d4..0dd096c898 100644
--- a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x240
+#sar 0: 0/1
0, 0, 0, 1, 92160, 0x591c992e
0, 1, 1, 1, 92160, 0xe7a8cd8b
0, 2, 2, 1, 92160, 0x2e7528bb
diff --git a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2
index ac478c6ae9..e284c179ee 100644
--- a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x240
+#sar 0: 0/1
0, 0, 0, 1, 46080, 0xcd234724
0, 1, 1, 1, 46080, 0x66649579
0, 2, 2, 1, 46080, 0x4317d38d
diff --git a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2
index 2f103b7af8..aa8452db98 100644
--- a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2
+++ b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x240
+#sar 0: 0/1
0, 0, 0, 1, 138240, 0x99f196ae
0, 1, 1, 1, 138240, 0x45f407de
0, 2, 2, 1, 138240, 0xdaef815b
diff --git a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2
index 6256d96cb1..1654ec1c53 100644
--- a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2
+++ b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x240
+#sar 0: 0/1
0, 0, 0, 1, 69120, 0x28326a13
0, 1, 1, 1, 69120, 0x1f41a4a7
0, 2, 2, 1, 69120, 0x803ceeb4
diff --git a/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3
index b2dadbad8a..4ca7eb2564 100644
--- a/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3
+++ b/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0x7750edc7
0, 1, 1, 1, 299520, 0x97fb359b
0, 2, 2, 1, 299520, 0x89ac22bc
diff --git a/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3
index a8c5df34f1..88f319c90b 100644
--- a/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3
+++ b/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xf4bafc83
0, 1, 1, 1, 149760, 0x611ca492
0, 2, 2, 1, 149760, 0x8fa9bbb1
diff --git a/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3
index 7dbc72bdbd..ed6988005a 100644
--- a/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3
+++ b/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xd8bf0c39
0, 1, 1, 1, 149760, 0xad390a29
0, 2, 2, 1, 149760, 0x0d310906
diff --git a/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3
index 332c7df3e4..027776443a 100644
--- a/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3
+++ b/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 299520, 0x6ecba46b
0, 1, 1, 1, 299520, 0x54e6ef0a
0, 2, 2, 1, 299520, 0x7a4d46c5
diff --git a/tests/ref/fate/hevc-conformance-cip_B_NEC_3 b/tests/ref/fate/hevc-conformance-cip_B_NEC_3
index 016f0f1ee1..c8dfedf7b2 100644
--- a/tests/ref/fate/hevc-conformance-cip_B_NEC_3
+++ b/tests/ref/fate/hevc-conformance-cip_B_NEC_3
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xcbda260f
0, 1, 1, 1, 149760, 0xbd8d32a9
0, 2, 2, 1, 149760, 0x39562006
diff --git a/tests/ref/fate/hevc-conformance-ipcm_A_NEC_3 b/tests/ref/fate/hevc-conformance-ipcm_A_NEC_3
index 145f590872..4d34d32ae2 100644
--- a/tests/ref/fate/hevc-conformance-ipcm_A_NEC_3
+++ b/tests/ref/fate/hevc-conformance-ipcm_A_NEC_3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0x2356474c
diff --git a/tests/ref/fate/hevc-conformance-ipcm_B_NEC_3 b/tests/ref/fate/hevc-conformance-ipcm_B_NEC_3
index d917cbc41c..0dd1379ea8 100644
--- a/tests/ref/fate/hevc-conformance-ipcm_B_NEC_3
+++ b/tests/ref/fate/hevc-conformance-ipcm_B_NEC_3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xc80d43f8
diff --git a/tests/ref/fate/hevc-conformance-ipcm_C_NEC_3 b/tests/ref/fate/hevc-conformance-ipcm_C_NEC_3
index 6c89cea38f..4bc3fc63ed 100644
--- a/tests/ref/fate/hevc-conformance-ipcm_C_NEC_3
+++ b/tests/ref/fate/hevc-conformance-ipcm_C_NEC_3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xb92d38ee
diff --git a/tests/ref/fate/hevc-conformance-ipcm_D_NEC_3 b/tests/ref/fate/hevc-conformance-ipcm_D_NEC_3
index 2ccff0579f..23d7aaa9ee 100644
--- a/tests/ref/fate/hevc-conformance-ipcm_D_NEC_3
+++ b/tests/ref/fate/hevc-conformance-ipcm_D_NEC_3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xa24d17f8
diff --git a/tests/ref/fate/hevc-conformance-ipcm_E_NEC_2 b/tests/ref/fate/hevc-conformance-ipcm_E_NEC_2
index 794c4acdd3..3f7d7809f8 100644
--- a/tests/ref/fate/hevc-conformance-ipcm_E_NEC_2
+++ b/tests/ref/fate/hevc-conformance-ipcm_E_NEC_2
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
0, 0, 0, 1, 149760, 0xf4582514
diff --git a/tests/ref/fate/hevc-paramchange-yuv420p-yuv420p10 b/tests/ref/fate/hevc-paramchange-yuv420p-yuv420p10
index f3cd550a71..73bf868cac 100644
--- a/tests/ref/fate/hevc-paramchange-yuv420p-yuv420p10
+++ b/tests/ref/fate/hevc-paramchange-yuv420p-yuv420p10
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1056x8440
+#sar 0: 0/1
0, 0, 0, 1, 13368960, 0x830b3a1d
0, 1, 1, 1, 13368960, 0x120ca009
0, 2, 2, 1, 13368960, 0xc94e0d86
diff --git a/tests/ref/fate/id-cin-video b/tests/ref/fate/id-cin-video
index f55544f831..469e2393fa 100644
--- a/tests/ref/fate/id-cin-video
+++ b/tests/ref/fate/id-cin-video
@@ -1,5 +1,13 @@
#tb 0: 1/14
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22050
+#channel_layout 1: 3
0, 0, 0, 1, 230400, 0x00000000
1, 0, 0, 1575, 6300, 0xdd759df8
0, 1, 1, 1, 230400, 0x3a3486b4
diff --git a/tests/ref/fate/iff-byterun1 b/tests/ref/fate/iff-byterun1
index 6f80c72d47..8e6f949f62 100644
--- a/tests/ref/fate/iff-byterun1
+++ b/tests/ref/fate/iff-byterun1
@@ -1,2 +1,6 @@
#tb 0: 1/90000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 5/6
0, 0, 0, 0, 230400, 0x35e51c62
diff --git a/tests/ref/fate/iff-ilbm b/tests/ref/fate/iff-ilbm
index a801aff46d..38c43eb589 100644
--- a/tests/ref/fate/iff-ilbm
+++ b/tests/ref/fate/iff-ilbm
@@ -1,2 +1,6 @@
#tb 0: 1/90000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 0, 230400, 0x0929e342
diff --git a/tests/ref/fate/indeo2-delta b/tests/ref/fate/indeo2-delta
index c197dcc52b..05a01fdd81 100644
--- a/tests/ref/fate/indeo2-delta
+++ b/tests/ref/fate/indeo2-delta
@@ -1,4 +1,8 @@
#tb 0: 16567/250000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 21600, 0xa3e914dd
0, 1, 1, 1, 21600, 0x367eb420
0, 2, 2, 1, 21600, 0x527488e2
diff --git a/tests/ref/fate/indeo2-intra b/tests/ref/fate/indeo2-intra
index 9f80f35d0c..0831d91182 100644
--- a/tests/ref/fate/indeo2-intra
+++ b/tests/ref/fate/indeo2-intra
@@ -1,4 +1,8 @@
#tb 0: 66667/1000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 21600, 0x57a2ba42
0, 1, 1, 1, 21600, 0x61e09615
0, 2, 2, 1, 21600, 0x826e4e63
diff --git a/tests/ref/fate/indeo3-1 b/tests/ref/fate/indeo3-1
index 0f5564928f..386e530906 100644
--- a/tests/ref/fate/indeo3-1
+++ b/tests/ref/fate/indeo3-1
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 21600, 0x845098fc
0, 1, 1, 1, 21600, 0xc28e8bf0
0, 2, 2, 1, 21600, 0x2f418fb4
diff --git a/tests/ref/fate/indeo3-2 b/tests/ref/fate/indeo3-2
index 702d06b3c9..78e145e410 100644
--- a/tests/ref/fate/indeo3-2
+++ b/tests/ref/fate/indeo3-2
@@ -1,4 +1,8 @@
#tb 0: 200/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x188
+#sar 0: 0/1
0, 0, 0, 1, 67680, 0x532a4c40
0, 37, 37, 1, 67680, 0x63d2757a
0, 38, 38, 1, 67680, 0xb1dcf7d3
diff --git a/tests/ref/fate/indeo4 b/tests/ref/fate/indeo4
index 7f60461337..0a2b051b79 100644
--- a/tests/ref/fate/indeo4
+++ b/tests/ref/fate/indeo4
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 86400, 0x98f5e422
0, 1, 1, 1, 86400, 0x1864cb06
0, 2, 2, 1, 86400, 0xb09532ef
diff --git a/tests/ref/fate/indeo5 b/tests/ref/fate/indeo5
index 7b9123862d..6be2818b82 100644
--- a/tests/ref/fate/indeo5
+++ b/tests/ref/fate/indeo5
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 240x180
+#sar 0: 0/1
0, 0, 0, 1, 48600, 0x72d4193b
0, 2, 2, 1, 48600, 0x36abd6f3
0, 3, 3, 1, 48600, 0x99e582f7
diff --git a/tests/ref/fate/interplay-mve-16bit b/tests/ref/fate/interplay-mve-16bit
index b20e998857..c1ec1ca890 100644
--- a/tests/ref/fate/interplay-mve-16bit
+++ b/tests/ref/fate/interplay-mve-16bit
@@ -1,4 +1,8 @@
#tb 0: 417/12500
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x320
+#sar 0: 0/1
0, 0, 0, 1, 614400, 0x00000000
0, 1, 1, 1, 614400, 0x00000000
0, 2, 2, 1, 614400, 0x3c4ce011
diff --git a/tests/ref/fate/interplay-mve-8bit b/tests/ref/fate/interplay-mve-8bit
index b37bd6e376..6fb5af3d69 100644
--- a/tests/ref/fate/interplay-mve-8bit
+++ b/tests/ref/fate/interplay-mve-8bit
@@ -1,4 +1,8 @@
#tb 0: 8341/125000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 432x320
+#sar 0: 0/1
0, 0, 0, 1, 414720, 0x2580d574
0, 1, 1, 1, 414720, 0x97f55cd3
0, 2, 2, 1, 414720, 0x9408fb63
diff --git a/tests/ref/fate/iv8-demux b/tests/ref/fate/iv8-demux
index 02b6314b4d..ddb110a0e4 100644
--- a/tests/ref/fate/iv8-demux
+++ b/tests/ref/fate/iv8-demux
@@ -1,5 +1,9 @@
#extradata 0: 19, 0x1f2604b9
#tb 0: 1/90000
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 704x576
+#sar 0: 1/1
0, 0, 0, 0, 20883, 0x347191e2
0, 0, 3600, 0, 20882, 0xe1573905
0, 3600, 7200, 0, 20894, 0xd54f516a
diff --git a/tests/ref/fate/jpeg2000-dcinema b/tests/ref/fate/jpeg2000-dcinema
index 08bbfdc4a8..cdf8cd4fc6 100644
--- a/tests/ref/fate/jpeg2000-dcinema
+++ b/tests/ref/fate/jpeg2000-dcinema
@@ -1,3 +1,7 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 12441600, 0xfcf6a127
0, 1, 1, 1, 12441600, 0x577b6a64
diff --git a/tests/ref/fate/jv b/tests/ref/fate/jv
index b0a6008d93..d90fe24637 100644
--- a/tests/ref/fate/jv
+++ b/tests/ref/fate/jv
@@ -1,4 +1,8 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x00000000
0, 2, 2, 1, 192000, 0x331b1c12
0, 3, 3, 1, 192000, 0xc2fa2d89
diff --git a/tests/ref/fate/jv-demux b/tests/ref/fate/jv-demux
index 51638df1a8..280528c5ed 100644
--- a/tests/ref/fate/jv-demux
+++ b/tests/ref/fate/jv-demux
@@ -1,5 +1,13 @@
#tb 0: 2/25
+#media_type 0: video
+#codec_id 0: jv
+#dimensions 0: 320x200
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_u8
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 1, 6, 0x000a0003
1, 0, 0, 131072, 131072, 0x14c664d6
0, 1, 1, 1, 773, 0x11802a51
diff --git a/tests/ref/fate/kgv1 b/tests/ref/fate/kgv1
index 4f475bb632..a3649bc8aa 100644
--- a/tests/ref/fate/kgv1
+++ b/tests/ref/fate/kgv1
@@ -1,4 +1,8 @@
#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 153600, 0x00000000
0, 1, 1, 1, 153600, 0x00000000
0, 2, 2, 1, 153600, 0x00000000
diff --git a/tests/ref/fate/kmvc b/tests/ref/fate/kmvc
index 8a733bbb4e..9c7686bab8 100644
--- a/tests/ref/fate/kmvc
+++ b/tests/ref/fate/kmvc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x160
+#sar 0: 0/1
0, 0, 0, 1, 153600, 0x00000000
0, 1, 1, 1, 153600, 0x00000000
0, 2, 2, 1, 153600, 0x00000000
diff --git a/tests/ref/fate/lagarith-red b/tests/ref/fate/lagarith-red
index b5fb96b4f6..0e065d60d5 100644
--- a/tests/ref/fate/lagarith-red
+++ b/tests/ref/fate/lagarith-red
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x67dfe576
0, 1, 1, 1, 230400, 0x67dfe576
0, 2, 2, 1, 230400, 0x67dfe576
diff --git a/tests/ref/fate/lagarith-rgb24 b/tests/ref/fate/lagarith-rgb24
index 1eb2bc441c..63250c6bdc 100644
--- a/tests/ref/fate/lagarith-rgb24
+++ b/tests/ref/fate/lagarith-rgb24
@@ -1,4 +1,8 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 480x256
+#sar 0: 0/1
0, 0, 0, 1, 368640, 0x26f74db2
0, 1, 1, 1, 368640, 0x63b29ea4
0, 2, 2, 1, 368640, 0x19467f03
diff --git a/tests/ref/fate/lagarith-rgb32 b/tests/ref/fate/lagarith-rgb32
index 490e2e5c7d..8a4c4d2a93 100644
--- a/tests/ref/fate/lagarith-rgb32
+++ b/tests/ref/fate/lagarith-rgb32
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0x00000000
0, 1, 1, 1, 1382400, 0x00000000
0, 2, 2, 1, 1382400, 0x00000000
diff --git a/tests/ref/fate/lagarith-ticket4119 b/tests/ref/fate/lagarith-ticket4119
index ac74875485..c46ef041e4 100644
--- a/tests/ref/fate/lagarith-ticket4119
+++ b/tests/ref/fate/lagarith-ticket4119
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0x00000000
0, 25, 25, 1, 691200, 0xc88a6f24
0, 50, 50, 1, 691200, 0x906d474c
diff --git a/tests/ref/fate/lagarith-ticket4119-cfr b/tests/ref/fate/lagarith-ticket4119-cfr
index 51e841f943..324fe4483f 100644
--- a/tests/ref/fate/lagarith-ticket4119-cfr
+++ b/tests/ref/fate/lagarith-ticket4119-cfr
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0x00000000
0, 1, 1, 1, 691200, 0x00000000
0, 2, 2, 1, 691200, 0x00000000
diff --git a/tests/ref/fate/lagarith-ticket4119-drop b/tests/ref/fate/lagarith-ticket4119-drop
index ae6309be13..abc58d5cb5 100644
--- a/tests/ref/fate/lagarith-ticket4119-drop
+++ b/tests/ref/fate/lagarith-ticket4119-drop
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0x00000000
0, 1, 1, 1, 691200, 0xc88a6f24
0, 2, 2, 1, 691200, 0x906d474c
diff --git a/tests/ref/fate/lagarith-ticket4119-pass b/tests/ref/fate/lagarith-ticket4119-pass
index ac74875485..c46ef041e4 100644
--- a/tests/ref/fate/lagarith-ticket4119-pass
+++ b/tests/ref/fate/lagarith-ticket4119-pass
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0x00000000
0, 25, 25, 1, 691200, 0xc88a6f24
0, 50, 50, 1, 691200, 0x906d474c
diff --git a/tests/ref/fate/lagarith-ticket4119-vfr b/tests/ref/fate/lagarith-ticket4119-vfr
index ac74875485..c46ef041e4 100644
--- a/tests/ref/fate/lagarith-ticket4119-vfr
+++ b/tests/ref/fate/lagarith-ticket4119-vfr
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0x00000000
0, 25, 25, 1, 691200, 0xc88a6f24
0, 50, 50, 1, 691200, 0x906d474c
diff --git a/tests/ref/fate/lagarith-yuy2 b/tests/ref/fate/lagarith-yuy2
index c5aed92d61..64a211e244 100644
--- a/tests/ref/fate/lagarith-yuy2
+++ b/tests/ref/fate/lagarith-yuy2
@@ -1,2 +1,6 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 0, 0, 1, 1572864, 0xeed76a7d
diff --git a/tests/ref/fate/lagarith-yv12 b/tests/ref/fate/lagarith-yv12
index c9c9ff372f..a79a3bab3c 100644
--- a/tests/ref/fate/lagarith-yv12
+++ b/tests/ref/fate/lagarith-yv12
@@ -1,3 +1,7 @@
#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x240
+#sar 0: 0/1
0, 0, 0, 1, 92160, 0x1dfdf5c1
0, 1, 1, 1, 92160, 0x6965884f
diff --git a/tests/ref/fate/lmlm4-demux b/tests/ref/fate/lmlm4-demux
index 95df3e6126..79cb53998b 100644
--- a/tests/ref/fate/lmlm4-demux
+++ b/tests/ref/fate/lmlm4-demux
@@ -1,6 +1,14 @@
#extradata 0: 28, 0x2f140538
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 320x240
+#sar 0: 1/1
#tb 1: 1/90000
+#media_type 1: audio
+#codec_id 1: mp2
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, 0, -9223372036854775808, 1, 5951, 0xe9118e0d
1, 0, 0, 2160, 768, 0xaebcbebb
1, 2160, 2160, 2160, 768, 0xaebcbebb
diff --git a/tests/ref/fate/loco-rgb b/tests/ref/fate/loco-rgb
index ad199f1410..289e73f7ed 100644
--- a/tests/ref/fate/loco-rgb
+++ b/tests/ref/fate/loco-rgb
@@ -1,4 +1,8 @@
#tb 0: 71/500
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 188x128
+#sar 0: 0/1
0, 0, 0, 1, 72192, 0x1847500c
0, 1, 1, 1, 72192, 0x1b0e2e87
0, 2, 2, 1, 72192, 0x293276c8
diff --git a/tests/ref/fate/loco-yuy2 b/tests/ref/fate/loco-yuy2
index 60a06bca7a..e963cda087 100644
--- a/tests/ref/fate/loco-yuy2
+++ b/tests/ref/fate/loco-yuy2
@@ -1,4 +1,8 @@
#tb 0: 71/500
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 188x128
+#sar 0: 0/1
0, 0, 0, 1, 48128, 0x7795782d
0, 1, 1, 1, 48128, 0x3d89bcf7
0, 2, 2, 1, 48128, 0x170d200a
diff --git a/tests/ref/fate/m4v b/tests/ref/fate/m4v
index 7c3b30801f..cebe443adc 100644
--- a/tests/ref/fate/m4v
+++ b/tests/ref/fate/m4v
@@ -1,4 +1,8 @@
#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x7262156b
0, 11, 11, 1, 115200, 0xa6aebc2f
0, 22, 22, 1, 115200, 0x9c7beba1
diff --git a/tests/ref/fate/m4v-cfr b/tests/ref/fate/m4v-cfr
index e19b2d7e22..4eee84d01b 100644
--- a/tests/ref/fate/m4v-cfr
+++ b/tests/ref/fate/m4v-cfr
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0x7262156b
0, 1, 1, 1, 115200, 0xa6aebc2f
0, 2, 2, 1, 115200, 0x9c7beba1
diff --git a/tests/ref/fate/maxis-xa b/tests/ref/fate/maxis-xa
index c29738c868..ae8124da70 100644
--- a/tests/ref/fate/maxis-xa
+++ b/tests/ref/fate/maxis-xa
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: adpcm_ea_maxis_xa
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 28, 30, 0x51750711
0, 28, 28, 28, 30, 0x9ca20c2a
0, 56, 56, 28, 30, 0x7551081f
diff --git a/tests/ref/fate/mdec b/tests/ref/fate/mdec
index b7aab626e9..ae438ed232 100644
--- a/tests/ref/fate/mdec
+++ b/tests/ref/fate/mdec
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 304x224
+#sar 0: 0/1
0, 0, 0, 1, 102144, 0x6edc83de
0, 1, 1, 1, 102144, 0xd0534fda
0, 2, 2, 1, 102144, 0x6447911f
diff --git a/tests/ref/fate/mdec-v3 b/tests/ref/fate/mdec-v3
index 7e4bbdb13d..471303f0b8 100644
--- a/tests/ref/fate/mdec-v3
+++ b/tests/ref/fate/mdec-v3
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x160
+#sar 0: 0/1
0, 0, 0, 1, 76800, 0x2677be82
0, 1, 1, 1, 76800, 0x1f323c75
0, 2, 2, 1, 76800, 0xc8be3be9
diff --git a/tests/ref/fate/mimic b/tests/ref/fate/mimic
index 217d487b10..e36e6a8c91 100644
--- a/tests/ref/fate/mimic
+++ b/tests/ref/fate/mimic
@@ -1,4 +1,8 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 0, 115200, 0xa974d407
0, 548, 548, 0, 115200, 0x72618b84
0, 1088, 1088, 0, 115200, 0x87768573
diff --git a/tests/ref/fate/mjpegb b/tests/ref/fate/mjpegb
index ef8a00b23e..0298274087 100644
--- a/tests/ref/fate/mjpegb
+++ b/tests/ref/fate/mjpegb
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 38400, 0x45311080
0, 1, 1, 1, 38400, 0x9474f731
0, 2, 2, 1, 38400, 0x429ebb12
diff --git a/tests/ref/fate/mkv b/tests/ref/fate/mkv
index 765798cbfe..0e7f6514d0 100644
--- a/tests/ref/fate/mkv
+++ b/tests/ref/fate/mkv
@@ -1,7 +1,15 @@
#extradata 0: 35, 0xc3b20b70
#extradata 1: 2, 0x00b200a1
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 1024x576
+#sar 0: 1/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: aac
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, -42, 0, 41, 63501, 0x139d4c99
0, 0, 84, 41, 5368, 0xd964b678, F=0x0
1, 8, 8, 21, 528, 0x3c990ddf
diff --git a/tests/ref/fate/mkv-1242 b/tests/ref/fate/mkv-1242
index 0ba2beb815..1ba41a04a4 100644
--- a/tests/ref/fate/mkv-1242
+++ b/tests/ref/fate/mkv-1242
@@ -1,7 +1,15 @@
#extradata 0: 93, 0xc2a32e14
#extradata 1: 2, 0x00b200a1
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 1280x718
+#sar 0: 1/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: aac
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, -42, 0, 41, 2969, 0xa7016742
0, 0, 42, 41, 135, 0x33af1a9e, F=0x0
1, 0, 0, 21, 6, 0x027e00e8
diff --git a/tests/ref/fate/motionpixels b/tests/ref/fate/motionpixels
index c875275b89..b376cc2841 100644
--- a/tests/ref/fate/motionpixels
+++ b/tests/ref/fate/motionpixels
@@ -1,4 +1,8 @@
#tb 0: 66667/1000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0xee05b509
0, 1, 1, 1, 230400, 0x23b28b24
0, 2, 2, 1, 230400, 0x4a4d6007
diff --git a/tests/ref/fate/mov-mp3-demux b/tests/ref/fate/mov-mp3-demux
index b4b2ceff32..fc96c58798 100644
--- a/tests/ref/fate/mov-mp3-demux
+++ b/tests/ref/fate/mov-mp3-demux
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: mp3
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 0, 0, 1152, 36, 0x8e260589
0, 1152, 1152, 1152, 36, 0x8e260589
0, 2304, 2304, 1152, 36, 0x8e260589
diff --git a/tests/ref/fate/mpeg2-field-enc b/tests/ref/fate/mpeg2-field-enc
index bf8a01a7cc..4c288a83ef 100644
--- a/tests/ref/fate/mpeg2-field-enc
+++ b/tests/ref/fate/mpeg2-field-enc
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x576
+#sar 0: 16/15
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 10, 10, 1, 622080, 0x088ec02b
0, 11, 11, 1, 622080, 0x7a36db21
diff --git a/tests/ref/fate/mpeg4-packed b/tests/ref/fate/mpeg4-packed
index faf8f5ddb6..4336da0001 100644
--- a/tests/ref/fate/mpeg4-packed
+++ b/tests/ref/fate/mpeg4-packed
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 544x352
+#sar 0: 1/1
0, 0, 0, 1, 287232, 0x17288ed1
0, 1, 1, 1, 287232, 0x17288ed1
0, 2, 2, 1, 287232, 0x232dfda4
diff --git a/tests/ref/fate/msmpeg4v1 b/tests/ref/fate/msmpeg4v1
index d67a0efa17..946ede95c3 100644
--- a/tests/ref/fate/msmpeg4v1
+++ b/tests/ref/fate/msmpeg4v1
@@ -1,4 +1,8 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x240
+#sar 0: 0/1
0, 0, 0, 1, 126720, 0x84284323
0, 1, 1, 1, 126720, 0x336fe236
0, 2, 2, 1, 126720, 0x901f1299
diff --git a/tests/ref/fate/msrle-8bit b/tests/ref/fate/msrle-8bit
index 5db1c244fa..202b3f05cc 100644
--- a/tests/ref/fate/msrle-8bit
+++ b/tests/ref/fate/msrle-8bit
@@ -1,4 +1,8 @@
#tb 0: 83333/500000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 80x48
+#sar 0: 0/1
0, 0, 0, 1, 11520, 0xaf416a66
0, 1, 1, 1, 11520, 0x8ab76654
0, 2, 2, 1, 11520, 0xd22880c4
diff --git a/tests/ref/fate/mss2-pal b/tests/ref/fate/mss2-pal
index ae8bd6fc39..a2fb12fdfc 100644
--- a/tests/ref/fate/mss2-pal
+++ b/tests/ref/fate/mss2-pal
@@ -1,3 +1,7 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x48
+#sar 0: 0/1
0, 0, 0, 0, 9216, 0xd3c106ef
0, 100, 100, 0, 9216, 0x8871f7c2
diff --git a/tests/ref/fate/mss2-pals b/tests/ref/fate/mss2-pals
index ae8bd6fc39..a2fb12fdfc 100644
--- a/tests/ref/fate/mss2-pals
+++ b/tests/ref/fate/mss2-pals
@@ -1,3 +1,7 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x48
+#sar 0: 0/1
0, 0, 0, 0, 9216, 0xd3c106ef
0, 100, 100, 0, 9216, 0x8871f7c2
diff --git a/tests/ref/fate/mss2-rgb555 b/tests/ref/fate/mss2-rgb555
index d15b3b4e6d..10f1f03e7f 100644
--- a/tests/ref/fate/mss2-rgb555
+++ b/tests/ref/fate/mss2-rgb555
@@ -1,3 +1,7 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x48
+#sar 0: 0/1
0, 0, 0, 0, 6144, 0x4145b7ae
0, 100, 100, 0, 6144, 0x3b2b38de
diff --git a/tests/ref/fate/mss2-rgb555s b/tests/ref/fate/mss2-rgb555s
index d15b3b4e6d..10f1f03e7f 100644
--- a/tests/ref/fate/mss2-rgb555s
+++ b/tests/ref/fate/mss2-rgb555s
@@ -1,3 +1,7 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x48
+#sar 0: 0/1
0, 0, 0, 0, 6144, 0x4145b7ae
0, 100, 100, 0, 6144, 0x3b2b38de
diff --git a/tests/ref/fate/mss2-wmv b/tests/ref/fate/mss2-wmv
index c54cff62b4..d9abbb30c9 100644
--- a/tests/ref/fate/mss2-wmv
+++ b/tests/ref/fate/mss2-wmv
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 230400, 0x00000000
0, 3, 3, 1, 230400, 0xaf950008
0, 4, 4, 1, 230400, 0x8d2a0010
diff --git a/tests/ref/fate/msvideo1-16bit b/tests/ref/fate/msvideo1-16bit
index f5c0e64748..d28d92e82f 100644
--- a/tests/ref/fate/msvideo1-16bit
+++ b/tests/ref/fate/msvideo1-16bit
@@ -1,4 +1,8 @@
#tb 0: 33369/500000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 148x148
+#sar 0: 0/1
0, 0, 0, 1, 65712, 0x03ff25b8
0, 1, 1, 1, 65712, 0xfca02276
0, 2, 2, 1, 65712, 0xd23646e4
diff --git a/tests/ref/fate/msvideo1-8bit b/tests/ref/fate/msvideo1-8bit
index 74d54e8b5f..b2714388df 100644
--- a/tests/ref/fate/msvideo1-8bit
+++ b/tests/ref/fate/msvideo1-8bit
@@ -1,4 +1,8 @@
#tb 0: 10000/300003
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 57600, 0x8c3c5ee8
0, 1, 1, 1, 57600, 0xb79800b1
0, 2, 2, 1, 57600, 0x54a221be
diff --git a/tests/ref/fate/mszh b/tests/ref/fate/mszh
index 4ff76ffbac..007fe00c24 100644
--- a/tests/ref/fate/mszh
+++ b/tests/ref/fate/mszh
@@ -1,2 +1,6 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x240
+#sar 0: 0/1
0, 0, 0, 1, 253440, 0x94af61e5
diff --git a/tests/ref/fate/mtv b/tests/ref/fate/mtv
index 9e898ff0b8..81711f7293 100644
--- a/tests/ref/fate/mtv
+++ b/tests/ref/fate/mtv
@@ -1,6 +1,14 @@
#extradata 0: 9, 0x116c033a
#tb 0: 1/16
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 96x64
+#sar 0: 0/1
#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: mp3
+#sample_rate 1: 44100
+#channel_layout 1: 3
0, 0, 0, 1, 12288, 0xc2258ebc
1, 0, 0, 1152, 417, 0xae1cc66a
1, 1152, 1152, 1152, 418, 0xdc3ec850
diff --git a/tests/ref/fate/mv-mvc1 b/tests/ref/fate/mv-mvc1
index 073c95a487..5327af0cf1 100644
--- a/tests/ref/fate/mv-mvc1
+++ b/tests/ref/fate/mv-mvc1
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 384x288
+#sar 0: 0/1
0, 0, 0, 1, 221184, 0x340ab080
0, 1, 1, 1, 221184, 0xc21105a0
0, 2, 2, 1, 221184, 0xa7482ab3
diff --git a/tests/ref/fate/mv-mvc2 b/tests/ref/fate/mv-mvc2
index 99acdc0fb4..7639f3d301 100644
--- a/tests/ref/fate/mv-mvc2
+++ b/tests/ref/fate/mv-mvc2
@@ -1,4 +1,8 @@
#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 168x188
+#sar 0: 1/1
0, 0, 0, 1, 126336, 0xb50e8bb0
0, 1, 1, 1, 126336, 0xdc260cfa
0, 2, 2, 1, 126336, 0x2762f0d9
diff --git a/tests/ref/fate/mv-sgirle b/tests/ref/fate/mv-sgirle
index 60aff0a4b5..3f5de2be28 100644
--- a/tests/ref/fate/mv-sgirle
+++ b/tests/ref/fate/mv-sgirle
@@ -1,4 +1,8 @@
#tb 0: 1/4
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 500x375
+#sar 0: 1/1
0, 0, 0, 1, 187500, 0xf2c26a39
0, 1, 1, 1, 187500, 0xf65e6ea5
0, 2, 2, 1, 187500, 0x804f78d0
diff --git a/tests/ref/fate/mxf-demux b/tests/ref/fate/mxf-demux
index 3d9a2dc49d..66dea1027e 100644
--- a/tests/ref/fate/mxf-demux
+++ b/tests/ref/fate/mxf-demux
@@ -1,6 +1,14 @@
#extradata 0: 18, 0x0b150244
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 352x288
+#sar 0: 16/11
#tb 1: 1/8000
+#media_type 1: audio
+#codec_id 1: pcm_alaw
+#sample_rate 1: 8000
+#channel_layout 1: 3
0, 0, -9223372036854775808, 1, 8468, 0xc0855553
1, 0, 0, 16000, 32000, 0x479155e6
0, 1, -9223372036854775808, 1, 3814, 0xa10783b4, F=0x0
diff --git a/tests/ref/fate/mxf-essencegroup-demux b/tests/ref/fate/mxf-essencegroup-demux
index 8420db97c8..8045cddf76 100644
--- a/tests/ref/fate/mxf-essencegroup-demux
+++ b/tests/ref/fate/mxf-essencegroup-demux
@@ -1,2 +1,6 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 2080768, 0xe99233d9
diff --git a/tests/ref/fate/mxpeg b/tests/ref/fate/mxpeg
index 90af90f0c6..9c5c1fa4bf 100644
--- a/tests/ref/fate/mxpeg
+++ b/tests/ref/fate/mxpeg
@@ -1,4 +1,8 @@
#tb 0: 4/63
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x960
+#sar 0: 0/1
0, 0, 0, 1, 1843200, 0x868a4e64
0, 4, 4, 1, 1843200, 0x8dda4373
0, 6, 6, 1, 1843200, 0xfcde3afc
diff --git a/tests/ref/fate/nc-demux b/tests/ref/fate/nc-demux
index 98318ac874..571665ec69 100644
--- a/tests/ref/fate/nc-demux
+++ b/tests/ref/fate/nc-demux
@@ -1,5 +1,9 @@
#extradata 0: 19, 0x1afd0446
#tb 0: 1/100
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 720x576
+#sar 0: 1/1
0, 0, -9223372036854775808, 1, 19787, 0x75e463f3
0, 1, -9223372036854775808, 1, 11913, 0x0f429c34, F=0x0
0, 2, -9223372036854775808, 1, 14225, 0xbd3c704c, F=0x0
diff --git a/tests/ref/fate/nsv-demux b/tests/ref/fate/nsv-demux
index 0ad08b1a84..7b9c000d9d 100644
--- a/tests/ref/fate/nsv-demux
+++ b/tests/ref/fate/nsv-demux
@@ -1,5 +1,13 @@
#tb 0: 1001/15000
+#media_type 0: video
+#codec_id 0: vp3
+#dimensions 0: 160x112
+#sar 0: 0/1
#tb 1: 1/30000000
+#media_type 1: audio
+#codec_id 1: mp3
+#sample_rate 1: 11025
+#channel_layout 1: 4
0, 0, 0, 1, 12, 0x1396035f
0, 1, 1, 1, 24, 0x8ab80ac7, F=0x0
0, 2, 2, 1, 208, 0x1de1603e, F=0x0
diff --git a/tests/ref/fate/nuv-rtjpeg b/tests/ref/fate/nuv-rtjpeg
index 96ead33cbd..e4a5be6263 100644
--- a/tests/ref/fate/nuv-rtjpeg
+++ b/tests/ref/fate/nuv-rtjpeg
@@ -1,4 +1,8 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 1/1
0, 4, 4, 1, 460800, 0x54aedafe
0, 5, 5, 1, 460800, 0xb7aa8b56
0, 6, 6, 1, 460800, 0x283ea3b5
diff --git a/tests/ref/fate/nuv-rtjpeg-fh b/tests/ref/fate/nuv-rtjpeg-fh
index b2e04cb015..0d50b44977 100644
--- a/tests/ref/fate/nuv-rtjpeg-fh
+++ b/tests/ref/fate/nuv-rtjpeg-fh
@@ -1,4 +1,8 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x288
+#sar 0: 1/1
0, 80, 80, 1, 221184, 0xdaf54f83
0, 82, 82, 1, 221184, 0xeea3e3b4
0, 83, 83, 1, 221184, 0x5f1a8525
diff --git a/tests/ref/fate/oggopus-demux b/tests/ref/fate/oggopus-demux
index acbfa4b366..4621af6a38 100644
--- a/tests/ref/fate/oggopus-demux
+++ b/tests/ref/fate/oggopus-demux
@@ -1,5 +1,9 @@
#extradata 0: 19, 0x399c0471
#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: opus
+#sample_rate 0: 48000
+#channel_layout 0: 3
0, -356, -356, 960, 402, 0x89b1c40f
0, 604, 604, 960, 216, 0x7bf97146
0, 1564, 1564, 960, 215, 0x6cb86d8b
diff --git a/tests/ref/fate/oggvp8-demux b/tests/ref/fate/oggvp8-demux
index 96beb8c96f..fc686d4d95 100644
--- a/tests/ref/fate/oggvp8-demux
+++ b/tests/ref/fate/oggvp8-demux
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 5014, 0x4798fa33
0, 1, 1, 1, 822, 0x596486c5, F=0x0
0, 2, 2, 1, 840, 0xf06490ba, F=0x0
diff --git a/tests/ref/fate/on2avc b/tests/ref/fate/on2avc
index ac08dae9b8..2125cc6837 100644
--- a/tests/ref/fate/on2avc
+++ b/tests/ref/fate/on2avc
@@ -1,4 +1,8 @@
#tb 0: 1/16000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 16000
+#channel_layout 0: 4
0, 0, 0, 1024, 2048, 0x00000000
0, 1024, 1024, 1024, 2048, 0x96ee1301
0, 2048, 2048, 1024, 2048, 0xe2a81605
diff --git a/tests/ref/fate/paf-audio b/tests/ref/fate/paf-audio
index ba47d5d85d..bb93ad50e2 100644
--- a/tests/ref/fate/paf-audio
+++ b/tests/ref/fate/paf-audio
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 3
0, 0, 0, 57330, 229320, 0x062508b4
0, 57330, 57330, 57330, 229320, 0x0a966cbf
0, 114660, 114660, 57330, 229320, 0xee9bad45
diff --git a/tests/ref/fate/paf-demux b/tests/ref/fate/paf-demux
index 857fb5457a..0f281fe776 100644
--- a/tests/ref/fate/paf-demux
+++ b/tests/ref/fate/paf-demux
@@ -1,5 +1,13 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: paf_video
+#dimensions 0: 256x192
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: paf_audio
+#sample_rate 1: 22050
+#channel_layout 1: 3
0, 0, 0, 1, 262144, 0x7f9a3c6a
1, 0, 0, 57330, 131072, 0x255a6ac2
0, 1, 1, 1, 260600, 0x0329e6f4, F=0x0
diff --git a/tests/ref/fate/paf-video b/tests/ref/fate/paf-video
index ed37c288c3..aa1fa82f0e 100644
--- a/tests/ref/fate/paf-video
+++ b/tests/ref/fate/paf-video
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x192
+#sar 0: 0/1
0, 0, 0, 1, 147456, 0x00000000
0, 1, 1, 1, 147456, 0x7be40798
0, 2, 2, 1, 147456, 0x44bc2fc0
diff --git a/tests/ref/fate/pcm-planar b/tests/ref/fate/pcm-planar
index 91b4a78cd4..5339447084 100644
--- a/tests/ref/fate/pcm-planar
+++ b/tests/ref/fate/pcm-planar
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 0, 0, 1471, 5884, 0x00000000
0, 1471, 1471, 1471, 5884, 0x00000000
0, 2942, 2942, 1472, 5888, 0x00000000
diff --git a/tests/ref/fate/pcm_dvd b/tests/ref/fate/pcm_dvd
index 6037451006..8aa87cdea5 100644
--- a/tests/ref/fate/pcm_dvd
+++ b/tests/ref/fate/pcm_dvd
@@ -1,4 +1,8 @@
#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout 0: 3
0, 0, 0, 334, 1336, 0x8e3c0abc
0, 400, 400, 334, 1336, 0x99c41108
0, 720, 720, 334, 1336, 0xd65be322
diff --git a/tests/ref/fate/pict b/tests/ref/fate/pict
index 0b764fc41f..f0f2e217ec 100644
--- a/tests/ref/fate/pict
+++ b/tests/ref/fate/pict
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x64
+#sar 0: 0/1
0, 0, 0, 1, 49152, 0x144804b0
diff --git a/tests/ref/fate/pictor b/tests/ref/fate/pictor
index c89b6087bb..2c7cf93050 100644
--- a/tests/ref/fate/pictor
+++ b/tests/ref/fate/pictor
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 312x206
+#sar 0: 0/1
0, 0, 0, 1, 192816, 0x29b9c158
diff --git a/tests/ref/fate/pmp-demux b/tests/ref/fate/pmp-demux
index b481db7354..4b66427c43 100644
--- a/tests/ref/fate/pmp-demux
+++ b/tests/ref/fate/pmp-demux
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: mp3
+#sample_rate 0: 44100
+#channel_layout 0: 3
0, 0, 0, 1152, 417, 0xcb873fba
0, 1152, 1152, 1152, 104, 0x6d521c5a
0, 2304, 2304, 1152, 104, 0xb3af1d64
diff --git a/tests/ref/fate/png-gray16 b/tests/ref/fate/png-gray16
index 66fc601850..cf0d9c270b 100644
--- a/tests/ref/fate/png-gray16
+++ b/tests/ref/fate/png-gray16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0xc71b77cd
diff --git a/tests/ref/fate/png-gray8 b/tests/ref/fate/png-gray8
index 9d30db6516..77541ca3e0 100644
--- a/tests/ref/fate/png-gray8
+++ b/tests/ref/fate/png-gray8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0x55121b03
diff --git a/tests/ref/fate/png-rgb24 b/tests/ref/fate/png-rgb24
index c383836853..54c8df877f 100644
--- a/tests/ref/fate/png-rgb24
+++ b/tests/ref/fate/png-rgb24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 72/72
0, 0, 0, 1, 49152, 0xe0013dee
diff --git a/tests/ref/fate/png-rgb48 b/tests/ref/fate/png-rgb48
index b1159f1867..dee849f232 100644
--- a/tests/ref/fate/png-rgb48
+++ b/tests/ref/fate/png-rgb48
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0xcf0e902a
diff --git a/tests/ref/fate/png-rgba b/tests/ref/fate/png-rgba
index f20fe0c693..e4d5bb8e23 100644
--- a/tests/ref/fate/png-rgba
+++ b/tests/ref/fate/png-rgba
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0x5017bc21
diff --git a/tests/ref/fate/png-ya16 b/tests/ref/fate/png-ya16
index dffdaf7038..2797ec8831 100644
--- a/tests/ref/fate/png-ya16
+++ b/tests/ref/fate/png-ya16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0x0801ce78
diff --git a/tests/ref/fate/png-ya8 b/tests/ref/fate/png-ya8
index 1318af80c6..6fca461fae 100644
--- a/tests/ref/fate/png-ya8
+++ b/tests/ref/fate/png-ya8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
0, 0, 0, 1, 49152, 0x5a1481f8
diff --git a/tests/ref/fate/pngparser b/tests/ref/fate/pngparser
index 93005cff83..111c41df58 100644
--- a/tests/ref/fate/pngparser
+++ b/tests/ref/fate/pngparser
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 20x20
+#sar 0: 3543/3543
0, 0, 0, 1, 1600, 0x01a481a9
0, 1, 1, 1, 1600, 0x01a481a9
0, 2, 2, 1, 1600, 0x01a481a9
diff --git a/tests/ref/fate/prores-422 b/tests/ref/fate/prores-422
index f4025112b0..1ae4f5f77e 100644
--- a/tests/ref/fate/prores-422
+++ b/tests/ref/fate/prores-422
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x57127dd9
0, 1, 1, 1, 8294400, 0x57127dd9
diff --git a/tests/ref/fate/prores-422_hq b/tests/ref/fate/prores-422_hq
index 61a5014a2d..4b4010dfc8 100644
--- a/tests/ref/fate/prores-422_hq
+++ b/tests/ref/fate/prores-422_hq
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x978851f4
0, 1, 1, 1, 8294400, 0x978851f4
diff --git a/tests/ref/fate/prores-422_lt b/tests/ref/fate/prores-422_lt
index 3113c8a522..853c50035d 100644
--- a/tests/ref/fate/prores-422_lt
+++ b/tests/ref/fate/prores-422_lt
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x4ca110c7
0, 1, 1, 1, 8294400, 0x4ca110c7
diff --git a/tests/ref/fate/prores-422_proxy b/tests/ref/fate/prores-422_proxy
index 5562dce7c6..b77af3be1f 100644
--- a/tests/ref/fate/prores-422_proxy
+++ b/tests/ref/fate/prores-422_proxy
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 8294400, 0x007ba770
0, 1, 1, 1, 8294400, 0x007ba770
diff --git a/tests/ref/fate/prores-alpha b/tests/ref/fate/prores-alpha
index d64cfd55a6..f451d83ae9 100644
--- a/tests/ref/fate/prores-alpha
+++ b/tests/ref/fate/prores-alpha
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 16588800, 0x8e4dac48
0, 1, 1, 1, 16588800, 0x8e4dac48
diff --git a/tests/ref/fate/prores-alpha_skip b/tests/ref/fate/prores-alpha_skip
index 559ec2be17..a17cef810c 100644
--- a/tests/ref/fate/prores-alpha_skip
+++ b/tests/ref/fate/prores-alpha_skip
@@ -1,3 +1,7 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
0, 0, 0, 1, 12441600, 0xf11685dd
0, 1, 1, 1, 12441600, 0xf11685dd
diff --git a/tests/ref/fate/prores-transparency b/tests/ref/fate/prores-transparency
index 745e966e58..6a9c786f29 100644
--- a/tests/ref/fate/prores-transparency
+++ b/tests/ref/fate/prores-transparency
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, 0, 0, 1, 16588800, 0x7163b01a
1, 0, 0, 1024, 4096, 0x00000000
1, 1024, 1024, 896, 3584, 0x00000000
diff --git a/tests/ref/fate/prores-transparency_skip b/tests/ref/fate/prores-transparency_skip
index 5fd8d0b25a..569d2ba2c7 100644
--- a/tests/ref/fate/prores-transparency_skip
+++ b/tests/ref/fate/prores-transparency_skip
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 48000
+#channel_layout 1: 3
0, 0, 0, 1, 12441600, 0x627d1548
1, 0, 0, 1024, 4096, 0x00000000
1, 1024, 1024, 896, 3584, 0x00000000
diff --git a/tests/ref/fate/psx-str-demux b/tests/ref/fate/psx-str-demux
index 42c5731142..e346c52509 100644
--- a/tests/ref/fate/psx-str-demux
+++ b/tests/ref/fate/psx-str-demux
@@ -1,5 +1,13 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: mdec
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 4/75
+#media_type 1: audio
+#codec_id 1: adpcm_xa
+#sample_rate 1: 37800
+#channel_layout 1: 3
0, 0, 0, 1, 8832, 0x01ad3eeb
1, 0, 0, 1, 2304, 0xf0ad1000
1, 1, 1, 1, 2304, 0x69269ce6
diff --git a/tests/ref/fate/ptx b/tests/ref/fate/ptx
index 7edbbddc4c..3dee9c21fd 100644
--- a/tests/ref/fate/ptx
+++ b/tests/ref/fate/ptx
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x128
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0x30479950
diff --git a/tests/ref/fate/pva-demux b/tests/ref/fate/pva-demux
index 67d4844e13..4059af4f75 100644
--- a/tests/ref/fate/pva-demux
+++ b/tests/ref/fate/pva-demux
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 544x576
+#sar 0: 24/17
#tb 1: 1/90000
+#media_type 1: audio
+#codec_id 1: mp2
+#sample_rate 1: 48000
+#channel_layout 1: 3
1, 0, 0, 2160, 384, 0x071abcc8
1, 2160, 2160, 2160, 384, 0x31c9aee0
1, 4320, 4320, 2160, 384, 0xa50eaa94
diff --git a/tests/ref/fate/qpeg b/tests/ref/fate/qpeg
index eca2924af7..1a988874e2 100644
--- a/tests/ref/fate/qpeg
+++ b/tests/ref/fate/qpeg
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x0b712fba
0, 1, 1, 1, 230400, 0x30252ac7
0, 2, 2, 1, 230400, 0x6d98a787
diff --git a/tests/ref/fate/qtrle-16bit b/tests/ref/fate/qtrle-16bit
index 2021f2a6e8..57651de396 100644
--- a/tests/ref/fate/qtrle-16bit
+++ b/tests/ref/fate/qtrle-16bit
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 57600, 0xcf2d39fc
0, 1, 1, 1, 57600, 0xfc9f6bed
0, 2, 2, 1, 57600, 0x3f5805bb
diff --git a/tests/ref/fate/qtrle-1bit b/tests/ref/fate/qtrle-1bit
index 3eccc27d06..d2f10bc9b8 100644
--- a/tests/ref/fate/qtrle-1bit
+++ b/tests/ref/fate/qtrle-1bit
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 77824, 0xc298c68b
0, 1, 1, 1, 77824, 0x22f7c63e
0, 2, 2, 1, 77824, 0x2aacc669
diff --git a/tests/ref/fate/qtrle-24bit b/tests/ref/fate/qtrle-24bit
index a21b0996f4..545e82e3f1 100644
--- a/tests/ref/fate/qtrle-24bit
+++ b/tests/ref/fate/qtrle-24bit
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 57600, 0x3718ad00
0, 1, 1, 1, 57600, 0x54861558
0, 2, 2, 1, 57600, 0xea1d6233
diff --git a/tests/ref/fate/qtrle-2bit b/tests/ref/fate/qtrle-2bit
index 95c0f7c391..633dd1431d 100644
--- a/tests/ref/fate/qtrle-2bit
+++ b/tests/ref/fate/qtrle-2bit
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0xb1ee55dc
0, 1, 1, 1, 230400, 0x97c580bf
0, 2, 2, 1, 230400, 0xd4bd57e8
diff --git a/tests/ref/fate/qtrle-32bit b/tests/ref/fate/qtrle-32bit
index ed6dc03a26..aaaf8d6470 100644
--- a/tests/ref/fate/qtrle-32bit
+++ b/tests/ref/fate/qtrle-32bit
@@ -1,4 +1,8 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
0, 0, 0, 1, 1036800, 0x2a90d062
0, 1, 1, 1, 1036800, 0x6565aded
0, 2, 2, 1, 1036800, 0xf0b587d2
diff --git a/tests/ref/fate/qtrle-4bit b/tests/ref/fate/qtrle-4bit
index 74eb4ab078..b09920b972 100644
--- a/tests/ref/fate/qtrle-4bit
+++ b/tests/ref/fate/qtrle-4bit
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x0655b3d9
0, 1, 1, 1, 230400, 0x9c626fd3
0, 2, 2, 1, 230400, 0x5bc95868
diff --git a/tests/ref/fate/qtrle-8bit b/tests/ref/fate/qtrle-8bit
index 5b30fbbf5c..8da113d83e 100644
--- a/tests/ref/fate/qtrle-8bit
+++ b/tests/ref/fate/qtrle-8bit
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x1492e3ed
0, 1, 1, 1, 921600, 0x1492e3ed
0, 2, 2, 1, 921600, 0x1492e3ed
diff --git a/tests/ref/fate/quickdraw b/tests/ref/fate/quickdraw
index eccb477fb7..c3bb0a5dcf 100644
--- a/tests/ref/fate/quickdraw
+++ b/tests/ref/fate/quickdraw
@@ -1,3 +1,7 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0xc0e68764
0, 2, 2, 1, 921600, 0x01a16629
diff --git a/tests/ref/fate/r210 b/tests/ref/fate/r210
index 45bb10c2f4..e3686fe05d 100644
--- a/tests/ref/fate/r210
+++ b/tests/ref/fate/r210
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1843200, 0xbd414b93
0, 1, 1, 1, 1843200, 0x23298f1f
0, 2, 2, 1, 1843200, 0x5a56df19
diff --git a/tests/ref/fate/ra3-144 b/tests/ref/fate/ra3-144
index 40bcaedba7..b5fb47baae 100644
--- a/tests/ref/fate/ra3-144
+++ b/tests/ref/fate/ra3-144
@@ -1,4 +1,8 @@
#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 8000
+#channel_layout 0: 4
0, 0, 0, 160, 320, 0x00000000
0, 160, 160, 160, 320, 0x4cfd5d74
0, 320, 320, 160, 320, 0xbb60fa3d
diff --git a/tests/ref/fate/redcode-demux b/tests/ref/fate/redcode-demux
index a7e28380e8..c08bbc87d0 100644
--- a/tests/ref/fate/redcode-demux
+++ b/tests/ref/fate/redcode-demux
@@ -1,5 +1,13 @@
#tb 0: 1/240000
+#media_type 0: video
+#codec_id 0: jpeg2000
+#dimensions 0: 2048x1152
+#sar 0: 0/1
#tb 1: 1/240000
+#media_type 1: audio
+#codec_id 1: pcm_s32be
+#sample_rate 1: 48000
+#channel_layout 1: 4
0, 0, 0, 10010, 1626280, 0x5768c7d6
1, 0, 0, 18140, 14816, 0xd185e8c7
0, 10010, 10010, 10010, 1626092, 0x070bd882
diff --git a/tests/ref/fate/rl2 b/tests/ref/fate/rl2
index d7dd23dd20..9189822503 100644
--- a/tests/ref/fate/rl2
+++ b/tests/ref/fate/rl2
@@ -1,4 +1,8 @@
#tb 0: 1171/11025
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x7112a667
0, 1, 1, 1, 192000, 0x6936abf3
0, 2, 2, 1, 192000, 0xb1f08981
diff --git a/tests/ref/fate/roqvideo b/tests/ref/fate/roqvideo
index 9febedba0d..36eec54539 100644
--- a/tests/ref/fate/roqvideo
+++ b/tests/ref/fate/roqvideo
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0x56995aac
0, 1, 1, 1, 393216, 0xf9ed5d6c
0, 2, 2, 1, 393216, 0xd3285d75
diff --git a/tests/ref/fate/rpza b/tests/ref/fate/rpza
index a9ae3bbadb..3ad7e4cce1 100644
--- a/tests/ref/fate/rpza
+++ b/tests/ref/fate/rpza
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x26a4728c
0, 1, 1, 1, 230400, 0xa5ff0a21
0, 2, 2, 1, 230400, 0x479d767d
diff --git a/tests/ref/fate/rscc b/tests/ref/fate/rscc
index 69dbfe158e..7c1bb49939 100644
--- a/tests/ref/fate/rscc
+++ b/tests/ref/fate/rscc
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1760x968
+#sar 0: 0/1
0, 0, 0, 1, 6814720, 0x1365f8ef
0, 1, 1, 1, 6814720, 0x90838983
0, 2, 2, 1, 6814720, 0xf0cc3131
diff --git a/tests/ref/fate/rv20-1239 b/tests/ref/fate/rv20-1239
index 1c3f546f75..3be1b8bc66 100644
--- a/tests/ref/fate/rv20-1239
+++ b/tests/ref/fate/rv20-1239
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 28800, 0xe41c0ee2
0, 1, 1, 1, 28800, 0x08054520
0, 2, 2, 1, 28800, 0x272b3ed7
diff --git a/tests/ref/fate/rv30 b/tests/ref/fate/rv30
index 70db647985..c54aeea561 100644
--- a/tests/ref/fate/rv30
+++ b/tests/ref/fate/rv30
@@ -1,4 +1,8 @@
#tb 0: 32768/982057
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x240
+#sar 0: 0/1
0, 0, 0, 1, 126720, 0xcefaec47
0, 1, 1, 1, 126720, 0xa416ece5
0, 2, 2, 1, 126720, 0xa416ece5
diff --git a/tests/ref/fate/rv40 b/tests/ref/fate/rv40
index 6159859cad..9cbb8440aa 100644
--- a/tests/ref/fate/rv40
+++ b/tests/ref/fate/rv40
@@ -1,4 +1,8 @@
#tb 0: 32768/785647
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 576x320
+#sar 0: 0/1
0, 0, 0, 1, 276480, 0x5f7a0d4f
0, 1, 1, 1, 276480, 0x5f7a0d4f
0, 2, 2, 1, 276480, 0x5f7a0d4f
diff --git a/tests/ref/fate/sanm b/tests/ref/fate/sanm
index a882118b1b..7a6690f13b 100644
--- a/tests/ref/fate/sanm
+++ b/tests/ref/fate/sanm
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x00000000
0, 1, 1, 1, 921600, 0x00000000
0, 2, 2, 1, 921600, 0x00000000
diff --git a/tests/ref/fate/screenpresso b/tests/ref/fate/screenpresso
index bbdffb4433..74195d487d 100644
--- a/tests/ref/fate/screenpresso
+++ b/tests/ref/fate/screenpresso
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 0/1
0, 0, 0, 1, 691200, 0xfdbdfad6
0, 1, 1, 1, 691200, 0xc5feb961
0, 4, 4, 1, 691200, 0x4c8c7e23
diff --git a/tests/ref/fate/sgi-gray16 b/tests/ref/fate/sgi-gray16
index 0908746a76..8dba0f49c9 100644
--- a/tests/ref/fate/sgi-gray16
+++ b/tests/ref/fate/sgi-gray16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 262144, 0x6c27f084
diff --git a/tests/ref/fate/sgi-gray16-rle b/tests/ref/fate/sgi-gray16-rle
index 09903d5ba9..472835a1d1 100644
--- a/tests/ref/fate/sgi-gray16-rle
+++ b/tests/ref/fate/sgi-gray16-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 262144, 0x65ef57ff
diff --git a/tests/ref/fate/sgi-gray8 b/tests/ref/fate/sgi-gray8
index b0e060699c..55c12dcb66 100644
--- a/tests/ref/fate/sgi-gray8
+++ b/tests/ref/fate/sgi-gray8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 131072, 0xb0702a94
diff --git a/tests/ref/fate/sgi-gray8-rle b/tests/ref/fate/sgi-gray8-rle
index b0e060699c..55c12dcb66 100644
--- a/tests/ref/fate/sgi-gray8-rle
+++ b/tests/ref/fate/sgi-gray8-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 131072, 0xb0702a94
diff --git a/tests/ref/fate/sgi-rgb24 b/tests/ref/fate/sgi-rgb24
index 30aca1cead..4326cabe00 100644
--- a/tests/ref/fate/sgi-rgb24
+++ b/tests/ref/fate/sgi-rgb24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0xa9b28fd9
diff --git a/tests/ref/fate/sgi-rgb24-rle b/tests/ref/fate/sgi-rgb24-rle
index 1128de56d9..d21bde15ba 100644
--- a/tests/ref/fate/sgi-rgb24-rle
+++ b/tests/ref/fate/sgi-rgb24-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0xe96e1de2
diff --git a/tests/ref/fate/sgi-rgb48 b/tests/ref/fate/sgi-rgb48
index 8f3ca50b10..29fe302514 100644
--- a/tests/ref/fate/sgi-rgb48
+++ b/tests/ref/fate/sgi-rgb48
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xee4aa667
diff --git a/tests/ref/fate/sgi-rgb48-rle b/tests/ref/fate/sgi-rgb48-rle
index 2cf0259695..49fc973017 100644
--- a/tests/ref/fate/sgi-rgb48-rle
+++ b/tests/ref/fate/sgi-rgb48-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xbc743bc4
diff --git a/tests/ref/fate/sgi-rgba b/tests/ref/fate/sgi-rgba
index 058f5f99c3..6a2d176582 100644
--- a/tests/ref/fate/sgi-rgba
+++ b/tests/ref/fate/sgi-rgba
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 524288, 0x4ee5adbb
diff --git a/tests/ref/fate/sgi-rgba-rle b/tests/ref/fate/sgi-rgba-rle
index 058f5f99c3..6a2d176582 100644
--- a/tests/ref/fate/sgi-rgba-rle
+++ b/tests/ref/fate/sgi-rgba-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 524288, 0x4ee5adbb
diff --git a/tests/ref/fate/sgi-rgba64 b/tests/ref/fate/sgi-rgba64
index f4e939ec73..00181dcb3b 100644
--- a/tests/ref/fate/sgi-rgba64
+++ b/tests/ref/fate/sgi-rgba64
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 1048576, 0xc657e22b
diff --git a/tests/ref/fate/sgi-rgba64-rle b/tests/ref/fate/sgi-rgba64-rle
index cdf5fd0e32..354d391826 100644
--- a/tests/ref/fate/sgi-rgba64-rle
+++ b/tests/ref/fate/sgi-rgba64-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 0/1
0, 0, 0, 1, 1048576, 0xb619d0f1
diff --git a/tests/ref/fate/sierra-vmd-audio b/tests/ref/fate/sierra-vmd-audio
index 13d3567e11..2b9f8e84f2 100644
--- a/tests/ref/fate/sierra-vmd-audio
+++ b/tests/ref/fate/sierra-vmd-audio
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 61740, 123480, 0x3a794c13
0, 61740, 61740, 2205, 4410, 0x109d04e0
0, 63945, 63945, 2205, 4410, 0x224d244f
diff --git a/tests/ref/fate/sierra-vmd-video b/tests/ref/fate/sierra-vmd-video
index 668faeea56..b1b22e34e1 100644
--- a/tests/ref/fate/sierra-vmd-video
+++ b/tests/ref/fate/sierra-vmd-video
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x54b4bfe2
0, 1, 1, 1, 230400, 0x9e1460e3
0, 2, 2, 1, 230400, 0x8136f21c
diff --git a/tests/ref/fate/siff-demux b/tests/ref/fate/siff-demux
index 692e504755..687a51828f 100644
--- a/tests/ref/fate/siff-demux
+++ b/tests/ref/fate/siff-demux
@@ -1,5 +1,13 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: vb
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_u8
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 1, 15152, 0x14fc0f1f
1, 0, 0, 22050, 22050, 0xa7d60d27
0, 1, 1, 1, 15344, 0x31614bd7
diff --git a/tests/ref/fate/smacker-audio b/tests/ref/fate/smacker-audio
index 442f479dd8..fbeb4be584 100644
--- a/tests/ref/fate/smacker-audio
+++ b/tests/ref/fate/smacker-audio
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 23620, 47240, 0x9974897c
0, 23620, 23620, 1564, 3128, 0x7e4064b4
0, 25184, 25184, 1564, 3128, 0x80883301
diff --git a/tests/ref/fate/smacker-video b/tests/ref/fate/smacker-video
index 8bd307159f..9325d91a22 100644
--- a/tests/ref/fate/smacker-video
+++ b/tests/ref/fate/smacker-video
@@ -1,4 +1,8 @@
#tb 0: 71/1000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x8926d7fc
0, 1, 1, 1, 192000, 0x2506d384
0, 2, 2, 1, 192000, 0x9a8dc93a
diff --git a/tests/ref/fate/smc b/tests/ref/fate/smc
index 1635b37e55..4802407c73 100644
--- a/tests/ref/fate/smc
+++ b/tests/ref/fate/smc
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0xf814fc90
0, 1, 1, 1, 230400, 0xe1b13137
0, 2, 2, 1, 230400, 0xa7f4d408
diff --git a/tests/ref/fate/smjpeg-demux b/tests/ref/fate/smjpeg-demux
index 637f28c663..242a22fd6c 100644
--- a/tests/ref/fate/smjpeg-demux
+++ b/tests/ref/fate/smjpeg-demux
@@ -1,5 +1,13 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: mjpeg
+#dimensions 0: 320x240
+#sar 0: 1/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: adpcm_ima_smjpeg
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 0, 734, 0x5a042c2c
1, 0, 0, 23, 260, 0x00000000
1, 23, 23, 23, 260, 0x00000000
diff --git a/tests/ref/fate/smvjpeg b/tests/ref/fate/smvjpeg
index 1a012cd942..360fad6595 100644
--- a/tests/ref/fate/smvjpeg
+++ b/tests/ref/fate/smvjpeg
@@ -1,4 +1,8 @@
#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x160
+#sar 0: 0/1
0, 0, 0, 1, 30720, 0x3a821807
0, 1, 1, 1, 30720, 0x95168e5d
0, 2, 2, 1, 30720, 0xd4d98e45
diff --git a/tests/ref/fate/sp5x b/tests/ref/fate/sp5x
index 986c111981..603535bad2 100644
--- a/tests/ref/fate/sp5x
+++ b/tests/ref/fate/sp5x
@@ -1,5 +1,13 @@
#tb 0: 513/5000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
#tb 1: 1/8000
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 8000
+#channel_layout 1: 4
0, 0, 0, 1, 115200, 0x8ebcb7f8
1, 0, 0, 1024, 2048, 0x366ee71c
0, 1, 1, 1, 115200, 0x1fa8e673
diff --git a/tests/ref/fate/sub2video b/tests/ref/fate/sub2video
index 3a03cbf64a..ace6d38538 100644
--- a/tests/ref/fate/sub2video
+++ b/tests/ref/fate/sub2video
@@ -1,6 +1,12 @@
#extradata 1: 150, 0x7c99258b
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 0/1
#tb 1: 1/1000
+#media_type 1: subtitle
+#codec_id 1: dvd_subtitle
0, 0, 0, 1, 518400, 0x83c27b82
0, 1, 1, 1, 518400, 0x4051c7f9
0, 2, 2, 1, 518400, 0xfb00e17e
diff --git a/tests/ref/fate/sunraster-1bit-raw b/tests/ref/fate/sunraster-1bit-raw
index 123e245217..a55a541ed1 100644
--- a/tests/ref/fate/sunraster-1bit-raw
+++ b/tests/ref/fate/sunraster-1bit-raw
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0x6d16e246
diff --git a/tests/ref/fate/sunraster-1bit-rle b/tests/ref/fate/sunraster-1bit-rle
index 123e245217..a55a541ed1 100644
--- a/tests/ref/fate/sunraster-1bit-rle
+++ b/tests/ref/fate/sunraster-1bit-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0x6d16e246
diff --git a/tests/ref/fate/sunraster-24bit-raw b/tests/ref/fate/sunraster-24bit-raw
index fa059ef320..dc966098eb 100644
--- a/tests/ref/fate/sunraster-24bit-raw
+++ b/tests/ref/fate/sunraster-24bit-raw
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xb4d417bf
diff --git a/tests/ref/fate/sunraster-24bit-rle b/tests/ref/fate/sunraster-24bit-rle
index fa059ef320..dc966098eb 100644
--- a/tests/ref/fate/sunraster-24bit-rle
+++ b/tests/ref/fate/sunraster-24bit-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xb4d417bf
diff --git a/tests/ref/fate/sunraster-8bit-raw b/tests/ref/fate/sunraster-8bit-raw
index 659b433047..94a1014acc 100644
--- a/tests/ref/fate/sunraster-8bit-raw
+++ b/tests/ref/fate/sunraster-8bit-raw
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xf4364008
diff --git a/tests/ref/fate/sunraster-8bit-rle b/tests/ref/fate/sunraster-8bit-rle
index 659b433047..94a1014acc 100644
--- a/tests/ref/fate/sunraster-8bit-rle
+++ b/tests/ref/fate/sunraster-8bit-rle
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0xf4364008
diff --git a/tests/ref/fate/sunraster-8bit_gray-raw b/tests/ref/fate/sunraster-8bit_gray-raw
index 455af5f612..d33a13c57c 100644
--- a/tests/ref/fate/sunraster-8bit_gray-raw
+++ b/tests/ref/fate/sunraster-8bit_gray-raw
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0x5859b48e
diff --git a/tests/ref/fate/svq1 b/tests/ref/fate/svq1
index 3bcf715a61..d53e2952e4 100644
--- a/tests/ref/fate/svq1
+++ b/tests/ref/fate/svq1
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 21600, 0x7f9389e3
0, 1, 1, 1, 21600, 0xcebb8896
0, 2, 2, 1, 21600, 0xef51860a
diff --git a/tests/ref/fate/svq1-headerswap b/tests/ref/fate/svq1-headerswap
index d9f9597354..81df22754a 100644
--- a/tests/ref/fate/svq1-headerswap
+++ b/tests/ref/fate/svq1-headerswap
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 293x178
+#sar 0: 0/1
0, 0, 0, 1, 58814, 0x5caad04b
0, 1, 1, 1, 58814, 0x98d8ceb8
0, 2, 2, 1, 58814, 0x8925cdb0
diff --git a/tests/ref/fate/svq3 b/tests/ref/fate/svq3
index 073d10b366..5d90c6b57a 100644
--- a/tests/ref/fate/svq3
+++ b/tests/ref/fate/svq3
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 115200, 0x2c810465
0, 1, 1, 1, 115200, 0x010b5765
0, 2, 2, 1, 115200, 0x2be11a4e
diff --git a/tests/ref/fate/targa-conformance-CBW8 b/tests/ref/fate/targa-conformance-CBW8
index 60270d7996..be4bdc3b28 100644
--- a/tests/ref/fate/targa-conformance-CBW8
+++ b/tests/ref/fate/targa-conformance-CBW8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x267e21ef
diff --git a/tests/ref/fate/targa-conformance-CCM8 b/tests/ref/fate/targa-conformance-CCM8
index 45bb18167b..d30fa724f6 100644
--- a/tests/ref/fate/targa-conformance-CCM8
+++ b/tests/ref/fate/targa-conformance-CCM8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/tests/ref/fate/targa-conformance-CTC16 b/tests/ref/fate/targa-conformance-CTC16
index e848ff8668..15dfafdeb3 100644
--- a/tests/ref/fate/targa-conformance-CTC16
+++ b/tests/ref/fate/targa-conformance-CTC16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0xa6b3d20d
diff --git a/tests/ref/fate/targa-conformance-CTC24 b/tests/ref/fate/targa-conformance-CTC24
index c95f406b8e..d0b7d6695f 100644
--- a/tests/ref/fate/targa-conformance-CTC24
+++ b/tests/ref/fate/targa-conformance-CTC24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 49152, 0xaca4bc29
diff --git a/tests/ref/fate/targa-conformance-CTC32 b/tests/ref/fate/targa-conformance-CTC32
index aad3bfc955..1c43896a3b 100644
--- a/tests/ref/fate/targa-conformance-CTC32
+++ b/tests/ref/fate/targa-conformance-CTC32
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 65536, 0xcf98bc29
diff --git a/tests/ref/fate/targa-conformance-UBW8 b/tests/ref/fate/targa-conformance-UBW8
index 60270d7996..be4bdc3b28 100644
--- a/tests/ref/fate/targa-conformance-UBW8
+++ b/tests/ref/fate/targa-conformance-UBW8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x267e21ef
diff --git a/tests/ref/fate/targa-conformance-UCM8 b/tests/ref/fate/targa-conformance-UCM8
index 45bb18167b..d30fa724f6 100644
--- a/tests/ref/fate/targa-conformance-UCM8
+++ b/tests/ref/fate/targa-conformance-UCM8
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/tests/ref/fate/targa-conformance-UTC16 b/tests/ref/fate/targa-conformance-UTC16
index e848ff8668..15dfafdeb3 100644
--- a/tests/ref/fate/targa-conformance-UTC16
+++ b/tests/ref/fate/targa-conformance-UTC16
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 32768, 0xa6b3d20d
diff --git a/tests/ref/fate/targa-conformance-UTC24 b/tests/ref/fate/targa-conformance-UTC24
index c95f406b8e..d0b7d6695f 100644
--- a/tests/ref/fate/targa-conformance-UTC24
+++ b/tests/ref/fate/targa-conformance-UTC24
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 49152, 0xaca4bc29
diff --git a/tests/ref/fate/targa-conformance-UTC32 b/tests/ref/fate/targa-conformance-UTC32
index aad3bfc955..1c43896a3b 100644
--- a/tests/ref/fate/targa-conformance-UTC32
+++ b/tests/ref/fate/targa-conformance-UTC32
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
0, 0, 0, 1, 65536, 0xcf98bc29
diff --git a/tests/ref/fate/targa-top-to-bottom b/tests/ref/fate/targa-top-to-bottom
index 4d9577ae74..6cf1c958e6 100644
--- a/tests/ref/fate/targa-top-to-bottom
+++ b/tests/ref/fate/targa-top-to-bottom
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
0, 0, 0, 1, 196608, 0xb29ec51a
diff --git a/tests/ref/fate/tdsc b/tests/ref/fate/tdsc
index d6925e9a99..de9f362690 100644
--- a/tests/ref/fate/tdsc
+++ b/tests/ref/fate/tdsc
@@ -1,4 +1,8 @@
#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1440x900
+#sar 0: 0/1
0, 0, 0, 1, 3888000, 0x9c498657
0, 7, 7, 1, 3888000, 0x72a2ae22
0, 8, 8, 1, 3888000, 0x72a2ae22
diff --git a/tests/ref/fate/theora-coeff-level64 b/tests/ref/fate/theora-coeff-level64
index 4bfafaf5ef..cc64bccf64 100644
--- a/tests/ref/fate/theora-coeff-level64
+++ b/tests/ref/fate/theora-coeff-level64
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2960x1040
+#sar 0: 1/1
0, 0, 0, 1, 4617600, 0x4ba6df50
0, 1, 1, 1, 4617600, 0x419fdeaf
0, 2, 2, 1, 4617600, 0xeb2edced
diff --git a/tests/ref/fate/theora-offset b/tests/ref/fate/theora-offset
index 5921657541..b9a6e083c4 100644
--- a/tests/ref/fate/theora-offset
+++ b/tests/ref/fate/theora-offset
@@ -1,4 +1,8 @@
#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0xdc998fa2
0, 1, 1, 1, 393216, 0x979a8fbd
0, 2, 2, 1, 393216, 0x979a8fbd
diff --git a/tests/ref/fate/thp b/tests/ref/fate/thp
index 52dd059027..4323ac91c9 100644
--- a/tests/ref/fate/thp
+++ b/tests/ref/fate/thp
@@ -1,4 +1,8 @@
#tb 0: 524288/15712911
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 608x320
+#sar 0: 0/1
0, 0, 0, 1, 291840, 0xbd7e0b22
0, 1, 1, 1, 291840, 0xf6e12ca5
0, 2, 2, 1, 291840, 0x528c7049
diff --git a/tests/ref/fate/tiertex-seq b/tests/ref/fate/tiertex-seq
index 74407e7674..3504dd42fc 100644
--- a/tests/ref/fate/tiertex-seq
+++ b/tests/ref/fate/tiertex-seq
@@ -1,5 +1,13 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x128
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22050
+#channel_layout 1: 4
1, 0, 0, 882, 1764, 0x00000000
1, 882, 882, 882, 1764, 0x80a253d9
0, 2, 2, 1, 98304, 0x2e5db4a4
diff --git a/tests/ref/fate/tiff-fax-g3 b/tests/ref/fate/tiff-fax-g3
index fa7bc2f79f..ac1fff9142 100644
--- a/tests/ref/fate/tiff-fax-g3
+++ b/tests/ref/fate/tiff-fax-g3
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2464x3248
+#sar 0: 1/1
0, 0, 0, 1, 1000384, 0xb758eb8b
diff --git a/tests/ref/fate/tiff-fax-g3s b/tests/ref/fate/tiff-fax-g3s
index fa7bc2f79f..ac1fff9142 100644
--- a/tests/ref/fate/tiff-fax-g3s
+++ b/tests/ref/fate/tiff-fax-g3s
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2464x3248
+#sar 0: 1/1
0, 0, 0, 1, 1000384, 0xb758eb8b
diff --git a/tests/ref/fate/tmv b/tests/ref/fate/tmv
index 6203e863b9..94437fa754 100644
--- a/tests/ref/fate/tmv
+++ b/tests/ref/fate/tmv
@@ -1,5 +1,13 @@
#tb 0: 184/11029
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
#tb 1: 1/22058
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22058
+#channel_layout 1: 4
0, 0, 0, 1, 192000, 0xc698297a
1, 0, 0, 368, 736, 0xf63db497
0, 1, 1, 1, 192000, 0x8d5bd6be
diff --git a/tests/ref/fate/truemotion1-15 b/tests/ref/fate/truemotion1-15
index af4a3205d8..24d4c2c5bc 100644
--- a/tests/ref/fate/truemotion1-15
+++ b/tests/ref/fate/truemotion1-15
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x168
+#sar 0: 1/1
0, 0, 0, 1, 161280, 0x677c9fb3
0, 1, 1, 1, 161280, 0xaa280e0a
0, 2, 2, 1, 161280, 0x8a4d2225
diff --git a/tests/ref/fate/truemotion1-24 b/tests/ref/fate/truemotion1-24
index 73bb9e7de4..b41eae0dfa 100644
--- a/tests/ref/fate/truemotion1-24
+++ b/tests/ref/fate/truemotion1-24
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 144x160
+#sar 0: 2/1
0, 0, 0, 1, 69120, 0x68beb30f
0, 1, 1, 1, 69120, 0x3976f5cf
0, 2, 2, 1, 69120, 0xf815bc3c
diff --git a/tests/ref/fate/truemotion2 b/tests/ref/fate/truemotion2
index c263ba4580..df25f618c3 100644
--- a/tests/ref/fate/truemotion2
+++ b/tests/ref/fate/truemotion2
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x135cb509
0, 1, 1, 1, 230400, 0x919a1ab7
0, 2, 2, 1, 230400, 0x0af8722b
diff --git a/tests/ref/fate/ts-demux b/tests/ref/fate/ts-demux
index 1d867b353d..c66e9075b8 100644
--- a/tests/ref/fate/ts-demux
+++ b/tests/ref/fate/ts-demux
@@ -1,6 +1,14 @@
#extradata 0: 150, 0xb4192fb9
#tb 0: 1/90000
+#media_type 0: video
+#codec_id 0: mpeg2video
+#dimensions 0: 1280x720
+#sar 0: 1/1
#tb 1: 1/90000
+#media_type 1: audio
+#codec_id 1: ac3
+#sample_rate 1: 48000
+#channel_layout 1: 60f
1, 0, 0, 2880, 1536, 0x773ffeea, S=1, 1, 0x00bd00bd
1, 2880, 2880, 2880, 1536, 0x6dc10748
1, 5760, 5760, 2880, 1536, 0xbab5129c
diff --git a/tests/ref/fate/ts-opus-demux b/tests/ref/fate/ts-opus-demux
index 1d4126e222..9d2da43fea 100644
--- a/tests/ref/fate/ts-opus-demux
+++ b/tests/ref/fate/ts-opus-demux
@@ -1,5 +1,9 @@
#extradata 0: 30, 0x53be0347
#tb 0: 1/90000
+#media_type 0: audio
+#codec_id 0: opus
+#sample_rate 0: 48000
+#channel_layout 0: 63f
0, 0, 0, 1800, 744, 0x172b615b, S=1, 1, 0x00bd00bd
0, 1800, 1800, 1800, 743, 0x3f5b673d, S=1, 1, 0x00bd00bd
0, 3600, 3600, 1800, 747, 0xe54e735d, S=1, 1, 0x00bd00bd
diff --git a/tests/ref/fate/tscc-15bit b/tests/ref/fate/tscc-15bit
index a2871efd4d..e854320571 100644
--- a/tests/ref/fate/tscc-15bit
+++ b/tests/ref/fate/tscc-15bit
@@ -1,5 +1,13 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 548x400
+#sar 0: 0/1
#tb 1: 1/11025
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 11025
+#channel_layout 1: 4
0, 0, 0, 1, 657600, 0x50b3a0c2
1, 0, 0, 11025, 22050, 0x1740aaec
0, 1, 1, 1, 657600, 0x50b3a0c2
diff --git a/tests/ref/fate/tscc-32bit b/tests/ref/fate/tscc-32bit
index 4eef49009d..dfb37a9be8 100644
--- a/tests/ref/fate/tscc-32bit
+++ b/tests/ref/fate/tscc-32bit
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 0, 0, 1, 2359296, 0x76cccaa7
0, 1, 1, 1, 2359296, 0x09c52bbf
0, 2, 2, 1, 2359296, 0xc8746009
diff --git a/tests/ref/fate/tscc2-avi b/tests/ref/fate/tscc2-avi
index ad71b8254d..6f0e8a53d3 100644
--- a/tests/ref/fate/tscc2-avi
+++ b/tests/ref/fate/tscc2-avi
@@ -1,4 +1,8 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x7a2103c0
0, 1, 1, 1, 230400, 0xd381c279
0, 2, 2, 1, 230400, 0xd381c279
diff --git a/tests/ref/fate/tscc2-mov b/tests/ref/fate/tscc2-mov
index d73ff3f4f3..8714a87277 100644
--- a/tests/ref/fate/tscc2-mov
+++ b/tests/ref/fate/tscc2-mov
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 892x441
+#sar 0: 0/1
0, 0, 0, 1, 1180116, 0x01d01336
0, 1, 1, 1, 1180116, 0x01d01336
0, 2, 2, 1, 1180116, 0x01d01336
diff --git a/tests/ref/fate/txd-16bpp b/tests/ref/fate/txd-16bpp
index 33943f90ef..a3b1e2359c 100644
--- a/tests/ref/fate/txd-16bpp
+++ b/tests/ref/fate/txd-16bpp
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
0, 0, 0, 1, 16384, 0x4d39b4cb
0, 1, 1, 1, 16384, 0x2a8d14b4
0, 2, 2, 1, 16384, 0xe26793cb
diff --git a/tests/ref/fate/txd-odd b/tests/ref/fate/txd-odd
index fe7c615e4f..6ea581140a 100644
--- a/tests/ref/fate/txd-odd
+++ b/tests/ref/fate/txd-odd
@@ -1,2 +1,6 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 387x249
+#sar 0: 0/1
0, 0, 0, 1, 385452, 0x055a14d6
diff --git a/tests/ref/fate/txd-pal8 b/tests/ref/fate/txd-pal8
index 61fee80fb0..2c36668ff6 100644
--- a/tests/ref/fate/txd-pal8
+++ b/tests/ref/fate/txd-pal8
@@ -1,2 +1,6 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
0, 0, 0, 1, 786432, 0x56654d61
diff --git a/tests/ref/fate/ulti b/tests/ref/fate/ulti
index 4e9968b6df..4b3a762809 100644
--- a/tests/ref/fate/ulti
+++ b/tests/ref/fate/ulti
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 86400, 0x5d58253d
0, 1, 1, 1, 86400, 0x0626d90d
0, 2, 2, 1, 86400, 0x4ecb5048
diff --git a/tests/ref/fate/utvideo_rgb_left b/tests/ref/fate/utvideo_rgb_left
index d19a6b1ead..d2ccbcea03 100644
--- a/tests/ref/fate/utvideo_rgb_left
+++ b/tests/ref/fate/utvideo_rgb_left
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x27e6001e
0, 1, 1, 1, 921600, 0x7c0a92bc
0, 2, 2, 1, 921600, 0x4d2be42c
diff --git a/tests/ref/fate/utvideo_rgb_median b/tests/ref/fate/utvideo_rgb_median
index f041285352..913b697be2 100644
--- a/tests/ref/fate/utvideo_rgb_median
+++ b/tests/ref/fate/utvideo_rgb_median
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 921600, 0x9776611f
0, 1, 1, 1, 921600, 0xdbfa64f4
0, 2, 2, 1, 921600, 0xed2a0580
diff --git a/tests/ref/fate/utvideo_rgba_left b/tests/ref/fate/utvideo_rgba_left
index a7e0ed43b4..cb7876f1a7 100644
--- a/tests/ref/fate/utvideo_rgba_left
+++ b/tests/ref/fate/utvideo_rgba_left
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1228800, 0xf1bc9432
0, 1, 1, 1, 1228800, 0x8480d1e5
0, 2, 2, 1, 1228800, 0xb01d5fb2
diff --git a/tests/ref/fate/utvideo_rgba_median b/tests/ref/fate/utvideo_rgba_median
index a7e0ed43b4..cb7876f1a7 100644
--- a/tests/ref/fate/utvideo_rgba_median
+++ b/tests/ref/fate/utvideo_rgba_median
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 1228800, 0xf1bc9432
0, 1, 1, 1, 1228800, 0x8480d1e5
0, 2, 2, 1, 1228800, 0xb01d5fb2
diff --git a/tests/ref/fate/utvideo_rgba_single_symbol b/tests/ref/fate/utvideo_rgba_single_symbol
index c0e0d98d1f..553c83552e 100644
--- a/tests/ref/fate/utvideo_rgba_single_symbol
+++ b/tests/ref/fate/utvideo_rgba_single_symbol
@@ -1,2 +1,6 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x768
+#sar 0: 0/1
0, 0, 0, 1, 3145728, 0xac95c593
diff --git a/tests/ref/fate/utvideo_yuv420_left b/tests/ref/fate/utvideo_yuv420_left
index 026f8fb981..3d12d7eef1 100644
--- a/tests/ref/fate/utvideo_yuv420_left
+++ b/tests/ref/fate/utvideo_yuv420_left
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0xece98fc8
0, 1, 1, 1, 460800, 0x9baf786b
0, 2, 2, 1, 460800, 0x8e8e0510
diff --git a/tests/ref/fate/utvideo_yuv420_median b/tests/ref/fate/utvideo_yuv420_median
index 5662d8c66c..ccca7f8ce5 100644
--- a/tests/ref/fate/utvideo_yuv420_median
+++ b/tests/ref/fate/utvideo_yuv420_median
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 460800, 0x6a817987
0, 1, 1, 1, 460800, 0x2f713ec2
0, 2, 2, 1, 460800, 0x003b560e
diff --git a/tests/ref/fate/utvideo_yuv422_left b/tests/ref/fate/utvideo_yuv422_left
index 438b32a9c9..4e66cfc20f 100644
--- a/tests/ref/fate/utvideo_yuv422_left
+++ b/tests/ref/fate/utvideo_yuv422_left
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 614400, 0x9a6b8802
0, 1, 1, 1, 614400, 0xaa8687e2
0, 2, 2, 1, 614400, 0x2fe5bd40
diff --git a/tests/ref/fate/utvideo_yuv422_median b/tests/ref/fate/utvideo_yuv422_median
index 438b32a9c9..4e66cfc20f 100644
--- a/tests/ref/fate/utvideo_yuv422_median
+++ b/tests/ref/fate/utvideo_yuv422_median
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
0, 0, 0, 1, 614400, 0x9a6b8802
0, 1, 1, 1, 614400, 0xaa8687e2
0, 2, 2, 1, 614400, 0x2fe5bd40
diff --git a/tests/ref/fate/v210 b/tests/ref/fate/v210
index 7ad9dcf9e7..1ff76f8442 100644
--- a/tests/ref/fate/v210
+++ b/tests/ref/fate/v210
@@ -1,2 +1,6 @@
#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 3686400, 0x8d5c3847
diff --git a/tests/ref/fate/v410dec b/tests/ref/fate/v410dec
index 98b2816b6a..ed78e39087 100644
--- a/tests/ref/fate/v410dec
+++ b/tests/ref/fate/v410dec
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
0, 0, 0, 1, 393216, 0xfe11a6b0
diff --git a/tests/ref/fate/vb b/tests/ref/fate/vb
index 336d42657b..d5fdb0436a 100644
--- a/tests/ref/fate/vb
+++ b/tests/ref/fate/vb
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
0, 0, 0, 1, 230400, 0x3bd1d731
0, 1, 1, 1, 230400, 0x9d0774c3
0, 2, 2, 1, 230400, 0xa0faafe2
diff --git a/tests/ref/fate/vble b/tests/ref/fate/vble
index 8c4250fd2a..62d9682967 100644
--- a/tests/ref/fate/vble
+++ b/tests/ref/fate/vble
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1382400, 0x5e1bc307
0, 1, 1, 1, 1382400, 0x198795f7
0, 2, 2, 1, 1382400, 0xa9102ac2
diff --git a/tests/ref/fate/vc1-ism b/tests/ref/fate/vc1-ism
index 7d3b0abb9b..1bd6c643d9 100644
--- a/tests/ref/fate/vc1-ism
+++ b/tests/ref/fate/vc1-ism
@@ -1,4 +1,8 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 240x104
+#sar 0: 156/156
0, 0, 0, 1, 37440, 0xd1bc5235
0, 2, 2, 1, 37440, 0x158e6167
0, 3, 3, 1, 37440, 0x0faa4481
diff --git a/tests/ref/fate/vc1_ilaced_twomv b/tests/ref/fate/vc1_ilaced_twomv
index 1b4d55f14c..fa56b29495 100644
--- a/tests/ref/fate/vc1_ilaced_twomv
+++ b/tests/ref/fate/vc1_ilaced_twomv
@@ -1,4 +1,8 @@
#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 1/1
0, 0, 0, 1, 3110400, 0x764f8856
0, 2, 2, 1, 3110400, 0x3b615b79
0, 3, 3, 1, 3110400, 0x4fbb6f84
diff --git a/tests/ref/fate/vc1_sa00040 b/tests/ref/fate/vc1_sa00040
index 79bff27943..554b838ff0 100644
--- a/tests/ref/fate/vc1_sa00040
+++ b/tests/ref/fate/vc1_sa00040
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 1/1
0, 0, 0, 1, 38016, 0xa6f15db5
0, 1, 1, 1, 38016, 0xa6f15db5
0, 2, 2, 1, 38016, 0xa6f15db5
diff --git a/tests/ref/fate/vc1_sa00050 b/tests/ref/fate/vc1_sa00050
index 89a3840b28..d30b1bfbe3 100644
--- a/tests/ref/fate/vc1_sa00050
+++ b/tests/ref/fate/vc1_sa00050
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
0, 0, 0, 1, 115200, 0xb8830eef
0, 1, 1, 1, 115200, 0xb8830eef
0, 2, 2, 1, 115200, 0xb8830eef
diff --git a/tests/ref/fate/vc1_sa10091 b/tests/ref/fate/vc1_sa10091
index 33326d6a63..ebfe2710ca 100644
--- a/tests/ref/fate/vc1_sa10091
+++ b/tests/ref/fate/vc1_sa10091
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 1/1
0, 0, 0, 1, 518400, 0xae20b4fa
0, 2, 2, 1, 518400, 0x2b4ccdf9
0, 3, 3, 1, 518400, 0x2b4ccdf9
diff --git a/tests/ref/fate/vc1_sa10143 b/tests/ref/fate/vc1_sa10143
index c0ecc3bb9d..d6904819d0 100644
--- a/tests/ref/fate/vc1_sa10143
+++ b/tests/ref/fate/vc1_sa10143
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 1/1
0, 0, 0, 1, 518400, 0x89407f55
0, 2, 2, 1, 518400, 0xaa896afd
0, 3, 3, 1, 518400, 0x0e69ff59
diff --git a/tests/ref/fate/vc1_sa20021 b/tests/ref/fate/vc1_sa20021
index 22989a0aed..450504f83c 100644
--- a/tests/ref/fate/vc1_sa20021
+++ b/tests/ref/fate/vc1_sa20021
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 704x480
+#sar 0: 1/1
0, 0, 0, 1, 506880, 0x884bc093
0, 2, 2, 1, 506880, 0x4b09548f
0, 3, 3, 1, 506880, 0x195cbee1
diff --git a/tests/ref/fate/vcr1 b/tests/ref/fate/vcr1
index da21df4c2e..983c52e9fc 100644
--- a/tests/ref/fate/vcr1
+++ b/tests/ref/fate/vcr1
@@ -1,4 +1,8 @@
#tb 0: 66099/1000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 28512, 0x7165286d
0, 1, 1, 1, 28512, 0x2b842acc
0, 2, 2, 1, 28512, 0x6d1b8e85
diff --git a/tests/ref/fate/vcr2 b/tests/ref/fate/vcr2
index f7e1540b33..e25aa14361 100644
--- a/tests/ref/fate/vcr2
+++ b/tests/ref/fate/vcr2
@@ -1,4 +1,8 @@
#tb 0: 1001/15000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 176x144
+#sar 0: 0/1
0, 0, 0, 1, 38016, 0x50e93e0d
0, 1, 1, 1, 38016, 0x6ac8627d
0, 2, 2, 1, 38016, 0x6f38661e
diff --git a/tests/ref/fate/videoxl b/tests/ref/fate/videoxl
index 4d2db37f3e..c5b4c81278 100644
--- a/tests/ref/fate/videoxl
+++ b/tests/ref/fate/videoxl
@@ -1,4 +1,8 @@
#tb 0: 71/500
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 188x128
+#sar 0: 0/1
0, 0, 0, 1, 36096, 0xab1c53c1
0, 1, 1, 1, 36096, 0x8b598ff3
0, 2, 2, 1, 36096, 0xe9a5f3eb
diff --git a/tests/ref/fate/vmnc-16bit b/tests/ref/fate/vmnc-16bit
index 064b7fa9de..69cf09556b 100644
--- a/tests/ref/fate/vmnc-16bit
+++ b/tests/ref/fate/vmnc-16bit
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x400
+#sar 0: 0/1
0, 0, 0, 1, 864000, 0xd6929ea7
0, 1, 1, 1, 864000, 0x9d5283fa
0, 2, 2, 1, 864000, 0xcec52d42
diff --git a/tests/ref/fate/vmnc-32bit b/tests/ref/fate/vmnc-32bit
index d55d88f66b..71117b986d 100644
--- a/tests/ref/fate/vmnc-32bit
+++ b/tests/ref/fate/vmnc-32bit
@@ -1,4 +1,8 @@
#tb 0: 1/5
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1268x961
+#sar 0: 0/1
0, 0, 0, 1, 3655644, 0x87973530
0, 1, 1, 1, 3655644, 0x87973530
0, 2, 2, 1, 3655644, 0x3c3167fd
diff --git a/tests/ref/fate/vp31 b/tests/ref/fate/vp31
index 48221c1b02..e41d37271a 100644
--- a/tests/ref/fate/vp31
+++ b/tests/ref/fate/vp31
@@ -1,4 +1,8 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x272
+#sar 0: 0/1
0, 0, 0, 1, 261120, 0xc50dec2b
0, 1, 1, 1, 261120, 0xaa8d4441
0, 2, 2, 1, 261120, 0x932b0d44
diff --git a/tests/ref/fate/vp5 b/tests/ref/fate/vp5
index 0e601ba811..2116fb9b81 100644
--- a/tests/ref/fate/vp5
+++ b/tests/ref/fate/vp5
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x304
+#sar 0: 0/1
0, 0, 0, 1, 233472, 0x27488413
0, 1, 1, 1, 233472, 0x4af384b5
0, 2, 2, 1, 233472, 0x948d845d
diff --git a/tests/ref/fate/vp60 b/tests/ref/fate/vp60
index c1da72ba17..4becf2a8e2 100644
--- a/tests/ref/fate/vp60
+++ b/tests/ref/fate/vp60
@@ -1,4 +1,8 @@
#tb 0: 32767/982027
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 192x192
+#sar 0: 0/1
0, 0, 0, 1, 55296, 0x6a3202a3
0, 1, 1, 1, 55296, 0x2af202eb
0, 2, 2, 1, 55296, 0xa1a40388
diff --git a/tests/ref/fate/vp61 b/tests/ref/fate/vp61
index be1fe530bd..2d3beea189 100644
--- a/tests/ref/fate/vp61
+++ b/tests/ref/fate/vp61
@@ -1,4 +1,8 @@
#tb 0: 32767/982027
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x112
+#sar 0: 0/1
0, 0, 0, 1, 18816, 0xc3fe9fc7
0, 1, 1, 1, 18816, 0x6ddf972f
0, 2, 2, 1, 18816, 0x72808b6e
diff --git a/tests/ref/fate/vp6a b/tests/ref/fate/vp6a
index 1f2ddd9859..b4f33630f7 100644
--- a/tests/ref/fate/vp6a
+++ b/tests/ref/fate/vp6a
@@ -1,4 +1,8 @@
#tb 0: 1/4
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x180
+#sar 0: 0/1
0, 0, 0, 1, 135000, 0x9dceed6d
0, 1, 1, 1, 135000, 0x47e5778d
0, 2, 2, 1, 135000, 0x5de36599
diff --git a/tests/ref/fate/vp6a-skip_alpha b/tests/ref/fate/vp6a-skip_alpha
index 91a099c58b..e2c435f402 100644
--- a/tests/ref/fate/vp6a-skip_alpha
+++ b/tests/ref/fate/vp6a-skip_alpha
@@ -1,4 +1,8 @@
#tb 0: 1/4
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 300x180
+#sar 0: 0/1
0, 0, 0, 1, 81000, 0xcb92962d
0, 1, 1, 1, 81000, 0xae381904
0, 2, 2, 1, 81000, 0x1fcc0c75
diff --git a/tests/ref/fate/vp6f b/tests/ref/fate/vp6f
index edb555dc63..65e113174a 100644
--- a/tests/ref/fate/vp6f
+++ b/tests/ref/fate/vp6f
@@ -1,4 +1,8 @@
#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x80
+#sar 0: 0/1
0, 0, 0, 1, 13440, 0x7cb0a22f
0, 1, 1, 1, 13440, 0xdfcea6ba
0, 2, 2, 1, 13440, 0x59b2a5da
diff --git a/tests/ref/fate/vp7 b/tests/ref/fate/vp7
index b014010090..3af21f2166 100644
--- a/tests/ref/fate/vp7
+++ b/tests/ref/fate/vp7
@@ -1,4 +1,8 @@
#tb 0: 1001/12000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x176
+#sar 0: 0/1
0, 0, 0, 1, 84480, 0xa7776101
0, 1, 1, 1, 84480, 0xeb1560ca
0, 2, 2, 1, 84480, 0x7a4e6123
diff --git a/tests/ref/fate/vp8-2451 b/tests/ref/fate/vp8-2451
index 70258e6eb8..f681695056 100644
--- a/tests/ref/fate/vp8-2451
+++ b/tests/ref/fate/vp8-2451
@@ -1,4 +1,8 @@
#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x360
+#sar 0: 1/1
0, 0, 0, 1, 345600, 0xa1e65077
0, 1, 1, 1, 345600, 0xa1e65077
0, 2, 2, 1, 345600, 0xa1e65077
diff --git a/tests/ref/fate/vp8-alpha b/tests/ref/fate/vp8-alpha
index 5b10725da5..4922d52739 100644
--- a/tests/ref/fate/vp8-alpha
+++ b/tests/ref/fate/vp8-alpha
@@ -1,4 +1,8 @@
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 320x213
+#sar 0: 1/1
0, 0, 0, 33, 2108, 0x59b92a34, S=2, 1900, 0x8fb3adc5, 8, 0x00000000
0, 32, 32, 33, 142, 0x2f2a3fed, F=0x0, S=1, 160, 0xa13346af
0, 65, 65, 33, 157, 0x17804767, F=0x0, S=1, 209, 0x64115f15
diff --git a/tests/ref/fate/vqa-cc b/tests/ref/fate/vqa-cc
index 8950f9428e..fd7bc704b2 100644
--- a/tests/ref/fate/vqa-cc
+++ b/tests/ref/fate/vqa-cc
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x00000000
0, 1, 1, 1, 192000, 0x00000000
0, 2, 2, 1, 192000, 0x00000000
diff --git a/tests/ref/fate/vqf-demux b/tests/ref/fate/vqf-demux
index 3c1dd35955..2d26a729f9 100644
--- a/tests/ref/fate/vqf-demux
+++ b/tests/ref/fate/vqf-demux
@@ -1 +1 @@
-084a9bf92d4096c8156d1fce50dac8b8
+643ac05caf7ef16a8837933bf45281d5
diff --git a/tests/ref/fate/wav-ac3 b/tests/ref/fate/wav-ac3
index 197eb65d8b..fd27f744bf 100644
--- a/tests/ref/fate/wav-ac3
+++ b/tests/ref/fate/wav-ac3
@@ -1,4 +1,8 @@
#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: ac3
+#sample_rate 0: 44100
+#channel_layout 0: 60f
0, 0, 0, 1536, 2786, 0xe2fd0f40
0, 1536, 1536, 1536, 2786, 0x7a6207c2
0, 3072, 3072, 1536, 2786, 0x7a6207c2
diff --git a/tests/ref/fate/wc3movie-xan b/tests/ref/fate/wc3movie-xan
index 57b7f70edc..5812503434 100644
--- a/tests/ref/fate/wc3movie-xan
+++ b/tests/ref/fate/wc3movie-xan
@@ -1,5 +1,13 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x165
+#sar 0: 0/1
#tb 1: 1/22050
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 1, 158400, 0x25aec781
1, 0, 0, 1470, 2940, 0x92cee2a6
0, 1, 1, 1, 158400, 0xda4dbf70
diff --git a/tests/ref/fate/westwood-aud b/tests/ref/fate/westwood-aud
index 9fab24197a..fedcd5d6cb 100644
--- a/tests/ref/fate/westwood-aud
+++ b/tests/ref/fate/westwood-aud
@@ -1,4 +1,8 @@
#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: adpcm_ima_ws
+#sample_rate 0: 22050
+#channel_layout 0: 4
0, 0, 0, 1024, 512, 0x6694cc55
0, 1024, 1024, 1024, 512, 0xdbc5cb22
0, 2048, 2048, 1024, 512, 0x8e5bcbfd
diff --git a/tests/ref/fate/wmv8-drm b/tests/ref/fate/wmv8-drm
index 12d8fbb9aa..d802b5ece2 100644
--- a/tests/ref/fate/wmv8-drm
+++ b/tests/ref/fate/wmv8-drm
@@ -1,4 +1,8 @@
#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x176
+#sar 0: 0/1
0, 0, 0, 1, 84480, 0x7760a00b
0, 29, 29, 1, 84480, 0xfe39a1db
0, 30, 30, 1, 84480, 0xd71961b4
diff --git a/tests/ref/fate/wmv8-drm-nodec b/tests/ref/fate/wmv8-drm-nodec
index 279c8b66ae..83aa92d235 100644
--- a/tests/ref/fate/wmv8-drm-nodec
+++ b/tests/ref/fate/wmv8-drm-nodec
@@ -1,7 +1,15 @@
#extradata 0: 4, 0x021800a2
#extradata 1: 46, 0x63d9043a
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: wmv3
+#dimensions 0: 320x176
+#sar 0: 0/1
#tb 1: 1/1000
+#media_type 1: audio
+#codec_id 1: wmavoice
+#sample_rate 1: 22050
+#channel_layout 1: 4
0, 0, 0, 0, 282, 0x000d949a
1, 0, 0, 0, 1088, 0x5cd379bb
1, 435, 435, 0, 1088, 0x8dfa1368
diff --git a/tests/ref/fate/wnv1 b/tests/ref/fate/wnv1
index 4de35bfc7c..5d48aed9ac 100644
--- a/tests/ref/fate/wnv1
+++ b/tests/ref/fate/wnv1
@@ -1,4 +1,8 @@
#tb 0: 13333/200000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 160x120
+#sar 0: 0/1
0, 0, 0, 1, 38400, 0x4c3fdc2f
0, 1, 1, 1, 38400, 0x11c9d0cb
0, 2, 2, 1, 38400, 0x6c37fd7f
diff --git a/tests/ref/fate/wtv-demux b/tests/ref/fate/wtv-demux
index 904d78b068..306fe00ed5 100644
--- a/tests/ref/fate/wtv-demux
+++ b/tests/ref/fate/wtv-demux
@@ -1,7 +1,15 @@
#extradata 0: 86, 0xc7ca09e5
#extradata 1: 22, 0x12dc010c
#tb 0: 1/10000000
+#media_type 0: video
+#codec_id 0: mpeg2video
+#dimensions 0: 720x576
+#sar 0: 64/45
#tb 1: 1/10000000
+#media_type 1: audio
+#codec_id 1: mp2
+#sample_rate 1: 48000
+#channel_layout 1: 3
1, -2, -2, 240000, 576, 0x9b6e1638
1, 239998, 239998, 240000, 576, 0x0ca91183
1, 479998, 479998, 240000, 576, 0xec6a180f
diff --git a/tests/ref/fate/xbm10 b/tests/ref/fate/xbm10
index 00388916f7..57a70d2771 100644
--- a/tests/ref/fate/xbm10
+++ b/tests/ref/fate/xbm10
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 16x16
+#sar 0: 0/1
0, 0, 0, 1, 32, 0x777f0737
diff --git a/tests/ref/fate/xbm11 b/tests/ref/fate/xbm11
index 77192b3e64..8385281239 100644
--- a/tests/ref/fate/xbm11
+++ b/tests/ref/fate/xbm11
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 200x190
+#sar 0: 0/1
0, 0, 0, 1, 4750, 0xc85f0b6d
diff --git a/tests/ref/fate/xface b/tests/ref/fate/xface
index 7f1f1e6445..05a955cf92 100644
--- a/tests/ref/fate/xface
+++ b/tests/ref/fate/xface
@@ -1,2 +1,6 @@
#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 48x48
+#sar 0: 0/1
0, 0, 0, 1, 288, 0x87ddaef8
diff --git a/tests/ref/fate/xmv-demux b/tests/ref/fate/xmv-demux
index 75b515fa3c..5840129f8a 100644
--- a/tests/ref/fate/xmv-demux
+++ b/tests/ref/fate/xmv-demux
@@ -1,6 +1,14 @@
#extradata 0: 4, 0x015a00ad
#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: wmv2
+#dimensions 0: 640x480
+#sar 0: 0/1
#tb 1: 16/11025
+#media_type 1: audio
+#codec_id 1: adpcm_ima_wav
+#sample_rate 1: 44100
+#channel_layout 1: 3
0, 0, 0, 0, 1508, 0xefceba48
1, 0, 0, 83, 5976, 0xfa2c2db9
1, 83, 83, 83, 5976, 0x256b935c
diff --git a/tests/ref/fate/xxan-wc4 b/tests/ref/fate/xxan-wc4
index 88dcc98ac5..ae3bda3c34 100644
--- a/tests/ref/fate/xxan-wc4
+++ b/tests/ref/fate/xxan-wc4
@@ -1,4 +1,8 @@
#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x165
+#sar 0: 0/1
0, 0, 0, 1, 79360, 0x8537821b
0, 1, 1, 1, 79360, 0x110c4343
0, 2, 2, 1, 79360, 0xa85105bb
diff --git a/tests/ref/fate/yop b/tests/ref/fate/yop
index 1920281a40..9d615b1394 100644
--- a/tests/ref/fate/yop
+++ b/tests/ref/fate/yop
@@ -1,4 +1,8 @@
#tb 0: 1/12
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 580x174
+#sar 0: 1/2
0, 0, 0, 1, 302760, 0xf24dfa37
0, 1, 1, 1, 302760, 0xcedcbb6c
0, 2, 2, 1, 302760, 0xc87716a2
diff --git a/tests/ref/fate/zerocodec b/tests/ref/fate/zerocodec
index 2d368c3764..10f9d4ccae 100644
--- a/tests/ref/fate/zerocodec
+++ b/tests/ref/fate/zerocodec
@@ -1,4 +1,8 @@
#tb 0: 417083/10000000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
0, 0, 0, 1, 1843200, 0x04154bd5
0, 1, 1, 1, 1843200, 0x3a872d04
0, 2, 2, 1, 1843200, 0x3b1304a0
diff --git a/tests/ref/fate/zlib b/tests/ref/fate/zlib
index 4ff76ffbac..007fe00c24 100644
--- a/tests/ref/fate/zlib
+++ b/tests/ref/fate/zlib
@@ -1,2 +1,6 @@
#tb 0: 100/2997
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 352x240
+#sar 0: 0/1
0, 0, 0, 1, 253440, 0x94af61e5
diff --git a/tests/ref/fate/zmbv-15bit b/tests/ref/fate/zmbv-15bit
index 384bb650b7..d3bee30a5e 100644
--- a/tests/ref/fate/zmbv-15bit
+++ b/tests/ref/fate/zmbv-15bit
@@ -1,4 +1,8 @@
#tb 0: 250000/1585341
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x8f9020f2
0, 1, 1, 1, 192000, 0xbfba7f63
0, 2, 2, 1, 192000, 0x96b48d11
diff --git a/tests/ref/fate/zmbv-16bit b/tests/ref/fate/zmbv-16bit
index cb390148f1..d650e08ff2 100644
--- a/tests/ref/fate/zmbv-16bit
+++ b/tests/ref/fate/zmbv-16bit
@@ -1,4 +1,8 @@
#tb 0: 250000/1585341
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0xe869dc94
0, 1, 1, 1, 192000, 0x742932f2
0, 2, 2, 1, 192000, 0x742932f2
diff --git a/tests/ref/fate/zmbv-32bit b/tests/ref/fate/zmbv-32bit
index e1df12361a..ff4d69f613 100644
--- a/tests/ref/fate/zmbv-32bit
+++ b/tests/ref/fate/zmbv-32bit
@@ -1,4 +1,8 @@
#tb 0: 250000/1585341
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x3ac10e8e
0, 1, 1, 1, 192000, 0xb772ee57
0, 2, 2, 1, 192000, 0x9b6e648a
diff --git a/tests/ref/fate/zmbv-8bit b/tests/ref/fate/zmbv-8bit
index 9f02ae3668..7c2fab691f 100644
--- a/tests/ref/fate/zmbv-8bit
+++ b/tests/ref/fate/zmbv-8bit
@@ -1,4 +1,8 @@
#tb 0: 1000000/70086303
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x200
+#sar 0: 0/1
0, 0, 0, 1, 192000, 0x5234b617
0, 1, 1, 1, 192000, 0x5234b617
0, 2, 2, 1, 192000, 0x5234b617