Hi Romain,

I tested with different values, but the quality is still poor.
The resample from 44100 to 32000 is OK but not in the other way.

You can try by using a wav file in 32000, and resample it with LS and Sox.

Regards

-----Message d'origine-----
De : Romain Beauxis [mailto:[email protected]] 
Envoyé : mardi 7 février 2012 02:04
À : Romaric Petion
Cc : [email protected]
Objet : Re: [Savonet-users] input.external

Hi!

2012/2/6 Romaric Petion <[email protected]>:
> 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.

Ok, so you do have libsamplerate enabled...

You can try this setting with libsamplerate:

Resampling quality
Default: "zero_order"

set("audio.converter.samplerate.libsamplerate.quality","zero_order")
Resampling quality, one of: “best”, “medium”, “fast”, “zero_order”,
“linear”. Refer to ocaml-samplerate for details.

If this does not help, then there may be a problem with the way that we use
libsamplerate..

Romain


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to