Closed lkw052715 closed 1 month ago
me too do u solve it ?
I was able to use ffmpeg -vcodec h264-nvmpi successfully at the command line, but the avcodec_find_encoder_by_name (h264-nvmpi) function failed.
If you look closely at the readme, you'll see that the codec name is h264_nvmpi. You should use avcodec_find_decoder_by_name("h264_nvmpi"), not avcodec_find_decoder_by_name("h264-nvmpi"). Hope this helps.
I was able to use ffmpeg -vcodec h264-nvmpi successfully at the command line, but the avcodec_find_encoder_by_name (h264-nvmpi) function failed.