Author Topic: BASS_Encode_CastInit & Icecast fallback  (Read 363 times)

hub73

  • Posts: 93
BASS_Encode_CastInit & Icecast fallback
« on: 12 Dec '22 - 22:28 »
Hello.
When i use BASS_Encode_CastInit() with Icecast it create a mountpoint.

But how to had this to the mountpoint ?

<fallback-mount>wait_live.ogg</fallback-mount>
 <fallback-override>1</fallback-override>

from Bass documentation :

Quote
  char *headers,
...
Other headers to send to the server... NULL = none. Each header should end with a carriage return and line feed ("\r\n"). The total length of the headers (including those from the other parameters) must not exceed 4KB
This is it ?

In fact I want the ogg file 'wait_live.ogg' to be played when the listeners are disconnected while we take the live. (Users should be back next with fallback-override)

Another question. Do you think that the  'wait_live.ogg' file must be on the local disk of the casting computer or directly in the tree of the server where Icecast is?

Many thanks for your ideas and help ! 
« Last Edit: 13 Dec '22 - 23:16 by hub73 »

Chris

  • Posts: 2190
Re: BASS_Encode_CastInit & Icecast fallback
« Reply #1 on: 13 Dec '22 - 12:12 »
so the Location of the BackupFile (wait_live.ogg) should to be on the Icecast Server
in the "Web-RootDirectory of the Icecast Dir"


you can find the Web-Root Directory inside the Icecast*.xml Settingsfile
e/g
<webroot>/usr/local/share/icecast/web</webroot>


« Last Edit: 13 Dec '22 - 12:23 by Chris »

Ian @ un4seen

  • Administrator
  • Posts: 25727
Re: BASS_Encode_CastInit & Icecast fallback
« Reply #2 on: 13 Dec '22 - 13:10 »
When i use BASS_Encode_CastInit() with Icecast it create a mountpoint.

But how to had this to the mountpoint ?

<fallback-mount>wait_live.ogg</fallback-mount>
<fallback-override>1</wait_live.ogg>

I don't think a source (eg. BASSenc) can set that, but rather it needs to be set in the Icecast server config, ie. in a "mount" section.

hub73

  • Posts: 93
Re: BASS_Encode_CastInit & Icecast fallback
« Reply #3 on: 13 Dec '22 - 23:42 »
i've uploaded transfert_auditeurs_final.ogg to /usr/share/icecast2/web

and chmod 705 transfert_auditeurs_final.ogg

Next i edit sudo nano /etc/icecast2/icecast.xml

i've just added this :

   <mount>
    <fallback-mount>transfert_auditeurs_final.ogg</fallback-mount>
    <fallback-override>1</fallback-override>
   </mount>


Next i restart the icecast server :  sudo /etc/init.d/icecast2 restart

But not works

« Last Edit: 14 Dec '22 - 08:23 by hub73 »

hub73

  • Posts: 93
Re: BASS_Encode_CastInit & Icecast fallback
« Reply #4 on: 14 Dec '22 - 08:21 »
Code: [Select]
  <mount>
    <mount-name>/MyMountName</mount-name>
    <fallback-mount>/transfert_auditeurs_final.ogg</fallback-mount>
    <fallback-override>1</fallback-override>
   </mount>

it works now. (inside /etc/icecast2/icecast.xml)
Many thanks !