Eamo
May 12, 2026, 11:56am
1
I am writing encoder using v4l2 api on orin agx
I am open the fd with block flags
BUT i see that dequeue buffer on the capture side return with -1 value and errno=EAGAIN
That a nonblock behavior
How can return from function ONLY when there isencoded frame?
Hi,
We have the samples to demonstrate hardware encoding:
/usr/src/jetson_multimedia_api/samples/01_video_encode
/usr/src/jetson_multimedia_api/samples/unittest_samples/encoder_unit_sample
Please follow the samples to develop your use-case.
Eamo
May 17, 2026, 4:58am
5
I look at exsmples and that when dqueue capture plane there is do while loop.
The first time dqueue from capture takes 15ms BUT we get EGAIN instead of getting the avail buffer why?
Hi,
Please point out where the while loop is in video_encode_main.cpp . Would like to confirm which part in the sample to ensure we are discussing about the same place.