I have tried several methods but none is playing the file2.m4v using html5 see screen shot.
But if i use that same file using VLC/Mplayer it play the film nicely (no pr
HTML5 is a web standard (in other words, a specification), not a technology, so the phrase "html5 cant play it" implies a bit of misunderstanding on your part. The file is decoded by the browser according to the settings you specify in the tag. It is worth noting that not every browser and/or operating system has the same codecs available, so first verify that you can play the video natively.
Firefox, for one, cannot decode anything encoded with the H.264 codec, which I believe is used in .m4v files (anyone who knows better, please correct me).
Lastly, as someone else pointed out, your path is likely wrong. Remove the 'var' and 'www' portions of the path.