[theora-dev] Using ogg to do live broadcast
Basil Mohamed Gohar
abu_hurayrah at hidayahonline.org
Sat Jul 10 10:52:44 PDT 2010
On 07/10/2010 02:20 AM, xiphmont at xiph.org wrote:
> Here is the single-bitrate (low bitrate) version of the script:
>
> #!/bin/sh
>
> gst-launch \
> hdv1394src blocksize="4136" \
> ! queue \
> ! mpegtsdemux name=demux\
> demux. \
> ! queue \
> ! mpeg2dec \
> ! videorate \
> ! video/x-raw-yuv,framerate=12/1 \
> ! ffvideoscale \
> ! video/x-raw-yuv,width=640,height=360,pixel-aspect-ratio=1/1 \
> ! tee name=preview \
> ! ffmpegcolorspace \
> ! queue \
> ! theoraenc bitrate=200 keyframe-force=64 \
> ! queue \
> ! mux. \
> demux. \
> ! queue \
> ! mad \
> ! audioconvert \
> ! audioresample \
> ! audio/x-raw-float,channels=1,rate=16000 \
> ! queue \
> ! vorbisenc quality=0.5 \
> ! queue \
> ! mux.\
> preview. \
> ! queue\
> ! xvimagesink sync="false" \
> oggmux name=mux \
> ! queue \
> ! progressreport \
> ! shout2send ip=127.0.0.1 \
> port=8000 password=passwordhere mount=stream.ogg
>
Thanks, Monty. I think that's the first time I've seen a gstreamer
pipeline that I actually understood at first glance - even amongst ones
I've written myself! I think I will try to write my scripts like this
from now on.
More information about the theora-dev
mailing list