Using and converting VQEG ".yuv" testvideos with FFmpeg
Posted: Tue Oct 02, 2012 1:43 pm
The "Video Quality Experts Group" (VQEG) has a bunch of reference testvideos on their FTP server, which are often used to test video codecs.
Their videos are often available as raw, uncompressed YUV stream, using the file suffix ".yuv" without any header.
Therefore, if you want to transcode these files using FFmpeg, you must specify the input stream's parameters, such as resolution and colorspace.
According to the technical description in their README, and thanks to a post on "digipedia.pl", here's the commandline to be used for FFmpeg:
Example 1:
Convert 625 material (=PAL) to FFv1.3 lossless codec:
Example 2:
Convert 525 material (=NTSC) to FFv1.3 lossless codec:
Important is to provide the pixel resolution and colorspace format of the input YUV stream.
Their videos are often available as raw, uncompressed YUV stream, using the file suffix ".yuv" without any header.
Therefore, if you want to transcode these files using FFmpeg, you must specify the input stream's parameters, such as resolution and colorspace.
According to the technical description in their README, and thanks to a post on "digipedia.pl", here's the commandline to be used for FFmpeg:
Example 1:
Convert 625 material (=PAL) to FFv1.3 lossless codec:
Code: Select all
ffmpeg -f rawvideo -s 720x576 -pix_fmt uyvy422 -i VQEG_PhaseI/Reference/src9_ref__625.yuv -an -vcodec ffv1 -strict experimental -slices 24 -slicecrc 0 -g 1 -pix_fmt yuv422p client/output-625.avi
Convert 525 material (=NTSC) to FFv1.3 lossless codec:
Code: Select all
ffmpeg -f rawvideo -s 720x486 -pix_fmt uyvy422 -i VQEG_PhaseI/Reference/src9_ref__525.yuv -an -vcodec ffv1 -strict experimental -slices 24 -slicecrc 0 -g 1 -pix_fmt yuv422p client/output-525.avi