ffmpeg -i infile.avi out.mp4
outputs non-fragmented MP4.
How do I obtain fragmented mp4?
Update A fragmented mp4 file is internally divided into several back-to-back chunks or MPEG-4 movie fragments. Each chunk has its own moof atom - so there are several moof atoms interleaved in the file instead of a single moov at the end as in the case of an unfragmented mp4. This makes it easier to stream over slow networks where buffering is involved
There are several tools like mp4box that convert a normal mp4 to a fragmented one. Unfortunately we cannot use something like this
ffmpeg <options to output mp4> | mp4box
since ffmpeg does not produce seekable output while producing mp4 containers.