>Clive Taylor wrote: >> >> I got caught out by this one, too. What you have to do is to encode the >> frame as a single frame motion jpeg movie and save the single encoded >> frame to .JPG. >> > >Yeah, that is what I'm doing right now, but that looks silly to me at >least. >Why would I encode to JPEG (a frame of MJPEG) a frame that is already in >JPEG format, some ffmpeg guru probabliy knows a direct shorter aproach. > >Thanks for validating that my approach is a common one.
I think the answer to this is that without encoding the frame, the header and trailer info is not present in the frame, so the JPEG file would not be valid. I haven't confirmed this (searched for "JFIF", or whatever, in the data), but it seems the most likely explanation. Clive _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
