Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Asciivideo #76

wants to merge 5 commits into from

Conversation

WesleyAC
Copy link
Contributor

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

@jgonggrijp
Copy link
Member

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?
Copy link
Member

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.

Copy link

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
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants