You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
H264EncoderNvcodec Module are not encoding the raw planar images correctly for images which have width <= 512
To check whether its a problem with H264EncoderNvcodec Module and ran the video-sdk-samples applications provided by Nvidia for testing out the Nvcodec Encoder/Decoder which provided the correct results
After comparing the results with the video-sdk-samples applications to test the Nvcodec Encoder, it was found that the step/pitch that is being calculated for the chroma planes (U and V plane) was half of the pitch/step of the Y plane, whereas in RawImagePlanarMetadata Class the implementation is to take half of the width of the image and add padding based on the alignment length
This causes the problem for images with width <= 512 because then in the RawImagePlanar metadata their step/pitch (because of the padding) will give you the value 512 (because alignment length is set to 512 in CudaMemCpy Module)
On changing the implementation to handle the metadata in RawImagePlanarMetadata Class, to what is described in video-sdk-samples resolves the issue (refer to Expected Output Screenshot) but we still don't know whether that is a correct solution or not.
To Reproduce
Steps to reproduce the behavior:
Comment the TestUtils:FileCleaner and run the test "yuv420_640x360_resize".
Open the saved file in testOutput folder, the output should be like the screenshot attached below.
Expected behavior
Expected behavior should be as in the Expected Output Screenshot attached below.
Screenshots
Current Output:
Expected Output:
Desktop (please complete the following information):
OS: [e.g. iOS]
Version [e.g. chrome, safari]
Cuda Version [e.g. 22]
Architecture [e.g. x86_64, arm64]
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected behavior should be as in the Expected Output Screenshot attached below.
Screenshots
Current Output:
Expected Output:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.
The text was updated successfully, but these errors were encountered: