Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:scripts_and_tools [2012/04/09 01:36] – conversion example flac to ogg with libsndfile emrum | wiki:scripts_and_tools [2012/04/09 21:07] – [convert sound files with libsndfile] emrum | ||
---|---|---|---|
Line 150: | Line 150: | ||
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
+ | |||
+ | ## UPDATE: sndfile-convert -vorbis | ||
+ | ## there are no options to control that, or compression rate. | ||
+ | ## so rather use " | ||
# initial code by Emanuel Rumpf 2012-04 | # initial code by Emanuel Rumpf 2012-04 | ||
# any re-use and modification permitted | # any re-use and modification permitted | ||
- | # convert all FLAC files in a directory to OGA format (vorbis-encoded stream in ogg-container) | + | # convert all FLAC files in a directory to OGA format |
+ | # (compressed, | ||
# | # | ||
# USAGE: | # USAGE: | ||
Line 162: | Line 167: | ||
# copy this script to the files directory, make it executable | # copy this script to the files directory, make it executable | ||
# edit config options below if necessary, run it | # edit config options below if necessary, run it | ||
+ | |||
+ | # TODO: allow file-names with spaces | ||
Line 201: | Line 208: | ||
</ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | # There is a possilbe alternative, | ||
+ | # | ||
+ | # warning: this is not verbose | ||
+ | |||
+ | # for all files in current directory (.) execute libsndfile-convert | ||
+ | # | ||
+ | find . -name " | ||
+ | |||
+ | </ | ||
. | . |