Converting a large MP3 to MP4

Cindy Giovanetti
Cindy Giovanetti used Ask the Experts™
on
I need to upload a 113,972 KB MP3 file to YouTube.  That means I need to run it through a converter that will change it to an MP4 with an image.  

I've done this often with a free utility, but this file is too large for that free converter.  I don't mind paying for a service or buying an app if someone can point me to one that's legitimate.

Suggestions?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013

Commented:
I'd use FFMPEG for the .mp3 to.mp4 conversion, it will handle any file size and is free
https://ffmpeg.org/

Try the following command to convert

ffmpeg -i source.mp3 -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac output.mp4 -hide_banner

which will convert your large "source".mp3 into an "output".mp4 container ready to have the image added to it and upload.

Commented:
First download your fav free video editor:

VSDC Free Video Editor
http://www.videosoftdev.com/free-video-editor

OpenShot Video Editor
https://www.openshot.org/download/

Drag & drop MP3 to the timeline, drag & drop your image file(s) to the time line, export, done.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Likely something like this will work.

Just be prepared, for long .mp3 files this can take a very long time.

ffmpeg -loop 1 -y -i wetware-hacking.jpg -i 2019-07-11-Wh-Ep1.mp3 -c:v libx264 -tune stillimage -c:a copy -ac 1 2019-07-11-Wh-Ep1-podcast.mp4

Open in new window


Using MP3 audio streams inside MP4 containers isn't supported, so if YouTube fails to transcode your video correctly, then change...

-c:a copy to -c:a aac
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Fractional CTO
Distinguished Expert 2018
Commented:
This works a little faster...

ffmpeg -loop 1 -r 5 -y -i wetware-hacking.jpg -i 2019-07-11-Wh-Ep1.mp3 -c:v libx264 -tune stillimage -c:a copy -ac 1 -shortest -pix_fmt yuv420p 2019-07-11-Wh-Ep1-podcast-fast.mp4

Open in new window

David FavorFractional CTO
Distinguished Expert 2018

Commented:
Wow... this takes a long time to do...

I'm in the process of starting up a new podcast so had transcoding single frame videos on my list.

Here's the conclusion I've reached.

If you're doing a podcast, so you're using the same image every time with only the audio track changing, first generate a .mp4 with no audio track, which runs longer than your longest estimated audio.

Then each time you have a new audio to publish, just trim your long video to match your audio length (very fast), then merge the video + audio track (also fast, because you're doing a copy for both audio + video codecs).
Cindy GiovanettiTranscription

Author

Commented:
I want to thank all three of you for advising.  I am not a technical person, but my son is, and he was able to use this information to build me a little conversion utility.  I really appreciate your help.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
If you'll be doing this many times, a utility will be useful.

If you're only doing this once, just drop your .mp3 + image file here + likely someone can produces a .mp4 file for you, for a one time project.
Cindy GiovanettiTranscription

Author

Commented:
Thank you, David!
David FavorFractional CTO
Distinguished Expert 2018

Commented:
You're welcome!

I'm wrestling with this myself right now + only sensible way to handle this repeatedly, like for a Podcast, is to do the trick I mention above of creating a long running video only stream of the image.

Then, each time an audio is to be added, the long running video file is trimmed to match the audio length.

Then, the audio + trimmed video are merged into a file, so no transcode occurs (audio == copy, video == copy).

There are many ways to approach this + all other approaches I've tried trigger a transcode, which takes forever...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial