I am saving the rtsp stream on the disk in 30 sec clips.
#!/bin/bash
RTSP_STREAM_URI=${1:-'rtsp://admin:xxxx1234@192.168.1.41:554/cam/realmonitor?channel=1&subtype=0'}
RTSP_STREAM_FILENAME=${2:-rtsp-stream}
#Capture rtsp stream to file and show the feed
gst-launch-1.0 rtspsrc location=$RTSP_STREAM_URI latency=200 ! rtph264depay ! tee name=t ! queue ! h264parse ! nvv4l2decoder ! nvvidconv ! nv3dsink \
t. ! queue ! h264parse ! splitmuxsink max-size-time=10000 location=$RTSP_STREAM_FILENAME-%02d.mp4 -e
I can play the files individually but when I am trying to play one after another using multifilesrc I am not able to figure out what to give of the caps.
gst-launch-1.0 multifilesrc location=$RTSP_STREAM_FILENAME-%02d.mp4 caps="video/x-h264" ! qtdemux ! h264parse ! nvv4l2decoder enable-max-performance=1 ! nv3dsink -e
No luck with gst-discoverer-1.0 to determine the video type and framerate of the persisted video.
roy@jetson:~/Desktop$ gst-discoverer-1.0 ./rtsp-stream-00.mp4
Analyzing file:///home/roy/Desktop/./rtsp-stream-00.mp4
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Done discovering file:///home/roy/Desktop/./rtsp-stream-00.mp4
Topology:
container: Quicktime
video: H.264 (Main Profile)
Properties:
Duration: 0:00:01.881000000
Seekable: yes
Live: no
Tags:
video codec: H.264 / AVC
maximum bitrate: 42970320
bitrate: 4443733
datetime: 2019-11-12T01:22:20Z
container format: ISO MP4/M4A
Any pointers?
Thanks,