IPB

Welcome Guest ( Log In | Register )

need a wma cli encoder, Where can I download wma8eutil.exe?
tripex
post Jan 19 2007, 05:49
Post #1





Group: Members
Posts: 15
Joined: 19-January 07
Member No.: 39799



I used to convert my music files (wav, mpc, mp3) to other formats with a set of batch files, awk files and cli programs (Win32). Only for wma I haven't found a cli encoder yet. Therefore I have to do it with a Winamp-Plugin, but this method sucks because of missing flexibility and automation. I read something about wma8eutil.exe but could not find it to download. And I'm not sure if it is the last compatible WMA non Pro encoder anyway. But with my understanding it can be only a shell around the installed WMA codec. So I also wonder, how I can manually upgrade my system only to the last WMA non Pro codec without Installing Windows Media Player or something else.

CU
Andy
Go to the top of the page
+Quote Post
 
Start new topic
Replies
tripex
post Mar 3 2007, 02:47
Post #2





Group: Members
Posts: 15
Joined: 19-January 07
Member No.: 39799



My method is to convert any audio files in a dir via context menu from the dir. Therefore I need a registry entry like this:

REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\audio\command]
@="cmd /c cd \"%1\" && audio \"%1\""

Then you need the audio.bat in the PATH so it is accessible from everywhere:

@echo off

:2wma
jnfrage -w 10 convert to wma?
if errorlevel 1 goto 2mp3mono
dir /b /o *.mp3 *.mpc *.wav > filelist.tmp
awk -f C:\archive\dos\2wma.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
goto end

:2mp3mono
jnfrage -w 10 convert to mp3 (mono)?
if errorlevel 1 goto 2mp3low
dir /b /o *.ac3 *.mp3 *.mpc *.wav > filelist.tmp
awk -f C:\archive\dos\2mp3mono.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
goto end

:2mp3low
jnfrage -w 10 convert to mp3 (low quality)?
if errorlevel 1 goto 2mp3high
dir /b /o *.ac3 *.mp3 *.mpc *.wav > filelist.tmp
awk -f C:\archive\dos\2mp3low.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
goto end

:2mp3high
jnfrage -w 10 convert to mp3 (high quality)?
if errorlevel 1 goto 2mpc
dir /b /o *.ac3 *.mp3 *.mpc *.wav > filelist.tmp
awk -f C:\archive\dos\2mp3high.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
if exist crc.txt del crc.txt
goto end

:2mpc
jnfrage -w 10 convert to mpc?
if errorlevel 1 goto 2wav
dir /b /o *.wav > filelist.tmp
awk -f C:\archive\dos\2mpc.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
if exist crc.txt del crc.txt
goto end

:2wav
jnfrage -w 10 convert to wav?
if errorlevel 1 goto end
dir /b /o *.mp3 *.mpc > filelist.tmp
awk -f C:\archive\dos\2wav.awk filelist.tmp > filelist.bat
del filelist.tmp
call filelist.bat
del filelist.bat
if exist crc.txt del crc.txt
goto end

:end

In addition you would need all the tools I use within the audio.bat and other bat scripts in the PATH as well, like jnfrage, lame, wm8eutil.exe...
But the most important tool is awk (Berkeley utilities), which allows me to "convert" the filelist created by dir to a new batch script.

Finally I have for each conversation type (2wma, 2mp3mono, 2mp3low, ...) one awk and one bat script, which are quite similar to each other. Here is the example of 2mp3high.

2mp3high.awk:

BEGIN {OFS=""} {print "call 2mp3high \"", substr($0,0,length($0)-4), "\""}

2mp3high.bat:

@echo off

if exist %1.ac3 goto decode_ac3
if exist %1.mp3 goto decode_mp3
if exist %1.mpc goto decode_mpc
if exist %1.wav goto encode_mp3_high
goto end

:decode_ac3
azid --maximize -cnormal -L-3db %1.ac3 %1.wav
if errorlevel 0 del %1.ac3
goto encode_mp3_high

:decode_mp3
lame --decode %1.mp3 %1.wav
if errorlevel 0 del %1.mp3
goto encode_mp3_high

