Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fallback File

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
stream



Joined: 18 Oct 2011
Posts: 12
Location: US

PostPosted: Fri Jun 07, 2013 6:02 pm    Post subject: Fallback File Reply with quote

I'm running 2.3.2-KH30. Using a fallback mount to play a file when the source encoder is disconnected. Per one of Karl's posts here I've inserted <limit-rate> </limit-rate> in the mount block.

The fallback file plays, but when a client that is playing the fallback file disconnects, icecast crashes. The last entry in the error log before the restart is an rwlock/unlock error.

Anyone seen this or similar?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 07, 2013 6:57 pm    Post subject: Reply with quote

yes, and it should be fixed in more recent releases. 2.3.3-kh8 is the latest.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
stream



Joined: 18 Oct 2011
Posts: 12
Location: US

PostPosted: Fri Jun 14, 2013 5:28 pm    Post subject: Reply with quote

As always, thanks Karl!

Do all of the same cautions (encoding, sample rate, bitrate) still apply in the most recent releases?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 14, 2013 6:00 pm    Post subject: Reply with quote

yes, while some players may handle certain changes like bitrate, you cannot rely on it. I've tried to make the detector in the KH build as stable as possible but you still need to have playback in the players.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gee2803



Joined: 11 Aug 2006
Posts: 48

PostPosted: Sat Aug 10, 2013 10:15 am    Post subject: Reply with quote

Hello,

I just tried out to play a file as a fallback-mount. The limit rate seems to still be mandatory in 2.3.3_kh8.

Is it possible to fallback to an .aac-file? MP3 works, but .aac shows up "The file you requested could not be found" in browser, while it is placed in webroot as the working mp3.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Aug 10, 2013 11:24 am    Post subject: Reply with quote

fallback to aac file works in the same way as mp3, players will not notice a difference as long as they are the same format. Yes the limit-rate is required for fallbalk files in cases where listeners connect to a missing stream. multiple cases are handled, fallback not playing when main stream is down, fallback playing at a known rate and files being sent at fast rates. Don't forget you can do

...
<mount-name>/64k-filles/*<mount-name>
<limit-rate>64k</limit-rate>
...

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gee2803



Joined: 11 Aug 2006
Posts: 48

PostPosted: Sat Aug 10, 2013 12:18 pm    Post subject: Reply with quote

Thank you for your quick response.

Code:
<mount-name>/64k-filles/*<mount-name>
<limit-rate>64k</limit-rate>


Does this mean I can upload a folder to webroot and files will be played out of this one? Will it be alphabetical or can it be random?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Aug 10, 2013 1:22 pm    Post subject: Reply with quote

no, it's a pattern match for requests, it is not a playlist. If you want a playlist then use a source client or send a playlist to a player, the options I mentioned relate to specifying a rate for specific requests which includes fallback to files.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gee2803



Joined: 11 Aug 2006
Posts: 48

PostPosted: Sat Aug 10, 2013 5:16 pm    Post subject: Reply with quote

Okay, thanks. Sounds good to match several mountpoints, but I am using the same backup file all over. Works now. AAC just took some more seconds to go (lower bitrate)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber