Ernani is an operatic `` dramma lirico '' in four acts by Giuseppe Verdi to an Italian libretto by Francesco Maria Piave , based on the play `` Hernani '' by Victor Hugo .
Ernani is an Italian opera in four acts by Giuseppe Verdi , with a libretto by Francesco Maria Piave , based on Victor Hugo 's play `` Hernani '' .