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

Reply via email to