How to save rtsp video stream with correct framerate

sulli_xue 912850408 at qq.com
Sat Jun 3 07:59:01 UTC 2017


Now I know how to save video file with correct framerate,the pipeline is as
follow:"gst-launch-1.0 rtspsrc do-timestamp=true is_live=true
location=rtsp://admin:admin12345@192.168.1.64:554/h264/ch33/main/av_stream
latency=0 ! tee name=t ! queue ! application/x-rtp,
media=video,framerate=25,encoding-name=H264 ! rtph264depay ! h264parse
config-interval=1 ! matroskamux ! filesink location=\"test.mkv\" t. ! queue
! decodebin ! videoconvert ! xvimagesink"
Just replace "mpegtmux" with "matroskamux" can get correct framerate number
25 by cvGetCaptureProperty(capture,CV_CAP_PROP_FPS).However
cvGetCaptureProperty(capture,CV_CAP_PROP_FRAME_COUNT) still get wrong number
and cvSetCaptureProperty(capture,CV_CAP_PROP_POS_FRAMES) cannot goto correct
position.Could someone help me?Please~




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-save-rtsp-video-stream-with-correct-framerate-tp4683176p4683188.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list