Disc to disc copy with ability to filter out filetypes?

Does anyone know of a program that can filter filetypes on a disc, then burn a copy of that disc? For instance, if the disc has jpg and mpeg, and I just wanted to burn mpeg… but they are in hundreds of separate folders…)?

That would a very special program.
Depending on the O/S you use, a script may allow you to copy the files you want to a new destination in a HDD, and from there you can use a burning software to burn to a new disc.
From disc to disc don’t know about any…and direct disc copy is sometimes a problem.