waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 357 forks source link

Recording Audio with Video #246

Open JpEncausse opened 8 years ago

JpEncausse commented 8 years ago

Any tips, advice, on how to record audio from a microphone with the video ?

waveform80 commented 8 years ago

Can't say I've ever tried muxing audio into picamera's video output - but it's certainly something various people have asked about. I'll leave this open as a question in case anyone has any good recipes or tips - it'd be worth adding something to the doc's recipes if so.

lwilli commented 5 years ago

Is there any update on supporting audio? I saw mentions of audio in https://github.com/waveform80/picamera/pull/490, but I'm not sure if/how it addresses this.

I have an i2s microphone that can successfully record audio, but I haven't been able to figure out how to combine it with picamera's video. Maybe it's possible by using https://picamera.readthedocs.io/en/release-1.13/api_mmalobj.html?highlight=audio#picamera.mmalobj.MMALAudioPort somehow? If someone can shed some light on how we might be able to do this, it would very helpful! Thanks.

dinapappor commented 4 years ago

I too am interested in this. @dbbnrl Could you shed some light on how to use this? :pray: