Git Product home page Git Product logo

Comments (3)

AydinAdn avatar AydinAdn commented on May 24, 2024

I'll look into this on the weekend... thank you for bringing it to my attention

from mediatoolkit.

Thermionix avatar Thermionix commented on May 24, 2024

also getting this issue; {"Input string was not in a correct format."}
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at MediaToolkit.Util.RegexEngine.TestAudio(String data, EngineParameters engine) in MediaToolkit\Util\RegexEngine.cs:line 151

input data string is; Stream #0:1(eng): Audio: vorbis, 44100 Hz, mono, fltp (default)"

from mediatoolkit.

Thermionix avatar Thermionix commented on May 24, 2024

fixed by setting audio bitrate to int? and;

Match matchAudioBitRate = Index[Find.BitRate].Match(fullMetadata);

            if (engine.InputFile.Metadata == null)
                engine.InputFile.Metadata = new Metadata();

            if (engine.InputFile.Metadata.AudioData == null)
                engine.InputFile.Metadata.AudioData = new Metadata.Audio
                {
                    Format = matchAudioFormatHzChannel[1].ToString(),
                    SampleRate = matchAudioFormatHzChannel[2].ToString(),
                    ChannelOutput = matchAudioFormatHzChannel[3].ToString(),
                    BitRateKbs = 
                        matchAudioBitRate.Success
                     ? (int?) Convert.ToInt32(matchAudioBitRate.Groups[1].ToString())
                     : null
                };

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.