Hello,
I am trying to create a video stream with codec type vp6f (codec_id = 95). But
when I try to find an encoder using:
video_codec = avcodec_find_encoder(video_st->codec->codec_id);
//printf("%d ", video_st->codec->codec_id);
if (!video_codec) {
fprintf(stderr, "Video codec not found\n");
exit(1);
}
To create the stream, I am doing the following:
AVStream* st = av_new_stream(oc, 0);
and then setting its
codec_id,codec_type,bit_rate,width,height,time_base.den,time_base.num,
gop_size,pix_fmt
It gives me error, saying that Video codec not found. Note that I am able to
decode a video with similar codec type but not able to encode it. I am not able
to forsee what could be the problem. Any pointers?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user