[FFmpeg-user] Wanted to batch convert mp3 folder for youtube.

Lou lou at lrcd.com
Tue May 2 23:18:36 EEST 2017


On Mon, 1 May 2017 04:42:40 -0400
Mike King <mr_stress at rogers.com> wrote:

> I wanted to simply convert a folder of mp3's into a video with an image 
> in the folder as the video (simple youtube stuff) and found this line 
> that claims to do the trick
> 
> 
> for %i in (*.mp3) do ffmpeg -f image2 -loop 1 -i folder.jpg -framerate 60 ^
> -i "%i" -c:v libx264 -tune stillimage -c:a copy "%~ni.mp4"

We do not provide support for scripts here.

> but i get a red line of text in my CMD window saying Option Framerate 
> not found. Googling this problem has produced nothing i can perceive as 
> the answer.

1. Option placement location matters: options generally get applied to
the following input or output.

2. "-framerate" is an image demuxer option (among others), not a libx264
private option or general encoding option.

If you want 60 frames per second move "-framerate 60" before "-i
folder.jpg". However, I'm not sure why you need 60 fps for a video of a
still image.

The "-f image2" is superfluous here.

> I can provide screenshots if necessary but i didnt want to risk worrying 
> anyone with attachments from a stranger and breaching some protocol.

Screenshots should be avoided: the console output should be copied and
pasted instead.

I added your address to CC because you're not subscribed. There may be
other replies, so check the archives:

<https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-May/036006.html>


More information about the ffmpeg-user mailing list