Question regarding gstreamer tee's and vorbis encoder

Sebastian Dröge sebastian at centricular.com
Sat Nov 9 09:34:08 PST 2013


On Fr, 2013-11-08 at 19:15 -0800, fahad wrote:
> I am trying to figure out audio encoding issue with vorbis encoder. The final
> goal of the test is to encode incoming audio from default (windows audio in,
> using dshowaudiosrc) and save it in an OGG format and then host it using
> RTSP/RTMP. I have been experimenting with the conversion scripts using
> gst-launch-0.10 and have been mostly successfull however if I tee the
> pipeline it breaks the encoding process. e.g.
> 
> Following works just fine, either from dhsowaudiosrc or audtiotestsrc
> gst-launch-0.10 audiotestsrc wave=sine num-buffers=100 ! audioconvert !
> vorbisenc ! oggmux ! filesink location=sine.ogg
> 
> Following does not work either way.....
> gst-launch-0.10 audiotestsrc wave=sine num-buffers=100 ! audioconvert ! tee
> name=t ! queue ! autoaudiosink t. ! queue ! spectrascope ! ffmpegcolorspace
> ! autovideosink t. ! queue ! vorbisenc ! oggmux ! filesink location=sine.ogg
> 
> Following two encoders do not show any erroneous behavior
> gst-launch-0.10 audiotestsrc wave=sine num-buffers=100 ! audioconvert ! tee
> name=t ! queue ! autoaudiosink t. ! queue ! spectrascope ! ffmpegcolorspace
> ! autovideosink t. ! queue ! ffenc_mp2 ! filesink location=sine.mp2
> 
> gst-launch-0.10 audiotestsrc wave=sine num-buffers=100 ! audioconvert ! tee
> name=t ! queue ! autoaudiosink t. ! queue ! spectrascope ! ffmpegcolorspace
> ! autovideosink t. ! queue ! flacenc ! filesink location=sine.flac
> 
> I am think it may have some thing to do with the mux but i am not sure. Can
> one of you guys shed some light on the issue?

How does it not work, what are the error messages you get? What could
help is to have an audioconvert element after every srcpad of tee,
instead of having only one in front of tee. Most of the time such
problems happen because the elements after tee require different
formats.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131109/d127ed03/attachment.pgp>


More information about the gstreamer-devel mailing list