[Solved] How can ffmpeg extract frames to a target dir (%T)?
Moderators: Hacker, petermad, Stefan2, white
[Solved] How can ffmpeg extract frames to a target dir (%T)?
Is there a way put the target directory variable (%T) in the button bar "Start Path"? Putting a directory path in the "start path" seems to be the only way to get FFmpeg to send its output to a specific directory.
Last edited by sorcar on 2015-08-09, 15:59 UTC, edited 3 times in total.
What exactly are you trying to do with ffmpeg?
This works fine for example:
Command:
Parameters:
This works fine for example:
Command:
Code: Select all
%comspec% /k c:\Tools\ffmpeg.exe
Code: Select all
-i "%P%O.%E" "%T%O.avi"
I am trying to extract JPEG frames from an .avi file. I am using,What exactly are you trying to do with ffmpeg?
Command:
Code: Select all
%comspec% /k c:\Tools\ffmpeg.exe -vf fps=1/60 -qscale:v 2 image_%04d.jpg
Code: Select all
-i "%P%N"
Got a way out! The desired effect can be had with:
Command:
Parameter:
The problem was because of ffmpeg having no switch for output folder.
Thanks, ZoSTeR, for your useful suggestion which gave me the idea.
Command:
Code: Select all
%comspec% /k c:\Tools\ffmpeg.exe -vf fps=1/60 -qscale:v 2
Code: Select all
"%T\image_%%04d.jpg" -i "%P%O.%E"
Thanks, ZoSTeR, for your useful suggestion which gave me the idea.
Last edited by sorcar on 2015-08-09, 15:54 UTC, edited 2 times in total.
Glad it worked. You can put everthing in the parameter:
Code: Select all
-i "%P%O.%E" -vf fps=1/60 -qscale:v 2 "%Timage_%%04d.jpg"