Hi, > (no point detailing it here)
Where else? :-) At On2 we discussed about cutting when scheduling start and end time of a track. First issue was, a track is scheduled for starting at absolute time but liquidsoap is (re)started after. Then playing should start at current time. e.g. if you plan to start a one hour track today at 23:00 and (re)start liquidsoap at 23:15, first 15 minutes should be cut. Second point we discussed was, to cut the end of files if tracks end time would exceed scheduled end time. The end of the file should be cut, if it's to long. I wrote a script for this, which you can find in the attachment. Currently only mp3 is supported. For more details see prepare_audio.pl --help How to play with it: 1) Pass a file, a starting time before current time and a stopping time after current time to the script e.g. perl prepare_audio.pl -f file.mp3 -s "2011-01-31T23:15" -e "2011-01-31T23:45" | xargs cvlc $1 2) now stop playing and call the command again The file should be played as if you had just muted playing for some seconds. For scheduling with absolute start and end time, I am not sure if it makes sense to call scripts like this from inside liquidsoap, because it could be run outside just before starting liquidsoap or triggered by the external scheduler. Anyway, cutting this way is not failsafe, you will always have to trust the cutting libraries to be able to process all your weird files. Furthermore, the script is to be extended for all the other audio formats. If there are any more suggestions, open points or ideas, please let me know. BR, Peter
On the other hand, if there is any solution, even workaround based on cutting the file during request preparation stage, it definitely should be added to the documentation.Yup, that's the plan I'm considering. I'm waiting for feedback from Peter, and then me& Romain will address that technical issue I was talking about (no point detailing it here) after which we can add the script to liquidsoap and document its use.
prepare_audio.pl
Description: Perl program
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
