You've said mp4, which is a container format and not a codec. mp4 can hold a huge number of codec formats.
You can put mjpeg into an mp4 container with
Code: Select all
ffmpeg -r 15 -i foo.mjpg -c:v copy bar.mp4
Transcode is a much bigger job, and will be very slow at 8MPix resolution on the CPUs.