gstreamer-1.0 :: Grabbing video stream from H264 ip camera and dumping it to a video

1.1k views Asked by At

What would be an equivalent gstreamer-1.0 command for:

ffmpeg -i <cam-url> -vcodec copy /tmp/h264Vid.avi

Here camera is giving H264 stream and we want to dump it directly to a video via gstreamer (do no need decoded data).

1

There are 1 answers

0
Ahresse On

If you want to record your rtsp camera stream, this should work:

gst-launch-1.0 -e rtspsrc location=rtsp://<user>:<pass>@<ip>/h264.sdp \
    ! video/x-h264 ! avimux \
    ! filesink location=video_test.avi