Le 25/04/2011 12:53, David Baelde a écrit :
Hi,

On Sat, Apr 23, 2011 at 8:06 PM, Maxens Dubois<[email protected]>  wrote:
I'm running my first script and I get this loop with any song played :
19:28:11 [src_4174:3] New metadata chunk: ? -- ?.
19:28:13 [src_4174:3] New metadata chunk: ? -- ?.
This is a message from an input.http() or input.harbor(), you can disregard it.

I might be wrong but I think your stream is MP3 with icy metadata
updates, which come periodically and are often empty. If this is the
case we should make those noisy messages disappear.

Cheers,

Hi David,

Well, thoses messages are now gone, not sure why.


Le 25/04/2011 16:11, Romain Beauxis a écrit :
2011/4/25 David Baelde<[email protected]>:
Hi,

On Sat, Apr 23, 2011 at 8:06 PM, Maxens Dubois<[email protected]>  wrote:
I'm running my first script and I get this loop with any song played :
19:28:11 [src_4174:3] New metadata chunk: ? -- ?.
19:28:13 [src_4174:3] New metadata chunk: ? -- ?.
This is a message from an input.http() or input.harbor(), you can disregard it.

I might be wrong but I think your stream is MP3 with icy metadata
updates, which come periodically and are often empty. If this is the
case we should make those noisy messages disappear.
Actually, they are supposed to be discarded when they are empty..
Therefore, I suspect something more problematic.
Could you show us your script? Could you run it with more verbosity
using set("log.level",4) ?

Romain

 Hi Romain,

Last version of my script and log are joined with this mail.
Please, do not pay attention to lines I'm still working on.

I will answer here once again if my log get drawn anew.


Cheers and ... Merci beaucoup :)

_
script :_

#!/etc/liquidsoap
# Log dir
set("log.file.path","/tmp/basic-radio.log")

# More verbosity
set("log.level", 4)

# Print log message in the console
set("log.stdout", true)

# Répertoires des musiques
leia_blues = mksafe(playlist("/home/Playlist/Blues/"))
leia_chiptune = mksafe(playlist("/home/Playlist/Blues/"))
...

# Répertoires des podcasts
leia_cellule = mksafe(playlist("home/Podcasts/La Cellule"))
...

# Habillages
leia_jingles = mksafe(playlist("home/Habillages"))

# Music
myplaylist = mksafe(playlist("/home/playlist_test/"))

# Podcast test
mypodcast = mksafe(playlist.once("/home/playlist_test/podcast/"))
#mypodcast = mksafe( single("/home/playlist/podcast/"))
#mypodcast = mksafe(playlist(reload_mode = "rounds" , reload = 1,"/home/playlist_test/podcast/"))

# Live
mylive = input.http("http://XXXXXXXXX:8000/stream.m3u";)

# Grille des programmes
myschedule = switch(
        track_sensitive = true,
            [
( {(1w or 2w or 3w or 4w or 5w or 6w or 7w) and 4h40-4h50}, mypodcast), ( {(1w or 2w or 3w or 4w or 5w or 6w or 7w) and 4h55-5h05}, mypodcast),
                ( { true }, myplaylist),
            ]
                                    )


# relais du live et de la grille des programmes
#myplaylist = fallback(track_sensitive = false , [mylive, myplaylist])
myplayslit = fallback(track_sensitive = true, [mylive, myschedule])

# Stream
output.icecast(%mp3(bitrate = 320),
    restart = true, restart_delay = 2,
    host = "localhost", port = 8000,
    password = "XXXXXX",
    mount = "/playlist",
    icy_metadata = "true",
    myschedule)

_
Log :_

