#234: Add an operator to insert track durations in metadata
-------------------------+--------------------------------------------------
  Reporter:  smimram     |       Owner:  admin
      Type:  Bugs        |      Status:  new  
  Priority:  1           |   Milestone:       
 Component:  Liquidsoap  |     Version:       
Resolution:              |    Keywords:       
       Mac:  1           |       Linux:  1    
    Netbsd:  1           |       Other:  1    
   Freebsd:  1           |  
-------------------------+--------------------------------------------------
Comment (by mrpingouin):

 It's called file.duration(). Note that it may use different techniques
 based on the format, and your setup.

 I see that we use {{{Mad.duration}}} for MP3: it fully decodes the file,
 so it's exact but long.
 And {{{Vorbis.File.Decoder.duration}}} for Ogg/Vorbis: it's based on
 {{{ov_time_total}}}, which I don't know :)

 I did some tests, here's the recipe: {{{liquidsoap -r FILE}}}. With an
 MP3, you can see that it takes some time at the end to compute the
 duration. With an OGG file, it's quite fast, but..

 I leave the ticket open since it returned erroneous result (too short, or
 infinity) for two files that I tested. Note that ogginfo got it right,
 without reporting any oddity.

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/234#comment:1>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac

Reply via email to