I’m working with video streams that can change resolution dynamically. Specifically, this is H264 video coming from a mobile phone where the resolution flips from 1280/720 to 720/1280 when the user changes from portrait to landscape mode.
When using nvv4l2decoder, the flipped video looks completely garbled. To me, it looks like the video continues to be decoded at the original resolution. I also tried the deprecated omxh264dec - the results were similar.
Additionally, this is continuously output to the log when the resolution is changed:
NVMAP_IOC_READ failed: Invalid argument NVMAP_IOC_READ: Offset 0 SrcStride 1280 pDst 0x7f34006470 DstStride 720 Count 1280
I created a sample program that reproduces the issue: