Hope someone has come across this issue before, without me having to attach code.
I am able to decode and display most of the cameras in my system.
But the site has rotated some of the video streams in the Video software and now I cannot stream those cameras correctly.
These cameras have a Coded Size of 368x640 but a Display of 360x640.
Similar cameras that are not rotated have 640x368 with Display of 640x360 and they show correctly.
I have tried changing all the variables but cannot seem to find the right combo. Current thinking it in the ‘Texture’ creation and usage but not sure.
Hope someone has come across this.
It seems that your topic is in the wrong forum. Can you please share more information about your environment? Does this relate to Jetson by chance? I will move this to the best forum for your issue once I have more info.
First, thanks for the reply. It has nothing to do with Jetson.
I was hoping someone might recognize the problem and a simple solution.
Everything works fine except for the Portrait instance mentioned previously.
My system: Not wanting to get too detailed.
We take rtsp streams from Cameras (currently Bosch and Hanwha)
Send the Data into cuvidParseVideoData
Use ID3D11VideoProcessor, IDXGISwapChain1, ID3D11VideoDevice… to decode the video.
Convert the image from YUV12 to RGB
Know this is correct because can same the RGB image to a BMP and it is correct.
ID3D11Texture2D.Map /UnMap / CopyResource to display the image in a window.
I am assuming I am missing something in the Texture creation/usage when the Coded Width is different than the display width.
Thank you your interest.
I resolved my issue, the Texture was looking for 384x640 size image. (from the DepthPitch value).
It might have to do with the CUVIDPICPARAMS->PicWidthInMbs was sending 23 but using 24 macroblocks.
In any case I can display the video now.