Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Feature request/question #1

Closed
creeperita09 opened this issue Nov 30, 2023 · 20 comments
Closed

Feature request/question #1

creeperita09 opened this issue Nov 30, 2023 · 20 comments

Comments

@creeperita09
Copy link

Would It be possibile to Copy paste repurpose this code to play never gonna give you up instead?

@mon
Copy link
Owner

mon commented Nov 30, 2023

Absolutely! The hard part will be making/finding a 1bit version of astley's video that will convert cleanly to windows. From there, just use the python script to regenerate the boxes, replace the .ogg file, and it should Just Work. The python script isn't the best, but I can provide help there :)

@creeperita09
Copy link
Author

thanks! can you provide a requirements.txt? i can't find the modules to install

@creeperita09 creeperita09 changed the title Fratture request/question Feature request/question Nov 30, 2023
@creeperita09
Copy link
Author

also does the script only support black and white?

@mon
Copy link
Owner

mon commented Dec 1, 2023

can you provide a requirements.txt? i can't find the modules to install

should be as simple as pip install pillow cv2 tqdm numpy but I can probably add a requirements.txt at some point

also does the script only support black and white?

Correct, because the windows are binary - they either exist or they don't. Perhaps adding custom background colours could be an extension :)

@creeperita09
Copy link
Author

got the black and white video of never gonna give you up, i can share it if you need it

@creeperita09
Copy link
Author

huh it's saying that it needs a boxes.json file

@mon
Copy link
Owner

mon commented Dec 1, 2023

The script is jank, don't come complaining

The script is split into 2 parts, one generates boxes.json, one generates boxes.bin. Work out which bits to comment out to generate the json

@creeperita09
Copy link
Author

ok, thanks, i wasn't complaining

@creeperita09
Copy link
Author

i got it working but the boxes are scaled down? (maybe bc i inputed a 16:9 video) and it abruptly stops

@mon
Copy link
Owner

mon commented Dec 2, 2023

Does the apple_frames folder look sane? Or is it also messed up?

@creeperita09
Copy link
Author

No the folder Is fine

@mon
Copy link
Owner

mon commented Dec 2, 2023

Oh right, depending on what you did, you may need to update: https://github.com/mon/bad_apple_virus/blob/master/src/main.rs#L242-L245

@creeperita09
Copy link
Author

Oh ok, i'll fix It later and i'll make a git repo

@luRaichu
Copy link

luRaichu commented Jan 7, 2024

How do I modify the code to make the video loop indefinitely? I'm not a Rust person

@mon
Copy link
Owner

mon commented Jan 8, 2024

How do I modify the code to make the video loop indefinitely? I'm not a Rust person

You could try reloading the iterator when the music stops and restarting the music. I won't tell you how, as I don't need this feature.

@XUANHLGG
Copy link

got the black and white video of never gonna give you up, i can share it if you need it

How do you convert color video to black and white 1-bit video?I want to use it to play miku miku oo ee oo but I can't find a black and white 1-bit video, thank you.

@creeperita09
Copy link
Author

got the black and white video of never gonna give you up, i can share it if you need it

How do you convert color video to black and white 1-bit video?I want to use it to play miku miku oo ee oo but I can't find a black and white 1-bit video, thank you.

I used ffmpeg, i don't Remember the command tho

@XUANHLGG
Copy link

got the black and white video of never gonna give you up, i can share it if you need it

How do you convert color video to black and white 1-bit video?I want to use it to play miku miku oo ee oo but I can't find a black and white 1-bit video, thank you.

I used ffmpeg, i don't Remember the command tho

Thanks, I used this command:ffmpeg -i input.mp4 -f lavfi -i color=gray:s=1080x1920 -f lavfi -i color=black:s=1080x1920 -f lavfi -i color=white:s=1080x1920 -filter_complex threshold output.mp4

@Probobcat861
Copy link

I don't get how to run it.

@Probobcat861
Copy link

Nvm found it

@mon mon closed this as completed Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants