-
Notifications
You must be signed in to change notification settings - Fork 4
/
gst-pipelines
32 lines (20 loc) · 5.07 KB
/
gst-pipelines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
gst-launch pipeline used as sender to the regie program:
gst-launch-1.0 jackaudiosrc provide-clock=false ! audio/x-raw,channels=2 ! audiorate ! audioconvert ! taginject tags="comment=audioComment" ! vorbisenc ! matroskamux name=mux streamable=true ! tcpserversink host=192.168.189.220 port=5000 videotestsrc ! video/x-raw,width=640,height=360,pixel-ascpect-ratio=1/1,framerate=25/1 ! timeoverlay ! clockoverlay deltay=50 ! taginject tags="comment=videoComment" ! vp8enc threads=2 deadline=20000 ! mux.
gst-launch-1.0 jackaudiosrc provide-clock=false ! audio/x-raw,channels=2 ! tee name=audio ! queue ! audiorate ! audioconvert ! taginject tags=comment=ayantaGOOM ! vorbisenc ! matroskamux name=mux streamable=true ! tcpserversink sync=false host=192.168.189.201 port=5005 audio. ! queue ! audioconvert ! goom ! video/x-raw,width=640,height=360,pixel-ascpect-ratio=1/1,framerate=25/1 ! timeoverlay ! clockoverlay deltay=50 ! taginject tags=comment=ayantaGOOM ! videoconvert ! vp8enc threads=2 deadline=35000 ! mux.
Alternative using h264 instead of VP8:
gst-launch-1.0 jackaudiosrc provide-clock=false ! audio/x-raw,channels=2 ! tee name=audio ! queue ! audiorate ! audioconvert ! taginject tags=comment=ayantaGOOM ! vorbisenc ! matroskamux name=mux streamable=true ! tcpserversink sync=false host=192.168.189.201 port=5005 audio. ! queue ! audioconvert ! goom ! video/x-raw,width=640,height=360,pixel-ascpect-ratio=1/1,framerate=25/1 ! timeoverlay ! clockoverlay deltay=50 ! taginject tags=comment=ayantaGOOM ! videoconvert ! x264enc tune=zerolatency byte-stream=true bitrate=4096 speed_preset=superfast ! mux.
Pipeline for direct C920 h264-streaming (with audiotestsrc):
gst-launch-1.0 v4l2src do-timestamp=true ! video/x-h264,width=640,height=360,framerate=30/1 ! h264parse ! matroskamux streamable=true name=mux ! tcpserversink host=192.168.189.253 port=5005 audiotestsrc ! vorbisenc ! mux.
Better quality, will be scaled down by jukuzregie for output but recorded in incoming quality:
gst-launch-1.0 v4l2src do-timestamp=true ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! matroskamux streamable=true name=mux ! tcpserversink host=192.168.189.220 port=5006 audiotestsrc ! vorbisenc ! mux.
Note about USB cable length: Not working: PC -> 3m ext. cord -> CAM (with 1.8m cord). WORKING: PC -> 3m ext. cord -> 1m USB A to USB B cable -> powered hub -> CAM (with 1.8m cable)
Re-Mux the Wansview NCM625W with audio but without re-encoding:
gst-launch-1.0 rtspsrc user-id=admin user-pw=123456 location=rtsp://192.168.189.79:554/12 name=src ! rtph264depay ! h264parse ! matroskamux streamable=true name=mux ! tcpserversink host=192.168.189.220 port=6005 src. ! rtpg726depay ! decodebin ! audioresample ! audio/x-raw,rate=48000 ! audioconvert ! vorbisenc ! mux.
Stream RPi's camera with DUMMY audio:
gst-launch-1.0 v4l2src do-timestamp=true ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! matroskamux streamable=true name=mux ! tcpserversink host=192.168.189.203 port=5005 audiotestsrc ! vorbisenc ! mux.
Play the mixed/produced output stream:
nc ayanta 6000 | mplayer -nocache -
OR
gst-launch-1.0 tcpclientsrc host=ayanta port=6000 ! decodebin name=decode ! jackaudiosink provide-clock=false decode. ! videoconvert ! ximagesink
Re-Stream output to icecast without re-encoding:
gst-launch-1.0 tcpclientsrc host=127.0.0.1 port=6000 ! matroskademux name=demux ! queue ! video/x-vp8 ! webmmux streamable=true name=mux ! queue ! shout2send ip=127.0.0.1 port=12000 password=pass mount=/test.webm demux. ! queue max-size-time=0 ! audio/x-vorbis ! mux.