Modify video file for viewing in generic media player
You need to convert the codec used to encode the video to something that the players you are trying to use support. MPlayer supports a wider range of codecs than many players.

To allow you to view the video in other players you need to transcode the video using an application like ffmpeg. The command below will provide the conversion you need:

ffmpeg -i foo.264 -c:a aac -c:v libx264 -preset medium foo.mp4



i - input file
c:a - set audio codec to transcode to. Here I chose AAC
c:v - set video codec to transcode to. libx264 is used to transcode to H.264, one of the most common and widely used video codecs. Most players should be able to play files encoded with H.264.
preset - used to quickly define the H.264 encoding parameters. Choose from ultrafast,superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo. There is obviously a trade-off between quality and transcode speed here.


After running this command I could play the video you uploaded in QuickTime on OS X.



If you use -copy or don't specify a codec, then ffmpeg will use the same codec as the source. So the command

ffmpeg -f h264 -i foo.264 -c copy foo.mp4


Will change the container around the video to mp4, but not the video encoding itself. You can read more about the difference between containers and codecs here.