At the moment, coefficients are hard-coded in calc_thumbnail_size function. The program tries to be "smart" and calculates the layout so there's some spacing between frames and the composite doesn't cover all the available space, leaving some margins (6% of the screen width and 18% of the height). Resulting files saved as png with transparent background. Then optimal size for the thumbnails and the final layout are calculated for each of the resolutions and the collages are created. Upon resuming, movie-thumbnailer uses imagemagick for preprocessing the remaining frames (mostly for better sharpness and contrast in reduced size) and puts them in the frames_scaled directory. At this point the user should manually scan the extracted frames and remove unwanted/duplicate/false-identified frames. This is the most time consuming part of the process. It creates a folder frames where it puts the result of ffmpeg scene extraction and then pauses. MOVIE THUMBNAILER SINGLE FRAME MOVIEThis background image automatically becomes the first and only frame of the new movie file. The program puts temporary files in the current directory. You can also create a movie background using an existing image. Provide movie-thumbnailer with the path to the video file of your choice and the list of wallpaper resolutions you'd like it to generate collages for. The thumbnail height should be calculated based on the aspect ratio of the video. The program expects ffmpeg and magick to be in your PATH.Įxpanded description > in the blog post <<ĭeveloped using the wonderful Clap and Rayon crates. Each individual image from the mosaic of thumbnails must be 128px in width.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |