Get the latest tech news

Generate video sprites using just FFmpeg


Learn how to create video sprites with just FFmpeg — perfect for lightweight video previews. The following is an example of a video preview of the Big Buck Bunny video using a sprite sheet generated from Ffmpeg.

Save the following shell script as sprite.sh, and update the permissions so you can execute it (ie. pad=width=max(iw\,ih*(16/9)):height=ow/(16/9):x=(ow-iw)/2:y=(oh-ih)/2 This pads the frame into a 16:9 aspect ratio and centres it. Once combined with some basic CSS and JS, the scrubbing preview seen at the start of this article can be achieved.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ffmpeg

ffmpeg

Photo of video sprites

video sprites

Related news:

News photo

Intel Lands VVC VA-API Hardware Decoding Into FFmpeg

News photo

Show HN: FFmpeg-over-IP – Connect to remote FFmpeg servers

News photo

FFmpeg 7.1 Released With VVC Decoder Promoted To Stable, Vulkan H.264/H.265 Encode