作者存档:Jonathan

Jonathan的RSS订阅

12 六月

I have completed my first real Python program, which is a video / audio file inspector (and player). Simply download the source code, and run the "Inspector.py" script to start the program.

Click here to download the source code.

Here is a screen shot of my program:


This program has accomplished 2 important ...


1 六月

Ever wanted to export a frame of video to an image file (such as a PNG file)? Well, here's how to do it with gstreamer. These examples use the gstreamer command line syntax (gst-launch):

Export a DV file frame to a PNG file:
gst-launch filesrc location=/home/jonathan/capture003.dv ! dvdemux name=demux ! dvdec ! ...


1 六月

I've spent the past few weeks putting together a working Python example, which allows a user to select a media file (audio or video) and display all the various information I can find (such as height, width, duration, position, frames per second, codec, etc...). One of my blog readers informed me of a module ...



27 五月

The Gstreamer framework is multi-threaded, which means it runs in a different thread (or many threads)... and thus you can not directly communicate with it via Python. Requests have to be sent to the pipeline, and they are completed as soon as possible. However, it goes both ways. When Gstreamer wants to communicate with ...