The verdict

Local AI
Nvidia RTX 5090 has more VRAM (32GB vs 24GB) - up to ~33B (Q4).

Which wins for each job

Job Nvidia RTX 5090 Nvidia Tesla M40
Plex transcode ~12 streams ~12 streams
Frigate NVR ~25 cameras ~25 cameras
Local LLM 32GB VRAM win 24GB VRAM
Fits a mini-PC full-size PCIe, DIY build full-size PCIe, DIY build

Approximate - capacity estimates from curated specs, the same logic as the recommender. Verify against your exact setup. Prices move; check the retailer.

Full specs

Spec Nvidia RTX 5090 Nvidia Tesla M40
Price (list) $1,999 $120
Type gpu gpu
Interface pcie pcie
Transcode H.264/HEVC/AV1 (NVENC Blackwell 4:2:2) H.264/HEVC (NVENC Maxwell)
Frigate detector TensorRT TensorRT
TOPS - -
VRAM (GB) 32 24
Low profile no no
GPU sharing - vgpu (unlock)
Power (W) 575 250