...you can do that yourself. the following is from A:Level maths:
1) Sort all the files in size; so, biggest at top and smallest at bottom.
2) Put the 1st biggest file on DVD.
4) Can the next biggest file fit? If so, put it on, then repeat this step, until the next biggest wont fit.
5) Skip to the one after the 'next biggest one', and keep going down the list until you get one thats fits in the remaining space. Repeat until the smallest file can't fit in the remaining space.
6) Start all over with a new DVD.
This is the box-packing algorithm, I believe.