Here’s my source and sink in configuration file. I want to save the source 0 video stream to an .mp4 file using sink0.
[source0]
enable=1
type=2
uri=rtsp://admin:test123@192.168.0.135:554
num-sources=1
latency=200
[sink0]
enable=1
type=3
container=1
codec=1
sync=0
output-file=out0.mp4
source-id=0
Following is the error I am receiving. What am I dong wrong here?
>>> Using TRT model serialized engine /home/nvidia/Desktop/SafeSite/Master-branch/config/../models/Secondary_CarMake/resnet18.caffemodel_b16_int8.engine crypto flags(0)
>>> Using TRT model serialized engine /home/nvidia/Desktop/SafeSite/Master-branch/config/../models/Secondary_CarColor/resnet18.caffemodel_b16_int8.engine crypto flags(0)
>>> Using TRT model serialized engine /home/nvidia/Desktop/SafeSite/Master-branch/config/../models/Secondary_VehicleTypes/resnet18.caffemodel_b16_int8.engine crypto flags(0)
>>> Using TRT model serialized engine /home/nvidia/Desktop/SafeSite/Master-branch/config/../models/Primary_Detector/resnet10.caffemodel_b4_int8.engine crypto flags(0)
cb_sourcesetup set 200 latency
cb_sourcesetup set 200 latency
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
z<row-index(0-9)><column-index(0-9)>: Expand a source from the 2D tile array
u: Go back to 2D tile array
**PERF: FPS 0 (Avg) FPS 1 (Avg)
**PERF: 0.00 (0.00) 0.00 (0.00)
** INFO: <bus_callback:104>: Pipeline ready
** INFO: <bus_callback:90>: Pipeline running
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
Allocating new output: 2560x1440 (x 20), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3528: Send OMX_EventPortSettingsChanged: nFrameWidth = 2560, nFrameHeight = 1440
NvMMLiteOpen : Block : BlockType = 261
Framerate set to : 0 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 261
H264: Profile = 66, Level = 40
nvstreamtiler: batchSize set as 4
Allocating new output: 2560x1440 (x 20), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3528: Send OMX_EventPortSettingsChanged: nFrameWidth = 2560, nFrameHeight = 1440
** INFO: <bus_callback:90>: Pipeline running
**PERF: 0.00 (0.00) 0.00 (0.00)
**PERF: 3.40 (3.40) 0.00 (0.00)
**PERF: 0.14 (0.49) 0.00 (0.00)
**PERF: 0.25 (0.42) 0.25 (0.25)
**PERF: 0.56 (0.47) 0.56 (0.45)
avg/max bitrate=0 for VBR_MINQP, force to CQP mode
**PERF: 0.00 (0.47) 0.00 (0.45)
ERROR from sink_sub_bin_mux1: Could not multiplex stream.
Debug info: gstqtmux.c(4553): gst_qt_mux_add_buffer (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/GstQTMux:sink_sub_bin_mux1:
Buffer has no PTS.
ERROR from sink_sub_bin_encoder1: Internal data stream error.
Debug info: /dvs/git/dirty/git-master_linux/external/gstreamer/gst-omx/omx/gstomxvideoenc.c(1383): gst_omx_video_enc_loop (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/GstOMXH264Enc-omxh264enc:sink_sub_bin_encoder1:
stream stopped, reason error
Quitting
ERROR from sink_sub_bin_mux1: Could not multiplex stream.
Debug info: gstqtmux.c(4553): gst_qt_mux_add_buffer (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/GstQTMux:sink_sub_bin_mux1:
Buffer has no PTS.
ERROR from sink_sub_bin_queue1: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/GstQueue:sink_sub_bin_queue1:
streaming stopped, reason error (-5)
NVMEDIA: cbDisplayPicture: 1738: Retunred NULL Frame Buffer
NVMEDIA: cbDisplayPicture: 1738: Retunred NULL Frame Buffer
App run failed