The Attachable Grinder mod for 1.5.1 adds a new grinder that can harvest materials out of live mobs. Just attach it to an animal and it will grind resources without killing it.
Then right click on a mob while holding the grinder.
Pigs – Pork
Cows – Beef