How to extract frame from mpeg-ts segments using ffmpeg

669 Views Asked by At

I use ffmpeg to convert video into MPEG-TS segments for HLS. How can I then extract image from these MPEG-TS files for use as static "cover page". I would like to either extract the first or the last frame as JPEG image from the TS file.

1

There are 1 best solutions below

0
Sark On BEST ANSWER

Select any frame based on its time position.

    ffmpeg -i INPUT -ss 00:00:00.00 -vframes 1 OUTPUT