Advertisement
mczarnek

Setup for MFXMuxer_Init

Feb 3rd, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. mfxStreamParams *streamParams = new mfxStreamParams();
  2.  
  3. streamParams->Duration=0;
  4. streamParams->NumTracks=1;
  5. streamParams->SystemType = MFX_MPEG4_SYSTEM_STREAM;
  6. streamParams->Flags = 0;
  7.  
  8. streamParams->NumTracksAllocated = 1;
  9.  
  10. //Create the trackInfo
  11. mfxTrackInfo *trackInfo = new mfxTrackInfo();
  12.  
  13. //Fill in the trackInfo data
  14. trackInfo->Type = MFX_TRACK_H264;
  15. trackInfo->SID = 0;  //No need to use different SIDs for demo
  16. trackInfo->Enable = 1;
  17.  
  18. trackInfo->VideoParam.FrameInfo.Width = mInputWidth;
  19. trackInfo->VideoParam.FrameInfo.Height = mInputHeight;
  20. trackInfo->VideoParam.FrameInfo.FrameRateExtN = 25;
  21. trackInfo->VideoParam.FrameInfo.FrameRateExtD = 1;
  22.  
  23. //Place the trackInfo where it belongs
  24. streamParams->TrackInfo = &trackInfo;
  25.  
  26. curBitstream = new BitstreamIO(NULL);
  27.  
  28. muxer = new mfxMuxer();
  29.  
  30. printf("YUVtoH264Setup Gets to here\n");
  31. fflush(stdout);
  32.  
  33. //This line is giving me issues!
  34. MFXMuxer_Init(streamParams, (mfxDataIO *)curBitstream, muxer);
  35.  
  36. printf("YUVtoH264Setup Doesn't reach here");
  37. fflush(stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement