(FFmpeg) How to Generate a Color Palette From a Video and apply it to another?

HomeTutorial(FFmpeg) How to Generate a Color Palette From a Video and apply it to another?