New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to support videos? #5
Comments
Yup, its pretty insane. Paperview is meant for running small 15 frame gifs that expand nicely into bitmaps since SDL2 has a built in bitmap loader. This keeps the code portable and about 100 lines at its core which is ideal for gathering upvotes on reddit ;D. People love small compact codes that do fun things. But anyway, the gist to streaming whole mp4s to the wallpaper is to write a video player with SDL2, using the conventional setup where you render to the usual window. A tutorial is here: The final step is to incorporate X11 by swapping out the window creation function, SDL_CreateWindow(), and hook it up to the X11 root display:
Thus, two libraries are relied on, SDL2, and X11 Xlib, and the final compile, assuming you put everything in main.c, is:
If you can get it right I am sure you will gather a good following! |
Hi, |
That's awesome, nice work. |
Curious if this could be done as converting even just a 30fps video loop to bmps is a bit much given the amount of data you end up with
Video Loop: 30 sec., 30fps
mp4: 3,7MB
bpms: 5,58 GB
While many are probably fine with pixel style low fps loops, I personally can't stand it ':D
The text was updated successfully, but these errors were encountered: