ratneshkr / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Encoding mp4 video with audio from a webcam #454

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to encode a mp4 video with FFmpegFrameRecorder using different 
Grabbers to capture from a web cam
2. No sound with FrameGrabber or OpenCvFrameGrabber
3. No int device initialization available with FFmpegFrameGrabber

What is the expected output? What do you see instead?
A mp4 video with video and audio frames captured from a webcam with 
incorporated microphone.

What version of the product are you using? On what operating system?
JavaCV last version. Windows 7.

Please provide any additional information below.
Hi all.

I need to create a new mp4 video (with audio) from a webcam Logitech which has 
its own incorporated microphone.

I think that I need to use the FFmpegFrameRecorder to create/record the mp4 
video. But I don't know certainly which of the grabbers I need to get the audio 
and video frames from this webcam:

- FrameGrabber says that this grabber does not audio suuport. KO.
- OpenCvFrameGrabber: it seems that the same previous problem happened. KO.
- FFmpegFrameGrabber: it would seems the right choice. But I don't know how 
initialize the webcam with this grabber. Only File/Path is supported in the 
constructors of this class (not int device is available).

Please, could you show me which would be the right grabber to use to capture 
audio and video from the webcam?

If more information is needed, please, don't hesitate to ask me.
Thanks in advance

Original issue reported on code.google.com by jelov...@gmail.com on 1 Apr 2014 at 2:44

GoogleCodeExporter commented 8 years ago
OpenCV/FFmpeg/JavaCV doesn't support that. You'll need to use Java Sound to 
capture audio: http://docs.oracle.com/javase/tutorial/sound/

But I guess we can mark that as an enhancement request. If you create something 
you'd like to contribute back to JavaCV, please upload the patch here. Thank 
you!

Original comment by samuel.a...@gmail.com on 2 Apr 2014 at 1:01

GoogleCodeExporter commented 8 years ago
hi sir 
      my name is manish and i'm beginners programmer in javacv . actually i working on a color filter program in javacv ..program is perfectly running but problen is occur in output when my laptop camera is running is suddenly stop working and only one frame is capture ....means only one time is frame show is output window but when i prassed any botton i.e ctrl+a,ctrl+s,ctrl+d the camera is working but very slowly slowly ....

Original comment by ManishnE...@gmail.com on 18 Feb 2015 at 9:46