Comandos gstreamer para streaming de desktop para raspberry pi

FFMPEG H264

enviar:

ffmpeg -f x11grab -show_region 1 -s 1024×768 -r 25 -i: 0,0 + 10.210 -vcodec libx264 -preset ultrarrápido -tune zerolatency -f rtp rtp: //192.168.0.11: 5000

recv:

gst-launch-1.0 -v udpsrc port = 5000 caps = “application / x-rtp, media = (string) video, clock-rate = (int) 90000, encoding-name = (string) H264”! rtph264depay! h264parse! omxh264dec! videoconvert! autovideosink sync = false


VLC MJPG

enviar:

cvlc screen: //: screen-fps = 25: screen-caching = 100 –sout ‘#transcode {vcodec = MJPG, vb = 0, width = 1022, height = 575, acodec = none}: http {mux = mpjpeg , dst =: 8080 /} ‘

recv:

gst-launch-1.0 -v souphttpsrc location = http://192.168.0.7:8080 ! jpegparse! omxmjpegdec! autovideosink


VLC MJPEG (OGG para muxing de som)

enviar:

cvlc screen: //: screen-fps = 25: screen-caching = 100 –sout ‘#transcode {vcodec = MJPG, vb = 0, width = 1022, height = 575, acodec = none}: http {mux = ogg , dst =: 8080 /} ‘

recv:

gst-launch-1.0 -v souphttpsrc location = http://192.168.0.7:8080 ! oggdemux! jpegparse! omxmjpegdec! autovideosink


De outros

gst-launch-1.0 -v souphttpsrc location = http://192.168.0.7:8080 ! decodebin! autovideosink

gst-launch-1.0 rtspsrc location = rtsp: //192.168.0.7: 8554 /! rtph264depay! h264parse! omxh264dec! autovideosink

gst-launch-1.0 -v souphttpsrc location = http://192.168.0.7:8080 ! jpegparse! omxmjpegdec! autovideosink

gst-launch-1.0 -v tcpclientsrc host = 192.168.0.7 port = 8080! jpegparse! omxmjpegdec! autovideosink