Hello, I have a problem with a FFmpeg and it’s Jetson HW decoding.
TX2 in dev kit and TX2 in carrierboard from Connect tech inc.
I want HW decoding of RTSP H264 stream for use in Zoneminder.
I compile both ZM anf FFMPEG from source. Both compile without a issue.
I tried this in docker but I had some problems so I moved to installation in root, see post.
Both approach works in cli:
ffmpeg -c:v h264_nvmpi -i 1.mp4 -f null - ffmpeg -c:v h264_nvv4l2dec -i 1.mp4 -f null -
Problem comes when I want to use them with Zoneminder. Decoder is registered by:
avcodec_find_decoder_by_name("h264_nvmpi ") # Or avcodec_find_decoder_by_name("h264_nvv4l2dec")
Both fail with following error even before component is fully loaded, no meaningful debug output:
Error: Can't initialize nvrm channel Error: Can't initialize nvrm channel Couldn't create ddkvic Session: Cannot allocate memory nvbuf_utils: Could not create Default NvBufferSession
sudo nvpmodel -m 0 sudo jetson_clocks
Suggested here, but it did not help.
@DaneLLL any ideas?