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.
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).
Not nearly complete, of course. I can't find a set of test images from the imagemagick project.
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.
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.
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:
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.
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).
I've used this site before too: https://wiki.multimedia.cx/index.php?title=Main_Page
It provides links to a lot of format specifications, codec information, sometimes the mplayer samples that other comments here have linked to, etc.