- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there!
I ran in an problem, while scaling a video frame with Intels video processing library. This post should help anyone, who experiences same issue.
While MFXVideoVPP::Init(mfxVideoParam *par) returns MFX_ERR_NONE, there is a color shift (yellow and blue are broken) in the output video data. This runtime error occures because of misconfiguration of "crop" parameters.
In this example a NTSC frame is scaled to 640x480 frame, under "scale to height" aspect ratio correction mode.
(To achive this i have to cut equal parts from the left and right sides of the source frame)
This configuration results in described "color-shift" error:
"Intel API Implementation: MFX_IMPL_SOFTWARE Version: 1.13"
"-------VPP Parameter-------"
"AsyncDepth: 0"
"NumExtParam: 0"
"IOPattern: MFX_IOPATTERN_IN_SYSTEM_MEMORY,MFX_IOPATTERN_OUT_SYSTEM_MEMORY"
"-------VPP INPUT-------"
"BitDepthLuma: 8"
"BitDepthChroma: 8"
"Shift: 0"
"FourCC: YUY2"
"Width: 720"
"Height: 512"
"CropX: 35"
"CropY: 0"
"CropW: 650"
"CropH: 486"
"FrameRateExtN: 30000"
"FrameRateExtD: 1001"
"AspectRatioW: 0"
"AspectRatioH: 0"
"PicStruct: MFX_PICSTRUCT_FIELD_BFF"
"ChromaFormat: MFX_CHROMAFORMAT_YUV422"
""
"-------VPP OUTPUT-------"
"BitDepthLuma: 8"
"BitDepthChroma: 8"
"Shift: 0"
"FourCC: RGB4"
"Width: 640"
"Height: 480"
"CropX: 0"
"CropY: 0"
"CropW: 640"
"CropH: 480"
"FrameRateExtN: 30000"
"FrameRateExtD: 1001"
"AspectRatioW: 0"
"AspectRatioH: 0"
"PicStruct: MFX_PICSTRUCT_PROGRESSIVE"
"ChromaFormat: MFX_CHROMAFORMAT_YUV444"
This would be the correct configuration :
"Intel API Implementation: MFX_IMPL_SOFTWARE Version: 1.13"
"-------VPP Parameter-------"
"AsyncDepth: 0"
"NumExtParam: 0"
"IOPattern: MFX_IOPATTERN_IN_SYSTEM_MEMORY,MFX_IOPATTERN_OUT_SYSTEM_MEMORY"
"-------VPP INPUT-------"
"BitDepthLuma: 8"
"BitDepthChroma: 8"
"Shift: 0"
"FourCC: YUY2"
"Width: 720"
"Height: 512"
"CropX: 36"
"CropY: 0"
"CropW: 648"
"CropH: 486"
"FrameRateExtN: 30000"
"FrameRateExtD: 1001"
"AspectRatioW: 0"
"AspectRatioH: 0"
"PicStruct: MFX_PICSTRUCT_FIELD_BFF"
"ChromaFormat: MFX_CHROMAFORMAT_YUV422"
""
"-------VPP OUTPUT-------"
"BitDepthLuma: 8"
"BitDepthChroma: 8"
"Shift: 0"
"FourCC: RGB4"
"Width: 640"
"Height: 480"
"CropX: 0"
"CropY: 0"
"CropW: 640"
"CropH: 480"
"FrameRateExtN: 30000"
"FrameRateExtD: 1001"
"AspectRatioW: 0"
"AspectRatioH: 0"
"PicStruct: MFX_PICSTRUCT_PROGRESSIVE"
"ChromaFormat: MFX_CHROMAFORMAT_YUV444"
Kind regards,
Max
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the note Max - since you provided the solution already, I am going to close the thread. If there is any other question, please start a new thread.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page