Hello guys, i am running gstreamer in nvcr.io/nvidia/l4t-base:r32.6.1 with --nvidia
Pipeline I am using worked like a charm in l4t-r32.4
Now it works on 2fps (instead of 16fps) , here is report from GST_DEBUG 3 :
lzzii@jtsnx:~$ docker run -d -v /vcr:/vcr --network host 156837977579.dkr.ecr.eu-north-1.amazonaws.com/vcr:pcrdev-466
797b738e803b0d929d3007b058b81671f7c800e64cd3dbfa91871bb5603ecb0a
lzzii@jtsnx:~$ docker logs -f 797b738e803b0d929d3007b058b81671f7c800e64cd3dbfa91871bb5603ecb0a
I0816 06:36:44.242964 547575914512 lpr_docker.py:47] Connection Redis<ConnectionPool<Connection<host=localhost,port=6379,db=0>>>
I0816 06:36:44.266714 547575914512 lpr_docker.py:57] Warmup 150 frames
I0816 06:36:46.025620 547575914512 lpr_docker.py:36] Writing video to /vcr/basler_2021-08-16_06-36-46_025.mkv
0:00:00.158670228 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x120000: 'AVR (Audio Visual Research)' is not mapped
0:00:00.158728667 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x180000: 'CAF (Apple Core Audio File)' is not mapped
0:00:00.158746845 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x100000: 'HTK (HMM Tool Kit)' is not mapped
0:00:00.158765752 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xc0000: 'MAT4 (GNU Octave 2.0 / Matlab 4.2)' is not mapped
0:00:00.158780961 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xd0000: 'MAT5 (GNU Octave 2.1 / Matlab 5.0)' is not mapped
0:00:00.158795492 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x210000: 'MPC (Akai MPC 2k)' is not mapped
0:00:00.158812784 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xe0000: 'PVF (Portable Voice Format)' is not mapped
0:00:00.158829764 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x160000: 'SD2 (Sound Designer II)' is not mapped
0:00:00.158852317 10 0x558795d470 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x190000: 'WVE (Psion Series 3)' is not mapped
0:00:00.229333916 10 0x558795d470 WARN ladspa gstladspa.c:507:plugin_init:<plugin104> no LADSPA plugins found, check LADSPA_PATH
(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: No such file or directory (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 205)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)
0:00:00.849165752 10 0x558795d470 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /root/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
Setting pipeline to PAUSED ...
0:00:01.288611767 9 0x55bbe67290 WARN v4l2 gstv4l2object.c:2388:gst_v4l2_object_add_interlace_mode:0x55bbf64200 Failed to determine interlace mode
0:00:01.288700155 9 0x55bbe67290 WARN v4l2 gstv4l2object.c:2388:gst_v4l2_object_add_interlace_mode:0x55bbf64200 Failed to determine interlace mode
0:00:01.288742396 9 0x55bbe67290 WARN v4l2 gstv4l2object.c:2388:gst_v4l2_object_add_interlace_mode:0x55bbf64200 Failed to determine interlace mode
0:00:01.288784064 9 0x55bbe67290 WARN v4l2 gstv4l2object.c:2388:gst_v4l2_object_add_interlace_mode:0x55bbf64200 Failed to determine interlace mode
0:00:01.288911360 9 0x55bbe67290 WARN v4l2 gstv4l2object.c:4447:gst_v4l2_object_probe_caps:<nvv4l2h265enc0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
Opening in BLOCKING MODE
Pipeline is PREROLLING ...
I0816 06:36:47.345232 547575914512 lpr_docker.py:111] Framerate: 0.8 fps
Redistribute latency...
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
0:00:01.313378661 9 0x55bc028d40 WARN v4l2bufferpool gstv4l2bufferpool.c:1065:gst_v4l2_buffer_pool_start:<nvv4l2h265enc0:pool:src> Uncertain or not enough buffers, enabling copy threshold
NVMEDIA: H265 : Profile : 1
NVMEDIA_ENC: bBlitMode is set to TRUE
I0816 06:36:47.379323 547575914512 lpr_docker.py:111] Framerate: 1.5 fps
I0816 06:36:47.406226 547575914512 lpr_docker.py:111] Framerate: 2.2 fps
I0816 06:36:47.430921 547575914512 lpr_docker.py:111] Framerate: 2.9 fps
I0816 06:36:57.576690 547575914512 lpr_docker.py:111] Framerate: 0.4 fps
and pipeline looks like this
args = shlex.split(
"gst-launch-1.0 fdsrc do-timestamp=true \
! rawvideoparse format=gray8 width={width} height={height} \
! nvvidconv \
! nvv4l2h265enc bitrate={bitrate} \
! h265parse \
! matroskamux streamable=true \
! filesink location={filename}".format(
height=img.shape[0],
width=img.shape[1],
bitrate=(FLAGS.mbps * 1000000),
filename=get_filename(FLAGS.dir),
)
)
what is different?
also this error is strange, since i am not using nvargus :
(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: No such file or directory (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 205)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)
but can be solved by mounting argus socket to container
-v /tmp/argus_socket:/tmp/argus_socket