Hello,
I'm trying to write simple application which will save a video in desired
format (avi, mkv, ...). I started with api_encode example and it works
fine until I use the raw format.
Now I would like to use avi for example, but I'm getting segmentation
fault error - os->streams[stream_index]->priv_data are not initialized, I
think.
AVFormatContext *os;
os = avformat_alloc_context();
AVStream *st;
st = av_new_stream(os, videoStream);
// what initializations should be here?
os->oformat = av_guess_format("avi", NULL, NULL)
for(;;) {
// prepare outpkt
av_interleaved_write_frame(os, &outpkt);
}
I'm trying to dig the answer from ffmpeg.c, but it is relatively
complicated and unfortunatelly I haven't found it yet.
Could someone please describe me the steps necessary for using
libavformat, please? There exists good tutorials on decoding, but none for
encoding the video.
best regards
Jan
--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:
http://www.opera.com/mail/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user