Closed divyaJainPhilips closed 4 years ago
@divyaJainPhilips do you mind to share the decoded pic's resolution? If the resolution is correct, 1604x992px, I'm afraid the problem is related to your JCodec image transformation logics. In this case, https://github.com/jcodec/jcodec would be more appropriate for your question.
Since there's not enough information and the question is related to JCodec, I'll mark this as resolved. Please feel free to reopen it for further assistance!
I have multiple video sources putting data into KVS. At consumer side reading the stream and converting frames to images. this works fine when my video resolution is 1920x1080px but for the videos of resolution 1604x992px when i am trying to create the images from frames the images are distorted.
Code snippet to convert frames to images final int pixelWidth = trackMetadata.getPixelWidth().get().intValue(); final int pixelHeight = trackMetadata.getPixelHeight().get().intValue();