TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

73 点作者 salzig将近 9 年前
Hej HN.<p>I would love to know if there is a good site&#x2F;source for files of different media types.

13 条评论

khedoros将近 9 年前
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&#x27;m often dealing with old, badly-documented formats with limited examples (like data files for games). I usually start with the &quot;file&quot; 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&#x2F;edit&#x2F;view that file type, and that&#x27;s a jumping-off point to find examples (given the domain, it&#x27;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&#x27;ve used this site before too: <a href="https:&#x2F;&#x2F;wiki.multimedia.cx&#x2F;index.php?title=Main_Page" rel="nofollow">https:&#x2F;&#x2F;wiki.multimedia.cx&#x2F;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.
bariumbitmap将近 9 年前
I started a project in this vein a while ago:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nbeaver&#x2F;mimetype-menagerie" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nbeaver&#x2F;mimetype-menagerie</a><p>It organizes files by mimetype. It&#x27;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:&#x2F;&#x2F;github.com&#x2F;arisada&#x2F;afl-fuzz&#x2F;tree&#x2F;master&#x2F;testcases" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arisada&#x2F;afl-fuzz&#x2F;tree&#x2F;master&#x2F;testcases</a>
Someone将近 9 年前
You may want to look at <a href="http:&#x2F;&#x2F;fileformats.archiveteam.org&#x2F;wiki&#x2F;Category:Graphics" rel="nofollow">http:&#x2F;&#x2F;fileformats.archiveteam.org&#x2F;wiki&#x2F;Category:Graphics</a>. Collecting sample files from there is a bit of a hassle, but there&#x27;s quite some obscure formats.<p>On the same site, <a href="http:&#x2F;&#x2F;fileformats.archiveteam.org&#x2F;wiki&#x2F;Encyclopedia_of_Graphics_File_Formats" rel="nofollow">http:&#x2F;&#x2F;fileformats.archiveteam.org&#x2F;wiki&#x2F;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:&#x2F;&#x2F;entropymine.com&#x2F;jason&#x2F;bmpsuite&#x2F;" rel="nofollow">http:&#x2F;&#x2F;entropymine.com&#x2F;jason&#x2F;bmpsuite&#x2F;</a>, which looks like the definite resource on that format.
jewel将近 9 年前
I&#x27;ve used the ffmpeg samples before:<p><a href="https:&#x2F;&#x2F;samples.ffmpeg.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;samples.ffmpeg.org&#x2F;</a><p>Not nearly complete, of course. I can&#x27;t find a set of test images from the imagemagick project.<p>This would be a awesome github project; it wouldn&#x27;t even need an associated web page. You&#x27;d be amazed at all the different varieties of &quot;legal&quot; JPEG images, for example.
评论 #11917474 未加载
ninjakeyboard将近 9 年前
Define &quot;all&quot; media types. Do you mean something like an example of each and every one of these ? <a href="https:&#x2F;&#x2F;svn.apache.org&#x2F;repos&#x2F;asf&#x2F;httpd&#x2F;httpd&#x2F;trunk&#x2F;docs&#x2F;conf&#x2F;mime.types" rel="nofollow">https:&#x2F;&#x2F;svn.apache.org&#x2F;repos&#x2F;asf&#x2F;httpd&#x2F;httpd&#x2F;trunk&#x2F;docs&#x2F;conf...</a>
评论 #11917710 未加载
doykle将近 9 年前
Apache Tika is a text extraction toolkit. They store a wide selection of file types for their parser tests: <a href="https:&#x2F;&#x2F;github.com&#x2F;apache&#x2F;tika&#x2F;tree&#x2F;master&#x2F;tika-parsers&#x2F;src&#x2F;test&#x2F;resources&#x2F;test-documents" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apache&#x2F;tika&#x2F;tree&#x2F;master&#x2F;tika-parsers&#x2F;src&#x2F;...</a><p>For large sets of some common media types take a look at the govdocs1 corpus: <a href="http:&#x2F;&#x2F;digitalcorpora.org&#x2F;corp&#x2F;files&#x2F;govdocs1&#x2F;by_type&#x2F;" rel="nofollow">http:&#x2F;&#x2F;digitalcorpora.org&#x2F;corp&#x2F;files&#x2F;govdocs1&#x2F;by_type&#x2F;</a><p>For an odd example, sometimes a google search will turn something up.: <a href="https:&#x2F;&#x2F;www.google.com&#x2F;?q=filetype:xlsx" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;?q=filetype:xlsx</a>
评论 #11933178 未加载
alexschiller将近 9 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;alexschiller&#x2F;file-format-commons" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alexschiller&#x2F;file-format-commons</a><p>Here was my stab at that problem. Somewhere near 70 files, many are variants on text files&#x2F;code files iirc but a lot of data centric files as well. There is a small neglected WordPress site linked to it.
swanson将近 9 年前
Would like to find something like this as well.<p>I&#x27;ve used this site for videos of different sizes&#x2F;filetypes before: <a href="http:&#x2F;&#x2F;www.sample-videos.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.sample-videos.com&#x2F;</a>
dugmartin将近 9 年前
I&#x27;ve used this site in the past to test various video formats and sizes: <a href="http:&#x2F;&#x2F;www.sample-videos.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.sample-videos.com&#x2F;</a><p>It is basically the &quot;Big Buck Bunny&quot; video in many sizes, durations and formats.
a-priori将近 9 年前
I don&#x27;t know if there&#x27;s any source with a wide variety of formats, but there are various sites with some samples. Here&#x27;s one for H.264 videos, mostly movie trailers, encoded using various parameters:<p><a href="http:&#x2F;&#x2F;www.h264info.com&#x2F;clips.html" rel="nofollow">http:&#x2F;&#x2F;www.h264info.com&#x2F;clips.html</a><p>I&#x27;ve used it before when I built a system that processed video files.
steveklabnik将近 9 年前
<a href="http:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;media-types&#x2F;media-types.xhtml" rel="nofollow">http:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;media-types&#x2F;media-types.xhtm...</a> is the canonical list of types. They do not have examples though.
niftich将近 9 年前
Is this about Cascading Style Sheet media types? Or MIME types for video, audio, etc.?
评论 #11917404 未加载
syngrog66将近 9 年前
dunno. if not, go please make it. sounds like a useful public resource. it&#x27;s one of those classic cross-cutting concerns. it would fit in nicely with a web where any piece of info you&#x27;d want, or service, is sitting at a URL, just a tab or curl away.