Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.