# Avoid dead air playing files from playlist

**URL:** <https://discourse.libretime.org/t/avoid-dead-air-playing-files-from-playlist/1349>\
**Category:** Get Help\
**Created:** [October 24, 2022, 3:50pm UTC](https://discourse.libretime.org/t/avoid-dead-air-playing-files-from-playlist/1349 "2022-10-24T15:50:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giucas](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@giucas](https://discourse.libretime.org/u/giucas)\
**Post date:** [October 24, 2022, 3:50pm UTC](https://discourse.libretime.org/t/avoid-dead-air-playing-files-from-playlist/1349/1 "2022-10-24T15:50:10Z")

</div>

I would like music is played when no show is broadcasted.  
I found a way to check if stream is silent ([here](https://github.com/mairlist/streammonitor))  
I’m writing a script to start streaming music, after 20 seconds of silence, with ffmpeg:

`ffmpeg -re -i playlist.txt -content_type audio/mpeg -f mp3 icecast://source:mypwd@localhost:8001/main`

The problem is I don’t know how to regain the stream (stopping ffmpeg stream) when a new live broadcasting on port 8001 starts.

Any idea?

---

<div class="post-metadata">

**Author:** ![bobjonkmandj](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/bobjonkmandj/32/340_2.png) [@bobjonkmandj](https://discourse.libretime.org/u/bobjonkmandj)\
**Post date:** [October 24, 2022, 9:21pm UTC](https://discourse.libretime.org/t/avoid-dead-air-playing-files-from-playlist/1349/2 "2022-10-24T21:21:09Z")

</div>

Instead of using an external task to check for silence, we use the “Outro Autoloading Playlist” on the General Settings page to provide content when nothing else is scheduled.

–Bob.

---

<div class="post-metadata">

**Author:** ![giucas](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@giucas](https://discourse.libretime.org/u/giucas)\
**Post date:** [October 25, 2022, 8:26am UTC](https://discourse.libretime.org/t/avoid-dead-air-playing-files-from-playlist/1349/3 "2022-10-25T08:26:23Z")

</div>

Thanks for your answer!  
You are right, that’s the simplest solution and probably it’s what I’m going to do. The only problem is I need to fill the calendar with shows (for the entire day) to use Outro Autoloading Playlist, am I right?  
I would prefer a playlist streamed when no show is broadcasted

giucas
