H264_nvenc error

I used ffmpeg 4.4.1 and enable-nvenc.


but
I use the libx264 encode can be normal output file, use h264_nvenc would be an error

I checked the error function is “avcodec_open2(codecCtx,codec,NULL);”.
It returns -1;
I dont know why.

Hi,
On Jetson platforms, we only enable hardware decoding in ffmpeg and the implementation is based on jetson_multimedia_api. Please refer to developer guide and the topics:
Jetson TX2 and FFmpeg - Can't initialize nvrm channel - #5 by DaneLLL
Hardware accelerated video playback with L4T ffmpeg - #7 by DaneLLL

If you need hardware encoding, may check the community contribution mentioned in:
Jetson Nano FAQ

Q: Is hardware acceleration enabled in ffmpeg?

Thank you for your answer

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.