Skip to content

A self-made wallpaper engine which turns your windows wallpaper into a moving background.

License

Notifications You must be signed in to change notification settings

darclander/starBackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

starBackground

This project is a very basic implementation of a wallpaper engine and is currently in development. The only current functionality is to make a star looking animation which can be seen below or to load your own video files (see more details below).

Alt text Alt text

This youtube video will go through how it works and what the next steps are (currently a bit outdated).

The project was made in C++ using SDL2 and FFMPEG.

People who want to contribute can now also make edits to the ideas file if they have any ideas for updates or open an issue

Usage

Assuming all required DLLs are available the program now has updated functionality. You can run the program with default settings or by additional command lines (UI and monitor "detection" is still in progress).

-w, --width: specifies the width of the window. default is 1920
-h, --height: specifies the height of the window. default is 1080
--stars: specifies the number of stars. default is 300
--video: specfies file path to a video file. (NOTE: if video is used this overrides the "star" setting).

Examples:
./starBG.exe -w 1920 -h 1080 --video ./video.mp4
./starBG.exe -w 1920 -h 1080 --stars 1000
./starBG.exe

Compilation

To simplify development on windows, MSYS2 has been used in order to compile this project. The following are required:

  • MSYS2
  • MinGW64 pacman -S mingw-w64-x86_64-toolchain
  • SDL2 pacman -S mingw-w64-x86_64-SDL2 (pacman -S mingw-w64-x86_64-SDL2_image)
  • FFMPEG pacman -S mingw-w64-x86_64-ffmpeg
  • make pacman -S make

When all dependencies have been installed, run make in the root folder. The executable should then be in the debug folder.

Required DLLs

As per #10 I realized I should mention the required DLLs for running the executable on windows. To run the application you need:

  • SDL2.dll
  • avcodec-60.dll
  • avdevice-60.dll
  • avfilter-9.dll
  • avformat-60.dll
  • avutil-58.dll
  • libgcc_s_seh-1.dll
  • libstdc++-6.dll
  • libwinpthread-1.dll
  • postproc-57.dll
  • swresample-4.dll
  • swscale-7.dll