Skip to content

Sample MP4 URL (Direct Link for Player Testing)

Download Sample File

Free test file, safe content, instant download.

SHA256672fbdf9bfa8273f7787ffb3...

When you are building a video player, testing an embed flow, or wiring up a media pipeline, you need a public MP4 URL that just works — no auth, no expiring tokens, no CDN games. These direct links serve real video files with correct MIME types and CORS headers, so fetch(), <video src>, hls.js demos, and ffmpeg CI fixtures all behave.

Copy any URL below straight into your code. The files are small (they load fast), permanent, and served over HTTP/2. For codec-specific behavior, the WebM (VP9) and AVI (legacy) URLs let you test alternate paths through your player logic.

File Information

MP4 URL
https://www.samplefiles.online/files/sample.mp4
WebM URL
https://www.samplefiles.online/files/sample.webm
MKV URL
https://www.samplefiles.online/files/sample.mkv
AVI URL
https://www.samplefiles.online/files/sample.avi

How to Use This MP4 Video Test File

  1. 1Copy the direct URL for the format you need.
  2. 2Use it in a <video src="..."> element, fetch() call, or ffmpeg input.
  3. 3Test error handling with the AVI URL — most browsers cannot decode it natively.
  4. 4Need bigger files for buffering tests? See the 10MB and 100MB test files.

Frequently Asked Questions

Can I hotlink these MP4 URLs in my app?
Yes — that is what they are for. The files serve with correct Content-Type headers and can be fetched cross-origin. For production apps, still mirror test assets into your own storage; treat this as a development convenience.
Do these video URLs support HTTP Range requests?
Yes. Range/resume works, so <video> seeking and progressive playback behave like real CDN-served video — important when testing a player’s seek and buffering logic.
What codec is the sample MP4?
H.264 video with AAC audio in an MP4 container — the universal baseline every browser and player decodes. Use the WebM URL (VP9) to test alternate codec paths and AVI to test failure fallbacks.
Why is the sample video so small?
Small files load instantly, keeping test cycles fast. For buffering, bandwidth, or adaptive-bitrate testing use the 10MB or 100MB binary test files instead — throughput logic does not care about the container.

Browse Related Formats

Need a different size or format?

Use our free Generator to create custom test files in any format and size — right in your browser, no upload needed.

Try Our Generator