Take screenshot in the middle of the ffmpeg / ffprobe video?

1

I would like the time the thumb to be generated correspond to 50% of the time of the episode with ffmpeg I am using this code

$ffmpeg -ss 00:00:18 -i $video -vf scale=800:-1 -vframes 1 $output

How do I in place of 00:00:18, be the exact time in the middle of the video?

    
asked by anonymous 30.11.2016 / 02:00

1 answer

0

To get a frame in the second 18:

ffmpeg -ss 18 -i video.mp4 -vframes 1 -f image2 frame.jpg
    
13.07.2017 / 22:08