gstreamer tips 2
Table of Contents
install gstreamer and plugins
sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-nice gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libgstreamer1.0-dev git libglib2.0-dev libgstreamer-plugins-bad1.0-dev libsoup2.4-dev libjson-glib-dev
send/receive rtp over rtp and udp
gst-launch-1.0 videotestsrc ! video/x-raw, width=640, height=360 ! queue ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.60.5 port=5555
gst-launch-1.0 udpsrc port=5555 \
! application/x-rtp, encoding-name=H264, payload=96 \
! queue \
! rtph264depay \
! decodebin \
! autovideosink
play mp4
gst-launch-1.0 filesrc location=test.mp4 ! decodebin ! nvvidconv ! videoconvert ! xvimagesink
reference
- https://forums.developer.nvidia.com/t/gst-launch-1-0-is-failing-to-read-a-video-on-jetpack-4-3/111074/4
- https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvvideoconvert.html
- https://github.com/hissinger/gstreamer-webrtcbin-demo/blob/main/webrtc-sendrecv.c
Comments |0|
Category: Uncategorized