converting mp3 to mp4

12,655

Solution 1

Check FFMPEG. the biggest problem with it is to build it. It can produce mp4 from independent video and audio tracks. Video track can be provided as a series of still images. I just not sure if specifying single image would work for you.

another option is MEncoder, the problem is the same - you'll need to build it. Or try to find prebuilt one

Solution 2

Are you aware of AviSynth? Effectively it allows you to write and/or generate scripts that edit/mix media files. It would go something like ~this:

video = ImageSource("file.png")
audio = NicMPG123Source("file.mp3")
AudioDub(vid, aud)

I do not remember exact parameters of these functions, plus I only gave the exact names thanks to Google query, but this sample should be really close to actual code you would use.

Share:
12,655
mystique
Author by

mystique

engineer, programmer, thinker, dreamer, creator

Updated on July 26, 2022

Comments

  • mystique
    mystique almost 2 years

    I need to convert mp3 files into mp4 or any other video formats, with blank images; so that I can play it on any video player or upload it on youtube. I don't want to use the readily available softwares(I will have to manually convert each file using the software), but I need a way to code it which would perform the entire conversion automatically.

    Any thoughts on how I can go about doing this? Thanks.

  • Andriy Tylychko
    Andriy Tylychko about 13 years
    VLC provides rudimentary conversion, and this task cannot be accomplished with VLC because you cannot specify a still image for video track.
  • Louis
    Louis over 9 years
    ubuntu 14.04 here. VLC does nothing.