Ask HN: Is there a site providing example files for “all” media types?

73 points by salzig ↗ HN
Hej HN.

I would love to know if there is a good site/source for files of different media types.

21 comments

[ 1.6 ms ] story [ 62.9 ms ] thread
Is this about Cascading Style Sheet media types? Or MIME types for video, audio, etc.?
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:

http://www.h264info.com/clips.html

I've used it before when I built a system that processed video files.

I've used the ffmpeg samples before:

https://samples.ffmpeg.org/

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.

(comment deleted)
(comment deleted)
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).

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.

I've used this site in the past to test various video formats and sizes: http://www.sample-videos.com/

It is basically the "Big Buck Bunny" video in many sizes, durations and formats.

Apache Tika is a text extraction toolkit. They store a wide selection of file types for their parser tests: https://github.com/apache/tika/tree/master/tika-parsers/src/...

For large sets of some common media types take a look at the govdocs1 corpus: http://digitalcorpora.org/corp/files/govdocs1/by_type/

For an odd example, sometimes a google search will turn something up.: https://www.google.com/?q=filetype:xlsx

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.
(comment deleted)