>Ok, I have AVFrame that is in JPEG PIX_FMT_YUVJ420P format (I used
>sws_scale
>to convert it to that format) and I would like to save it to the disk
as
>.jpg
>
>Now I found some thread with the saving code, but it requires me to set
the
>encoder, and then encode frame in the buffer and then save that buffer
to
>disk.
>
>Is there a way to directly save the AVFrame (in the correct JPEG
format)
>directly to disk without unnecessary acrobatics with re-encoding?


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.

Clive
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to