Re: Using ogg to do live broadcast

Carlos Eduardo Matos Ellery <[email protected]> Fri, 9 Jul 2010 22:58:49 -0300
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
Monty, I'm interested in your script. Could you please send it to me too?
I used to use VLC/VLMa for encoding and streaming. I'm migrating to
gstreamer and icecast, and your script can help to improve mine. Until now
i'm just using gst-launch with the following pipeline to encode and send the
video in three different profiles, to different bandwidth requirements:

gst-launch-0.10 v4l2src ! queue ! ffmpegcolorspace !
"video/x-raw-yuv",format=\(fourcc\)I420,width=640,height=480 ! \
videorate ! video/x-raw-yuv,framerate=15/1 ! videocrop top=5 left=20 right=8
bottom=5 ! tee name=video1 \
video1. ! queue ! videoscale ! video/x-raw-yuv,width=640,height=480 !
ffmpegcolorspace ! theoraenc quality=48 ! queue ! mux1. \
video1. ! queue ! videoscale ! video/x-raw-yuv,width=400,height=300 !
ffmpegcolorspace ! tee name=video2 \
video2. ! theoraenc quality=48 ! queue ! mux2. \
video2. ! videorate ! video/x-raw-yuv,framerate=2/1 ! theoraenc quality=20 !
queue ! mux3. \
pulsesrc ! queue ! audio/x-raw-int,rate=22050,channels=1,depth=16 ! queue !
audioconvert ! vorbisenc quality=0.1 ! tee name=a \
a. ! queue ! oggmux name=mux1 ! queue ! shout2send ip=localhost port=8000
password=hackme mount=lan.ogv \
a. ! queue ! oggmux name=mux2 ! queue ! shout2send ip=localhost port=8000
password=hackme mount=internet.ogv \
a. ! queue ! oggmux name=mux3 ! queue ! shout2send ip=localhost port=8000
password=hackme mount=low.ogv

It works :)

Carlos Eduardo Matos Ellery

_______________________________________________
theora-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/theora-dev