Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mfxStreamParams *streamParams = new mfxStreamParams();
- streamParams->Duration=0;
- streamParams->NumTracks=1;
- streamParams->SystemType = MFX_MPEG4_SYSTEM_STREAM;
- streamParams->Flags = 0;
- streamParams->NumTracksAllocated = 1;
- //Create the trackInfo
- mfxTrackInfo *trackInfo = new mfxTrackInfo();
- //Fill in the trackInfo data
- trackInfo->Type = MFX_TRACK_H264;
- trackInfo->SID = 0; //No need to use different SIDs for demo
- trackInfo->Enable = 1;
- trackInfo->VideoParam.FrameInfo.Width = mInputWidth;
- trackInfo->VideoParam.FrameInfo.Height = mInputHeight;
- trackInfo->VideoParam.FrameInfo.FrameRateExtN = 25;
- trackInfo->VideoParam.FrameInfo.FrameRateExtD = 1;
- //Place the trackInfo where it belongs
- streamParams->TrackInfo = &trackInfo;
- curBitstream = new BitstreamIO(NULL);
- muxer = new mfxMuxer();
- printf("YUVtoH264Setup Gets to here\n");
- fflush(stdout);
- //This line is giving me issues!
- MFXMuxer_Init(streamParams, (mfxDataIO *)curBitstream, muxer);
- printf("YUVtoH264Setup Doesn't reach here");
- fflush(stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement