Giter Site home page Giter Site logo

mp4 about magic-bytes HOT 3 CLOSED

larskoelpin avatar larskoelpin commented on May 28, 2024 1
mp4

from magic-bytes.

Comments (3)

Tenpi avatar Tenpi commented on May 28, 2024

Hi, I would like to second the support for mp4 files.

On the same, note, .mov also returns the same result:
[{typename: 'pic'}, {typename: 'pif'}, {typename: 'sea'}, {typename: 'ytr'}]

Both .mkv and .webm return this same result so it's impossible to tell which is which (only from the file extension, which could be changed):
[{"typename": "mkv"},{"typename": "mka"},{"typename": "mks"},{"typename": "mk3d"},{"typename": "webm","mime": "audio/webm","extension": "webm"}]

So overall, add better support for video files.

from magic-bytes.

LarsKoelpin avatar LarsKoelpin commented on May 28, 2024

mkv, mka, mks mk3d and webm share the same signature (see: https://en.wikipedia.org/wiki/List_of_file_signatures).

mp4 shall be detected correctly now on version 1.0.10. (https://github.com/LarsKoelpin/magic-bytes/blob/master/src/index.spec.ts#L17)

let me know, if it works for you.

from magic-bytes.

DimaTrollFace avatar DimaTrollFace commented on May 28, 2024

It works. Thank you.

from magic-bytes.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.