kpolley / Python_AVrecorder

Simultaneously record audio and video using Python
37 stars 12 forks source link

Problems after installing #3

Open ingramr88 opened 4 years ago

ingramr88 commented 4 years ago

I am a super noob but would like to use this code if it works. after install, when I try to run picam.py on my raspberry pi 4 running raspbian, I get

Traceback (most recent call last): File "picam.py", line 5, in from AudioRecorder import AudioRecorder File "/home/pi/Python_AVrecorder/AudioRecorder.py", line 24 print(status, file=sys.stderr)

Any advice on how to procceed? I am using a usb webcam that also is a microphone and I have external speakers hooked up. Thanks!

kpolley commented 4 years ago

Hi! Sorry for the late reply...are you running this on Python3 or 2? I think for Python2 you need to import the file differently like so

from .AudioRecorder import AudioRecorder

let me know if your still having issues

fagol commented 4 years ago

Ingramr88 : is your project working?

ingramr88 commented 4 years ago

Which project are you referring to?

On Tue, Oct 6, 2020, 3:29 AM fagol notifications@github.com wrote:

Ingramr88 : is your project working?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpolley/Python_AVrecorder/issues/3#issuecomment-704179071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB5LHVVZQ23UI5UQ774MIDSJLWR3ANCNFSM4MCWJYPA .

ingramr88 commented 4 years ago

Ingramr88 : is your project working?

I got the camera module working. Yes

fagol commented 4 years ago

the project about your raspberry PI4 and webcam?

fagol commented 4 years ago

And the audio with video is Ok too?

ingramr88 commented 4 years ago

Ok. I didn't get the python code to work with it. I switched tracks and started working on building the microscope. Wanted then pi camera to record audio and video for the microscope.

On Tue, Oct 6, 2020, 5:26 AM fagol notifications@github.com wrote:

the project about your raspberry PI4 and webcam?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpolley/Python_AVrecorder/issues/3#issuecomment-704233730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB5LHTGVHJFDTXNKW77UNDSJMEHRANCNFSM4MCWJYPA .

fagol commented 4 years ago

ok i understand you used a pi camear instead of the webcam, is that it? (excuse my language, i am french)

ingramr88 commented 4 years ago

yes, I am using the raspberry pi camera as the eyepiece for the microscope so it can record the specimen in real time. wanted to use python to control the video/audio.

On Tue, Oct 6, 2020 at 5:34 AM fagol notifications@github.com wrote:

ok i understand you used a pi camear instead of the webcam, is that it? (excuse my language, i am french)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpolley/Python_AVrecorder/issues/3#issuecomment-704237831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB5LHUY45GQRCFFUJ7R6OLSJMFGJANCNFSM4MCWJYPA .

fagol commented 4 years ago

ok, so you record the sound with a usb microphone, is that it?

ingramr88 commented 4 years ago

Actually....the sound isnt as important. I can do without that.

On Tue, Oct 6, 2020, 6:02 AM fagol notifications@github.com wrote:

ok, so you record the sound with a usb microphone, is that it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpolley/Python_AVrecorder/issues/3#issuecomment-704253402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB5LHUKOTAVHJ5KVHFUROTSJMIQDANCNFSM4MCWJYPA .

fagol commented 4 years ago

I ask you all these questions because I use a rapberry with a pi camera and a usb microphone. the whole works, but I have a delay between the sound and the video . So i understand that you can not help me?

ingramr88 commented 4 years ago

Aha! I see. I was having that issue too. I cannot help you. I only really needed that video. Once I noticed the delay, I quit using audio.

On Tue, Oct 6, 2020, 6:06 AM fagol notifications@github.com wrote:

I ask you all these questions because I use a rapberry with a pi camera and a usb microphone. the whole works, but I have a delay between the sound and the video . So i understand that you can not help me?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kpolley/Python_AVrecorder/issues/3#issuecomment-704255768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB5LHUE6XSOEFPV4LYTIHLSJMI7BANCNFSM4MCWJYPA .

fagol commented 4 years ago

thanks a lot for your time. good continuation fabrice