This may be The Final Cut (2004), which starred Robin Williams as a sort of film editor who cut together memories from people who were already dead (not killed by the extraction process), but who had had recording chips implanted during their life. Extraction and editing was an expensive process, and required expertise -- but then a job comes up where the memories to be edited put the cutter in danger.