Extracting frames from mp4

*nix specific usage questions
garyisr
New Cone
New Cone
Posts: 1
Joined: 24 Nov 2008 14:52

Extracting frames from mp4

Postby garyisr » 24 Nov 2008 15:08

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

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Extracting frames from mp4

Postby erwan10 » 25 Nov 2008 17:56

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)

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Extracting frames from mp4

Postby xtophe » 25 Nov 2008 18:17

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
Xtophe


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 1 guest