Clive, Maybe this is not what you mean, But why don't you just decode the movie and encode using MJPEG codec. This will generate seperate JPEG files. Hth
Edwin On Mon, Mar 30, 2009 at 7:21 PM, Clive Taylor <[email protected]> wrote: > OK. I admit it. I'm being thick. > > > > How do I write a single frame from any video source to a jpeg file. The > command line version of FFMPEG will obviously do it, and the libavcodec > source file mjepgenc.c will write the JFIF header, so I would guess that > getting the library to do all the tedious DCT stuff for me should be > fairly obvious, it's just that I can't quite see how at the moment. > > > > Is it as simple as using img_convert to set the output format to one of > the PIX_FMT_YUVJ4xxP formats and writing the resulting AVPicture data to > disk (as I would if it were a PPM/PGM file that I needed to create)? > > > > Sorry if the answer's obvious and I've just missed something. > > > > Clive > > _______________________________________________ > 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
