Support for ".2vuy" uncompressed YUV files from Avid Liquid
Posted: 17 Oct 2011 20:50
Hi,
The Liquid video editing program from Avid can capture uncompressed video to ".2vuy" files. The video data is uncompressed 8-bit YUV. It also creates an associated .wav file for the captured audio.
When Liquid is installed, it installs a codec so that QuickTime Player is able to play .2vuy files. But it would be nice if VLC could play that type of file too. If anyone is interested in adding support I could send them some sample files. The file format is pretty basic; it seems to consist of a 512-byte header then the frame data. In the .2vuy files I created, less than 0xC0 bytes of the header are used, the rest all zero.
Here's an example of the header at the start of one file:
A0000000 D0020000 00020000 01001800 40595556 00400B00 00000000 00000000
00000000 00000000 90000000 424C5545 00000000 00000000 01000000 00000000
00000000 00000000 00000000 00008C0A 00000000 00000000 00000000 00000000
00000000 8EE30000 00000100 00000000 00000000 00000000 00000000 00000000
00000000 30750000 E9030000 00000000 00000000 08000000 00020000 00000000
FECAFECA 01000000 30750000 E9030000 00000000 00000000 00000000 00000000
Notice the frame rate is given as 0x7530 / 0x3E9, i.e. 30000/1001. (This sequence was NTSC.)
Frame width is given in bytes 4-7 (0x2D0 = 720 pixels)
Frame height is given in bytes 8-11 (0x200 = 512 -- apparently the Avid program uses the extra lines above 480 or 486 for something???)
Bytes per frame seems to be stored in bytes 20-23 (0x000B4000 = 737280 = 720x512x2)
Edit: It seems the "extra" 16 scanlines (512-486) are at the beginning of each frame data. In the files I created, the extra scanlines are all black (i.e. represented as 0x80 0x10 0x80 0x10 0x80 0x10 ...).
-- Mark
The Liquid video editing program from Avid can capture uncompressed video to ".2vuy" files. The video data is uncompressed 8-bit YUV. It also creates an associated .wav file for the captured audio.
When Liquid is installed, it installs a codec so that QuickTime Player is able to play .2vuy files. But it would be nice if VLC could play that type of file too. If anyone is interested in adding support I could send them some sample files. The file format is pretty basic; it seems to consist of a 512-byte header then the frame data. In the .2vuy files I created, less than 0xC0 bytes of the header are used, the rest all zero.
Here's an example of the header at the start of one file:
A0000000 D0020000 00020000 01001800 40595556 00400B00 00000000 00000000
00000000 00000000 90000000 424C5545 00000000 00000000 01000000 00000000
00000000 00000000 00000000 00008C0A 00000000 00000000 00000000 00000000
00000000 8EE30000 00000100 00000000 00000000 00000000 00000000 00000000
00000000 30750000 E9030000 00000000 00000000 08000000 00020000 00000000
FECAFECA 01000000 30750000 E9030000 00000000 00000000 00000000 00000000
Notice the frame rate is given as 0x7530 / 0x3E9, i.e. 30000/1001. (This sequence was NTSC.)
Frame width is given in bytes 4-7 (0x2D0 = 720 pixels)
Frame height is given in bytes 8-11 (0x200 = 512 -- apparently the Avid program uses the extra lines above 480 or 486 for something???)
Bytes per frame seems to be stored in bytes 20-23 (0x000B4000 = 737280 = 720x512x2)
Edit: It seems the "extra" 16 scanlines (512-486) are at the beginning of each frame data. In the files I created, the extra scanlines are all black (i.e. represented as 0x80 0x10 0x80 0x10 0x80 0x10 ...).
-- Mark