Best way to stream to webpage?

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Mon Apr 25 11:50:03 PDT 2011


On 04/25/2011 03:19 PM, Matias Hernandez Arellano wrote:
> My actual pipeline is:
>  appsrc name=\"mysrc\" ! video/x-raw-rgb,width=320,height=240 ! queue ! videoparse format=14 width=320 height=240 ! ffmpegcolorspace ! queue ! tcpserversink port=5000
...
> but i need change this pipeline (the appsrc pipeline) to stream to web page

The easiest way to do this is to run Icecast (http://www.icecast.org/) and
use the shout2send element.  For example

appsrc name=\"mysrc\" ! video/x-raw-rgb,width=320,height=240 ! queue !
videoparse format=14 width=320 height=240 ! ffmpegcolorspace ! queue !
theoraenc ! oggmux ! shout2send ip=your.icecast.server password=...
mount=/streamname.ogv

The resulting stream will play in Firefox 3.5 and newer, as well as recent
Chrome and Opera.  Safari and IE will require the Cortado java applet,
which you can set up separately.

--Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110425/9ef50f28/attachment.pgp>


More information about the gstreamer-devel mailing list