Open Kangie opened 4 years ago
I vote for option 2, as having to specifiy a thumbnail for a video is kinda dumb.
As to how to do it, there's probably an easier way to do this, but here's my idea: we could "spawn" a stream that is paused and make it seekable, and then grab the video sink to get the picture. We then might be able to use a combination of this and this to save it to disk.
Oh my, I remember how much this annoyed me when I first used Komorebi. I was always meaning to work on option 2.
If the wallpaper creator is not given a thumbnail image for a video wallpaper, it will not appear in the wallpaper grid.
This is because the code that enumerates wallpapers looks for 'wallpaper.jpg'. See: here.
I see two solutions:
I've used ffmpeg to do it to work around this issue, but I'm sure that there's a way to do it using gstreamer.
ffmpeg -i MOVIE.mp4 -r 0.0033 -vf scale=-1:120 -vcodec png capture-%002d.png