The first step of the dranger.com tutorial ( http://www.dranger.com/ffmpeg/tutorial01.html) should guide you through all you need to know to get some raw data representing a frame in rgb24. Ignore the references to SDL, you don't need these for what you're trying to achieve.
output_example.c will confuse you because it is primarily intended to demonstrate encoding, rather than decoding. 2008/11/26 Smart, Gary <[EMAIL PROTECTED]> > > > > > ________________________________ > > From: Smart, Gary > Sent: 26 November 2008 11:57 > To: '[email protected]' > Subject: Accessing decoded frames in memory > > > > I need to take in mp4 video and access separate decoded image frames in > memory and analyse them for statistics. Can anyone direct me to some > example code which could be used as a start point for me - or > alternatively, point me to somewhere in the source where the frames are > available in memory decompressed? I had a quick look at output_example > and I'm not even sure I understand what it is trying to achieve - e.g. > what is its input? > > > > As an aside, I am currently using ffmpeg to convert the mp4 input into > separate files (for analysis) using the output formatter 'image2' - but > this is far too slow (particularly for non-compressed output). Is there > a way to adjust the level of jpg compression in the output? > > > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
