I messed with the source to print out the id it is both looking for and checking against. I found that the id I am looking for (CODEC_ID_MPEG2VIDEO) is 2. The ids it is checking against range from 86018 to 94208. So apparently it isn't there. What do I need to do to get the codecs in there? This is a pretty tricky build as it is on the iPhone (it was murder trying to get them to build for it)...
2009/8/25 Bruce Wheaton <[email protected]> > What's p->encode when you have that id? Maybe you have an mpeg decoder but > not encoder. > > Bruce > > > > On Aug 25, 2009, at 10:15, Bruce Daniel <[email protected]> wrote: > > At first it would seem that this problem would be caused by not finding >> the >> codec, and hitting line 12. I found out in debugging that for some reason >> the conditional on line 7 is analyzing to true for an empty AVCodec p. It >> is >> hitting line 8 when p is empty, and id is "CODEC_ID_MPEG2VIDEO" and p->id >> is >> empty. >> >> The weird part is that when stepping through the codecs, on one of the >> rotations, it does find a codec where p->id is "CODEC_ID_MPEG2VIDEO", but >> for some reason the conditional on line 7 does not analyze to true in this >> case. This seems very odd to me. >> >> Any ideas? >> >> (Excerpt from utils.c) >> 1 AVCodec *avcodec_find_encoder(enum CodecID id) >> 2 { >> 3 AVCodec *p; >> 4 p = first_avcodec; >> 5 while (p) { >> 6 >> 7 if (p->encode != NULL && p->id == id) >> 8 return p; >> 9 >> 10 p = p->next; >> 11 } >> 12 return NULL; >> 13 } >> >> Bruce >> _______________________________________________ >> libav-user mailing list >> [email protected] >> https://lists.mplayerhq.hu/mailman/listinfo/libav-user >> > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
