It would be nice if Media Field had an option to automatically convert a non-mp3 audio file to mp3 after it has been uploaded. This functionality would be similar to what the FlashVideo module does for videos.

The two new configuration options are:

  • a checkbox for automatic conversion
  • a text field for specifying the path to the FFMPEG executable on your system

I've got a patch here that takes care of this.

CommentFileSizeAuthor
#1 convert.patch5.1 KBcolan
convert_to_mp3.patch4.87 KBcolan

Comments

colan’s picture

StatusFileSize
new5.1 KB

Needed to change the name of the codec from "mp3" to "libmp3lame".

c_kais’s picture

My installation of ffmpeg required that I actually use the name "mp3" for codec instead of "libmp3lame". It would not work with "libmp3lame".

lainel’s picture

Where do I insert the code?

Somewhere inside the audio.module?

vm’s picture

Category: feature » task

multimedia.inc though I suggest using a patching program and not doing this by hand.

vm’s picture

Category: task » feature

accidentally altered category

a_c_m’s picture

Status: Needs review » Postponed (maintainer needs more info)

To my mind this is expanding the scope of the module out a little far, things like this are better left to modules designed to do it e.g. media mover. However i think it might make a nice add on module?

I am however open to persuasive argument :)

colan’s picture

a_c_m: I'm going to have to agree with you on this one. I set it up this way originally because other options (Media Mover) weren't ready for prime time yet.

a_c_m’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok, closing - Mediamover rocks !