Search code examples
ffmpegmpeg2-ts

How to extract frame from mpeg-ts segments using ffmpeg


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.


Solution

  • Select any frame based on its time position.

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