Latest News

Follow the latest news on 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.

Share to Facebook Share to Twitter Share to MySpace Stumble It Share to Reddit Share to Delicious More...

3 comments

  1. b3rx  
    This comment 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)