bad_apple_virus icon indicating copy to clipboard operation
bad_apple_virus copied to clipboard

Feature request/question

Open creeperita09 opened this issue 1 year ago • 20 comments
trafficstars

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

creeperita09 avatar Nov 30 '23 12:11 creeperita09

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 :)

mon avatar Nov 30 '23 13:11 mon

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

creeperita09 avatar Nov 30 '23 14:11 creeperita09

also does the script only support black and white?

creeperita09 avatar Nov 30 '23 14:11 creeperita09

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 :)

mon avatar Dec 01 '23 03:12 mon

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

creeperita09 avatar Dec 01 '23 15:12 creeperita09

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

creeperita09 avatar Dec 01 '23 15:12 creeperita09

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

mon avatar Dec 01 '23 15:12 mon

ok, thanks, i wasn't complaining

creeperita09 avatar Dec 01 '23 15:12 creeperita09

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

creeperita09 avatar Dec 01 '23 16:12 creeperita09

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

mon avatar Dec 02 '23 02:12 mon

No the folder Is fine

creeperita09 avatar Dec 02 '23 07:12 creeperita09

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

mon avatar Dec 02 '23 07:12 mon

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

creeperita09 avatar Dec 02 '23 08:12 creeperita09

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

luRaichu avatar Jan 07 '24 16:01 luRaichu

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.

mon avatar Jan 08 '24 10:01 mon

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.

XUANHLGG avatar Mar 30 '24 15:03 XUANHLGG

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

creeperita09 avatar Mar 30 '24 20:03 creeperita09

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

XUANHLGG avatar Mar 31 '24 02:03 XUANHLGG

I don't get how to run it.

Probobcat861 avatar Apr 16 '24 19:04 Probobcat861

Nvm found it

Probobcat861 avatar Apr 16 '24 19:04 Probobcat861