Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread José Mejuto
El 02/02/2017 a las 18:25, fredvs escribió: - Opus: only one sample-rate: 48k (easier for mixing + DSP) AbbreviationAudio bandwidth Effective sample rate NB (narrowband) 4 kHz 8 kHz MB (medium-band) 6 kHz12 kHz WB (wideband) 8

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread fredvs
> Anyway mp3 technology is surpassed a lot by others. Hum, first shots with Opus: - For same quality, size of Opus is 20 % smaller than mp3. - You may encode in different modes (voice, audio,..). - Tag is much easier to access/edit than mp3. - Opus: only one sample-rate: 48k (easier for mixing

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread fredvs
> Hi freedvs, does it mean with UOS I can create an audio streaming server via HTTP?. If you convert your audio file into opus-file, no problem. But for live audio streaming server... I take a little break and then, it is the next battle. I can already encode the incoming pcm into Opus file.

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread José Mejuto
El 02/02/2017 a las 16:32, Santiago A. escribió: El 17/01/2017 a las 16:48, José Mejuto escribió: Maybe you may think in Opus http://opus-codec.org/ as it is open, royalty free (mp3 is not free, you must pay royalties for the encoder side) and source code is C89 so it must be compilable

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread Santiago A.
El 17/01/2017 a las 16:48, José Mejuto escribió: > > Maybe you may think in Opus http://opus-codec.org/ as it is open, > royalty free (mp3 is not free, you must pay royalties for the encoder > side) and source code is C89 so it must be compilable (libopus) in > almost any platform without a

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread Leonardo M . Ramé
Hi freedvs, does it mean with UOS I can create an audio streaming server via HTTP?. Regards, Leonardo M. Ramé http://leonardorame.blogspot.com From: fredvs <fi...@hotmail.com> To: fpc-pascal@lists.freepascal.org Sent: Thursday, February 2, 2017 10:19 AM Subject: Re: [fpc-pasca

Re: [fpc-pascal] fpc and voip ?

2017-02-02 Thread fredvs
Hello. I am happy to announce that uos does internet-streaming with opus files. Take a look at conswebstream and simplewebplayer demos. https://github.com/fredvs/uos Here demo (ok, the sound is not perfect because the video recorded the sound from the mic, but in real the sound is perfect):

Re: [fpc-pascal] fpc and voip ?

2017-01-20 Thread fredvs
> Maybe you may think in Opus http://opus-codec.org/ Yep, wrappers for libopus and libopusfile are translated and working for fpc. Also Opus is part now of uos (and working). Libraries for Linux64 and Win32 included (for other os, it will come asap). Updated SimplePlayer demo with Opus sample.

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread fredvs
> Maybe you may think in Opus http://opus-codec.org/ Huh and the header is already translated for Delphi... https://github.com/DelphiForAudio/delphi-opus-wrapper/blob/master/uLibOpus.pas That Opus format (very-young: 2012) seems very-promising. Ok, I will convert the Delphi wrapper into fpc

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread fredvs
> I think that if you like to continue this discussion we should move it to fpc-other. OK. Then, back to fpc. Does fpc have, with fphttpclient.pas/fphttpserver.pas, all the tools to make that (live)file ready to use for url-clients ? Or is a external web package + libraries needed ? Thanks.

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread José Mejuto
El 17/01/2017 a las 16:28, fredvs escribió: What do you think about the flac format ? It seams to have all the feature needed on... (and flac is already integrated in uos). Hello, FLAC is basically a compressed WAV (advanced compression), so high quality sound but low compression ratio,

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread fredvs
> For conversation: > G.7* (G.711 - G.7229) > Speex > Opus Ha, ok. But I have to find the headers for those libraries... > And maybe some others. https://en.wikipedia.org/wiki/Comparison_of_audio_coding_formats What do you think about the flac format ? It seams to have all the feature

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread José Mejuto
El 17/01/2017 a las 12:56, fredvs escribió: @ Jose => many thanks I will deeply study your advices. In the other side, mp3 is not a suitable format for voIP, as it have a big latency. Huh, what format would be better for voice over ip ? Hello, For conversation: G.7* (G.711 - G.7229)

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread fredvs
@ Jose => many thanks I will deeply study your advices. > In the other side, mp3 is not a suitable format for voIP, as it have a big > latency. Huh, what format would be better for voice over ip ? @Lukasz > Yeah, Fred mentioned VoIP, that's why I thought of a real VoIP application > to look

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread Lukasz Sokol
On 17/01/17 09:04, José Mejuto wrote: > El 16/01/2017 a las 23:10, fredvs escribió: > > Hello, > >> What must be done to make: - a url-mp3-file like 1) on server > [...] > In the other side, mp3 is not a suitable format for voIP, as it have > a big latency. > Yeah, Fred mentioned VoIP, that's

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread José Mejuto
El 16/01/2017 a las 23:10, fredvs escribió: Hello, What must be done to make: - a url-mp3-file like 1) on server That's just a file, you send it like a file with the proper MIME type, is the client that reads information from the stream as needed. - a url-mp3-chunk like 2) on server

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread fredvs
> I thought about it a bit... isn't this how YouTube Live Stream or Twitch and alikes somehow works? > Maybe your inspiration can come from there ? Maybe or maybe from web-radios... For example, I can (via uos) connect and do streaming to url-mp3 like this: 1)

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 16/01/17 16:02, fredvs wrote: > Hello. > > Thanks Lucaz for the link. > > But this is too complete ! > OOps :) > I will try to explain what i want and if it is possible to do it with > fphttpclient/server.pas. > > I can successfully save to file input from mic/wav/mp3/ogg/flac to wav file.

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread fredvs
Hello. Thanks Lucaz for the link. But this is too complete ! I will try to explain what i want and if it is possible to do it with fphttpclient/server.pas. I can successfully save to file input from mic/wav/mp3/ogg/flac to wav file. Is it possible that this file, while recording, could be

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 14/01/17 13:05, fredvs wrote: > Hello. > > I have lot of success to play mp3 files with library mpg123+portaudio and > fpc unit fphttpclient.pas. > > Andrew Haines did a perfect work with his TThreadHttpGetter (that is now > included in https://github.com/fredvs/uos). > > So getting the