FluMotion

Streaming com Ferramentas livres!

Página teste - Em construção!!

Baixe esta pasta antes de começar

http://rapidshare.de/files/32570386/Streaming.tar.gz.html

Minhas anotações no LinuxChix Floripa 2006

FERRAMENTAS

http://ffmpeg.mplayerhq.hu

Coleção de softwares que pode gravar, converter e fazer streaming de áudio e video

  • ffserver
    • -Servidor de strreaming http multimidia -Instável -Projeto parado

http://v2v.cc/~j/ffmpeg2theora/

Baseado no ffmpeg

  • -converte para oog ou theora qualquer arquivo que o ffmpeg interprete -sozinho não é considerado ferramenta de streaming -tem sistema de captura por device (webcan,placa de captura)

OGGFWD http://v2v.cc/~j/ffmpeg2theora/oggfwd Envia um streaming ogg (theora +vorbis) para um servidor

FFMPEG2THEORA + OGGFWD

utilizando recurso shell

Instalação

sudo apt-get install helix-player

$ ffmpeg2theora --v4l /dev/video0 --inputfps 10 -x 352 -y 288 -o - | ogg localhost 8000 <senha> /arquivo.ogg

Cliente

$ hxplay http://192.168.0.30:8000/chix.ogg

VLC

http://www.videolan.org/vlc servidor e cliente video - interface gráfica não é bom para Ogg

Soluções Garantidas

Gstreamer

  • % Hardware (Minimo Pentium 4)

gst-launch-010 filesrc location=file.mp3 ! mad ! audioconvert ! audio


Icecast

$ cd streaming

$ tar zxvf icecast-2.3.1.tar.gz

$ cd icecast-2.3.1

$ sudo apt-get install libxslt1-dev libogg-dev libvorbis-dev

$ ./configure --with-ogg --with-vorbis --with-theora

$ make

$ sudo make install

$ sudo gedit /usr/local/etc/icecast.xml

# no final do arquivo

Retirar do security: <!-- -->

sudo mkdir -p /usr/local/var/log/icecast sudo chown nobody /usr/local/var/log/icecast

$ sudo icecast -c /usr/local/etc/icecast.xml

Abrir navegador em http://localhost:8000/

$ cd ..

$ cat cola

"Copiar"

gst-launch-0.10 \

  • audiotestsrc ! \
    • audioconvert ! \ audioresample ! \ capsfilter ! audio/x-raw-float,rate=\(int\)22050, channels=1 ! \ vorbisenc bitrate=24000 max-bitrate=20000 ! \ queue ! icecastmux. \
  • videotestsrc ! \
    • "video/x-raw-yuv",width=320,height=240 ! videoscale ! \ "video/x-raw-yuv",width=320,height=240 ! videorate ! \ "video/x-raw-yuv",framerate=\(fraction\)400/40 ! \
    • ffmpegcolorspace ! theoraenc bitrate=64 ! queue ! icecastmux. \
    • oggmux name=icecastmux max-delay=500000000 max-page-delay=500000000 ! \
      • shout2send ip=localhost port=8000 password=hackme \

        streamname="LinuxChix" description="Linuxchix" genre="Free software" mount=chix.ogg

* cole esse treco no terminal * videotestsrc pode ser trocado por video0 = webcan | localhost por outro lugar F5 no navegador

Clicar no link "Click to listen"

Flumotion

www.flumotion.net Completo Codifica, converte, transmite e grava. Usa gstreamer - Interface gráfica

Instalar versão nova, consta da pasta!!!

Compilando...

na pasta streaming

$ tar jxvf flumotion-0.2.1.tar.bz2

$ cd flumotion-0.2.1

build-essential python-gtk-1.2 python-gtk2 python-gtk2-dev python-gtk-tutorial python-gtkmvc python-gtk2.4-gtk2 twisted-doc twisted-doc-api python2.4-twisted $ ./configure --prefix=/flumotion

$ make

$ sudo make install

Na pasta streaming/flumotion-0.2.1

$ /flumotion/bin/flumotion-manager -T tcp conf/managers/default/planet.xml &

$ /flumotion/bin/flumotion-worker -T tcp -u vitor -p 12345 &

  • -u = user e -p = password

$ /flumotion/bin/flumotion-admin

""Wizard de Configurações do Flumotion"" $ flumotion-admin

  • Desmarcar SSL
  • localhost pode ser uma máquina remota - Na etapa "Source"

Video

- TestevideoSource = tev com chuvisco - webcan - placa de captura -fire wire

Audio

- test - sound card - firwire

Test Video

Tamanho da imagem (largura e altura) = (320-240) Framerate ideal

Overley

Escrever sem imagem para aparecer no video final

(caixa de mostrar logo mostra as figuras dos desenvolvedores, pode ser mudado mexendo nos arquivos base)

  • - Teste Audio Source

Encoding

Formato = Ogg Video = Theora Audio = Vorbis

Theora

Bit rate = 400kbit/s Qualidade =

Vorbis

bit rate = 64 qualidade = 0,5

Consumption

Pode marcar tudo pois as diferentes conexões podem ser atendidas;;

Pode gravar em disco

Http Streamer 9Audio & Video)

Disk (Gravando audio e video)

Pode escolher Local a ser guardado e o tamanho dos arquivos, podendo escolher por tempo ou tamanho.

Licença

Creativecommons

Carinhas felizes = progra rodando legal! (demora um pouco)

Replicando Flumotion

Integrar o Flumotion com icecast

Gerenciar = parar todos para parar.

CORTADO

http://www.flumotion.net/cortado

-Applet Java -Interpreta Ogg vorbis e/ou Ogg theora -POssibilita um streaming sem a necessidade de um player - pode rodar como um frame

Informações

Armando Taffarel Neto taffarel@solis.coop.br

Solis - O lado livre da tecnologia

TimeDeDocumentacao/UbuntuVideos/FluMotion (last edited 2011-09-19 23:20:46 by localhost)