Hi kayccc,
I tested the argus_canera app you recommend some comments above. The app is located in:
tegra_multimedia_sample/argus/apps/camera/ui/camera
I run the following command (Because I had a camera sensor that supports 240fps):
./argus_camera --verbose --sensormode=2 --framerate=240 -v10 -x
But the app gets freezed and show some error log messages:
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 132)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 101)
Error generated. /home/ubuntu/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, createOutputStream:1525 Failed to create OutputStream
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 132)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 101)
Error generated. /home/ubuntu/tegra_multimedia_api/argus/apps/camera/modules/EventThread.cpp, threadExecute:66 Failed to get iEventQueue
Error generated. /home/ubuntu/tegra_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:132 (propagating)
Then I have to kill the app with: kill PID
I take a look on the --help output and I figure out that it only supports a maximum framerate of 60 fps. Here is the output log:
Usage: ./argus_camera [OPTION]... [ACTION]...
Press 'Ctrl-Up' to increase the focus position, press 'Ctrl-Down' to decrease the focus
position.
Press 'Esc' to exit.
Press 'm' to toggle between modules (still capture, video recording, multi exposure,
multi session).
Press 'space' to execute the module action (capture an image, start and stop recording,
start and stop video playback.
The supported value range of some settings is device or sensor mode dependent.
Use the '--info' option to get a list of the supported values.
Options are set and actions are executed in the order they occur. Multiple
actions can be executed.
Mandatory arguments to long options are mandatory for short options too.
Options:
--module=MODULE switch to module MODULE. Valid strings are 'Capture',
'Video', 'Multi Exposure', 'Multi Session', 'Gallery' or
an index in the range [0, 4]. Default is 'Capture'.
--verbose enable verbose mode. Default is '0'.
--kpi enable kpi mode. Default is '0'.
-d, --device=INDEX select camera device with INDEX. Valid values need to be
in the range [0, 2]. Default is '0'.
--exposuretimerange=RANGE
sets the exposure time range to RANGE, in nanoseconds.
Valid values need to be in the range [15000,236610000,
15000,236610000]. Default is '15000,236610000'.
--gainrange=RANGE sets the gain range to RANGE. Valid values need to be in
the range [1,22, 1,22]. Default is '1,22'.
--sensormode=INDEX
set sensor mode to INDEX. Valid strings are '1:
3840x2160', '2: 1920x1080', '3: 1280x540' or an index in
the range [0, 2]. Default is '1: 3840x2160'.
--framerate=RATE set the sensor frame rate to RATE. If RATE is 0 then VFR
(variable frame rate) is enabled. Valid values need to
be in the range [0.236608, 60]. Default is '60'.
--focusposition=POSITION
sets the focus position to POSITION, in focuser units.
Valid values need to be in the range [0, 0]. Default is
'0'.
--outputsize=WIDTHxHEIGHT
set the still and video output size to WIDTHxHEIGHT
(e.g. 1920x1080). If WIDTHxHEIGHT is '0x0' the output
size is the sensor mode size. Default is '0x0'.
--outputpath=PATH set the output file path. A file name, an incrementing
index and the file extension will be appended. E.g.
setting 'folder/' will result in 'folder/image0.jpg' or
'folder/video0.mp4'. '/dev/null' can be used to discard
output. Default is '.'.
--vstab=MODE set the video stabilization mode. Valid strings are
'off', 'on' or an index in the range [0, 1]. Default is
'off'.
--denoise=MODE set the denoising mode. Valid strings are 'off', 'fast',
'highquality' or an index in the range [0, 2]. Default
is 'off'.
--aeantibanding=MODE
set the auto exposure antibanding mode. Valid strings
are 'off', 'auto', '50hz', '60hz' or an index in the
range [0, 3]. Default is 'auto'.
--aelock=LOCK set the auto exposure lock. Default is '0'.
--awblock=LOCK set the auto white balance lock. Default is '0'.
--awb=MODE set the auto white balance mode. Valid strings are
'off', 'auto', 'incandescent', 'fluorescent',
'warmfluorescent', 'daylight', 'cloudydaylight',
'twilight', 'shade', 'manual' or an index in the range
[0, 9]. Default is 'auto'.
--exposurecompensation=COMPENSATION
set the exposure compensation to COMPENSATION. Valid
values need to be in the range [-10, 10]. Default is
'0'.
--defog=ENABLE set the DeFog enable flag to ENABLE. Default is '0'.
--defogamount=AMOUNT
sets the amount of fog to be removed to AMOUNT. Valid
values need to be in the range [0, 1]. Default is '0.9'.
--defogquality=QUALITY
sets the quality of the DeFog effect to QUALITY. Valid
values need to be in the range [0, 1]. Default is
'0.14285'.
--videobitrate=RATE
set the video bit rate mode to RATE. If RATE is zero a
reasonable default is selected. Valid values need to be
in the range [0, 4294967295]. Default is '0'.
--videoformat=FORMAT
set the video format. Valid strings are 'h263', 'h264',
'h265', 'vp8', 'mpeg4' or an index in the range [0, 4].
Default is 'h264'.
--videofiletype=TYPE
set the video file type. For 'h265' set the file type as
'mkv' since 'h265' is only supported by the 'mkv'
container. Valid strings are 'mp4', '3gp', 'avi', 'mkv',
'h265' or an index in the range [0, 4]. Default is
'mp4'.
--exposurerange=RANGE
set the exposure range to RANGE. Valid values need to be
in the range [-10,10, -10,10]. Default is '-2,2'.
--exposuresteps=COUNT
sample the exposure range at COUNT steps. Valid values
need to be in the range [2, 3]. Default is '3'.
Actions:
-h, --help display this help and exit
-x, --exit exit from the program
-i, --info print information on devices.
--loadconfig[=FILE]
load configuration from XML FILE. Default for file is
'argusAppConfig.xml'.
--saveconfig[=FILE]
save configuration to XML FILE. Default for file is
'argusAppConfig.xml'.
-s, --still[=COUNT] do COUNT still captures and save as jpg files. If COUNT
is not specified do one still capture.
-v, --video=DURATION record video for DURATION seconds and save to a file.