If the source is H.264 video, you can just demux and remux to MP4.
Handbrake is probably the simplest solution, but it's definitely not the best. However, better solutions require a lot of understanding of how video and video containers and such work.
VNs are superior to anime, don't @ me