You may also want to check this out, I haven’t done much other than compiled it all and run it
It gives me a doubling of the frame rate on the jetson. Use this as the guide for ffmpeg compilation on the jetson
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
but use the ffmpeg git repo mentioned in the jetson-ffmpeg github as part of the ffmpeg compilation.