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 ! ffmpegcolorspace ! pngenc ! filesink location=foo.png
Export an MPEG file frame to a PNG file:
gst-launch filesrc location=/home/jonathan/Cow.mpg ! mpegdemux ! mpeg2dec ! ffmpegcolorspace ! pngenc ! filesink location=foo.png
My next task to figure out how to create this same pipeline via Python, so I can do this programmaticly. I'll post a Python example once I figure it out.
UPDATE: I've finally figured out how to accomplish this in Python with an even more flexible pipeline than the examples above... Click Here to read how.
OpenShot Video Editor(TM) is an open-source program that creates, modifies, and edits video files. Copyright (C) 2008 Jonathan Thomas.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.





June 2, 2008 3:20 PM This post has been removed by the author.
June 11, 2008 12:52 PM
Jonathan: I'm rick from saya-videoeditor.blogspot.com
I read your message in my blog. The reason why I didn't write you a mail is because YOU KEEP YOUR PROFILE PRIVATE, and I can't find any way to contact you! :(
Please open your profile and write an (obfuscated) email address so we can contact you.
Sincerely,
Rick.
June 12, 2008 5:11 PM
rick_777, no need for capital letters. =) I have made my profile public now, so hopefully this will make it easier for us to communicate. You can email me at Jonathan.Oomph at gmail dot com.
Sorry for any confusion.
Thanks,
-Jonathan