User:Andre Castro/prototyping/1.2/liquidsoap-noites

From XPUB & Lens-Based wiki
< User:Andre Castro
Revision as of 17:17, 12 March 2012 by Andrecastro (talk | contribs) (Created page with "=Liquid Soap= http://savonet.sourceforge.net/doc-1.0.0/quick_start.html Liquidsoap is a programming language for describing multimedia streaming systems ==Sources== A stream ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Liquid Soap

http://savonet.sourceforge.net/doc-1.0.0/quick_start.html

Liquidsoap is a programming language for describing multimedia streaming systems


Sources

A stream is built with Liquidsoap by using or creating sources. A source is an annotated audio stream. In a Liquidsoap script, you build source objects


Possible Liquid Soap Setups

=Request information on a file

liquidsoap -r http://www.archive.org/download/moonstone_0802_librivox/moonstone_01_collins.ogg


Playlists

LS can play playlists in both .pls and .M3U formats

it can play both local and remote files

.pls playlist

liquidsoap 'out(playlist("playlist.pls"))

[playlist]
numberofentries=2
Title1=File1 - archiveORg
File1=/home/andre/Documents/PZI/prototyping/blind-archive/sf-archive_frech/03actuel.ogg

Title2=File2 - archiveORG2
File2=/home/andre/Documents/PZI/prototyping/blind-archive/sf-archive_frech/04comporte.ogg

Playing mono files

liquidsoap is set to stereo, so does not play mono files!

So what needs to be done is converting the mono into stereo Weĺl do through this .liq script:

#!/usr/bin/liquidsoap

mono_playlist = playlist("/home/andre/Documents/PZI/prototyping/blind-archive/liquidsoap/playlist-blind-remote-mono.pls")

mono_playlist_s = audio_to_stereo(mono_playlist)

out(mono_playlist_s)