Hi Martin,
2012/4/8 Martin Konečný <[email protected]>:
> Hey Romain,
>
> So I've decided to implement the following workaround. Before adding to the
> Airtime library we'll just check whether Liquidsoap can actually play the
> file using
>
> liquidsoap -c 'output.dummy(single("/path/to/media.ogg"))'
>
> and simply check the return value :)
Ok. you may also want to use:
liquidsoap -r /path/to/media.ogg
Which should return a relatively stable and parseable output informing
whether the file could be decoded and to which format, with some
metadata information. The only missing information is the number of
channels resolved. It could probably be added though..
toots@zulu overlord (master) % liquidsoap -r /tmp/bla.mp3
Request resolved.
title="Le papier d'Arménie"
temporary="false"
decoder="MP3"
artist="R.Wan"
kind="{audio=0+;video=0+;midi=0+}"
rid="0"
tracknumber="5"
initial_uri="/tmp/bla.mp3"
year="201"
status="ready"
filename="/tmp/bla.mp3"
genre="Variété française"
album="Peau rouge"
Computing duration: 296.51 sec.
toots@zulu overlord (master) % liquidsoap -r /tmp/bla.pdf
Request resolution failed.
zsh: exit 2 liquidsoap -r /tmp/bla.pdf
Romain
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users