Giter Site home page Giter Site logo

Comments (5)

baSSiLL avatar baSSiLL commented on June 12, 2024

Mpeg4VideoEncoderVcm class uses MPEG-4 encoders installed in the system. So, to be able to do MPEG-4 encoding, you should install either of the codecs listed in docs

https://github.com/baSSiLL/SharpAvi/wiki/Using-Video-Encoders#creating-video-encoder

from sharpavi.

therealsquidgee avatar therealsquidgee commented on June 12, 2024

Hi @baSSiLL I downloaded the encoder you mentioned in the documentation but I am still receiving this exception. Any ideas why that might be? Great library btw!

from sharpavi.

baSSiLL avatar baSSiLL commented on June 12, 2024

Hi @therealsquidgee
Probably mismatching bitness between codec and program. For instance, you've installed 32-bit codec only and run your program as 64-bit process.
What does Mpeg4VideoEncoderVcm.GetAvailableCodecs return?

from sharpavi.

husk3rdu avatar husk3rdu commented on June 12, 2024

Hi baSSiLL,

Same issue here on Windows 7 (64b). I've installed x264vfw for 32 and 64. A GetAvailableCodecs returns:

x264vfw - H.264/MPEG-4 AVC codec

But i get:

Unhandled Exception: System.InvalidOperationException: Encoder operation returned an error: -100.
at SharpAvi.Codecs.Mpeg4VideoEncoderVcm.CheckICResult(Int32 result)
at SharpAvi.Codecs.Mpeg4VideoEncoderVcm.StartCompression()
at SharpAvi.Codecs.Mpeg4VideoEncoderVcm..ctor(Int32 width, Int32 height, Double fps, Int32 frameCount, Int32 quality, FourCC[] codecPreference)
at SharpAvi.Codecs.EncodingStreamFactory.<>c__DisplayClass2.b__0()
at System.Windows.Threading.DispatcherOperation`1.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()

I compiled it in 32/64 with the same result. By the way, it works on W10...

from sharpavi.

baSSiLL avatar baSSiLL commented on June 12, 2024

Hi @husk3rdu
Sorry for a late reply. Do you have any news about your issue?
Is there any additional info about error in x264 log window?
Did you try different versions of x264vfw?

from sharpavi.

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.