Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to be able to run a batch file and it looks in all the folders within directory and creates a folder.jpeg for each flv it finds in a folder.

I have this script that works but it puts the folder.jpeg outside of the directory

for %%i in (*.flv) do ffmpeg -i "%%i" -f mjpeg -ss 00:00:14.435 -f image2 -vframes 1     "folder.jpeg"

useing ffmpeg to create the folder images

share|improve this question

1 Answer 1

Try running something like this in the top level folder:

for /r %%i in (*.flv) do ffmpeg -i "%%i" -f mjpeg -ss 00:00:14.435 -f image2 -vframes 1 "%%~dpifolder.jpeg"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.