2011/04/25 21:05:16 >>> LOG START
2011/04/25 21:05:15 [protocols.external:3] Didn't find "ufetch".
2011/04/25 21:05:15 [protocols.external:3] Found "/usr/bin/wget".
2011/04/25 21:05:15 [main:3] Liquidsoap 1.0.0-beta1
2011/04/25 21:05:16 [lang:3] flac binary not found: flac decoder disabled.
2011/04/25 21:05:16 [lang:3] metaflac binary not found: flac metadata resolver disabled.
2011/04/25 21:05:16 [lang:3] faad binary not found: faad decoder disabled.
2011/04/25 21:05:16 [lang:3] Lastfm/audioscrobbler support was not compiled.
2011/04/25 21:05:16 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master. 2011/04/25 21:05:16 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples. 2011/04/25 21:05:16 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks. 2011/04/25 21:05:16 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks. 2011/04/25 21:05:16 [video.converter:4] Using preferred video converter: gavl. 2011/04/25 21:05:16 [audio.converter:4] Using preferred samplerate converter: libsamplerate.
2011/04/25 21:05:16 [threads:3] Created thread "generic queue #1".
2011/04/25 21:05:16 [clock:4] Currently 1 clocks allocated.
2011/04/25 21:05:16 [clock.wallclock_main:4] Starting 1 sources...
2011/04/25 21:05:16 [source:4] Source output.icecast_4294 gets up.
2011/04/25 21:05:16 [/playlist:4] Content kind is {audio=2;video=0;midi=0}.
2011/04/25 21:05:16 [source:4] Source switch_4288 gets up.
2011/04/25 21:05:16 [source:4] Source mksafe gets up.
2011/04/25 21:05:16 [source:4] Source request.dynamic_4282 gets up.
2011/04/25 21:05:16 [request.dynamic_4282:4] Content kind is {audio=2;video=0;midi=0}. 2011/04/25 21:05:16 [request.dynamic_4282:4] Activations changed: static=[], dynamic=[mksafe:switch_4288:/playlist:/playlist].
2011/04/25 21:05:16 [source:4] Source safe_blank gets up.
2011/04/25 21:05:16 [decoder:4] Trying method "WAV" for "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3"...
2011/04/25 21:05:16 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
2011/04/25 21:05:16 [decoder:4] Decoder "WAV" failed on "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3": Wav.Not_a_wav_file("Bad header : string \"RIFF\", \"WAVE\" or \"fmt \" not found")! 2011/04/25 21:05:16 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [decoder:4] Trying method "MIDI" for "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3"... 2011/04/25 21:05:16 [mksafe:4] Activations changed: static=[], dynamic=[switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [decoder:4] Trying method "MP3/LIBMAD" for "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3"... 2011/04/25 21:05:16 [mksafe:4] Activations changed: static=[], dynamic=[switch_4288:/playlist:/playlist, switch_4288:/playlist:/playlist].
2011/04/25 21:05:16 [source:4] Source mksafe gets up.
2011/04/25 21:05:16 [source:4] Source playlist_4278 gets up.
2011/04/25 21:05:16 [playlist_4278:4] Content kind is {audio=2;video=0;midi=0}.
2011/04/25 21:05:16 [playlist_test:3] Loading playlist...
2011/04/25 21:05:16 [decoder.mp3:4] Libmad recognizes "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3" as MP3 (44100Hz,2 channels).
2011/04/25 21:05:16 [playlist_test:3] Playlist is a directory.
2011/04/25 21:05:16 [decoder:3] Method "MP3/LIBMAD" accepted "/home/playlist_test/podcast/The Beach Boys - Wouldn't It Be Nice.mp3". 2011/04/25 21:05:16 [playlist_test:3] Successfully loaded a playlist of 17 tracks. 2011/04/25 21:05:16 [playlist_test:4] Activations changed: static=[], dynamic=[mksafe:switch_4288:/playlist:/playlist].
2011/04/25 21:05:16 [source:4] Source safe_blank gets up.
2011/04/25 21:05:16 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
2011/04/25 21:05:16 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [mksafe:4] Activations changed: static=[], dynamic=[switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [switch_4288:4] Activations changed: static=[/playlist:/playlist], dynamic=[]. 2011/04/25 21:05:16 [/playlist:4] Activations changed: static=[/playlist], dynamic=[].
2011/04/25 21:05:16 [/playlist:4] Enabling caching mode: active source.
2011/04/25 21:05:16 [/playlist:3] Connecting mount /playlist for source@localhost... 2011/04/25 21:05:16 [request.dynamic_4282:4] Remaining: 0, queued: 0, adding: 1323000 (RID 0) 2011/04/25 21:05:16 [decoder:4] Trying method "WAV" for "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3"... 2011/04/25 21:05:16 [decoder:4] Decoder "WAV" failed on "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3": Wav.Not_a_wav_file("Bad header : string \"RIFF\", \"WAVE\" or \"fmt \" not found")! 2011/04/25 21:05:16 [decoder:4] Trying method "MIDI" for "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3"... 2011/04/25 21:05:16 [decoder:4] Trying method "MP3/LIBMAD" for "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3"... 2011/04/25 21:05:16 [decoder.mp3:4] Libmad recognizes "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3" as MP3 (44100Hz,2 channels). 2011/04/25 21:05:16 [decoder:3] Method "MP3/LIBMAD" accepted "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3". 2011/04/25 21:05:16 [playlist_test:4] Remaining: 0, queued: 0, adding: 1323000 (RID 2)
2011/04/25 21:05:16 [/playlist:3] Connection setup was successful.
2011/04/25 21:05:16 [threads:3] Created thread "wallclock_main" (1 total).
2011/04/25 21:05:16 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
2011/04/25 21:05:16 [clock:4] Main phase starts.
2011/04/25 21:05:16 [switch_4288:3] Switch to mksafe.
2011/04/25 21:05:16 [mksafe:4] Activations changed: static=[switch_4288:/playlist:/playlist], dynamic=[switch_4288:/playlist:/playlist].
2011/04/25 21:05:16 [mksafe:3] Switch to safe_blank.
2011/04/25 21:05:16 [safe_blank:4] Activations changed: static=[mksafe:switch_4288:/playlist:/playlist], dynamic=[mksafe:switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [playlist_test:4] Remaining: 0, queued: 1323000, taking: 1323000 2011/04/25 21:05:16 [playlist_test:3] Prepared "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3" (RID 2).
2011/04/25 21:05:16 [mksafe:3] Switch to playlist_test with transition.
2011/04/25 21:05:16 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:switch_4288:/playlist:/playlist]. 2011/04/25 21:05:16 [playlist_test:4] Activations changed: static=[mksafe:switch_4288:/playlist:/playlist], dynamic=[mksafe:switch_4288:/playlist:/playlist]. 2011/04/25 21:09:37 [decoder:4] Trying method "WAV" for "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3"... 2011/04/25 21:09:37 [decoder:4] Decoder "WAV" failed on "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3": Wav.Not_a_wav_file("Bad header : string \"RIFF\", \"WAVE\" or \"fmt \" not found")! 2011/04/25 21:09:37 [decoder:4] Trying method "MIDI" for "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3"... 2011/04/25 21:09:37 [decoder:4] Trying method "MP3/LIBMAD" for "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3"... 2011/04/25 21:09:37 [decoder.mp3:4] Libmad recognizes "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3" as MP3 (44100Hz,2 channels). 2011/04/25 21:09:37 [decoder:3] Method "MP3/LIBMAD" accepted "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3". 2011/04/25 21:09:37 [playlist_test:4] Remaining: 416642, queued: 0, adding: 1323000 (RID 3) 2011/04/25 21:09:50 [decoder:4] Decoding "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3" ended: Mad.End_of_stream. 2011/04/25 21:09:50 [playlist_test:3] Finished with "/home/playlist_test//Hosoe Shinji - Liquid soup.mp3". 2011/04/25 21:09:50 [playlist_test:4] Remaining: 0, queued: 1323000, taking: 1323000 2011/04/25 21:09:50 [playlist_test:3] Prepared "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3" (RID 3). 2011/04/25 21:12:13 [decoder:4] Trying method "WAV" for "/home/playlist_test//script.liq"... 2011/04/25 21:12:13 [decoder:4] Decoder "WAV" failed on "/home/playlist_test//script.liq": Wav.Not_a_wav_file("Bad header : string \"RIFF\", \"WAVE\" or \"fmt \" not found")! 2011/04/25 21:12:13 [decoder:4] Trying method "MIDI" for "/home/playlist_test//script.liq"... 2011/04/25 21:12:13 [decoder:4] Trying method "MP3/LIBMAD" for "/home/playlist_test//script.liq"... 2011/04/25 21:12:13 [decoder.mp3:3] Invalid file extension for "/home/playlist_test//script.liq"! 2011/04/25 21:12:13 [decoder:4] Trying method "META" for "/home/playlist_test//script.liq"... 2011/04/25 21:12:13 [decoder:3] Unable to decode "/home/playlist_test//script.liq" as {audio=2;video=0;midi=0}! 2011/04/25 21:12:13 [decoder:4] Trying method "WAV" for "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3"... 2011/04/25 21:12:13 [decoder:4] Decoder "WAV" failed on "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3": Wav.Not_a_wav_file("Bad header : string \"RIFF\", \"WAVE\" or \"fmt \" not found")! 2011/04/25 21:12:13 [decoder:4] Trying method "MIDI" for "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3"... 2011/04/25 21:12:13 [decoder:4] Trying method "MP3/LIBMAD" for "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3"... 2011/04/25 21:12:13 [decoder.mp3:4] Libmad recognizes "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3" as MP3 (44100Hz,2 channels). 2011/04/25 21:12:13 [decoder:3] Method "MP3/LIBMAD" accepted "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3". 2011/04/25 21:12:13 [playlist_test:4] Remaining: 429852, queued: 0, adding: 1323000 (RID 5) 2011/04/25 21:12:23 [decoder:4] Decoding "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3" ended: Mad.End_of_stream. 2011/04/25 21:12:23 [playlist_test:3] Finished with "/home/playlist_test//podcast/The Beach Boys - Wouldn't It Be Nice.mp3". 2011/04/25 21:12:23 [playlist_test:4] Remaining: 0, queued: 1323000, taking: 1323000 2011/04/25 21:12:23 [playlist_test:3] Prepared "/home/playlist_test//Watanabe Yasuhisa - eastshire.mp3" (RID 5).
...


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to