Le mercredi 17 mars 2010 14:45:56, jonas ohrstrom a écrit :
> dear mailing-list, hey all!

        Hi !

> first thanks for the nice liquidsoap project - really like the approach! i
>  just installed it and made a simple control script and some tests with
>  exporting playlists from an existing project. everything great so far.

Thanks !
  
> what i actually want to ask here - before really starting analyzing the
>  code - is, if it would be possible to implement a way to use queue-points
>  and custom fades in the playout part. i'm working as a developer for a
>  community-based radio project - openbroadcast.ch (and as well for a
>  netlabel platform, sonicsquirrel.net). one of the functionality that
>  should be available when creating playlists is, that custom start-, end
>  and fades can be used. for example a track with a length of say 3:45:678
>  should start at 0:10:000, fade in during 2sec and fade-out 4sec at
>  3:35:432
> 
> i assume this functionality is not yet implemented in liquidsoap (although
>  i came across the smil format in the xml-playlist module, and smil
>  incorporates some of these controls). so my question is more if someone
>  has an idea about how difficult it would be to add such a behavior to the
>  playout, what issues could arise etc, and what would be a way to start
>  doing so.
> 
> any help would be really appreciated

Indeed, this functionality is not yet implemented.

But I believe it can be :-)

The main concern is that liquidsoap performs in real-time. As such, it is not 
made to skip part of a file. 

However, liquidsoap can be extended with various protocols for handling 
requests. For instance, there is a replaygain: protocol that adds a replaygain 
information in the file's metadata.

Similarly, it should be possible to use external cutting tools for mp3, 
vorbis, ... and define a protocol that would cut the requested file before 
passing it to liquidsoap.

I have looked around, it seems that for mp3, the quelcom package in debian 
contains a qmp3cut tool that should fit for mp3, and the vorbis-tools package 
contains a vcut tool for ogg/vorbis files that should fit too.

If you want to see how the replaygain: protocol is implemented, you can look 
there for the documentation:
  http://savonet.sourceforge.net/doc-svn/replay_gain.html
and there for the implementation:
  http://savonet.rastageeks.org/browser/trunk/liquidsoap/scripts/utils.liq#L484

The only limitation I see for now is that this may only work for local files 
and not for files fetched using ftp:// of http://..

If you want, you can open a feature request ticket on our trac:
  http://savonet.rastageeks.org/
So we can discuss the feature there and track its implementation..

Have a good day!
Romain

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à