Comments (10)
I will try and make a PR
from flashcap.
H.264 is not frame by frame, so it shoudl retun null. That is good behaviour. Stopping at the first non supported pixelformat is
from flashcap.
No problem. I ran into trouble with the Logitech C920. You can also add that camera to the supported camera's now ;)
from flashcap.
from flashcap.
I added the PR, but can't seem to link it ...
from flashcap.
Thanks for the PR! It looks like you removed IsKnownPixelFormat()
. This method exists to check if the FlashCap is in a format that will be processed correctly as independent frame data.
Assuming your camera returns H.264
, is this returned as frame-by-frame independent data? If so, what does the resulting data format actually look like?
I am not familiar with H.264, but I thought H.264 format was continuous (not separated between frames) data, so I thought it should not be included in IsKnownPixelFormat()
.
I'd be interested to see what the format would look like if I actually made this modification and referenced BufferScope.Buffer
. Does it say the camera is H.264 but returns it as JPEG or something?
// What a binary format for `image`?
byte[] image = bufferScope.Buffer.ExtractImage();
from flashcap.
No I didn't remove it. I replaced the code outside the loop
.Where(x => IsKnownPixelFormat(x))
from flashcap.
The enumerator stops at the first signs of null. Not trying the next value anymore.
from flashcap.
Ouch, I understand it! I will check my environment, thank you explanation.
from flashcap.
Merged, thank you again!
from flashcap.
Related Issues (20)
- run wpf sample app HOT 3
- Avalonia 11: MVVM Community Toolkit: ObservableCollection<CaptureDeviceDescriptor> is null HOT 2
- Added ShowPropertyPage method to DirectShowDevice class HOT 1
- Need support with Avalonia Sample HOT 9
- Is there any way to set camera parameters like white balance, exposure on linux? HOT 1
- Blue screen error without stopping HOT 1
- Capture Error event handler HOT 1
- SET the power line frequency property HOT 1
- After running StartAsync() on linux, executing StopAsync() and then StartAsync(), pixelBufferArrived will not be executed again. HOT 4
- VideoCharacteristics not detected HOT 17
- Typo in Linux device enumeration HOT 3
- Reversed logic when enumerating Linux device capabilities HOT 3
- 执行OpenAsync时发生异常 HOT 1
- Elgato CamLink 4K DirectShow Pixel Format HOT 4
- Capture works first time on Linux, but not subsequent times HOT 4
- How to do shrink memory when capturing from WebCam to WPF HOT 2
- Avalonia aot 启动失败
- Is there a camera snapshot event handler? HOT 1
- AutoPixelBufferScope set PixelBuffer to null, cause allocate new PixelBuffer for every frame HOT 3
- Possible leaks in AsyncLock HOT 1
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 flashcap.