Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Last active February 5, 2020 11:11
Show Gist options
  • Save FreeFly19/9bfcc4fbc90a38427ac93fe8d82b5eb2 to your computer and use it in GitHub Desktop.
Save FreeFly19/9bfcc4fbc90a38427ac93fe8d82b5eb2 to your computer and use it in GitHub Desktop.
Command for gstreamer rtsp to mp4 file
gst-launch-1.0 -e rtspsrc location='rtsp://localhost:554/stream' latency=300 ! queue ! rtph264depay ! h264parse ! mp4mux ! filesink location=file3.mp4
st-launch-1.0 -e rtspsrc location='rtsp://localhost:554/stream' ! rtph264depay ! h264parse ! mp4mux ! filesink location=video.mp4
gst-launch-1.0 -e rtspsrc location='rtsp://localhost:554/stream' ! rtph264depay ! h264parse ! avimux ! filesink location=enterence-into-small-parking.avi
gst-launch-1.0 -v -e rtspsrc protocols=tcp location='rtsp://localhost:554/stream' ! queue ! rtph264depay ! h264parse ! mpegtsmux ! hlssink location="%06d.ts" target-duration=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment