Scouting For Girls, well-known fans of the rural soap, headlined the event alongside The Proclaimers.
Local bands DeLorean Drivers, Eureka Machines and folk singer Brendan Croker also played.
Emmerdale will transmit the festival, which was filmed over three days earlier this month, within a special episode in October to coincide with its anniversary.
Declan Macey (Jason Merrells) and his sister Megan (Gaynor Faye) have been busy planning the gig, held at Home Farm, since the early part of the year.
A British soap has never hosted a music festival before. Hundreds of supporting artists were dressed as festival-goers.
Scouting For Girls frontman Roy Stride said: "Having played the Woolpack in 2010 we felt the next step as Emmerdale fans was to appear in the show... and finally now our dreams have come true.
"Our drummer Pete is the biggest Emmerdale fan I've ever met and I think we're going to have to work hard to keep him focused on the job in hand."
Proclaimers duo Craig and Charlie Reid commented: "It was really different from anything we had done before and we had a really excellent day filming with Emmerdale. Everything went very smoothly. Thanks to everyone in the crew and cast who made it such an easy and enjoyable day."
The show's series producer Stuart Blackburn added: "This festival represents the modern countryside: vibrant, young and energetic. It was an amazing feat to put together an entire festival in such a short space of time.
"Technically it is probably one of the biggest challenges we have ever had on the show but the end result looks great.''
Emmerdale reaches its 40th anniversary on October 16, for which it will also show a special live episode. Get the Inside Soap magazine on your iPhone or iPad