[gst-devel] vl4+alsa => theora => icecast
René Stadler
mail at renestadler.de
Sun Dec 17 04:15:57 CET 2006
Am Sonntag, den 17.12.2006, 02:44 +0100 schrieb alejo d:
> im having problems getting a video stream with audio using
> gst-launch-0.10.
> video goes out well, but when i try to get audio from alsa i get a:
>
> ERROR: from element /pipeline0/alsasrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(1614): gst_base_src_loop (): /pipeline0/alsasrc0:
>
> the pipeline im trying is:
>
> gst-launch-0.10 v4lsrc device=/dev/video0 !
> "video/x-raw-yuv",width=320,height=240 ! ffmpegcolorspace ! theoraenc
> bitrate=80 ! oggmux name=mux ! shout2send ip=son0p.tv port=8000
> password=XXXXX streamname=http://son0p.tv description="alej00d live
> transmission" mount=son0p.ogg alsasrc !
> audio/x-raw-int,width=16,depth=16,rate=44100,channels=2 ! audioconvert
> mux.
There are several things wrong with this pipeline:
- The order of the filtered video caps and the colorspace converter
should be swapped.
- Same thing for audio: Put the converter before the capsfilter.
- The audioconverter is not linked to the muxer, you are missing the "!"
between "audioconvert" and "mux.".
- oggmux does not accept raw audio.
Try something like this (completely untested):
gst-launch-0.10 v4lsrc device=/dev/video0 ! ffmpegcolorspace !
videoscale ! video/x-raw-yuv,width=320,height=240 ! theoraenc
bitrate=80 ! oggmux name=mux ! shout2send ip=son0p.tv port=8000
password=XXXXX streamname=http://son0p.tv description="alej00d live
transmission" mount=son0p.ogg alsasrc ! audioconvert ! audioresample !
audio/x-raw-float,width=32,rate=44100,channels=2 ! vorbisenc ! mux.
If you use a different audio encoder, don't forget to adjust the audio
caps if it uses a different input format.
Regards,
René Stadler
More information about the gstreamer-devel
mailing list