|
| 1 | +################################################################################ |
| 2 | +# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. |
| 3 | +# |
| 4 | +# Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | +# copy of this software and associated documentation files (the "Software"), |
| 6 | +# to deal in the Software without restriction, including without limitation |
| 7 | +# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | +# and/or sell copies of the Software, and to permit persons to whom the |
| 9 | +# Software is furnished to do so, subject to the following conditions: |
| 10 | +# |
| 11 | +# The above copyright notice and this permission notice shall be included in |
| 12 | +# all copies or substantial portions of the Software. |
| 13 | +# |
| 14 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 | +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 19 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 20 | +# DEALINGS IN THE SOFTWARE. |
| 21 | +################################################################################ |
| 22 | + |
| 23 | +[application] |
| 24 | +enable-perf-measurement=1 |
| 25 | +perf-measurement-interval-sec=5 |
| 26 | +#gie-kitti-output-dir=streamscl |
| 27 | + |
| 28 | +[tiled-display] |
| 29 | +enable=0 |
| 30 | +rows=1 |
| 31 | +columns=1 |
| 32 | +width=1280 |
| 33 | +height=720 |
| 34 | +gpu-id=0 |
| 35 | +#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform |
| 36 | +#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla |
| 37 | +#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla |
| 38 | +#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla |
| 39 | +#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson |
| 40 | +nvbuf-memory-type=0 |
| 41 | + |
| 42 | +[source0] |
| 43 | +enable=1 |
| 44 | +#Type - 1=CameraV4L2 2=URI 3=MultiURI |
| 45 | +type=3 |
| 46 | +uri=file:<Your_file_source> |
| 47 | + |
| 48 | +num-sources=1 |
| 49 | +gpu-id=0 |
| 50 | +# (0): memtype_device - Memory type Device |
| 51 | +# (1): memtype_pinned - Memory type Host Pinned |
| 52 | +# (2): memtype_unified - Memory type Unified |
| 53 | +cudadec-memtype=0 |
| 54 | + |
| 55 | +[sink0] |
| 56 | +enable=1 |
| 57 | +#Type - 1=FakeSink 2=EglSink 3=File |
| 58 | +type=2 |
| 59 | +sync=1 |
| 60 | +source-id=0 |
| 61 | +gpu-id=0 |
| 62 | + |
| 63 | +[osd] |
| 64 | +enable=1 |
| 65 | +gpu-id=0 |
| 66 | +border-width=1 |
| 67 | +text-size=12 |
| 68 | +text-color=1;1;1;1; |
| 69 | +text-bg-color=0.3;0.3;0.3;1 |
| 70 | +font=Serif |
| 71 | +show-clock=0 |
| 72 | +clock-x-offset=800 |
| 73 | +clock-y-offset=820 |
| 74 | +clock-text-size=12 |
| 75 | +clock-color=1;0;0;0 |
| 76 | +nvbuf-memory-type=0 |
| 77 | + |
| 78 | +[streammux] |
| 79 | +gpu-id=0 |
| 80 | +##Boolean property to inform muxer that sources are live |
| 81 | +live-source=0 |
| 82 | +batch-size=1 |
| 83 | +##time out in usec, to wait after the first buffer is available |
| 84 | +##to push the batch even if the complete batch is not formed |
| 85 | +batched-push-timeout=40000 |
| 86 | +## Set muxer output width and height |
| 87 | +width=1280 |
| 88 | +height=720 |
| 89 | +##Enable to maintain aspect ratio wrt source, and allow black borders, works |
| 90 | +##along with width, height properties |
| 91 | +enable-padding=0 |
| 92 | +nvbuf-memory-type=0 |
| 93 | + |
| 94 | +# config-file property is mandatory for any gie section. |
| 95 | +# Other properties are optional and if set will override the properties set in |
| 96 | +# the infer config file. |
| 97 | +[primary-gie] |
| 98 | +enable=1 |
| 99 | +gpu-id=0 |
| 100 | +model-engine-file=<onnx_engine_file> |
| 101 | +labelfile-path=labels.txt |
| 102 | +#batch-size=1 |
| 103 | +#Required by the app for OSD, not a plugin property |
| 104 | +bbox-border-color0=1;0;0;1 |
| 105 | +bbox-border-color1=0;1;1;1 |
| 106 | +bbox-border-color2=0;0;1;1 |
| 107 | +bbox-border-color3=0;1;0;1 |
| 108 | +interval=0 |
| 109 | +gie-unique-id=1 |
| 110 | +nvbuf-memory-type=0 |
| 111 | +config-file=config_infer_primary_yoloV4.txt |
| 112 | + |
| 113 | +[sink1] |
| 114 | +enable=1 |
| 115 | +type=3 |
| 116 | +#1=mp4 2=mkv |
| 117 | +container=1 |
| 118 | +#1=h264 2=h265 3=mpeg4 |
| 119 | +codec=1 |
| 120 | +#encoder type 0=Hardware 1=Software |
| 121 | +enc-type=0 |
| 122 | +sync=0 |
| 123 | +bitrate=4000000 |
| 124 | +#H264 Profile - 0=Baseline 2=Main 4=High |
| 125 | +#H265 Profile - 0=Main 1=Main10 |
| 126 | +profile=0 |
| 127 | +output-file=fp16_clip1_cam1.mp4 |
| 128 | +source-id=0 |
| 129 | + |
| 130 | +[tracker] |
| 131 | +enable=1 |
| 132 | +# For the case of NvDCF tracker, tracker-width and tracker-height must be a multiple of 32, respectively |
| 133 | +tracker-width=608 |
| 134 | +tracker-height=608 |
| 135 | +#ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_iou.so |
| 136 | +#ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_nvdcf.so |
| 137 | +ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so |
| 138 | +#ll-config-file required for IOU only |
| 139 | +#ll-config-file=iou_config.txt |
| 140 | +gpu-id=0 |
| 141 | + |
| 142 | +[tests] |
| 143 | +file-loop=0 |
0 commit comments