Comments (6)
Yes, that's right, it's not supported yet. If you have some changes to
contribute, please attach them here for review! Thanks
Original comment by [email protected]
on 10 May 2013 at 7:51
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from javacv.
BTW, FFmpegFrameRecorder does support audio conversion, so it should be
possible to refer to it and do something similar in FFMpegFrameGrabber.
Original comment by [email protected]
on 11 May 2013 at 9:50
from javacv.
I am going to upload the changes i've made to FFMpegFrameGrabber once i have it
sorted.
Thanks
Original comment by [email protected]
on 19 May 2013 at 4:27
from javacv.
[deleted comment]
from javacv.
Hi, I'm facing the same problem. Could anyone provide the fix of
FFMpegFrameGrabber?
I really need it asap.
Thanks
Original comment by [email protected]
on 20 Jul 2013 at 4:05
from javacv.
Hi, I'm desperate, I do not get sound on this file to sound good. The ringing
sound is full of noise. Can someone help me out? or show me how I do it? Thank
you very much.
FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("c:\\com4j\\video.avi");
// Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
grabber.setSampleFormat(avcodec.AV_CODEC_ID_AC3);
grabber.start();
CanvasFrame cff = new CanvasFrame("Playing");
System.out.println("Caneles de audio: " +grabber.getAudioChannels());
System.out.println("Samplerate: " +grabber.getSampleRate());
System.out.println("getSampleFormat: " +grabber.getSampleFormat());
//AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 192, grabber.getAudioChannels(), true, false);
AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 16, grabber.getAudioChannels(), true, true);
DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);
soundLine.open(audioFormat);
soundLine.start();
while(true) {
Frame frame = grabber.grabFrame();
if(frame != null) {
if(frame.image != null) {
cff.showImage(frame.image);
}
else if(frame.samples != null) {
FloatBuffer baSamples = (FloatBuffer) frame.samples[0];
//ByteBuffer byteBuffer = ByteBuffer.allocate(baSamples.capacity() * 4);
byte[] output = new byte[baSamples.capacity() * 4];
ByteBuffer.wrap(output).asFloatBuffer().put(baSamples);
soundLine.write(output, 0, output.length);
}
}
else {
break;
}
}
Original comment by [email protected]
on 30 Mar 2014 at 1:24
from javacv.
Related Issues (20)
- FFmpegFrameGrabber won't grab till the end of video. HOT 12
- Cached value of CvMat.fullSize and *Buffer fields might get incorrect HOT 85
- Missing default metadata in FFmpegRecorder HOT 4
- .so files gets deleted on Build&Run (Android) HOT 4
- Execution error HOT 1
- capture problem HOT 4
- Clear documentation on how to use callbacks from FFMpeg and OpenCV in JavaCV using JavaCPP HOT 30
- Memory leaks HOT 2
- Cannot find class file javax.swing.JFrame HOT 1
- FFMpegFrameRecorder is sending an unusually high keyframe rate HOT 4
- IPImage's use of awt classes are causing crashes on some device. HOT 1
- cvSetImageROI() and cvWarpAffine() made false color image HOT 15
- Get duration base on the audio track HOT 9
- EXCEPTION_ACCESS_VIOLATION HOT 2
- cvLoadImage is not work in my android app HOT 15
- Problem using ffmpegframegrabber with a remote camera that needs login HOT 2
- Reconnect problem on Android HOT 1
- Problems with android devices having Android 3.0 or lower version but works well with Android 4.0 and higher version HOT 5
- error: javacv for android on eclipse
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.