mardi 20 juillet 2021

FFMPEG H.265 C++ based encoder: avcodec_open2 fails

My FFMPEG based c-code the correctly produces h.264 encoded video files when I set the codec ID to "AV_CODEC_ID_H264". When I change it to "AV_CODEC_ID_HEVC" I get this output from these particular lines of code.

ret = avcodec_open2(c, codec, &opt);
    av_dict_free(&opt);
    if (ret < 0) {
        fprintf(stderr, "Could not open video codec: %s\n", av_err2str(ret));
        exit(1);
    }
[hevc_mf @ 000001F604B62F00] could not find any MFT for the given media type
[hevc_mf @ 000001F604B62F00] could not create MFT
Could not open video codec: Function not implemented

I have the FFMPEG version 4.1 build. I was under the assumption that H.265 codec where part of this release. What am missing?

Aucun commentaire:

Enregistrer un commentaire