Rather uncommon Motion JPEG video files (.mjpg) can be converted to MPEG-4 videos (.m4v) with programs like Freemake Video Converter, which is what mjpg to m4v conversion represents.
Just keep in mind the resulting quality will be probably poor compared to common MP4s, because MJPGs are primarly sequences of images, not proper videos.