A barrel is full of wine. All the wine in the barrel is put in equal quantities, into three buckets of different sizes. On completion of the operation, it is noted that the first bucket is half full, the second is two-third full and the third is three quarter full. Assume that the capacity in gallons of the barrel and each of the buckets are whole numbers, what is the minimum capacity of the barrel?