y262dec is a mpeg-1/2 video decoder
- Pretty much decodes all Mpeg-1 and Mpeg-2 bitstreams to YUV
- Slice based threading
You need cmake. You need a C compiler supported by cmake.
In the root directory of the y262dec directory:
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
You probably need to replace the generator and architecture with what you have. Then build !
Once you have your executable you can run the decoder like so:
y262decapp <bitstream in> <yuv out>
y262dec's architecture draws heavily from Michel 'Walken' Lespinasse libmpeg2 decoder. libmpeg2 is faster but lacks threading and is GPL licensed. y262dec is a bit slower but has threading and is BSD licensed.
Patent situation regarding Mpeg2 you best check with the MPEG LA or ask your legal department.