This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to send gstreamer data via UDP and consume it at VLC | |
# Sender | |
gst-launch-1.0 videotestsrc pattern=ball \ | |
! tee name=t \ | |
! queue \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=50000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker stop $(docker ps | egrep alfa | awk '{print $1}') | |
in this case alfa is the name of the image used to start the container , you can use anything that apears in docker ps, like, name or others |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pipeline to send video (simulating SRC) get the data from video0 | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=5000 | |
// if you are running it inside a docker container be aware of the host ip in udpsink | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! tee name=t \ | |
! queue \ | |
! decodebin \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=5000 \ | |
t. \ | |
! queue \ | |
! decodebin \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Capture and send video | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink port=5000 | |
Show the video | |
gst-launch-1.0 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcpdump -i lo udp port 8125 -vv -X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gst-discoverer-1.0 rtsp://192.168.0.110:8080/h264_ulaw.sdp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker inspect <container_name> | egrep IPAddress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -ti busybox ping google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -ti busybox ping google.com |