-
Notifications
You must be signed in to change notification settings - Fork 33
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
Asciivideo #76
base: master
Are you sure you want to change the base?
Asciivideo #76
Conversation
ffmpeg claims to be cross-platform, so in theory it should work on Windows as well, but we'll have it tested just to be on the safe side. What is the suggested testing procedure, by the way? |
|
||
def vid2frames(vid): | ||
call(["rm", "-r", "/tmp/vid/"]) # Cleanup | ||
call(["mkdir", "/tmp/vid/"]) # Fuck windows. Hey, MS, nobody cares about you! At least I don't, but my opinion counts as everybody, right? right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost certainly going to break on Windows, but I think I see a (simple) way to fix it. Stay tuned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fortunately python has ways to handle file system operations.
# Thanks to Steven Kay for img2ascii. | ||
|
||
|
||
import Image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait. What library is this? ImageMagick?
Pull request because @jgonggrijp asked me to.
Some things to think about though:
It does pull in ffmpeg as a depend, making it linux/OS X only (?)
There might be a framerate issue on some computers. I forget if I fixed it or not :/