Windows 10 Shortcut Convert to MP3

blksith0

Extraordinary Member
Joined
Oct 24, 2012
Messages
61
How would I go about creating a shortcut, maybe in the Send To folder, that would take in a FLAC file (or anything preferably) and output a V0 mp3?

ffmpeg can do it with:
ffmpeg -i input.wav -codec:a libmp3lame -qscale:0 2 output.mp3

But how can I make the input file and output file work with any input from a shortcut?
 

Solution
You could easily add a right-click menu item to convert them.
  • Open regedit and expand HKEY_CLASSES_ROOT
  • Look for the extension type you want to convert from for example .wav
  • Select the .wav key and look in the default value
  • Navigate to the key with the name of the default value for key .wav
  • Should be WMP11.AssocFile.WAV by default
  • Now expand that key and expand shell
  • Right click on Shell and create a new key. Name it whatever you want it to appear as in the menu
  • Right click on that newly created key and create a sub key called command
  • Select command and edit the default value. Set it to the cmd command used to convert the file replace the .wav file with "%1" this will pass the file you are clicking on...
You could easily add a right-click menu item to convert them.
  • Open regedit and expand HKEY_CLASSES_ROOT
  • Look for the extension type you want to convert from for example .wav
  • Select the .wav key and look in the default value
  • Navigate to the key with the name of the default value for key .wav
  • Should be WMP11.AssocFile.WAV by default
  • Now expand that key and expand shell
  • Right click on Shell and create a new key. Name it whatever you want it to appear as in the menu
  • Right click on that newly created key and create a sub key called command
  • Select command and edit the default value. Set it to the cmd command used to convert the file replace the .wav file with "%1" this will pass the file you are clicking on.
  • Change the outfile to "%1.mp3" this will output to the same filename but .mp3
An image from 'Shortcut Convert to MP3'. Registry Editor shows WAV file association with ffmpeg command for audio conversion.
 

Last edited by a moderator:
Solution
Thanks sir.

Btw, are you Black Viper?
 

Nope
 

This is me
An image from 'Shortcut Convert to MP3'. A yellow silhouette of a bear with deer antlers and the word 'BEER' below on a navy background.
 

Last edited by a moderator:
lol I remember when anyone said mp3 online or in person it had a negative connotation to it. Now it's just another computer-tech term.
 

Btw, are you Black Viper?

Dang forgot about that cat. I need to Google him.
 

Link Removed
 

Back
Top