:decode_mpc
mppdec %1.mpc %1.wav
if errorlevel 0 del %1.mpc
goto encode_mp3_high

:encode_mp3_high
lame --r3mix %1.wav tmp.mp3
if errorlevel 0 del %1.wav
ren tmp.mp3 %1.mp3
goto end

:end

That's all. Maybe there is a generally much simpler method, but it works for me and is highly editable and portable as well. It works with WinXP and Win2k and I don't need to install anything but the registry entry for the context menu.

CU
Andy
Go to the top of the page
+Quote Post
The_Doctor
post Jun 6 2010, 17:42
Post #3





Group: Members
Posts: 17
Joined: 31-January 03
Member No.: 4812



QUOTE (tripex @ Mar 2 2007, 17:47) *
.
.
.
:decode_mp3
lame --decode %1.mp3 %1.wav
if errorlevel 0 del %1.mp3
goto encode_mp3_high
.
.
.


That errorlevel bit won't work in W98 (yes, I use it, never mind..), and possibly only appears to work right even in WNT or WXP. The way ERRORLEVEL works, (or worked) is such that if error level 4 was set, any test for a lower value will return true! That includes testing for level 0, which LAME returns on success. Which in turn means you can lose a file that way even if there was an error with that code above; in W98 and maybe the later OS's, you'll still lose that file even though you likely want it safe to try something else with.

The way round that is to use IF NOT ERRORLEVEL 1 DEL %1.MP3 because an error code of => 1 returns true, so negating that returned state makes sure than ONLY a value less than 1, i.e. 0, returns true, so that LAME's success can allow deleting of the old file. DOS is weird but there is method in the madness.

I still use batch scripts, they let me see and sort stuff more easily. But I use Lua to build them now, if they're for large tasks. Lua could bypass them outright but I still prefer the console reporting and the chance to review the prepared script.

This post has been edited by The_Doctor: Jun 6 2010, 17:45
Go to the top of the page
+Quote Post

Posts in this topic
- tripex   need a wma cli encoder   Jan 19 2007, 05:49
- - TrNSZ   Windows Media Encoder/Producer comes with a .VBS s...   Jan 19 2007, 06:26
- - Synthetic Soul   Here's a couple of threads on the subject of e...   Jan 19 2007, 07:24
- - tripex   Hmm, now I had time to check it out. After extrac...   Feb 27 2007, 03:28
- - Mangix   ffmpeg   Feb 27 2007, 03:54
|- - Woodinville   QUOTE (Mangix @ Feb 26 2007, 18:54) ffmpe...   Feb 27 2007, 04:02
- - Mangix   nevertheless, ffmpeg is an option   Feb 27 2007, 04:08
- - tripex   Why did nobody point me to Windows Media 8 Encodin...   Mar 1 2007, 22:55
|- - kwanbis   QUOTE (tripex @ Mar 1 2007, 21:55) Why di...   Mar 2 2007, 20:54
- - Synthetic Soul   I didn't realise that you could use it on the ...   Mar 2 2007, 07:47
- - zombiewerewolf   QUOTE (tripex @ Mar 2 2007, 04:55) Why di...   Mar 2 2007, 13:48
- - xmixahlx   LOL you are assuming a lot of people here use a C...   Mar 2 2007, 19:16
- - gameplaya15143   QUOTE (zombiewerewolf @ Mar 2 2007, 07:48...   Mar 2 2007, 21:10
- - Synthetic Soul   I don't quite see why asking you to prove that...   Mar 2 2007, 21:14
- - spoon   I have had laptops, which come with XP Pro - brand...   Mar 2 2007, 21:25
- - tripex   Well, the most sites or links are outdated, but th...   Mar 3 2007, 00:57
- - tripex   My method is to convert any audio files in a dir v...   Mar 3 2007, 02:47
|- - The_Doctor   QUOTE (tripex @ Mar 2 2007, 17:47) . . . ...   Jun 6 2010, 17:42
- - Synthetic Soul   Thanks for sharing. In retrospect I suppose the V...   Mar 3 2007, 07:58
- - tripex   Because I use wma only to accommodate more music o...   Mar 3 2007, 22:23


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 10:33