Skip to content

Instantly share code, notes, and snippets.

View polyzz's full-sized avatar

Changqing polyzz

View GitHub Profile
@polyzz
polyzz / avcodec_sample.c
Created July 6, 2012 06:03 — forked from lkraider/avcodec_sample.c
ffmpeg thumbnailer - extract frame, scale and save it to disk
// avcodec_sample.0.5.0.c
// Original source:
// http://web.me.com/dhoerl/Home/Tech_Blog/Entries/2009/1/22_Revised_avcodec_sample.c.html
//
// A small sample program that shows how to use libavformat and libavcodec to
// read video from a file.
//
// This version is for the 0.4.9+ release of ffmpeg. This release adds the
// av_read_frame() API call, which simplifies the reading of video frames