Live data from Hacker News

Generate video sprites using just FFmpeg

steelcm.com

21–26 of 26 posts

Re: Generate video sprites using just FFmpeg

#21

I wish there was some way to get vlc to use external sprite files. While I'm thinking about it, external chapter files would be great too. Then you could make your own bookmarks without modifying the video file.

You can make a playlist with start-time and stop-time.

https://scriptun.com/tools/video/m3u-playlist-generator

That would be a great way to create smyths (streamlined mythbusters).

Re: Generate video sprites using just FFmpeg

#22
post #17
post #14

interesting will probably integrate as sprite mode in my ffmpeg video editor https://newbeelearn.com/tools/videoeditor/

We're using this method as part of our user media upload pipeline at editsquare.com I'm guessing you're using ffmpeg wasm on your editor? One thing to note, that I didn't mention in the article, is generating a JPEG output is substantially quicker than a PNG.

good to know and great product as well editsquare.com .Would probably contact you for api sometime in future(hope to get hn discount ;-) )

Re: Generate video sprites using just FFmpeg

#23
post #22
post #17

Earlier quoted context omitted.

We're using this method as part of our user media upload pipeline at editsquare.com I'm guessing you're using ffmpeg wasm on your editor? One thing to note, that I didn't mention in the article, is generating a JPEG output is substantially quicker than a PNG.

good to know and great product as well editsquare.com .Would probably contact you for api sometime in future(hope to get hn discount ;-) )

Hah! Of course. We're hoping to release our video editor early next year. So keep an eye out.

Re: Generate video sprites using just FFmpeg

#25
post #19
post #16

I've used vcs[0] to make contact sheets from videos. It has a nice feature that if it detects the frame is blacked out, it will shift the capture time so every frame on the sheet has something to look at. Easy syntax to set capture at every delta or capture x number of frames evenly distanced, columns per row, ignore a set length of end time, and frame size. [0] https://p.outlyer.net/vcs

This sounds like a more robust tool, however I wanted to keep our external tooling to a minimum. The contact sheet generation sits as part of our transcoding pipeline for uploaded media which already uses ffmpeg.

vcs is a 5000-line bash script wrapper around ImageMagick and FFmpeg, any features you want can be extracted to your own scripting.

Re: Generate video sprites using just FFmpeg

#26
post #21

I wish there was some way to get vlc to use external sprite files. While I'm thinking about it, external chapter files would be great too. Then you could make your own bookmarks without modifying the video file.

You can make a playlist with start-time and stop-time. https://scriptun.com/tools/video/m3u-playlist-generator That would be a great way to create smyths (streamlined mythbusters).

Thanks, that is something to think about.

Doesn't seem to support multiple chapters on a single file (without janky stopping and starting, that is).

Post reply on HN