streaming delay
Stefan Sauer
ensonic at hora-obscura.de
Wed Feb 12 10:08:12 PST 2014
On 02/12/2014 04:33 PM, Lee Matthews wrote:
> Hi
>
> I wish to stream audio over the network using the flac codec. I use the following command :
Is flac a must? If both sides are part of your app, consider opus, which
can support low latency.
Stefan
>
> gst-launch -v autoaudiosrc ! flacenc ! tcpserversink port=9001
>
> to receive I use the command :
>
> gst-launch -v tcpclientsrc port=9001 ! flacdec ! audioconvert ! autoaudiosink
>
> I get about 1 second delay between sending and receiving the audio.
>
> If instead I transmit using :
>
> gst-launch -v autoaudiosrc ! audio/x-raw-int,channels=1,depth=16,width=16,rate=44000 ! flacenc ! tcpserversink port=9001
>
> the delay seems to go up to about 2 seconds.
>
>
> I wish to sample my audio at 16KHz instead of 44KHz, so if I transmit using :
>
> gst-launch -v autoaudiosrc ! audio/x-raw-int,channels=1,depth=16,width=16,rate=16000 ! flacenc ! tcpserversink port=9001
>
> I get an approx 4 second delay. Why is this ?
>
> I'm guessing it's because flacenc needs a certain number of samples before it can compress a block, it therefore has to wait longer with a lower sample rate ?
>
> Is there any way that I can reduce the sample rate whilst keeping a low delay ?
>
> Thanks
> Lee
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list