Hi,
I've been trying to find a way to encode < full input frame using the H.264 encoder of the DM365, and I'm struggling!
To explain the problem, I'm using the resizer device (chained with capture device) to convert the colour space of an input PAL D1 (720x576) image into 4:2:0SP so it can be fed into the H.264 encoder. The resizer output buffer has to be 32 byte aligned, so the resulting captured frame is 736x576 (last 16 pixels on each line are padding).
So, what I'd like to be able to do is pass the input 736 wide image into the H.264 encoder but tell it to only encode the first 720. I've been through the encoder user guide and have played with many of the input parameters but to no avail. The best result is setting 'captureWidth' to 736 and other width values to 720. Based on the user guide this suggests it will compensate for the input buffer being wider than the image. In fact, the resulting output is correct, apart from the last 12 lines which are not written to by the encoder and left uninitialised. It is as if the encoder knows to process an input buffer of 736x576, but stops encoding after 720x576 pixels. The difference between the 2 sizes being approximately 12x736 pixel wide lines! Doesn't seem like a coincidence.
Just wondering if anyone has had any success trying to do something similar? I realise I could perform a framecopy operation to remove the padding, but I was hoping to avoid what seemed like an unnecessary step.
regards,
Keith Nicholson