Yes, that's very true)))It's slightly tiresome if you can't be bothered to read the advice givenNo, I have overlooked that moment. I never changed buffer_num/buffer_size fields in MMAL_PORT_INFO_SET message.Did you change buffer_num BEFORE you enabled the port?
I have tried this now, and it worked.
Thanks.You're going bare metal on a deprecated API. I really don't expect to have to hand hold you to make you read what I've already posted.Huh? You can give any port up to the number of buffers set as buffer_num in the port definition at the point the port was enabled.
Really appreciate that you can allocate time and give answers. Back then on your previous post I was way too overwhelmed by trying to find the correct order between operations, 100 things were not correct at the same time, so I had to go for a hundred of trials and errors until I found the working order in which to set formats for ports, enable them, provide buffers, and connect components. Probably, I have even tried your suggestion with buffer_num, but it might not make the difference for me because of other things being wrong, so I a) forgot and b) did not commit this change due to lack of positive result.
But now thing look much more stable and clear from logical point, and I am looking with all focus for proper and optimal way of managing buffers.
Also I am going to log dts/pts values today and try to analyze the results.
Statistics: Posted by valc — Thu May 16, 2024 6:34 pm