In the U.S., Eisler composed music for various documentary films and for eight Hollywood film scores, two of which — "Hangmen Also Die!" and "None but the Lonely Heart" — were nominated for Oscars in 1944 and 1945 respectively. Also working on "Hangmen Also Die!" was Bertolt Brecht, who wrote the story along with director Fritz Lang. From 1927 to the end of his life, Eisler wrote the music for 40 films, making film music the largest part of his compositions after vocal music for chorus and/or solo voices.