Wanted to batch convert mp3 folder for youtube.
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" 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. nothing suggesting i spelled anything wrong (especially since i copy pasted it) and i am TERRIBLY fustrated. I always hated command line programs but this seems to be the only thing that lets me do what i am aiming to do. Everything else i saw in google results has a conversion option but nothing that lets me attach an image and do it to the entire mp3 contents of a folder. seems so simple but i have spent 3 hours on this. any friendly advice on the probably obvious thing I'm doing wrong would really help me out. thank you I can provide screenshots if necessary but i didnt want to risk worrying anyone with attachments from a stranger and breaching some protocol.
On Mon, 1 May 2017 04:42:40 -0400 Mike King <mr_stress@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>
thanks for the hlep man. I just copy pasted it off the ONLY result that came close to what i was looking for so it wasnt what i wanted but closest to what i could get. I'll be sure to check it out. thanks very much :) On 5/2/2017 4:18 PM, Lou wrote: > On Mon, 1 May 2017 04:42:40 -0400 > Mike King <mr_stress@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> >
participants (2)
-
Lou -
Mike King