Musepack Forums  

Go Back   Musepack Forums > Main > MPC for Windows

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 13 January 2005, 10:13 pm   #1
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default MPPDEC Nightmare

I'm trying to find a suitable command line to simply decode all .mpc from a directory to .wav
the problem is when i'm doing :
Code:
mppdec *.mpc .
it decodes everything but the files have the extension .mpc.wav
if anyone know how to prevent that, i'll be really happy
Ishan is offline  
Old 14 January 2005, 07:27 am   #2
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

huh? yeah

rename 's/mpc.wav/wav/' *wav

i don't remember it doing that for me...

i was using a script, tho:

Code:
for file in *mpc

do

 nice --adjustment=15 mppdec --wav "$file" .

done
(i have a slow comp and lots to do!)


later
__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline  
Old 14 January 2005, 11:17 am   #3
Seed
Musepack Nanny
 
Seed's Avatar
 
Join Date: Jul 2004
Posts: 168
Default

xmixahlx, that's a great script, but for the wrong OS

Ishan, I cannot make rename do what you want in a script. I'm sure someone else will post a solution.
Seed is offline  
Old 14 January 2005, 03:04 pm   #4
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default

Yea i tried every Ren command till i got a big headache
I'm pretty rusty when it comes to .bat files.
Ishan is offline  
Old 14 January 2005, 03:33 pm   #5
cane
Member
 
Join Date: Aug 2004
Posts: 10
Default

If you're running Windows and you've got the "for" command try:

Code:
for %I in (*.mpc) do mppdec --wav "%I" .
Bye.

/edit: tried it myself... doesn't solve your problem
cane is offline  
Old 14 January 2005, 03:51 pm   #6
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default

Thx anyway
it's a pitty but i'm thinking of using another audio format due to this problem. There's too many files to do it by hand :|
Ishan is offline  
Old 14 January 2005, 04:02 pm   #7
Seed
Musepack Nanny
 
Seed's Avatar
 
Join Date: Jul 2004
Posts: 168
Default

I've seen plenty of rename utilities with a GUI that you just drag & drop your files to and it renames them and solves the problem of multiple extensions. They also work recursively. Do you really want to switch to another format just because of this? Google for one of these freeware programs and choose the one you prefer.
Seed is offline  
Old 14 January 2005, 04:18 pm   #8
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default

It must be done in a command line environement, it'll be migrated to a NSIS installer latter. musepack is used to reduce the installer size, it's the best losy format i've came across as of now.
I know it sounds silly to dump mpc because of this, but the only command line decoder i know of for musepack is mppdec
Ishan is offline  
Old 14 January 2005, 04:21 pm   #9
Shy
Admin
 
Shy's Avatar
 
Join Date: Jul 2004
Posts: 370
Default

I don't understand several things. Why it's so important that the files have .mpc in their name, because those decoded files are most likely files you're not going to keep for very long and only need temporarily, for burning, or some other thing. And, you can use one of the endless renaming programs out there, that are aimed at solving exactly this kind of incompetency of Windows's internal rename. With a little program like RenameFiles you can simply change all ".mpc.wav" parts in files to ".wav".
Furthermore, you can expect this issue to be solved in a future mppdec release.
Shy is offline  
Old 14 January 2005, 06:19 pm   #10
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

Quote:
xmixahlx, that's a great script, but for the wrong OS
oops, i guess i wasn't paying attention

well, i could give you my advice at how to fix this problem, but it involves installing


later
__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline  
Old 14 January 2005, 07:04 pm   #11
Seed
Musepack Nanny
 
Seed's Avatar
 
Join Date: Jul 2004
Posts: 168
Default

Yeah, installing foobar2000. I could have told him that myself

Anyway, if someone has a solution using cmd.exe and not a patch or an add-on or another OS, please enlighten us. If not, I consider this thread closed.
Seed is offline  
Old 14 January 2005, 07:35 pm   #12
ak
Guest
 
Join Date: Sep 2004
Posts: 13
Default

Something like
> for %i in (*.mpc) do mppdec "%i" "%~ni.wav",
IIRC, 'cmd.exe /?' to check
Won't work on win9x though.

Then again you can always put bash in your installer and do it the proper way :wink:

Doesn't foobar support cmdline switches btw?
ak is offline  
Old 14 January 2005, 08:24 pm   #13
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default

Quote:
Why it's so important that the files have .mpc in their name
It is because the prgramm using those after unpacking need it. this process is part of an installer.
Anyway i'll find out a way, maybe with bash or whatever, thx all
Ishan is offline  
Old 23 January 2005, 09:24 pm   #14
Ishan
Member
 
Join Date: Jan 2005
Posts: 6
Default

For those who wondered, I found a solution :

Code:
mppdec *.mpc .

del *.mpc

ren *.wav *.

ren *.mpc *.wav
that's it ^_^
Ishan is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preferred mppdec version? crazee_canuck MPC for UNIX 3 01 May 2005 06:19 am
compile error mppdec dkraft MPC for UNIX 3 28 February 2005 06:49 pm
Minimal System requirements for the mppdec le_chuk General 1 25 February 2005 01:39 pm
return values of mppdec cow_2001 Development 1 14 February 2005 05:57 pm


All times are GMT. The time now is 02:31 am.


Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2019, vBulletin Solutions Inc.