DOpus Resource Centre Forum Index DOpus Resource Centre
User-run support community for GPSoftware's Directory Opus
 
 HelpHelp   SearchSearch   RegisterRegister 
    Log inLog in 
Directory Opus, the Explorer replacement and File Management solution for Windows

Encode/Transcode selected WAV/MP3 files to MP3 using LAME

 
Post new topic   Reply to topic    DOpus Resource Centre Forum Index -> Buttons & Toolbars
View previous topic :: View next topic  
Author Message
BenjaminW



Joined: 06 Jan 2007
Posts: 17

anchor | Posted: Sat Jan 06, 2007 7:16 am    Post subject: Encode/Transcode selected WAV/MP3 files to MP3 using LAME Reply with quote

Use this button definition to easily encode/transcode wave or mp3 files to mp3 using LAME encoder (free). Please change the path to lame.exe according to your installation. Hitting the button will encode all selected files to the destination folder.


<?xml version="1.0"?>
<button display="both" effect="gray">
   <guid>{9CE8D1E0-DEB3-4709-9212-D79474B8754B}</guid>
   <label>Encode MP3 (to destination) - Quality: VBR 4</label>
   <icon1>12</icon1>
   <function type="batch">
      <instruction>"C:\__CHANGEME__\lame.exe" -V 4 --vbr-new {filepath$} {destpath$}{file$|ext=mp3}</instruction>
      <instruction>pause</instruction>
   </function>
</button>


Hope this is interesting for you. Please give feedback.

LAME can be downloaded from several sources (ask google!). Official site: http://lame.sourceforge.net/index.php
Back to top
View user's profile Send private message
BenjaminW



Joined: 06 Jan 2007
Posts: 17

anchor | Posted: Thu Jan 11, 2007 9:01 am    Post subject: Vice versa Reply with quote

For decoding a MP3 File to WAVE you can use LAME, too:


<?xml version="1.0"?>
<button display="both" effect="gray">
   <guid>{9CE8D1E0-DEB3-4709-9212-D79474B8754B}</guid>
   <label>MP3 Dekodieren</label>
   <icon1>12</icon1>
   <function type="batch">
      <instruction>"C:\__CHANGEME__\lame.exe" --decode {filepath$} {destpath$}{file$|ext=wav}</instruction>
      <instruction>pause</instruction>
   </function>
</button>


See the documentation of LAME for other command line options (quality, ID3-Tags, etc.).
Back to top
View user's profile Send private message
BenjaminW



Joined: 06 Jan 2007
Posts: 17

anchor | Posted: Sun Jul 08, 2007 9:01 pm    Post subject: Reply with quote

If you want to transcode a MP3 file to a lower bitrate (i.e. you have a 320 CBR file and you want it to be 128KBit VBR) you can use the first command, too. But LAME will not write the ID3 Tag in the destination file for whatever reasons.

Here's a little extension to the command. Just paste this line after the LAME command:

"C:\_PATH_TO_id3cp_\id3cp.exe" {filepath$} {destpath$}{file$|ext=mp3}


It will just copy the source file's ID3 Tags to the new encoded file! Smile
The needed program for this is attached to this thread.

Have fun!



 Filename:  id3cp.zip
Download
 Filesize:  268.39 KB
 Downloaded:  395 Time(s)

Back to top
View user's profile Send private message
leo
Admin


Joined: 07 Nov 2004
Posts: 13645
Location: London, UK [Windows 7 x64]

anchor | Posted: Thu Jul 12, 2007 12:35 am    Post subject: Reply with quote

I have split the discussion that was in this thread, about variables and DOS windows, into a separate thread here:

http://resource.dopus.com/viewtopic.php?t=5785

Once the discussion results in a finished button please post it here, but let's keep ongoing discussion out of this area so people can easily find buttons, rather than talk about buttons. Smile

_________________
My Opus Intro & Plugins | FAQs | Opus 9.5.2.0 (07/Jan/2010) | Opus News Blog/RSS | Contact GPSoftware
Back to top
View user's profile Send private message Visit poster's website
Sasa



Joined: 27 Aug 2006
Posts: 498
Location: Germany, somewhere between Bonn and Cologne

anchor | Posted: Thu Jul 12, 2007 8:26 am    Post subject: Reply with quote

Final button:

This will encode files from source to destination. The selected encoding quality will be used for all files!

<?xml version="1.0"?>
<button display="both" label_pos="right" separate="yes">
   <label>Encode MP3</label>
   <icon1>12</icon1>
   <function type="batch">
      <instruction>@set var = {dlgchoose|Select encoding quality:|VBR ~165 kbps (4 - medium)=-V 4 --vbr-new+VBR ~190 kbps (2 - standard)=-V 2 --vbr-new+VBR ~240 kbps (0 - extreme) =-V 0 --vbr-new+CBR 128 kbps=-b 128+CBR 160 kbps=-b 160+CBR 192 kbps=-b 192+CBR 320 kbps=-b 320}</instruction>
      <instruction>____ENTER_PATH___\lame.exe &quot;{$var}&quot; {filepath$} {destpath$}{file$|ext=mp3}</instruction>
      <instruction>Pause</instruction>
   </function>
</button>
Back to top
View user's profile Send private message
BenjaminW



Joined: 06 Jan 2007
Posts: 17

anchor | Posted: Thu Jul 26, 2007 12:43 am    Post subject: Reply with quote

Very neat!
That is cleaning up my MP3 encoding menu a lot Wink
Back to top
View user's profile Send private message
Devilder



Joined: 19 May 2007
Posts: 231

anchor | Posted: Sun Jul 29, 2007 7:12 am    Post subject: Reply with quote

I like this feature a lot, but just some questions....

Encoding MP3 to WAV will not getter better quality.
Reencoding an MP3 to MP3 using Lame would IIRC lower the quality even more.
Confused
Back to top
View user's profile Send private message
Sasa



Joined: 27 Aug 2006
Posts: 498
Location: Germany, somewhere between Bonn and Cologne

anchor | Posted: Sun Jul 29, 2007 10:37 am    Post subject: Reply with quote

Devilder wrote:
I like this feature a lot, but just some questions....

Encoding MP3 to WAV will not getter better quality.
Reencoding an MP3 to MP3 using Lame would IIRC lower the quality even more.
Confused

1. Decoding MP3 back to WAV will NOT bring you back original quality (MP3 is compressed audio and not lossless - you will always get the quality of the MP3 when decoding)

2. You shouldn't re-encode a MP3 (this means loosing more quality as the source-mp3). Except you want to save space on a MP3-Player for example (I always re-encode higher quality MP3 to VBR 160 (LAME Preset 4) for my player).

Also LAME will bring you best results with VBR Preset 2 (~190kbps). At CBR 320kbps you won't hear a difference between MP3 and WAV.
Back to top
View user's profile Send private message
Display posts from previous:   
View previous topic :: View next topic  
Post new topic   Reply to topic    DOpus Resource Centre Forum Index -> Buttons & Toolbars All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Trademarks and Copyrights: Windows and Explorer are trademarks of Microsoft Corporation; Amiga and Workbench are trademarks of Amiga Inc;
Directory Opus, Opus, OpusPC, PCOpus, DOpus, DirOpus,Opus File Manager and Opus for Windows are trademarks of GPSoftware or associated companies.


Powered by phpBB © 2001, 2005 phpBB Group