neilharvey / FileSignatures

A small library for detecting the type of a file based on header signature (also known as magic number).
MIT License
250 stars 41 forks source link

File formats for video encodings and some PostScript files #31

Open tiesont opened 3 years ago

tiesont commented 3 years ago

I've successfully added some FileFormat implementations / extensions that (seem to, in my use cases) correctly identity a small handful of video formats, like AVI or MP4.

Would a pull-request adding those formats to this project be useful, or would it make more sense to simply create an "add on" project (I'm leaning towards FileSignatures.VideoFormats as a name) which those who need video detection can use as needed?

I also implemented some formats that seem to correctly identify PSD or EPS files, although I'm not as confident on those. The same question from above would apply to these formats.

neilharvey commented 3 years ago

I'm happy to accept a pull request if it adds some useful formats, I'd always intended this to be written in such a way that the formats could be added to.