49 lines
939 B
Markdown
49 lines
939 B
Markdown
# dwm-anime-wallpaper
|
|
|
|
wallpaper animation using bmp file and feh app
|
|
|
|
## MP4 to BMP
|
|
|
|
take an mp4 video file (pay attention to the length of the video) and use ffmpeg to generate the bmp files. It is possible to manage the quality and number of frames generated.
|
|
|
|
### Manual convert
|
|
|
|
```bash
|
|
File=[absolute path of mp4 file]
|
|
BaseFile=$(echo ${File} | sed 's/\.mp4//g')
|
|
mkdir ${HOME}/$(xdg-user-dir PICTURES)/dwm-anime-wallpaper/${BaseFile}
|
|
ffmpeg -i ${File} -pix_fmt bgr8 ${BaseFile}/${BaseFile}_%04d.bmp
|
|
```
|
|
|
|
### Tools
|
|
|
|
In the repository you will find a script which does essentially the same thing as the manual chapter work
|
|
|
|
* mp4tobmp.sh
|
|
|
|

|
|
|
|
## Launch
|
|
|
|
Main process
|
|
|
|
```bash
|
|
./dwm-anime-wallpaper.sh
|
|
```
|
|
|
|
Test with arg (to preview a specific foleder)
|
|
|
|
```bash
|
|
./dwm-anime-wallpaper.sh [DIR]
|
|
```
|
|
|
|
## Preview
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|