test5_config_file_src_infer_tlt.txt 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. ################################################################################
  2. # Copyright (c) 2018-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. [application]
  23. enable-perf-measurement=1
  24. perf-measurement-interval-sec=5
  25. #gie-kitti-output-dir=streamscl
  26. [tiled-display]
  27. enable=1
  28. rows=1
  29. columns=1
  30. width=1280
  31. height=720
  32. gpu-id=0
  33. #(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
  34. #(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
  35. #(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
  36. #(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
  37. #(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
  38. nvbuf-memory-type=0
  39. [source0]
  40. enable=1
  41. #Type - 1=CameraV4L2 2=URI 3=MultiURI
  42. type=3
  43. uri=file:///opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/demo/out.mp4
  44. num-sources=1
  45. gpu-id=0
  46. nvbuf-memory-type=0
  47. [source1]
  48. enable=1
  49. #Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
  50. type=3
  51. uri=file:///opt/nvidia/deepstream/deepstream-5.1/samples/streams/sample_1080p_h264.mp4
  52. num-sources=1
  53. gpu-id=0
  54. nvbuf-memory-type=0
  55. # smart record specific fields, valid only for source type=4
  56. # 0 = disable, 1 = through cloud events, 2 = through cloud + local events
  57. smart-record=2
  58. # 0 = mp4, 1 = mkv
  59. #smart-rec-container=0
  60. smart-rec-start-time=1
  61. smart-rec-start-time=1
  62. smart-rec-file-prefix=smart_record
  63. #smart-rec-dir-path=/home/monika/record
  64. # video cache size in seconds
  65. smart-rec-video-cache=10
  66. [sink0]
  67. enable=1
  68. type=2
  69. #1=mp4 2=mkv./bin/kafka-topics --create --bootstrap-server localhost:9092 \
  70. #--replication-factor 1 --partitions 1 --topic users
  71. container=1
  72. #1=h264 2=h265
  73. codec=1
  74. #encoder type 0=Hardware 1=Software
  75. enc-type=0
  76. sync=0
  77. #iframeinterval=10
  78. bitrate=100000
  79. #H264 Profile - 0=Baseline 2=Main 4=High
  80. #H265 Profile - 0=Main 1=Main10
  81. profile=0
  82. output-file=resnet.mp4
  83. source-id=0
  84. [sink1]
  85. enable=1
  86. #Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker
  87. type=6
  88. msg-conv-config=dstest5_msgconv_sample_config.txt
  89. #(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload
  90. #(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal
  91. #(256): PAYLOAD_RESERVED - Reserved type
  92. #(257): PAYLOAD_CUSTOM - Custom schema payload
  93. msg-conv-payload-type=0
  94. msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so
  95. #Provide your msg-broker-conn-str here
  96. msg-broker-conn-str=localhost;9092;quickstart-events
  97. #topic=<topic>
  98. #Optional:
  99. #msg-broker-config=../../deepstream-test4/cfg_kafka.txt
  100. [sink2]
  101. enable=1
  102. type=1
  103. #1=mp4 2=mkv
  104. container=1
  105. #1=h264 2=h265 3=mpeg4
  106. ## only SW mpeg4 is supported right now.
  107. codec=3
  108. sync=1
  109. bitrate=2000000
  110. output-file=out.mp4
  111. source-id=0
  112. # sink type = 6 by default creates msg converter + broker.
  113. # To use multiple brokers use this group for converter and use
  114. # sink type = 6 with disable-msgconv = 1
  115. [message-converter]
  116. enable=0
  117. msg-conv-config=dstest5_msgconv_sample_config.txt
  118. #(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload
  119. #(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal
  120. #(256): PAYLOAD_RESERVED - Reserved type
  121. #(257): PAYLOAD_CUSTOM - Custom schema payload
  122. msg-conv-payload-type=0
  123. # Name of library having custom implementation.
  124. #msg-conv-msg2p-lib=<val>
  125. # Id of component in case only selected message to parse.
  126. #msg-conv-comp-id=<val>
  127. # Configure this group to enable cloud message consumer.
  128. [message-consumer0]
  129. enable=0
  130. proto-lib=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_kafka_proto.so
  131. conn-str=localhost;9092
  132. #config-file=<broker config file e.g. cfg_kafka.txt>
  133. subscribe-topic-list=quickstart-events
  134. # Use this option if message has sensor name as id instead of index (0,1,2 etc.).
  135. sensor-list-file=dstest5_msgconv_sample_config.txt
  136. [osd]
  137. enable=1
  138. gpu-id=0
  139. border-width=1
  140. text-size=10
  141. text-color=1;1;1;1;
  142. text-bg-color=0.3;0.3;0.3;1
  143. font=Arial
  144. show-clock=0
  145. clock-x-offset=800
  146. clock-y-offset=820
  147. clock-text-size=12
  148. clock-color=1;0;0;0
  149. nvbuf-memory-type=0
  150. [streammux]
  151. gpu-id=0
  152. ##Boolean property to inform muxer that sources are live
  153. live-source=0
  154. batch-size=1
  155. ##time out in usec, to wait after the first buffer is available
  156. ##to push the batch even if the complete batch is not formed
  157. batched-push-timeout=40000
  158. ## Set muxer output width and height
  159. width=1920
  160. height=1080
  161. ##Enable to maintain aspect ratio wrt source, and allow black borders, works
  162. ##along with width, height properties
  163. enable-padding=0
  164. nvbuf-memory-type=0
  165. ## If set to TRUE, system timestamp will be attached as ntp timestamp
  166. ## If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached
  167. # attach-sys-ts-as-ntp=1
  168. [primary-gie]
  169. enable=1
  170. gpu-id=0
  171. batch-size=1
  172. ## 0=FP32, 1=INT8, 2=FP16 mode
  173. bbox-border-color0=1;0;0;1
  174. #bbox-border-color1=0;1;1;1
  175. #bbox-border-color2=0;1;1;1
  176. #bbox-border-color3=0;1;0;1
  177. nvbuf-memory-type=0
  178. interval=0
  179. gie-unique-id=1
  180. model-engine-file=peoplenet/resnet34_peoplenet_pruned.etlt_b1_gpu0_int8.engine
  181. labelfile-path=peoplenet/labels.txt
  182. config-file=config_infer_primary_peoplenet.txt
  183. #infer-raw-output-dir=../../../../../samples/primary_detector_raw_output/
  184. [tracker]
  185. enable=1
  186. tracker-width=640
  187. tracker-height=288
  188. ll-lib-file=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_nvdcf.so
  189. #ll-config-file required for DCF/IOU only
  190. ll-config-file=tracker_config.yml
  191. #ll-config-file=iou_config.txt
  192. gpu-id=0
  193. #enable-batch-process applicable to DCF only
  194. enable-batch-process=0
  195. [nvds-analytics]
  196. enable=1
  197. config-file=config_nvdsanalytics.txt
  198. [tests]
  199. file-loop=0