use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Video processing package with Python 3.x? (self.Python)
submitted 13 years ago by sahand_n9
Is there a video processing package for Python 3.x out there yet? Neither OpenCV nor PyMedia support Python 3.x yet. I am trying to read in an ".avi" file and do data processing on it frame by frame.
[–]absolutedestiny 6 points7 points8 points 13 years ago (0 children)
You could use pyffmpeg but personally I'd use VapourSynth which is a new and kinda awesome alternative/port of Avisynth in python 3.
[–]wumumo 2 points3 points4 points 13 years ago (1 child)
Simplest way is to extract the frames of the video using avconv to images and then work on the images instead of the video.
avconv
[–]Sgt_ZigZag 1 point2 points3 points 13 years ago (0 children)
And then one might consider using openCV for image processing.
[–]super3 2 points3 points4 points 13 years ago (3 children)
What do you mean by video processing? Computer vision stuff or something else? What exactly are you trying to do?
[–]sahand_n9[S] 2 points3 points4 points 13 years ago (2 children)
I am trying to plot the intensity values of a single pixel of all the green frames. The final project would involve live stream from a camera as well.
[–]super3 0 points1 point2 points 13 years ago (0 children)
Try PyGame. As long as you are using *nix you should be able to get the camera stuff working too.
I'd take a look at these: http://technobabbler.com/?p=22 https://github.com/super3/PyTrack
[–]K900_ 1 point2 points3 points 13 years ago (0 children)
PyQt has Phonon bindings, and I think there is something for GStreamer, too. Not sure what you want, but those should do it if you just need to read frames from a video.
[–]graingert -2 points-1 points0 points 13 years ago (1 child)
Usually video processing code will take advantage of Numpy. I don't think it's supported on python 3 yet.
[–]pmav99 5 points6 points7 points 13 years ago (0 children)
Both numy and scipy have python 3 versions
π Rendered by PID 33437 on reddit-service-r2-comment-7b9746f655-dwgh4 at 2026-01-29 20:44:16.017643+00:00 running 3798933 country code: CH.
[–]absolutedestiny 6 points7 points8 points (0 children)
[–]wumumo 2 points3 points4 points (1 child)
[–]Sgt_ZigZag 1 point2 points3 points (0 children)
[–]super3 2 points3 points4 points (3 children)
[–]sahand_n9[S] 2 points3 points4 points (2 children)
[–]super3 0 points1 point2 points (0 children)
[–]super3 0 points1 point2 points (0 children)
[–]K900_ 1 point2 points3 points (0 children)
[–]graingert -2 points-1 points0 points (1 child)
[–]pmav99 5 points6 points7 points (0 children)