Romain , 
  Hope you find out what's wrong with my flac decoder and LS.
About metatags I checked on icecast page , and no "current song" nor "artist" 
is displayed.

 when I force using  map_metadata( map, final ), mp3 stream is ok but not 
ogg/flac.

here is my sample script I retrieve in an example:
def map( m )

   # Get filename from file path
   dollar = string.extract(pattern="([^/]*)\..*$", m["filename"])
   filename = dollar["1"]
   log( label="test", level=5, "artist="^m["artist"] )
   log( label="test", level=5, "album="^m["album"] )
   log( label="test", level=5, "title="^m["title"] )
   log( label="test", level=5, "filename="^filename )
 # Construct stream metadata from available id3 tags
   if ( m["title"] == "" ) then
      [ ("artist", "New"), ("title", filename) ]
   else
      if ( m["album"] != "" ) then
         if ( m["artist"] != "" ) then
            if int_of_string( m["year"], default = 0 ) > 0 then
               [ ("title", m["album"]^" ("^m["year"]^") - "^m["title"] ) ]
            else
               [ ("title", m["album"]^" - "^m["title"] ) ]
            end
         else
            [ ("artist", "New"), ("title", m["album"]^" - "^m["title"] ) ]
         end
      else
         [ ("title", m["title"] ) ]
      end
   end

end
final = map_metadata( map, final )


Thanks, 
 fabrice

----- Mail original -----
De: "Romain Beauxis" <to...@rastageeks.org>
À: fab...@free.fr
Cc: savonet-users@lists.sourceforge.net
Envoyé: Vendredi 23 Septembre 2011 14:56:38
Objet: Re: [Savonet-users] ogg/flac hang randomly

Hi Fabrice,

2011/9/22  <fab...@free.fr>:
> Romain,
>  Wrong news, I installed this release of icecast ( 2.3.2-kh30 ) and my flac 
> stream hang when reading-and-streaming flac files.
>
> [2011-09-22  10:58:15] INFO format-flac/initial_flac_page seen initial FLAC 
> header
> [2011-09-22  10:58:39] WARN source/source_read Nothing received on 
> /liquid-flac1-mp3 for 3 seconds
> [2011-09-22  10:58:39] WARN source/source_read Nothing received on 
> /liquid-flac1 for 3 seconds
> [2011-09-22  10:58:39] WARN source/source_read Nothing received on 
> /liquid-flac1-mp3 for 3 seconds
> [2011-09-22  10:59:07] WARN source/source_read Disconnecting 
> /liquid-flac1-mp3 due to socket timeout
> [2011-09-22  10:59:07] INFO source/source_shutdown Source "/liquid-flac1-mp3" 
> exiting
> [2011-09-22  10:59:07] INFO source/source_client_read no more listeners on 
> /liquid-flac1-mp3
> [2011-09-22  10:59:07] INFO source/source_free_source source 
> /liquid-flac1-mp3 to be freed
> [2011-09-22  10:59:07] INFO source/_free_source freeing source 
> "/liquid-flac1-mp3"
> [2011-09-22  10:59:07] WARN source/source_read Disconnecting /liquid-flac1 
> due to socket timeout
> [2011-09-22  10:59:07] INFO source/source_shutdown Source "/liquid-flac1" 
> exiting
> [2011-09-22  10:59:07] INFO source/source_client_read no more listeners on 
> /liquid-flac1
> [2011-09-22  10:59:07] INFO source/source_free_source source /liquid-flac1 to 
> be freed
> [2011-09-22  10:59:07] INFO source/_free_source freeing source "/liquid-flac1"
> [2011-09-22  10:59:07] WARN fserve/fserve_client_create req for file 
> "/usr/share/icecast2/web/liquid-flac1" No such file or directory
>
> Note that the mp3 stream also hang up.
>
> So we can understand there is too high latency ( 3 sec) of the flac decoder 
> and I don't know how to get rid off that ( I have the last release of flac)
>
> There is also something that I want to solve, is I am unable to pass to 
> icecast any metatag to FLAC/OGG stream, despite of rewriting them like that
>  final = map_metadata( map, final )
> (where final is my audio playlist source).
>
>
> How to proceed ??

Sorry for the silence, I'm still on this but I have no new idea as of
now. We are planning a coding session with David next week in order to
prepare the next stable release. We shall look at this together..

One thing though: ogg/flac metadata _should_ be present. However, many
player do not support them. In order to properly test this, you should
download a part of your live stream and use ogginfo (from vorbis-tools
on Debian/brew) to check the resulting data.

Romain

Romain

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to