Bristol Crown Court heard the "St Pauls Blood Gang" members made the film about two years ago.
When police raided one of their houses, one of the guns they found was from the video.
O'Shane Finlayson, 20, Linus Campbell, 22, Narwayne Parchment, 22, and Noah Ntuve, 25 were jailed on Tuesday. Kamari Lee was jailed on Wednesday.
The court heard that the video had been taken off social networking websites.
While Ntuve was singing, Campbell produced a .22 handgun and pointed it over his shoulder, the court heard.
Another video by the gang made in April last year and posted on YouTube showed gang members wearing their trademark red neckerchiefs, talking of guns and killing, and boasting about their gang being better than one in nearby Easton.
Guns were found hidden behind bath panels in the raid on Parchment's house on Sussex Place in February, including the .22 handgun.
Another video shows gang members wearing their trademark red neckerchiefs
Finlayson, Campbell, Parchment and Lee pleaded guilty to firearms offences, at Bristol Crown Court.
Ntuve was sentenced for possession of a prohibited weapon.
Finlayson, of Upper Cheltenham Place; Campbell, of no fixed address; and Parchment, of Sussex Place; were sentenced to six years each in jail.
Ntuve, 25, of Argyle Road, where the video was filmed, was sentenced to five years in jail; and Lee, 18, of Barton Hill, was jailed for three years.
Insp Gary Haskins, of Avon and Somerset Police, said the inquiry had been complex and the sentencing of the gang would have "a significant impact on the community".
He added: "Gun crime in our force area is thankfully very rare but its consequences can be devastating."
You Might Also Like :