History

add wav output format support

Serge Zirukin committed 16 years ago

Commit e3bc94a1 parent 2bd2a172 files · +9 −2Browse files

Unified · Split

2 files
  1. split2flac.sh +8 −2
  2. split2wav.sh +1 −0
split2flac.sh+8−2
@@ -58,7 +58,7 @@ FORCE=0 · 57 unmodified lines
58VERSION=unknown58VERSION=unknown
59 59
60HELP="\${cG}split2flac version: ${VERSION}60HELP="\${cG}split2flac version: ${VERSION}
61Splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS\$cZ\$cG tracks with tagging and renaming.61Splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming.
62 62
63Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIONS\$cZ]\$cZ63Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIONS\$cZ]\$cZ
64 \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}DIR\$cZ [\${cU}OPTIONS\$cZ]\$cZ64 \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}DIR\$cZ [\${cU}OPTIONS\$cZ]\$cZ
@@ -85,7 +85,7 @@ Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIO · 20 unmodified lines
85 85
86\$cR*\$cZ - option affects configuration if \$cP'-s'\$cZ option passed.86\$cR*\$cZ - option affects configuration if \$cP'-s'\$cZ option passed.
87\${cP}NOTE: \$cG'-c some_file.jpg -s'\$cP only \${cU}allows\$cZ\$cP cover images, it doesn't set a default one.87\${cP}NOTE: \$cG'-c some_file.jpg -s'\$cP only \${cU}allows\$cZ\$cP cover images, it doesn't set a default one.
88\${cZ}Supported \$cU\${cG}FORMATs\${cZ}: flac, m4a, mp3, ogg.88\${cZ}Supported \$cU\${cG}FORMATs\${cZ}: flac, m4a, mp3, ogg, wav.
89 89
90It's better to pass \$cP'-p'\$cZ option to see what will happen when actually splitting tracks.90It's better to pass \$cP'-p'\$cZ option to see what will happen when actually splitting tracks.
91You may want to pass \$cP'-s'\$cZ option for the first run to save default configuration91You may want to pass \$cP'-s'\$cZ option for the first run to save default configuration
@@ -179,6 +179,7 @@ case ${FORMAT} in · 87 unmodified lines
179 m4a) $msg "$msg_format M4A";;179 m4a) $msg "$msg_format M4A";;
180 mp3) $msg "$msg_format MP3";;180 mp3) $msg "$msg_format MP3";;
181 ogg) $msg "$msg_format OGG VORBIS";;181 ogg) $msg "$msg_format OGG VORBIS";;
182 wav) $msg "$msg_format WAVE";;
182 *) emsg "Unknown output format \"${FORMAT}\""; exit 1;;183 *) emsg "Unknown output format \"${FORMAT}\""; exit 1;;
183esac184esac
184 185
@@ -360,6 +361,7 @@ split_file () { · 175 unmodified lines
360 m4a) ENC="cust ext=m4a faac -q 500 -o %f -";;361 m4a) ENC="cust ext=m4a faac -q 500 -o %f -";;
361 mp3) ENC="cust ext=mp3 lame --preset extreme - %f";;362 mp3) ENC="cust ext=mp3 lame --preset extreme - %f";;
362 ogg) ENC="cust ext=ogg oggenc -q 10 - -o %f";;363 ogg) ENC="cust ext=ogg oggenc -q 10 - -o %f";;
364 wav) ENC="wav";;
363 *) emsg "Unknown output format ${FORMAT}"; exit 1;;365 *) emsg "Unknown output format ${FORMAT}"; exit 1;;
364 esac366 esac
365 367
@@ -499,6 +501,10 @@ split_file () { · 133 unmodified lines
499 fi501 fi
500 ;;502 ;;
501 503
504 wav)
505 RES=0
506 ;;
507
502 *)508 *)
503 emsg "Unknown output format ${FORMAT}"509 emsg "Unknown output format ${FORMAT}"
504 return 1510 return 1
split2wav.sh+1−0
@@ -0,0 +1 @@
1split2flac.sh

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t