Hello,
I’m trying to understand the basic concepts of the Video Codec SDK.
I’m currently editing AppDec.cpp trying to save the frame I get from DecodeMediaFile to a file
it seems like it’s storing all YUV frames into a single file (I still can’t understand the purpose of it)
// dump YUV to disk
if (dec.GetWidth() == dec.GetDecodeWidth())
{
fpOut.write(reinterpret_cast<char*>(pFrame), dec.GetFrameSize());
}
I’m currently trying to save every raw frame into the filesystem but I’m not able to open them with photoshop or other image editing software.
if (dec.GetWidth() == dec.GetDecodeWidth())
{
//fpOut.write(reinterpret_cast<char*>(pFrame), dec.GetFrameSize());
std::string sMsg = "images/example_" + std::to_string(nFrame) + ".raw";
myfile.open(sMsg);
myfile.write(reinterpret_cast<char*>(pFrame), dec.GetFrameSize());
myfile.close();
}
how can I decode the video and get colored 8bitYUV frames?
I need to store them in memory and push them out of my Blackmagic decklink quad 2 via SDI.
Any help would be appreciated.
Thanks,
Alberro.