Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquidsoap does not play next song when jingle is played #1074

Closed
bjarn opened this issue Jan 14, 2020 · 5 comments
Closed

Liquidsoap does not play next song when jingle is played #1074

bjarn opened this issue Jan 14, 2020 · 5 comments
Assignees
Labels
Milestone

Comments

@bjarn
Copy link

bjarn commented Jan 14, 2020

Hello,

First things first. I am currently using the following crossfade function in my liquidsoap configuration:
radio = crossfade(fade_out=0.01, fade_in=0.01, default=(fun(a,b)->add(normalize=false,([b, a]))), conservative=true, radio)

My playlist entries all have the variables liq_cross_duration and liq_cue_in set. These are being generated by a python script which scans the songs.
annotate:title="1000 Nights",artist="Frenship",duration="240.",song_id="efa1e16473d9dc4f202fb01bc8365cac",media_id="706",liq_cross_duration="9.80",liq_cue_in="0.",playlist_id="3":/var/azuracast/stations/xxx/media/xxx/165 - Frenship - 1000 Nights.mp3

Now, my issue is. I play a jingle ever 2 songs. This jingle starts when the previous song is ending, the liq_cross_duration value. However, there are chances that there are jingles which are barely 1 or 2 seconds. When these are being played, the previous song is still fading out, but the jingle ended.

What happens now is that there will be silence on the stream. I have been trying to figure out a way to force the next song to play after the jingle ended, even though the previous song is still fading out.

Is this possible?

Thanks a lot!

@dbeiner
Copy link

dbeiner commented Feb 7, 2020

Hi,

I guess we need the same result ?

Check my post : #1086

@dbeiner
Copy link

dbeiner commented Feb 27, 2020

Hi !

Nobody ?

Thank you !

@bjarn
Copy link
Author

bjarn commented Mar 4, 2020

Hi @dbeiner, this doesn't seem like the same issue.

Not sure if @toots is able to assist me on this one.

An example timeline of what I mean.

The red line is the entire timeline.

The yellow line is the current playing track. At the first orange stripe, it starts fading out + starts the jingle (green line). However, the fade out takes longer than the duration of the jingle. So at the second orange stripe it ends the jingle and the next song (blue line) starts when the entire fade out has ended. So there's a quiet empty space between the end of the jingle and the start of the next song.

The desired effect is to start the next song when the jingle ends.

Thanks!

Leeg

@toots
Copy link
Member

toots commented Jul 5, 2020

Hi! Have you tried to create a custom transition function when jjngles are being played? You should be able to:

  • Add a metadata on the jingle track via your annotate URI, typically type="jingle".
  • Define a custom cross() transition function that checks for type in the ending and beginning track and returns a transition with no fade on the track that is a jingle.

Hope that helps! Feel free to come discuss it in our slack channel!

@toots
Copy link
Member

toots commented Jul 25, 2020

This was closed in the too commits above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants