Comments (5)
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.
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.
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.
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.
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)
- AviWrite Close Function Trouble ( Fx35 Version ) HOT 2
- x264vfw Record Error.. HOT 2
- Screen recording as video, audio on SharpAvi - Audio not recording HOT 4
- .NET Core target HOT 1
- This Library not available in .NET Core HOT 1
- x264 popup appears HOT 1
- Continuous recording, writing out to multiple files HOT 1
- Thumbnail Time Trouble..
- How to record audio microphone and speaker HOT 1
- how to close the video at the end of the process HOT 1
- Different resolutions crop in video
- Issue with example HOT 1
- Please turn MAX_SUPER_INDEX_ENTRIES into an optional parameter HOT 3
- Mpeg4VideoEncoderVcm.GetAvailableCodecs returns an empty array HOT 3
- AviWriter does not close file HOT 3
- Trouble with x264vfw HOT 2
- AVI Wrapped to the right slightly HOT 9
- Errors in Mpeg4VcmVideoEncoder Issues HOT 5
- OverflowException in AviWriter.WriteFileHeader HOT 2
- When using any codec only first frame is visible on the recorded AVI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpavi.