LinusCDE / mad-jetson-ffmpeg

FFmpeg fork that aims to include all the HW Accel for Nvidia Jetson
Other
28 stars 4 forks source link

Unable to find `h264_nvmpi` with `avcodec_find_encoder_by_name` #2

Closed ZhangTianrong closed 1 year ago

ZhangTianrong commented 1 year ago

Hi, I am trying to compile Weylus with the modification indicated here containing

codec = avcodec_find_encoder_by_name("h264_nvmpi");
if (!codec)
{
    ERROR(err, 1, "Codec 'h264_nvmpi' not found");
}

and I am seeing Codec 'h264_nvmpi' not found being printed. Am I missing anything?

Edit: I find out I was building a static library but asking weylus to use the system shared library. I am rebuilding with the static library to see if there any problem persists.

ZhangTianrong commented 1 year ago

I decided to build ffmpeg as shared library instead. This time the encoder is working despite low performance. I am still playing around the parameters to see if I can get some improvement.