It appears to me that you have two questions:
1) Prevent students from downloading videos.
If students want to capture a video, they can use many screen recorder software products for this purpose, so you cannot prevent this from happening.
2) Try m4v error.
What is the video file name, and how was it encoded? I use .mp4 (h264) all the time, and they work fine.