[Libav-user] Write raw RGB frames to file

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Nov 23 12:48:27 CET 2011


 <=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes:

> Is there any reference or example that tells me, which attributes of the
> AVCodecCtx have to be set in order to get the rawvideo-encoding work?

Assuming you are only interested in mkv: Did you look into matroskaenc.c?
I suspect you have to set an appropriate codec_tag for the pix_fmt.
(And since I did not find a documentation for KaxCodecColourSpace on
matroska.org, it is possible that not all applications will support all tags 
FFmpeg uses.)

Carl Eugen



More information about the Libav-user mailing list