[FFmpeg-user] ffmpeg -i reports a video of length 03:17.53, but splitting into frames at 2 fps only results in one frame

Griffin Smith griffin at urbint.com
Tue Jul 16 17:33:27 EEST 2019


On Mon, Jul 15 at 2:42 AM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
> Am Mo., 15. Juli 2019 um 20:08 Uhr schrieb Griffin Smith <griffin at urbint.com>:
> > I've got a few hundred video files I'm working with that have an issue
> > where ffmpeg -i reports them as having a duration of a few minutes,
> > but when I try to split them into frames, I only get one frame.
>
> Please provide the input file.

Unfortunately I can't legally.

On Tue, Jul 16, 2019 at 3:57 AM Stéphane Chauveau
<stephane at chauveau-central.net> wrote:
> For example, the following command should keep 1 out of 25 frames:
>
> ffmpeg -i video.mpg  -s 640x480 -f rawvideo -c:v rawvideo -pix_fmt
> yuv420p pipe: | ffmpeg -f rawvideo -framerate 25 -s 640x480
> -pixel_format yuv420p -i pipe: -r 1 output/frame%06d.jpg

Unfortunately this also results in only one frame. Thanks for the idea though.


More information about the ffmpeg-user mailing list