Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .