Hi Romain,
I do the test with a simple script:
audio = audio_to_stereo(single("/tmp/test.wav"))
output = output.icecast(%mp3(bitrate=128), host = "127.0.0.1", port = 8000,
mount = "audio", audio)
first I tried with a 32khz mono wav file -> bad sound quality
Then I resample the original audio file with Sox ("sox test.wav -r 44100
testSox.wav"), and I run the same LS script with the new Sox file -> good
quality
These are the logs for the resample version
2012/02/06 14:00:39 >>> LOG START
2012/02/06 14:00:38 [protocols.external:3] Didn't find "ufetch".
2012/02/06 14:00:38 [protocols.external:3] Found "/usr/bin/wget".
2012/02/06 14:00:39 [main:3] Liquidsoap 1.0.0+scm
(default@f62811a5c785:20120201:104350)
2012/02/06 14:00:39 [main:3] Using: graphics=[distributed with Ocaml]
pcre=6.0.1 dtools=0.2.2 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0
xmlplaylist=0.1.3 ogg=0.4.3 vorbis=0.6.1 speex=0.2.0 mad=0.4.4
dynlink=[distributed with Ocaml] lame=0.3.1 theora=0.3.0 ao=0.2.0
samplerate=0.1.1 taglib=0.2.0 magic=0.7.3 camomile=0.7.1 faad=0.3.0
soundtouch=0.1.7 portaudio=0.2.0
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [main:2] DISCLAIMER: This version of Liquidsoap has been
2012/02/06 14:00:39 [main:2] compiled from a snapshot of the development
code.
2012/02/06 14:00:39 [main:2] As such, it should not be used in production
2012/02/06 14:00:39 [main:2] unless you know what you are doing!
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [main:2] We are, however, very interested in any
feedback
2012/02/06 14:00:39 [main:2] about our development code and committed to fix
2012/02/06 14:00:39 [main:2] issues as soon as possible.
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [main:2] If you are interested in collaborating to
2012/02/06 14:00:39 [main:2] the development of Liquidsoap, feel free to
2012/02/06 14:00:39 [main:2] drop us a mail at <[email protected]>
2012/02/06 14:00:39 [main:2] or to join the #savonet IRC channel on
Freenode.
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [main:2] Please send any bug report or feature request
2012/02/06 14:00:39 [main:2] at <http://dev.sourcefabric.org/browse/LS>.
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [main:2] We hope you enjoy this snapshot build of
Liquidsoap!
2012/02/06 14:00:39 [main:2]
2012/02/06 14:00:39 [decoder:4] Trying method "META" for "/tmp/test.wav"...
2012/02/06 14:00:39 [decoder:4] Trying method "WAV" for "/tmp/test.wav"...
2012/02/06 14:00:39 [decoder.wav:4] "/tmp/test.wav" recognized as WAV file
(s16le,32000Hz,1 channels).
2012/02/06 14:00:39 [decoder:3] Method "WAV" accepted "/tmp/test.wav".
2012/02/06 14:00:39 [metadata.mp4:4] Invalid MIME type for "/tmp/test.wav":
audio/x-wav!
2012/02/06 14:00:39 [metadata.mp4:4] Invalid file extension for
"/tmp/test.wav"!
2012/02/06 14:00:39 [metadata.ogg:4] Invalid MIME type for "/tmp/test.wav":
audio/x-wav!
2012/02/06 14:00:39 [metadata.ogg:4] Invalid file extension for
"/tmp/test.wav"!
2012/02/06 14:00:39 [decoder.taglib:4] Invalid MIME type for
"/tmp/test.wav": audio/x-wav!
2012/02/06 14:00:39 [decoder.taglib:4] Invalid file extension for
"/tmp/test.wav"!
2012/02/06 14:00:39 [single:3] "/tmp/test.wav" is static, resolving once for
all...
2012/02/06 14:00:39 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2012/02/06 14:00:39 [frame:3] Frame size must be a multiple of 1764 ticks =
1764 audio samples = 1 video samples.
2012/02/06 14:00:39 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio samples = 1764 ticks.
2012/02/06 14:00:39 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video samples = 1764 ticks.
2012/02/06 14:00:39 [video.converter:4] Couldn't find preferred video
converter: gavl.
2012/02/06 14:00:39 [audio.converter:4] Using preferred samplerate
converter: libsamplerate.
2012/02/06 14:00:39 [threads:3] Created thread "generic queue #1".
2012/02/06 14:00:39 [threads:3] Created thread "generic queue #2".
2012/02/06 14:00:39 [threads:3] Created thread "non-blocking queue #1".
2012/02/06 14:00:39 [clock:4] Currently 1 clocks allocated.
2012/02/06 14:00:39 [clock.wallclock_main:4] Starting 1 sources...
2012/02/06 14:00:39 [source:4] Source output.icecast_4773 gets up.
2012/02/06 14:00:39 [source:4] Source src_4771 gets up.
2012/02/06 14:00:39 [src_4771:4] Content kind is {audio=2;video=0;midi=0}.
2012/02/06 14:00:39 [source:4] Source single_4770 gets up.
2012/02/06 14:00:39 [single_4770:4] Content kind is
{audio=1+;video=0;midi=0}.
2012/02/06 14:00:39 [single_4770:4] Activations changed:
static=[src_4771:audio:audio], dynamic=[].
2012/02/06 14:00:39 [src_4771:4] Activations changed: static=[audio:audio],
dynamic=[].
2012/02/06 14:00:39 [single_4770:3] Prepared "/tmp/test.wav" (RID 0).
2012/02/06 14:00:39 [audio:4] Activations changed: static=[audio],
dynamic=[].
2012/02/06 14:00:39 [audio:4] Enabling caching mode: active source.
2012/02/06 14:00:39 [audio:3] Connecting mount audio for [email protected]...
2012/02/06 14:00:39 [audio:3] Connection setup was successful.
2012/02/06 14:00:39 [threads:3] Created thread "wallclock_main" (1 total).
2012/02/06 14:00:39 [clock:4] Main phase starts.
2012/02/06 14:00:39 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2012/02/06 14:00:39 [decoder.wav:4] WAV header read (32000Hz, 16bits),
starting decoding...
Regards
-----Message d'origine-----
De : Romain Beauxis [mailto:[email protected]]
Envoyé : samedi 4 février 2012 23:17
À : Romaric Petion
Objet : Re: [Savonet-users] input.external
Hi,
2012/2/1 Romaric Petion <[email protected]>:
> These are the logs:
>
> 2012/02/01 10:30:09 [main:3] Liquidsoap 1.0.0+scm
> (default@f62811a5c785:20120130:120058)
> 2012/02/01 10:30:09 [main:3] Using: graphics=[distributed with Ocaml]
> pcre=6.0.1 dtools=0.2.2 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2
> mm=0.2.0
> xmlplaylist=0.1.3 ogg=0.4.3 vorbis=0.6.1 speex=0.2.0 mad=0.4.4
> dynlink=[distributed with Ocaml] lame=0.3.1 theora=0.3.0 ao=0.2.0
> samplerate=0.1.1 taglib=0.2.0 magic=0.7.3 camomile=0.7.1 faad=0.3.0
> soundtouch=0.1.7 portaudio=0.2.0
> 2012/02/01 10:30:09 [main:2]
Could also paste the next lines? We should see something like:
2012/02/04 16:16:28 [audio.converter:4] Using libsamplerate converter
You need to set log level to 4:
set("log.level", 4)
Romain
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users