[FFmpeg-user] Is possible to capture a frame and convert a video file in the same ffmpeg command?

Moritz Barsnick barsnick at gmx.net
Mon Jul 6 15:21:08 CEST 2015

On Tue, Jun 23, 2015 at 23:27:09 +0000, Dani A wrote:
> I want to combine those two commands one, can this be done?
> ffmpeg -i  video.mp4 -ss   00:00:10 -vframes 1-vf  scale=240:160  frame.jpg 
> ffmpeg-i video.mp4 -c:a copy -c:v copy -movflags faststart videonew.mp4

Totally easily, have you even tried? You can specify multiple outputs
with separate options:

$ ffmpeg -i video.mp4 -c:a copy -c:v copy -movflags faststart videonew.mp4 -ss 00:00:10 -vframes 1 -vf scale=240:160 frame.jpg

Here's an introduction, but perhaps too complex for your case:


More information about the ffmpeg-user mailing list