The following was done with: Dual IMX477 pin configuration and only one cam connected on cam1.
$ v4l2-ctl --stream-mmap --set-fmt-video=width=1920,height=1080 -c bypass_mode=0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
…
$ ./argus_camera_jpeg
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=3840 H=2160
PRODUCER: [1] W=1920 H=1080
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
CONSUMER: Done.
CONSUMER: Done.
PRODUCER: Done – exiting.
I tried it a couple times, but got the same thing.
I then ran v4l2-ctl --stream-mmap agin and got this
$ v4l2-ctl --stream-mmap --set-fmt-video=width=1920,height=1080 -c bypass_mode=0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.88 fps
and
$ ./argus_camera_jpeg -s 1
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=3840 H=2160
PRODUCER: [1] W=1920 H=1080
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
NvMMLiteBlockCreate : Block : BlockType = 1
CONSUMER: Argus::STATUS_DISCONNECTED
CONSUMER: Done.
----------- Element = jpenenc -----------
Total units processed = 18
Average latency(usec) = 4494
Minimum latency(usec) = 2572
Maximum latency(usec) = 33331
CONSUMER: Done.
----------- Element = renderer0 -----------
Total Profiling time = 0.559352
Average FPS = 30.3923
Total units processed = 18
Num. of late units = 0
PRODUCER: Done – exiting.
I ran it a second time and it worked
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=3840 H=2160
PRODUCER: [1] W=1920 H=1080
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
NvMMLiteBlockCreate : Block : BlockType = 1
CONSUMER: Argus::STATUS_DISCONNECTED
CONSUMER: Done.
----------- Element = renderer0 -----------
Total Profiling time = 0.594691
Average FPS = 30.2678
Total units processed = 19
Num. of late units = 12
CONSUMER: Done.
----------- Element = jpenenc -----------
Total units processed = 19
Average latency(usec) = 3323
Minimum latency(usec) = 2589
Maximum latency(usec) = 11656
PRODUCER: Done – exiting.
however when I tried a third time I got the following:
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=3840 H=2160
PRODUCER: [1] W=1920 H=1080
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
CONSUMER: Done.
----------- Element = renderer0 -----------
Total Profiling time = CONSUMER: Done.
----------- Element = 0jpenenc -----------
Average FPS = 0
Total units processed =
Total units processed = 0
0Average latency(usec) = 0
Minimum latency(usec) = 0
Maximum latency(usec) = 0
Num. of late units = 0
PRODUCER: Done – exiting.
Afterwards I tried v4l2-ctl --stream-mmap, but nothing happend.
After waiting a few minutes while I was typing this reply I tried v4l2-ctl --stream-mmap again and got 29.88fps again and ./argus_camera_jpeg -s 1 produced the following:
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
PRODUCER: Available Sensor modes :
PRODUCER: [0] W=3840 H=2160
PRODUCER: [1] W=1920 H=1080
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
NvMMLiteBlockCreate : Block : BlockType = 1
CONSUMER: Argus::STATUS_DISCONNECTED
CONSUMER: Done.
----------- Element = jpenenc -----------
Total units processed = 19
Average latency(usec) = 3266
Minimum latency(usec) = 2528
Maximum latency(usec) = 12049
CONSUMER: Done.
----------- Element = renderer0 -----------
Total Profiling time = 0.592632
Average FPS = 30.373
Total units processed = 19
Num. of late units = 3
PRODUCER: Done – exiting.
Followed by another failed ./argus_camera_jpeg -s 1 attempt afterwards.
I saw when waiting a bit then running v4l2-ctl --stream-mmap first then ./argus_camera_jpeg -s 1 it seems to mostly work.
What does this imply?
And thank you for all the effort thus far.