The film is Glory (1989), starring Denzel Washington as Private Trip in the 54th Massachusetts Infantry Regiment—the first all-Black regiment in the American Civil War.