AddFromURL does not support ogg streams

Next Topic
 
classic Classic list List threaded Threaded
81 messages Options
12345
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
Thank you i will try it tomorrow .
I have made a prerelease of BeatFlow Player and BeatFlow Broadcaster

https://cdn-bb-eu1.insomnia.gr/file/insomnia-s3/monthly_2025_04/BeatFlowScreenshot.png.7d6c34f64d8bc0e54babfe8a0181dab3.png

Prerelease here
https://1drv.ms/u/s!AjOjnZn_tCQQinupZ8SmHnaF5q-Q

I will try to add audio streaming .
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
Hello.

>Prerelease here
>https://1drv.ms/u/s!AjOjnZn_tCQQinupZ8SmHnaF5q-Q

Nice!

> Thank you i will try it tomorrow .

You may test the new features of uos webstreaming, with icy tag for mp3/aac and auto select with the last release of swp:
https://github.com/fredvs/swp/releases

But I think I will forget ogg streaming, I did try also with libsndfile without luck.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
This post was updated on .
Please consider ogg/Vorbis as streaming even with download option only.
I have added your name on the about box already
Give me some time i will test it later today

**************
LATER ...

SWP works flawless under MX Linux 64 bit

I will try the updated lib ASAP
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
Later
after further investighation the situation on both
swp
and
simple web player demo
mp3 works
opus works only on 100% audio
aac some stations work some not !
these do not work  
http://stream.freemusicradio.nl:8100/stream.aac
https://s2.euer.tv/audio64aacp
found here
https://dir.xiph.org/search?q=aac
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
Please give me link to web streams with opus format, I did not find some.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
This post was updated on .
>http://s1.knixx.fm:5347/dein_webradio_vbr.opus
>try this one

Indeed, very strange, only 100% volume is ok otherwise bad sound.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
In reply to this post by trustfm
OK, I just checked and sadly there are problems if apply the volume for input opus web-stream, the decoder dont like it.

But there is a easy solution!

Instead of applying the volume for the input, apply it for the output.

So, for example in uos Simple Web Player, change all code with Input_Volume with Output_volume:

 uos_OutputSetLevelEnable(PlayerIndex1,  Out1Index, 2);

 uos_OutputAddDSPVolume(PlayerIndex1, Out1Index, 1, 1);
 
  uos_OutputSetDSPVolume(PlayerIndex1, Out1Index, TrackBar1.position / 100,
      TrackBar3.position / 100, True); // Set volume

procedure TForm1.TrackBar1Change(Sender: TObject);
begin
  if (button3.Enabled = False) then
    uos_OutputSetDSPVolume(PlayerIndex1, Out1Index, TrackBar1.position / 100,
      TrackBar3.position / 100, True);
end;  

procedure Tform1.ShowLevel;
begin
  ShapeLeft.Height  := round(uos_OutputGetLevelLeft(PlayerIndex1, Out1Index) * 146);
  ShapeRight.Height := round(uos_OutputGetLevelRight(PlayerIndex1, Out1Index) * 146);
  ShapeLeft.top     := 450 - ShapeLeft.Height;
  ShapeRight.top    := 450 - ShapeRight.Height;
end;  

I will update the demo asap.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
great idea ... i didnt thought that

PS : The metadata work ! ICY ...at least at the stations you have in the demos

PS2: In general the aac part does not compile under MAC i am porting Beatflow player and i had to disable it {.$DEFINE fdkaac} in the uos_define.inc
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
Audio web streaming is very sensible when decoding the buffer, better let it alone and do all the dsp after his job was done on the output buffer.

But you may still get the level/spectrum of the input (view meters) before it was altered by the output dsp.
Better not change the input buffer for the aac decoder, it cannot deal it right.

Also for all others decoders if you dont have multi inputs and so dont need to deal for each individual input it is maybe safer to apply dsp's on the output buffer.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
In reply to this post by trustfm
> the aac part does not compile under MAC

Should be fixed in last commit 3 minutes ago.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
In reply to this post by trustfm
Hello.
There was some commits about opus web stream in uos.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
Hello.

I just have try to play opus streams on Windows 11 but the library LibOpusFile-64.dll provided by uos fail to load.
Do you have more success to play opus streams on your Windows system?
If you have Windows 10/11, what library do you use for libopusfile-0.dll 64 bit?
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
i had always failed with LibOpusFile-64.dll on win10 machine .
i tested varius dlls no dice .
PS : for your radio listening program i have a page that has a lot of Creative Commons radio stations
https://www.trustfm.net/ebooks/CCRadio.php
You can also download it as m3u
https://www.trustfm.net/ebooks/Downloads/cc-radio-TrustFm.m3u
You can use the list for free
I have personally made this list and took me a lot of time to find these stations . It is hard to fine creative commons radio stations
I can add your application on the reccomended players !

I will retest the lib tomorrow !

PS2 : i had focused on libfaad under win10 i managed to compile it via cygwin but did not worked either . So i decided for now to support only the formats that are supported from libsndfile for my BeatFlow Player    
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
How, many thanks for the precious infos.
Yes it is a jungle to find good radios.
I am interested to find list of radios with icy tag, better with picture tag but I did not find a filter in all the web-stations list.

For libopusfile-0.dll 64 bit I fear that we need to find somebody with courage to build it from source.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
In reply to this post by trustfm
For Opus decoding i use libsndfile i do not load the opusfile lib at all this works on Linux and Win10 64 bit

Tip : If you solve the problem on how to load temp files via libsndfile you do not need the opusfile at all  
This might work on FLAC streams too !

The list i gave you i do not kow how many of them have icy tag but you can try ... The list is ultra filtered (i am updating it for 2 years)
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
Ha, ok, now libsndfile has opus decoding by default, good to know (I was waiting the pull request is adopted).
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
This post was updated on .
yes making Beatflow under linux then ported under win i updated libsnd and worked for opus . If didnt i would remove opus at all .
As i said opus has a BIG downfall to work at 48000 samplerate and this is a deal breaker for recording since we need a samplerate converter. So i focused only OGG/Vorbis for recording (from your example) and OPUS only for playing via libsndfile
This solution works under Win64, Linux 64, GhostBSD 64, and Mac big sur 64bit

Solving the temp problem of libsnd you can support without conditional programming mp3(added), ogg/vorbis, ogg/opus , flac at once so you need to cover only aac (already done)

Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

fredvs
Administrator
For Windows 10/11, you may also give a 32 bit version,  Windows 10/11 are 32 bit app compatible.
And opusfile 32 bit works.

For lbsndfile + web stream, I did try many ways and many white nights but I failed.
If you want I can give the src test.
Reply | Threaded
Open this post in threaded view
|

Re: AddFromURL does not support ogg streams

trustfm
Stupid question can you make the demo simpleplayer (open files) that is based on
sf_open_virtual
and not on
sf_open ?
Only loading portaudio+ libsndfile lib
12345