> I'm using Martin Bohme example to extract frame from a video, and I would > like to save them with jpeg format (not ppm, as in the example). I suposse I > have to change the pix_fmt to other that supports jpeg (for instance > PIX_FMT_YUVJ444P). But I don't know yet how to save the header or what I can > do to achieve to save the frame in jpeg format. I need help please.
In my project I've got an RGB input, which I rescale to PIX_FMT_YUV420P with sws_scale(), then encode to PIX_FMT_YUVJ420P with avcodec_encode_video(), and finally save it to a file as is - no additional header is needed. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
