[winswitch] Off Topic: How to stream audio from a linux app to a browser
tzahi ml
tzahi.ml at gmail.com
Sat Oct 22 21:45:40 BST 2016
I can tell you that I tried to stream ogg and when the browser accessed
that stream it first buffered 2 secs. When there was a bandwidth stress
the browser(chrome) automatically increased the buffer size to cope. The
problem is that it doesn't go down and stayed 9 sec latency until you
reconnect to the stream.
I.e using the mechanism of the browser is not very good.
On Oct 20, 2016 2:07 PM, "Antoine Martin via shifter-users" <
shifter-users at lists.devloop.org.uk> wrote:
> On 20/10/16 17:36, tzahi ml via shifter-users wrote:
> > Tried that but there is a 3 sec delay (which is better than simply
> > icecasting but still)... good to know though.
> > Wish there was a way to get it to 1 sec.
> With xpra, you should be able to get less than 0.5 sec, network
> permitting. (and not with IE...)
>
> > that would be totally acceptable.
> > All these are transcoding the sound into mp3/ogg and this requires some
> > kind of buffering which takes at least 3 sec.
> Xpra can transcode to most of these formats in under 0.1s, other more
> efficient formats like opus and vorbis take even less time.
>
> > The only way i see is to send the data as is to the browser and play it.
> > But, that sounds like scifi to me.
> > Xpra html5 could encode the audio in the h264 stream when it will be
> > available.
> > Seems like the only way to get good results.
> WAV or MP3 can get decent results, the ultimate goal is to use AAC in an
> mpeg4 container. We're not going to mux it with the video because that's
> just too messy (there can be no video at times, etc...)
>
> I am working on the HTML5 client updates right now, just bear with me..
>
> Cheers
> Antoine
>
> >
> >
> > On Wed, Oct 19, 2016 at 8:46 AM, Timothy Hobbs via shifter-users <
> > shifter-users at lists.devloop.org.uk> wrote:
> >
> >> If you happen to use pulseaudio, then you could try adding a "stream"
> >> sink. I have not tested this, but here is an example:
> >>
> >> https://gist.github.com/djmaze/5234008
> >>
> >> On 10/13/16 14:09, tzahi ml via shifter-users wrote:
> >>> Hi,
> >>> Sorry for the off topic but I cannot seem to find and answer online.
> >>> I am trying to figure out how to send real time audio from a linux
> >> program
> >>> (pulseaudio?) to a web browser (web audio api?) without a plugin. I
> could
> >>> not find guides or anything close. I tried shoutcast etc... but they
> are
> >>> very laggy and defeats the point.
> >>>
> >>> Can someone point me in the right direction?
> >>> (maybe from the html5 team)
> >>>
> >>> Thanks!
> >>> _______________________________________________
> >>> shifter-users mailing list
> >>> shifter-users at lists.devloop.org.uk
> >>> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> >>
> >> _______________________________________________
> >> shifter-users mailing list
> >> shifter-users at lists.devloop.org.uk
> >> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> >>
> > _______________________________________________
> > shifter-users mailing list
> > shifter-users at lists.devloop.org.uk
> > http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> >
>
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
>
More information about the shifter-users
mailing list