live stream with gstreamer

gst 0.10



apt-get install gstreamer-0.10*

gst-launch-0.10 v4l2src ! queue ! ffmpegcolorspace ! theoraenc quality=1 ! queue ! oggmux name=mux alsasrc ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! shout2send ip=giss.tv port=8000 password=pass mount=/mount.ogg

we can change framerate with

v4l2src ! queue ! videorate ! video/x-raw-yuv,framerate=5/1 ! ffmpegco,,,,,,

and grab at the same time with:

gst-launch-0.10 v4l2src ! queue ! ffmpegcolorspace ! theoraenc quality=1 ! queue ! oggmux name=mux alsasrc ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! tee name= t ! queue ! filesink location=test.ogg t. ! queue ! shout2send ip=giss.tv port=8000 password=pass

and preview at the same time with

gst-launch-0.10 v4l2src ! queue ! ffmpegcolorspace ! tee name=t1 ! queue ! xvimagesink sync=false t1. ! queue ! theoraenc quality=1 ! queue ! oggmux name=mux alsasrc ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! tee name= t ! queue ! filesink location=test.ogg t. ! queue ! shout2send ip=giss.tv port=8000 password=pass

for more options: http://wiki.laptop.org/go/Programming_the_camera


o