Giter Site home page Giter Site logo

Comments (15)

amynkvirani avatar amynkvirani commented on September 18, 2024 1

I found that someone else already fixed this and is available for you to merge. If you could do it, that would be great. Thanks

from mediatoolkit.

tgiachi avatar tgiachi commented on September 18, 2024 1

Please accept the Pull requests!

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024 1

Can somebody provide solution for this. I'm in urgent need of the same.
I believe regex could be an issue

from mediatoolkit.

amynkvirani avatar amynkvirani commented on September 18, 2024 1

I believe it is already resolved with the last merge "699cb4a3dc14cfefe5ddaf1709f0de936c6533e0"

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024 1

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024 1

from mediatoolkit.

amynkvirani avatar amynkvirani commented on September 18, 2024

are you using the github code or used the nuget package?

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024

Hi,
Am I missing something here?

regards
vijay

from mediatoolkit.

amynkvirani avatar amynkvirani commented on September 18, 2024

remove the line Console.ReadLine(); from function engine_ConversionCompleteEvent and ConvertProgressEvent

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024

from mediatoolkit.

amynkvirani avatar amynkvirani commented on September 18, 2024

After testing it myself, I was able to reproduce the same behavior i.e. ConversionCompleteEvent is never fired.
Unfortunately, after the last merge, this thing broke.
So what you can do is checkout the code at the following commit and try it out.

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024

from mediatoolkit.

vijaykishans avatar vijaykishans commented on September 18, 2024

from mediatoolkit.

amynkvirani avatar amynkvirani commented on September 18, 2024

I don't think that you will miss anything important. It was a stable version and should get your job done.

from mediatoolkit.

 avatar commented on September 18, 2024

The fix for this is as follows.
in RegexEngine.cs in the function
internal static bool IsProgressData

fps and frame are not sent in any of the examples i tried, so change your match requirements to
if (!matchSize.Success || !matchTime.Success ||
!matchBitrate.Success) return false;
As that is all we really need to monitor update progress
and if for some reason we get data with fps and frame change the below too

        long frame = 0;
        double fps = 0;
        if(matchFrame.Success)
            frame = Convert.ToInt64(matchFrame.Groups[1].Value, CultureInfo.InvariantCulture);
        if (matchFps.Success)
            fps = Convert.ToDouble(matchFps.Groups[1].Value, CultureInfo.InvariantCulture);

        int sizeKb = Convert.ToInt32(matchSize.Groups[1].Value, CultureInfo.InvariantCulture);
        double bitrate = Convert.ToDouble(matchBitrate.Groups[1].Value, CultureInfo.InvariantCulture);

this works for me to update progress

from mediatoolkit.

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.