node-rtsp-rtmp-server icon indicating copy to clipboard operation
node-rtsp-rtmp-server copied to clipboard

gstreamer rtspsrc example

Open jandrieu opened this issue 7 years ago • 1 comments

I've been struggling to use gstreamer to take an rtspsrc and send it to the rtmpsink of node-rtsp-rtmp-server.

If I'm willing to transcode the RTSP, the following works:

gst-launch-0.10 rtspsrc location=rtsp://192.168.1.1:5000/video1 ! decodebin ! x264enc bitrate=256 tune=zerolatency  ! h264parse ! flvmux name=mux streamable=true ! queue ! rtmpsink location='rtmp://localhost/live/STREAM_NAME' 

If that's the best option, it would be great to add that to the readme alongside the filesrc example.

However, if there's a way to avoid the transcoding, that would be ideal.

jandrieu avatar Mar 22 '17 03:03 jandrieu

I know I'm late at the party, but do you think there is any command similar to the line you wrote that would use gst-launch-1.0 instead and that wouldn't have to use an ugly plugin like x264enc? (:

morl0048 avatar Apr 05 '19 18:04 morl0048