Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Silence detection for first/last frames in .flac? (Read 1983 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Silence detection for first/last frames in .flac?

I'm interesting in writing a smart fade in/fade out/crossfade plugin for FLAC files playing on Slimserver (Squeezebox2). That is, if you are playing random tracks, it would determine if the current song should fade out and if the next one should fade in. What I think would work perfectly for this method is being able to simply call some .exe which would somehow inform me whether or not the first and/or last frames of the audio file are silent (or below some threshold). I then can fade accordingly if they are not silent. Is there any way out there to accomplish this that can be easily accessed from a PERL script?

If there's not some command line program out there already that has this capability, I'm fully interested in writing my own and would welcome any suggestions on which libraries to use, etc.

Thanks.