"I have a simple mission: To create an open-source, non-linear video editor for Linux. Many have tried and fallen before me, but for some reason I feel compelled to try myself. I am documenting my journey in this blog for all to read. It will be a dangerous journey, and I might not make it back alive. Hold on tight, and enjoy the ride! By the way, I'm calling this project OpenShot Video Editor!"

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.

3 comments

  1. b3rx  
    This post has been removed by the author.
  2. rick_777  

    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.

  3. Jonathan Thomas  

    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

Post a Comment

Subscribe to: Post Comments (Atom)