View Single Post
Posts: 2 | Thanked: 0 times | Joined on May 2010
#5
A little late but hopefully it may still help you. The following script I wrote is for the n900.

$1 - IP address to stream video to
$2 - port
$3 - which camera to grab
0- back camera
1 - front camera
$4 - what text you want


gst-launch v4l2src device=/dev/video$3 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! cairotextoverlay text="$4" ! jpegenc ! multipartmux ! tcpserversink host=$1 port=$2

... and of course the receiving script of the video stream

gst-launch tcpclientsrc host=$1 port=$2 ! multipartdemux ! jpegdec ! autovideosink




Originally Posted by shskjong View Post
HI.
Does anyone have a sample of how to add text to gstreamer video from c/c++ or Python, and update that text live as it changes?

I've read a bit about gstreamer but obviously not enough :-)