Le 18 février 2011 15:16, Shawn Boles <[email protected]> a écrit :
> Hello.

Hi Shawn!

> I've been watching my liquidsoap logs as my streamer seems to silently jump
> off a bridge every 20 hours or so.  I'm trying to track down the culprit,
> but what I've discovered so far is that my logs are full of a lot of useless
> crap.  I don't want to filter the logs... I want to get rid of the useless
> warnings and complaints.
> The first one on my list is this:
>
> 2011/02/18 10:33:04 [decoder:4] Trying OGG decoder for "Ident_1.mp3"...
> 2011/02/18 10:33:04 [decoder:4] Trying AAC decoder for "Ident_1.mp3"...
> 2011/02/18 10:33:04 [format.aac:5] open "Ident_1.mp3"
> 2011/02/18 10:33:04 [format.aac:5] Could not decode file.
> 2011/02/18 10:33:04 [decoder:4] Trying AACMP4 decoder for "Ident_1.mp3"...
> 2011/02/18 10:33:04 [format.aacmp4:5] open "Ident_1.mp3"
> 2011/02/18 10:33:04 [src_5690:4] More buffering will be needed.
> 2011/02/18 10:33:04 [format.aacmp4:5] Could not decode file.
> 2011/02/18 10:33:04 [decoder:4] Trying WAV decoder for "Ident_1.mp3"...
> 2011/02/18 10:33:04 [format.wav:5] open "Ident_1.mp3"
> 2011/02/18 10:33:04 [format.wav:5] Could not decode file.
> 2011/02/18 10:33:04 [decoder:4] Trying MP3 decoder for "Ident_1.mp3"...
> 2011/02/18 10:33:04 [format.mp3:5] open "Ident_1.mp3"
> 2011/02/18 10:33:04 [format.mp3:5] close "Ident_1.mp3"
> 2011/02/18 10:33:04 [decoder:3] Decoder MP3 chosen for "Ident_1.mp3".
> This seems a bit silly.  All of my songs are MP3 files.  I don't use OGG, or
> AAC, or WAV.  Is there a way to tell Liquidsoap to just treat MP3 files as
> MP3, and if you can't decode it just throw it away and move on?  Don't
> autodetect formats.  Or at least try MP3 first?

Due to its sloppy container, MPEG audio formats are not easy to
autodetect. Initially, Liquidsoap was trying to autodetect formats by
trying to decode them. However, this was not a good solution for MPEG
formats.

The first improvement we added quite a long time ago was to add
support for libmagic, which has a quite good detection of file
formats. Recently, we finally decided to also use file extensions.

Most likely, you have a liquidsoap binary that is not compiled against
ocaml-magic. If this is the case then you should get away with this
issue by recompiling with ocaml-magic enabled. Ocaml-magic is not
provided by us, it is autodetected a configure if it is installed on
your system.

If ocaml-magic is no help, then you could try a more recent liquidsoap
(1.0 beta1 or SVN) which will force mp3 detection for files with .mp3
extension :)


Romain

> The offending line in my liq config would be this:
>
> chan0playlist =
> playlist("/path/to/playlist",mime_type="audio/x-mpegurl",id="Chan0-MP3-Playlist",mode="normal",reload=1,reload_mode="rounds")
> Which then goes into a fallback with a previously defined emergency song:
> channel0 = fallback([chan0playlist, emergencyStop])
> Which is put into a crossfader:
>
> channel0 = crossfade(start_next=2.,fade_out=1.,fade_in=1.,channel0)
> Which is then piped out through output.icecast.mp3.
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to