[mythtvnz] Commercial Flagging

David Moore dmoo1790 at ihug.co.nz
Thu Aug 18 07:12:27 BST 2011


I couldn't resist having a go at SoX (which is in Ubuntu repositories). 
It's relatively easy to get stats out of an audio file with:

sox <infile> -n trim <start time> <duration> stat

or

sox <infile> -n trim <start time> <duration> stat

The "-n" just means no output. To analyse a file in small time 
increments you need to feed sox the start time and duration via the trim 
option.

Pipe to file or prog then analyse "Crest factor" and maybe max/min 
values to try and find compressed audio. Easy. :)

Found this interesting page also:

http://www.axino-tech.co.nz/documents/Ads%20on%20TV%20are%20louder.html

David



More information about the mythtvnz mailing list