savepath "media/output/%s-mosaic-scale-%d.jpg " \ We only replace the tile in that slot if: stabilization-threshold is a float which represents a fraction of the previous distance for that tile. This isn't terrible but it gives us less visual stability because it's always changing. Therefore, tiny changes from frame to frame might cause the same object in the video to be represented with different tiles. Videomosaics are just a repeated application per frame of the photomosaic functionality. It's a float in the range [0, 1) that is the probability a given tile will be filled in, not with the closest tile in the codebook, but rather a completely random one.Ģ) Stabilization for Videomosaics ( -stabilization-threshold) If you'd like to bring a little chaos into your photomosaics, use the randomness parameter. Here are a few other settings that allow you to tweak the visual output. EZgif is a surprisingly good online tool for compressing GIFs with different tradeoffs, but they only support GIFs up to 100 MB in size. $ gifsicle -O3 -resize-height 400 -colors 256 totally/reasonable/sized.gifįor example, I reduced a 130 MB GIF to 2 MB one using that command. Then just press the s key and you'll save the selected scale to disk!Īlternatively, press ESC to exit the window without saving. Not sure which scale will look best? Want to play around with some different settings? Run this. You can adjust aspect ratio here too, but those and more are optional arguments. mp4 extensions)įfmpeg is used for the audio splicing, since OpenCV can't really handle that. -savepath: save our video as output to here (only tested on.
0 Comments
Leave a Reply. |