ffmpeg syntax question

AnotherUsername

Registered Member
Joined
Dec 19, 2014
Messages
93
Reaction score
14
Do you guys know how i make full paths for ffmpeg and/or make it work in a bat file?

Here is what I made so far:

Code:
F:
cd\fftest
ffmpeg -r 1/5 -i %01d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p fftest.mp4
pause

Looking at the output on the terminal it does change the directory to the correct one but when ffmpeg runs it ignores it and says the documents folder is the input thus making an error.
 
alternatively you could try specifying a different file name for the output file, so even if it's saved in the input directory, it wouldn't overwrite the input file, so there shouldn't be any error
not sure if it works this way though, just an idea, i used ffmpeg with cmd line maybe once :)
 
Still doesnt work :( its still trying to run ffmpeg from the documents directory for some reason.
 
This is what I use in a bot of mine, and it works well:
-fflags +genpts -r 1/5 -f image2 -i "{IMAGE_FOLDER}" -qscale:v 5K -vcodec mjpeg -s {RESOLUTION} -y -r 30 "{VIDEO_DESTINATION}"
I think it's self explanatory. If it doesn't work, then I think you might be doing something wrong.
 
It isnt self explanatory :D i only jsut started using ffmpeg so have no idea what that gibberish means :D

My code works when i do it manually but doesnt work thru bat file which is why im confused.
 
Posting the ffmpeg error will be of some help.
 
Never mind figured out through some searching ye old internet. Just had to put an extra % by the first one in the line to escape it so it would be ignored by the shell.
 
Back
Top