On Feb 19, 2010, at 2:49 PM, Olm-e wrote:
for a sound only queue :
gst-launch-0.10 alsasrc ! audio/x-raw-
int,rate=44100,channels=2,depth=16
! queue ! audioconvert ! vorbisenc quality=0.8 ! oggmux ! tee
name=tt !
queue ! filesink location=artsbirthday-day3-$datenum.ogg tt. ! queue !
shout2send ip=x.x.x.x port=8000 password=mypass mount=mount.ogg
for a firewirevideo :
gst-launch-0.10 videomixer name=mix ! ffmpegcolorspace ! video/x-raw-
yuv
! queue ! theoraenc quality=32 name=venc \
oggmux name=mux ! tee name=tt ! queue ! filesink
location=streamfile.ogg \
tt. ! queue ! shout2send mount=/stream.ogg port=8000 password=xxx
ip=xxx \
alsasrc ! queue ! audioconvert ! vorbisenc name=aenc aenc. ! mux. \
venc. ! mux. \
dv1394src do-timestamp=true typefind=true ! queue ! dvdemux ! dvdec !
queue ! videorate ! videoscale ! ffmpegcolorspace ! video/x-raw-yuv,
width=352, height=288,framerate=15/1 ! videobox left=0 top=0
border-alpha=0 ! mix.
this is the one i use for v4l2:
gst-launch-0.10 v4l2src device=/dev/video0 ! video/x-raw-
yuv,width=320,height=240 ! queue ! videorate ! video/x-raw-
yuv,framerate=25/2 ! videoscale ! video/x-raw-
yuv,width=320,height=240 ! ffmpegcolorspace ! tee name=tscreen !
queue ! autovideosink tscreen. ! queue ! theoraenc quality=16 !
queue ! oggmux name=mux osssrc device=/dev/dsp ! audio/x-raw-
int,rate=22050,channels=1 ! queue ! audioconvert ! vorbisenc
quality=0.2 ! queue ! mux. mux. ! queue ! shout2send ip=giss.tv
port=8000 password=PASS mount=YOURMOUNTPOINT.ogg
you can add the tee plus filesink to keep a local copy as in the sound
example above.
---
Puredyne@goto10.org
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne