Most GStreamer examples found online are either for Linux or for gstreamer 0.10.
This particular release note seems to have covered important changes, such as:
- ffmpegcolorspace => videoconvert
- ffmpeg => libav
Applying -v
will print out useful information. And most importantly the negotiation results.
Before anything, you will need to install it:
On Mac OS, brew
will work for the most of the times. To install x264
support, simply type brew options gst-plugins-ugly
and you will see --with-x264
as an options. Sometimes you might need to brew reinstall
to get some plugins (not sure why? it just seems reinstallation helps).
sender:
gst-launch-1.0 -v v4l2src device=/dev/video1 ! 'video/x-h264,width=800,height=448,framerate=30/1' ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.0.100 port=9000
receiver:
gst-launch-1.0 -v udpsrc port=9000 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z0JAKLtAZBy/gKJAAAADAEAAAA8YEAALcbAAtx73vheEQjU\=\,aM44gA\=\=", payload=(int)96, ssrc=(uint)3725838184, timestamp-offset=(uint)2716743768, seqnum-offset=(uint)769' ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! facedetect ! videoconvert ! glimagesink
Need to understand what sprop-parameter-sets
does.
Amazing collection. Thank you.