Keylost / jetson-ffmpeg

ffmpeg support on nvidia jetson
Other
78 stars 26 forks source link

avcodec_find_encoder_by_name fail #24

Closed lkw052715 closed 1 month ago

lkw052715 commented 7 months ago

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.

nxsf8023 commented 5 months ago

me too do u solve it ?

Keylost commented 1 month ago

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.