> 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?
Have you called avcodec_init(), av_register_all(), av_alloc_format_context()? _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
