Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:scripts_and_tools [2012/04/09 01:40] – [convert sound files with libsndfile] emrumwiki:scripts_and_tools [2012/04/09 21:08] – [convert sound files with libsndfile] emrum
Line 150: Line 150:
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
 +
 +## UPDATE: sndfile-convert -vorbis  normalizes the sound to 0 DB !
 +## there are no options to control that, or compression rate.
 +## so rather use "oggenc" instead !
 +## there is also a py-script called "dir2ogg" in ubuntu
  
 # initial code by Emanuel Rumpf 2012-04 # initial code by Emanuel Rumpf 2012-04
Line 204: Line 209:
  
 </code> </code>
 +\\
 +\\
 +<code>
 +# There is a possilbe alternative, with "find" and -exec statement
 +#
 +# warning: this is not verbose  and  can take some time !
  
 +
 +# for all files in current directory (.)  execute libsndfile-convert
 +#
 +find . -name "*.flac" -exec sndfile-convert -vorbis '{}' '{}'.oga \;
 +
 +</code>
  
 . .
wiki/scripts_and_tools.txt · Last modified: 2017/12/03 12:22 by nilsge