Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Untitled
Sunday, July 8th, 2007 at 8:27:27pm UTC 

  1. @echo off
  2. mkdir files
  3.  
  4. if exist sample.flac codecs\flac sample.flac -d sample.wav
  5. if exist sample.wav goto BEGIN
  6. goto END
  7.  
  8. :BEGIN
  9. set file=sample.wav
  10. CLS
  11. ECHO.
  12. ECHO 1. FLAC
  13. ECHO 2. Wavpack
  14. ECHO 3. LAME (MP3)
  15. ECHO 4. Musepack
  16. ECHO 5. Vorbis
  17. ECHO 6. Nero (AAC)
  18. ECHO 7. WMA
  19. ECHO 8. All
  20. ECHO 9. Exit
  21. ECHO.
  22.  
  23. set choice=
  24. set /p choice=Type the number choose the encoder:
  25. if not '%choice%'=='' set choice=%choice:~0,1%
  26. if '%choice%'=='1' goto FLAC
  27. if '%choice%'=='2' goto WV
  28. if '%choice%'=='3' goto LAME
  29. if '%choice%'=='4' goto MPC
  30. if '%choice%'=='5' goto OGG
  31. if '%choice%'=='6' goto NERO
  32. if '%choice%'=='7' goto WMA
  33. if '%choice%'=='8' goto FLAC
  34. if '%choice%'=='9' goto END
  35. ECHO "%choice%" is not valid please try again
  36. ECHO.
  37. goto BEGIN
  38.  
  39. :FLAC
  40. codecs\flac %file% -5 -o files/flac_5.flac
  41. codecs\flac %file% -8 -o files/flac_8.flac
  42. if '%choice%'=='8' goto WV
  43. GOTO BEGIN
  44.  
  45. :WV
  46. codecs\wavpack -fx3 %file% files/wv_fastx3.wv
  47. codecs\wavpack -x4 %file% files/wv_normx4.wv
  48. if '%choice%'=='8' goto LAME
  49. GOTO BEGIN
  50.  
  51. :LAME
  52. codecs\lame -V 7 --vbr-new %file% files/lame_096.mp3
  53. codecs\lame -V 5 --vbr-new %file% files/lame_128.mp3
  54. codecs\lame -V 2 --vbr-new %file% files/lame_192.mp3
  55. codecs\lame -V 0 --vbr-new %file% files/lame_256.mp3
  56. codecs\lame -b 320 %file% files/lame_320.mp3
  57. if '%choice%'=='8' goto MPC
  58. GOTO BEGIN
  59.  
  60. :MPC
  61. codecs\mppenc --thumb %file% files/mpc_096.mpc
  62. codecs\mppenc --radio %file% files/mpc_128.mpc
  63. codecs\mppenc --standard %file% files/mpc_170.mpc
  64. codecs\mppenc --xtreme %file% files/mpc_224.mpc
  65. codecs\mppenc --insane %file% files/mpc_300.mpc
  66. codecs\mppenc --braindead %file% files/mpc_350.mpc
  67. if '%choice%'=='8' goto OGG
  68. GOTO BEGIN
  69.  
  70. :OGG
  71. codecs\oggenc2 -q 2 %file% -o files/vorbis_096.ogg
  72. codecs\oggenc2 -q 4 %file% -o files/vorbis_128.ogg
  73. codecs\oggenc2 -q 6 %file% -o files/vorbis_192.ogg
  74. codecs\oggenc2 -q 8 %file% -o files/vorbis_256.ogg
  75. codecs\oggenc2 -q 9 %file% -o files/vorbis_350.ogg
  76. codecs\oggenc2 -q 10 %file% -o files/vorbis_500.ogg
  77. if '%choice%'=='8' goto NERO
  78. GOTO BEGIN
  79.  
  80. :NERO
  81. codecs\neroaacenc -q 0.34 -if %file% -of files/nero_096.m4a
  82. codecs\neroaacenc -q 0.4 -if %file% -of files/nero_128.m4a
  83. codecs\neroaacenc -q 0.53 -if %file% -of files/nero_192.m4a
  84. codecs\neroaacenc -q 0.66 -if %file% -of files/nero_256.m4a
  85. codecs\neroaacenc -q 0.79 -if %file% -of files/nero_320.m4a
  86. codecs\neroaacenc -q 1.00 -if %file% -of files/nero_400.m4a
  87. if '%choice%'=='8' goto WMA
  88. GOTO BEGIN
  89.  
  90. :WMA
  91. cscript.exe codecs/WMCmd.vbs -a_settings 96_44_2 -input %file% -output files/wma_96.wma
  92. cscript.exe codecs/WMCmd.vbs -a_settings 128_44_2 -input %file% -output files/wma_128.wma
  93. cscript.exe codecs/WMCmd.vbs -a_settings 192_44_2 -input %file% -output files/wma_192.wma
  94. cscript.exe codecs/WMCmd.vbs -a_settings 256_44_2 -input %file% -output files/wma_256.wma
  95. cscript.exe codecs/WMCmd.vbs -a_settings 320_44_2 -input %file% -output files/wma_320.wma
  96. GOTO BEGIN
  97.  
  98. :END
  99. ECHO.
  100. ECHO You have either exited the program, or no input file could be found.
  101. ECHO There must be a sample.flac or sample.wav in the 'codec_pack' dir.
  102. ECHO You can now close the window.

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right