Lines Matching defs:codec
72 const AVCodec *codec;
81 fprintf(stderr, "Usage: %s <output file> <codec name>\n", argv[0]);
88 codec = avcodec_find_encoder_by_name(codec_name);
89 if (!codec) {
94 c = avcodec_alloc_context3(codec);
96 fprintf(stderr, "Could not allocate video codec context\n");
123 if (codec->id == AV_CODEC_ID_H264)
127 ret = avcodec_open2(c, codec, NULL);
129 fprintf(stderr, "Could not open codec: %s\n", av_err2str(ret));
162 avcodec_send_frame(), and the codec may have kept a reference to
207 if (codec->id == AV_CODEC_ID_MPEG1VIDEO || codec->id == AV_CODEC_ID_MPEG2VIDEO)