UNDEFINED VARIABLE CUE #4378
Replies: 14 comments 3 replies
-
Hi @glenbuck1, |
Beta Was this translation helpful? Give feedback.
-
This looks like so AI hallucination right there.. 😅 |
Beta Was this translation helpful? Give feedback.
-
@glenbuck1 cue files are parsed as regular playlists. You should use the |
Beta Was this translation helpful? Give feedback.
-
Mea culpa...I hold my hands up...I was using AI in the hopes that it would give me a better solution than I was working out for myself! As mentioned, I was having some issues when previously using the cue sheets and parsing them with the playlist function...the ending of voice breaks between tracks was being clipped off by a couple of seconds even though crossfading was turned off and the cue sheet locations were accurate. Any ideas why this might be the case, please? Also, my apologies for wasting your time with AI hallucinations! |
Beta Was this translation helpful? Give feedback.
-
Hi, Vito
Given Romain’s comment about AI hallucination, I shan’t send you the output of those commands and waste your time further.
Thanks for your help, though.
Richard Bartholomew
From: Vito ***@***.***>
Sent: 27 February 2025 16:14
To: savonet/liquidsoap ***@***.***>
Cc: glenbuck1 ***@***.***>; Mention ***@***.***>
Subject: Re: [savonet/liquidsoap] UNDEFINED VARIABLE CUE (Discussion #4378)
Hi @glenbuck1 <https://github.com/glenbuck1> ,
What's the cue()?
Could you please add the outputs of liquidsoap --build-config and opam list?
—
Reply to this email directly, view it on GitHub <#4378 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG3GDAPE6PG42NGMI2LCYLT2R42WBAVCNFSM6AAAAABYAF5GPCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZUGEZDGNQ> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AG3GDAK4B2CGSQDITLAWDFD2R42WBA5CNFSM6AAAAABYAF5GPCWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAXRH7I.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Hi, When running the following in my script, track 1 of the file is identified and the title displayed but none of the subsequent ones. CueStandard="/home/radio/firepit/StandardTime.cue" def disable_fades(metadata) StandardTime = metadata.map(disable_fades, StandardTime) This is the code I used in 2.2.5 so I'm assuming the rewrite has changed things! However, I am struggling to understand the playlist.parse.cue.full syntax and could really do with a working example to crib from! Are there any sites with Liquidsoap examples, please...I haven't been able to find any as yet, unfortunately. Once more, thanks for any help. Richard Bartholomew |
Beta Was this translation helpful? Give feedback.
-
FILE "/home/radio/firepit/StandardTime.mp3" MP3 |
Beta Was this translation helpful? Give feedback.
-
Thanks! There was a bug in the parser indeed. Fix pending: #4381 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the very quick fix, Romain. This has definitely fixed the problem of not displaying track titles.
However, I still have the issue of portions of the file being clipped. As you can see from the below extract, the first actual track begins at 01:15:00 into the file but up until that point, there are promos being played which I have tried to allow for by inserting a Track 00.
Could this be causing the problem, do you think, and, if so, how do I ensure that the first minute and 15 seconds are played? Would a copy of the full cue sheet and file help in understanding the issue?
Thanks again.
Richard Bartholomew
TRACK 00 AUDIO
TITLE "Flashback Years"
PERFORMER "Phoenix Radio"
REM ALBUM ""
INDEX 01 00:00:00
TRACK 01 AUDIO
TITLE "Take a Chance on Me"
PERFORMER "ABBA"
REM ALBUM "ABBA Gold"
INDEX 01 01:15:00
From: Romain Beauxis ***@***.***>
Sent: 28 February 2025 15:17
To: savonet/liquidsoap ***@***.***>
Cc: glenbuck1 ***@***.***>; Mention ***@***.***>
Subject: Re: [savonet/liquidsoap] UNDEFINED VARIABLE CUE (Discussion #4378)
Thanks! There was a bug in the parser indeed. Fix pending: #4381 <#4381>
—
Reply to this email directly, view it on GitHub <#4378 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG3GDAJRSQQZY4JFEW3Z2232SB4WBAVCNFSM6AAAAABYAF5GPCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZVGI4DSMY> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AG3GDAOTO4TLYD6UU2Y6O2D2SB4WBA5CNFSM6AAAAABYAF5GPCWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAXR6X2.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
You should try adding a If you add a |
Beta Was this translation helpful? Give feedback.
-
Hi,
I added an Index 00 to match Track 00 and left the Track 01 and Index 01 pair in place. This seems to have made things worse as the first minute and 15 seconds were not played and track 2 started before it should do, cutting off the end of the voice break preceding it!
Any other suggestions, please?
Thanks
Richard Bartholomew
From: Romain Beauxis ***@***.***>
Sent: 28 February 2025 18:29
To: savonet/liquidsoap ***@***.***>
Cc: glenbuck1 ***@***.***>; Mention ***@***.***>
Subject: Re: [savonet/liquidsoap] UNDEFINED VARIABLE CUE (Discussion #4378)
You should try adding a INDEX 00 to your track. The time between INDEX 00 and INDEX 01 is what was pre-track/silence in the original audio CD burners (for which CUE was designed for).
If you add a INDEX 00 for instance before the commercial start and INDEX 01 where the track actually starts, the playlist parser should be smart enough to end the previous track at the next track's INDEX 00 and start the next track at INDEX 01.
—
Reply to this email directly, view it on GitHub <#4378 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG3GDAJFQNKNRQQLO5AVTPD2SCTILAVCNFSM6AAAAABYAF5GPCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZVGUYDQNI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AG3GDAMJHSTNUV5YQ6EEGFD2SCTILA5CNFSM6AAAAABYAF5GPCWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAXSDA2.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
You need something like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for your suggestion but, unfortunately, it won't work as I do not have start times for any commercials or voice breaks. The cue sheet is generated by a broadcasting package called StationPlaylist Studio whilst presenters are voice tracking a show. Therefore, what happens is that a song plays and then the presenter speaks and cues up the next track to play and it is this next track whose start point is placed in the cue sheet. This carries on for the length of the show being voice tracked. What I end up with is a cue sheet with the start position of each song being played and nothing for the voice breaks. What currently happens is that the songs/tracks start correctly but the end of the preceding voice break or commercial is clipped. Any further suggestions gratefully received. Richard Bartholomew |
Beta Was this translation helpful? Give feedback.
-
Hi, Can you confirm, please, whether you received my mail with the requested files? I'm not chasing for a response but just want to make sure the mails didn't go astray! Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi,
I started to have a problem with cue sheets under 2.2.5 on Ubuntu 24 so disabled them; however, having now upgraded to 2.3.1, I want to start using them again. Part of my script includes:
I get the message 'Error 4: Undefined variable cue'.
From what I've found, this is because I do not have the cue sheet functionality installed. What I have done to try and fix this is:
However, I still get the same error and I don't see any reference to
libcue-dev
when I issueUnder 2.2.5 I wasn't using the cue function but thought this was an option under 2.3.1. Is this not the case, please?
How do I ensure that the
libcue-dev
package is compiled into liquidsoap 2.3.1?Thanks for any help.
Richard Bartholomew
Beta Was this translation helpful? Give feedback.
All reactions