- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I intended to see the frame type (I,P,B,etc.) during the encoding stage by checking the "FrameType" as a member of "mfxBitstream" structer.
But it seemed that some of the FrameTypes were not the pre-defined values in "mfxstructurs.h", such as MFX_FRAMETYPE_I =0x0001.
As shown below in my test result, the GOP pattern can be specified actually (I P B B B B P B B B B).
PTS: 1 (0x00c1), DTS: 0
PTS: 6 (0x0042), DTS: 1
PTS: 2 (0x0004), DTS: 2
PTS: 3 (0x0004), DTS: 3
PTS: 4 (0x0004), DTS: 4
PTS: 5 (0x0004), DTS: 5
PTS: 11 (0x0042), DTS: 6
PTS: 7 (0x0004), DTS: 7
PTS: 8 (0x0004), DTS: 8
PTS: 9 (0x0004), DTS: 9
PTS: 10 (0x0004), DTS: 10
PTS: 16 (0x0042), DTS: 11
Any idea how the strange values came?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to the definition of MFX_FRAMETYPE_I and you'll see enum filled with MFX_FRAMETYPE_* flags. FrameType field holds combination of that flags. 0x00c1 = MFX_FRAMETYPE_I | MFX_FRAMETYPE_REF | MFX_FRAMETYPE_IDR, etc.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to the definition of MFX_FRAMETYPE_I and you'll see enum filled with MFX_FRAMETYPE_* flags. FrameType field holds combination of that flags. 0x00c1 = MFX_FRAMETYPE_I | MFX_FRAMETYPE_REF | MFX_FRAMETYPE_IDR, etc.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page