Star Trek: Voyager
Episode: VOY 108 - Ex Post Facto

Planet: name unspecified. Race of advanced space-faring humanoids with feather-like head coverings. Convicted felons of capital offenses are punished by implanting the victim's own final memory engrams into their brain so they can relive their crime through the victim's point of view every 14 hours. The government is organized in ministries. They keep pets and smoke a tobacco-like product.