Author Topic: Bass.net[Linux] - Can't record streaming  (Read 319 times)

kozima

  • Posts: 12
Bass.net[Linux] - Can't record streaming
« on: 27 Apr '18 - 19:27 »
HI,
I'm trying to record this streaming http://painel.localmidia.com.br:8054/aovivo but bass always return BASS_ERROR_FILEFORM from BASS_StreamCreateURL .
This is my code:

stream = Bass.BASS_StreamCreateURL("http://painel.localmidia.com.br:8054/aovivo", 0,
                                      BASSFlag.BASS_SAMPLE_MONO | BASSFlag.BASS_STREAM_AUTOFREE | BASSFlag.BASS_STREAM_BLOCK, null, (IntPtr)idStation);
Console.WriteLine(Bass.BASS_ErrorGetCode());

I'm having this problem with more urls like http://srv01.brasilstream.com.br:8044/stream and http://stm16.srvstm.com:8188

Ps: I'm using the most recente linux version from Bass and Bass.net with mono.

« Last Edit: 27 Apr '18 - 19:50 by kozima »

Chris

  • Posts: 1860
Re: Bass.net[Linux] - Can't record streaming
« Reply #1 on: 27 Apr '18 - 20:55 »
Hi that are all not  mp3/ogg stream(s).
they are  all aacPlus Streams.
« Last Edit: 27 Apr '18 - 22:22 by Chris »

Ian @ un4seen

  • Administrator
  • Posts: 21379
Re: Bass.net[Linux] - Can't record streaming
« Reply #2 on: 2 May '18 - 14:50 »
To play AAC files/streams on Linux, you will need the BASS_AAC add-on, which you can load via BASS_PluginLoad, like this:

Code: [Select]
BASS_PluginLoad("libbass_aac.so", 0);

Please see the BASS_PluginLoad documentation for more info.