User:Andre Castro/prototyping/1.2/liquidsoap-noites: Difference between revisions

From XPUB & Lens-Based wiki
mNo edit summary
Line 15: Line 15:


===Request information on a file===
===Request information on a file===
<source lang="text">
liquidsoap -r http://www.archive.org/download/moonstone_0802_librivox/moonstone_01_collins.ogg
Request resolved.
title="01 - First Period: Chapter I"
temporary="true"
decoder="OGG"
artist="Wilkie Collins"
kind="{audio=0+;video=0+;midi=0+}"
rid="0"
initial_uri="http://www.archive.org/download/moonstone_0802_librivox/moonstone_01_collins.ogg"
status="ready"
filename="/tmp/liq452673.ogg"
album="The Moonstone"
Computing duration: 384.86 sec.


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


</source>


===Playlists===
===Playlists===

Revision as of 17:19, 12 March 2012

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

Request resolved.
title="01 - First Period: Chapter I"
temporary="true"
decoder="OGG"
artist="Wilkie Collins"
kind="{audio=0+;video=0+;midi=0+}"
rid="0"
initial_uri="http://www.archive.org/download/moonstone_0802_librivox/moonstone_01_collins.ogg"
status="ready"
filename="/tmp/liq452673.ogg"
album="The Moonstone"
Computing duration: 384.86 sec.

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)


Future

Make LS display metadata of the file on the stream!