Page 1 of 1

Extracting frames from mp4

Posted: 24 Nov 2008 15:08
by garyisr
Complete mp4 newbie speaking...

I am a c++ developer on Linux and need to write a program to extract frames from an mp4 movie (from file initially but streamed eventually) and access each frame in memory so that I may adjust their pixels and write the data out in a bespoke image format. I'm sure many people must have done this sort of thing before and wondered if anyone could point me to some example code that does something close?

All my previous knowledge has been based on processing static image formats.

Thanks in advance
Gary

Apologies if this has been submitted incorrectly

Re: Extracting frames from mp4

Posted: 25 Nov 2008 17:56
by erwan10
The vmem vout plugin should be what you're looking for
see http://wiki.videolan.org/LibVLC_SampleCode_SDL
(works with vlc 0.9.x, needs slight changes for vlc1.x.x)

Re: Extracting frames from mp4

Posted: 25 Nov 2008 18:17
by xtophe
VLC is not a frame orientated player. However, vmem or image (scene in 1.0.x) video out modules should be a good start point