Comments (5)
You can set the codec by calling setCodecID() before start(), and you can set
the frame rate by calling setFrameRate(), again before calling start().
As for OpenCVFrameRecorder generally sucking, please try to use
FFmpegFrameRecorder instead, as mentioned in the README.txt.
As for sound, OpenCV simply does not support for sound. FFmpeg does, and it
would be possible to modify FFmpegFrameRecorder to accept sound packets along
the image frames, but I have no plan to add this feature myself. If you make a
new version of FFmpegFrameRecorder that supports sound, please let me know and
I will add it to the next release, thank you
Original comment by [email protected]
on 24 Feb 2011 at 4:59
from javacv.
[deleted comment]
from javacv.
Hi Samuel. I tried it with my colleague, and you are completely right. We also
installed FFmpeg on the mac machine
(http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html,
http://www.youtube.com/watch?v=3srKCD3ok3w), and used FFmpegFrameRecorder
instead of OpenCVFrameGrabber, which worked much better. The only remaining
problem now is the speed at which it is grabbing frames for the video recorder
(only about 2 - 3 per second max). We tried modifying the frame rate by using
the setFrameRate function of FrameRecorder (recorder.setFrameRate(x.x)), but it
did not improve. I realised that the actual video display itself (of the
webcam), had a very low refresh rate! So we tried modifying the FrameGrabber
frame rate (grabber.setFrameRate(x.x)) - However, by using
grabber.getFrameRate(), we saw that it was already set on 0.0! Modifying these
values did not improve it, and still the refresh rate is about 2 - 3 grabbed
frames per second, so we cannot see real-time / live display of my webcam. Any
advice is kindly appreciated!
Original comment by [email protected]
on 25 Feb 2011 at 1:51
from javacv.
I'm glad it works, marking as done.
On Mac, FFmpeg does not support camera capture, and OpenCV, well, sucks, so I'm
afraid that if you are not satisfied with OpenCVFrameGrabber, you will need to
use QuickTime directly to capture from your Webcam...
Original comment by [email protected]
on 25 Feb 2011 at 2:54
- Changed state: Done
from javacv.
This project may be of interest for your project:
http://lti-civil.org/
Original comment by [email protected]
on 25 Feb 2011 at 3:00
from javacv.
Related Issues (20)
- av_interleaved_write_frame() error -22 while writing interleaved video frame HOT 3
- Android video record using H264 format is to large HOT 1
- Error while createFisher/Eigen/LBPHFaceRecognizer() method is called. HOT 7
- FFmpegFrameGrabber doesn't grab upto the end of the video on Android HOT 6
- RTMP streaming problems HOT 1
- Unable to record with sample code on HOT 4
- Question about the applying the proguard on android HOT 2
- CODEC_ID_MPEG1VIDEO,PIX_FMT_YUV420P cannot be resolved to a variable HOT 4
- While using OpenCV 2.4.9 and JavaCV 0.7 in netbeans windows 7 getting error HOT 3
- Help me Dr.Samuel..(Fatal signal 8 (SIGFPE) at 0x00002835 (code=-6), thread 10293 ) HOT 4
- multi processing with opencv HOT 2
- Problem on train method in face recognition HOT 1
- how to rotate video with javacv on android HOT 1
- Caused by: java.lang.UnsatisfiedLinkError: Couldn't load opencv_core from loader dalvik.system.PathClassLoader HOT 1
- .mp4 video not working in splash screen in htc desire 500 HOT 1
- How to grab the RGB frame instead the gray one? HOT 2
- reconstructImageToNewType Method not Found HOT 1
- JavaCV 0.11 getLengthInFrames() HOT 3
- How to apply sepia effect on grabed frame before record it HOT 2
- IplImage Create error, memery allocation problem HOT 3
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 javacv.