Giter Club home page Giter Club logo

Comments (5)

buzz avatar buzz commented on May 24, 2024

I'm able to access the property using result.media.track[0].FrameRate.

Best refer to the original project for available fields and structure.

from mediainfo.js.

DongDanBam avatar DongDanBam commented on May 24, 2024

Thanks buzz. Ill give your suggestion a try. Much appreciated.

from mediainfo.js.

DongDanBam avatar DongDanBam commented on May 24, 2024

When I try to use result.media.track[0].FrameRate I get an error:
TypeError: Cannot read property 'track' of undefined

Here is how I used frame rate.

`mediainfo

        .analyzeData(getSize, readChunk)
            .then((result) => {
                console.log("Frame: "+ result..media.track[0].FrameRate`)
                //output.value = result
            })
            .catch((error) => {
                output.value = `An error occured:\n${error.stack}`
            })

`

Im not sure of the proper use of result.media.track[0].FrameRate and not sure of how it should be defined. Any advice is appreciated.

from mediainfo.js.

buzz avatar buzz commented on May 24, 2024

The repository includes examples that do work. Just try them. If you need further assistance please check SO.

Thank you

from mediainfo.js.

DongDanBam avatar DongDanBam commented on May 24, 2024

Ive got an example to work just fine. Having trouble understanding how all the hooks and snags work so running a few simple experiments to get acquainted with your creation. Ive been through SO from top to bottom and found only vague references to figuring out how to query a frame rate. I couldn't find any thing on SO that provided enough of a well rounded explanation to help me learn.

How can I query frame rate data from your your javascript? seems like I should be able to call result.framerate and get the result.

from mediainfo.js.

Related Issues (20)

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.