JnLlnd wrote:@Specular: ffmpeg does the job very well. Much slower than Movie Maker, however. But the possibility to make it run in batch is very interesting. I have about 50 one-hour audio content to convert. Thanks again.
Encoding the video takes the longest, at least in the shorter 3-5 minutes clips I usually create. If you don't need it to be 1920px wide setting a smaller width will improve encoding times.
Also, as I wasn't sure if you'd be comfortable with the CLI solution initially I set the options to transcode any audio into AAC, to make sure the audio regardless of format gets converted. However if you know the source will always be either AAC or MP3 specifically you can copy the audio without transcoding by using:
As the MP4 container natively supports both AAC and MP3. The command in full:
Code: Select all
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -vf scale=1920:-1 -acodec copy -pix_fmt yuv420p -shortest output.mp4
Example output (with 192kbps audio, the same as the source input).