Rebuilding opencv to get CUDA support is common with Jetsons.
For FFMPEG support, having ffmpeg libraries installed should be enough for cmake configuring opencv with -D WITH_FFMPEG=ON.
For custom ffmpeg, you may try this (second part of the post, starting with ‘For answering to your question’).