What exactly do you want to do? A lot of the other answers assume that you want examples of different h.264 encodings, JPEG image varieties, etc.<p>In my own side projects, I'm often dealing with old, badly-documented formats with limited examples (like data files for games). I usually start with the "file" command to try to identify the filetype, then look on Wikipedia and filext.com to find links to format specifications. Usually, I can also find the name of any programs that create/edit/view that file type, and that's a jumping-off point to find examples (given the domain, it'll be anything from another game that uses the format to a 90s-era fan page with modified or fan-created data files).<p>I've used this site before too:
<a href="https://wiki.multimedia.cx/index.php?title=Main_Page" rel="nofollow">https://wiki.multimedia.cx/index.php?title=Main_Page</a><p>It provides links to a lot of format specifications, codec information, sometimes the mplayer samples that other comments here have linked to, etc.
I started a project in this vein a while ago:<p><a href="https://github.com/nbeaver/mimetype-menagerie" rel="nofollow">https://github.com/nbeaver/mimetype-menagerie</a><p>It organizes files by mimetype. It's not complete, but it might be a good starting point.<p>You can also look at the testcase folder for afl-fuzz, which includes archives, images, and even an H264 compressed video:<p><a href="https://github.com/arisada/afl-fuzz/tree/master/testcases" rel="nofollow">https://github.com/arisada/afl-fuzz/tree/master/testcases</a>
You may want to look at <a href="http://fileformats.archiveteam.org/wiki/Category:Graphics" rel="nofollow">http://fileformats.archiveteam.org/wiki/Category:Graphics</a>. Collecting sample files from there is a bit of a hassle, but there's quite some obscure formats.<p>On the same site, <a href="http://fileformats.archiveteam.org/wiki/Encyclopedia_of_Graphics_File_Formats" rel="nofollow">http://fileformats.archiveteam.org/wiki/Encyclopedia_of_Grap...</a> points to an archive.org copy of a CD ROM with sample images.<p>Via its BMP page, I found <a href="http://entropymine.com/jason/bmpsuite/" rel="nofollow">http://entropymine.com/jason/bmpsuite/</a>, which looks like the definite resource on that format.
I've used the ffmpeg samples before:<p><a href="https://samples.ffmpeg.org/" rel="nofollow">https://samples.ffmpeg.org/</a><p>Not nearly complete, of course. I can't find a set of test images from the imagemagick project.<p>This would be a awesome github project; it wouldn't even need an associated web page. You'd be amazed at all the different varieties of "legal" JPEG images, for example.
Define "all" media types.
Do you mean something like an example of each and every one of these ?
<a href="https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types" rel="nofollow">https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf...</a>
Apache Tika is a text extraction toolkit. They store a wide selection of file types for their parser tests:
<a href="https://github.com/apache/tika/tree/master/tika-parsers/src/test/resources/test-documents" rel="nofollow">https://github.com/apache/tika/tree/master/tika-parsers/src/...</a><p>For large sets of some common media types take a look at the govdocs1 corpus:
<a href="http://digitalcorpora.org/corp/files/govdocs1/by_type/" rel="nofollow">http://digitalcorpora.org/corp/files/govdocs1/by_type/</a><p>For an odd example, sometimes a google search will turn something up.:
<a href="https://www.google.com/?q=filetype:xlsx" rel="nofollow">https://www.google.com/?q=filetype:xlsx</a>
<a href="https://github.com/alexschiller/file-format-commons" rel="nofollow">https://github.com/alexschiller/file-format-commons</a><p>Here was my stab at that problem. Somewhere near 70 files, many are variants on text files/code files iirc but a lot of data centric files as well. There is a small neglected WordPress site linked to it.
Would like to find something like this as well.<p>I've used this site for videos of different sizes/filetypes before: <a href="http://www.sample-videos.com/" rel="nofollow">http://www.sample-videos.com/</a>
I've used this site in the past to test various video formats and sizes: <a href="http://www.sample-videos.com/" rel="nofollow">http://www.sample-videos.com/</a><p>It is basically the "Big Buck Bunny" video in many sizes, durations and formats.
I don't know if there's any source with a wide variety of formats, but there are various sites with some samples. Here's one for H.264 videos, mostly movie trailers, encoded using various parameters:<p><a href="http://www.h264info.com/clips.html" rel="nofollow">http://www.h264info.com/clips.html</a><p>I've used it before when I built a system that processed video files.
<a href="http://www.iana.org/assignments/media-types/media-types.xhtml" rel="nofollow">http://www.iana.org/assignments/media-types/media-types.xhtm...</a> is the canonical list of types. They do not have examples though.
dunno. if not, go please make it. sounds like a useful public resource. it's one of those classic cross-cutting concerns. it would fit in nicely with a web where any piece of info you'd want, or service, is sitting at a URL, just a tab or curl away.