This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Send audio data | |
| gst-launch-1.0 multifilesrc location=sample.mp3 loop=true \ | |
| ! mpegaudioparse \ | |
| ! mpg123audiodec \ | |
| ! audioconvert \ | |
| ! audioresample \ | |
| ! audio/x-raw, rate=16000, channels=1, format=S16LE \ | |
| ! audiomixer blocksize=320 \ | |
| ! udpsink host=localhost port=10000 |
This file contains hidden or 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 multifilesrc location=sample.mp3 loop=true \ | |
| ! tee name=t \ | |
| ! queue \ | |
| ! mpegaudioparse \ | |
| ! mpg123audiodec \ | |
| ! audioconvert \ | |
| ! audioresample \ | |
| ! audio/x-raw, rate=16000, channels=1, format=S16LE \ | |
| ! audiomixer blocksize=320 \ | |
| ! udpsink host=localhost port=10000 \ |
This file contains hidden or 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
| It's needed to install | |
| sudo apt-get install gstreamer1.0-opencv | |
| before use the motinocells | |
| gst-launch-1.0 videotestsrc pattern=18 ! videorate ! videoscale ! video/x-raw,width=320,height=240,framerate=5/1 ! videoconvert ! motioncells ! videoconvert ! autovideosink | |
| Example in python to motion detection using motioncells | |
| https://www.raspberrypi.org/forums/viewtopic.php?t=235757 |
This file contains hidden or 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 \ | |
| videomixer name=m sink_1::xpos=50 sink_1::ypos=50 sink_2::xpos=400 sink_2::ypos=50 \ | |
| ! x264enc \ | |
| ! rtph264pay \ | |
| ! udpsink host=localhost port=5000 \ | |
| videotestsrc pattern=white \ | |
| ! video/x-raw, format=I420, framerate=5/1, width=740, height=480 \ | |
| ! m. \ | |
| videotestsrc pattern=red \ | |
| ! videobox left=100 \ |