-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PiZero & USB Mic... Unable to identify audio input stream (camera ID blank & no netcam information) #4
Comments
hmm... second person with the camera ID issue on motioneyeOS. I don't have a system with this type of install... could you check for the The error sounds like your system doesn't have the Once we work through the script issues, we can tackle your specific setup... might need some customization for it to work. Thanks, |
Here's some filesystem listings that should hopefully help with those questions. I agree it's a bit perplexing! Everything with a prefix of "motion" in the name or path...
Permissions of the directories...
Thanks for your time in looking into this, happy to do what I can to try things and assist with diagnostics. |
hmm.. for some reason it is thinking your config files should be in Either way, check your
For MotionEyeOS it should be the first option Just for educational purpose, the DeadEnd |
The MotionEyeOS install is the default, the only changes I've done to the configuration have been done from within the web UI, perhaps the following is useful... The two
Both files have the
Maybe there's some difference between running the python command I did in a shell vs it running in the script, I hope I haven't caused a red herring here. There's no |
Hmm... okay... I just took a look at the MotionEyeOS repo... its a completely different setup. So try this:
then, comment out line 9:
See if that works... I only looked quickly at the code, but I think possibly in MotionEyeOS there isn't an issue with Motion ID vs MotionEye ID... so you might be able to just use it directly without the call to the python class... which doesn't seem to even be used in MotionEyeOS. So give that a go and let me know. If it works, I'll create a second script to differentiate between MotionEye and MotionEyeOS (or if I am feeling really frisky, write the existing script to handle both)! Cheers! |
Potentially a silly question: the parameter |
Apologies - it looks like we cross-posted and potentially have come to the same conclusion |
Yes, originally this script just used But it looks like motioneyeOS doesn't have this - so the script fails because it is trying to call something that isn't used. cheers! |
So, yes, that works in that the camera-specific config file is correctly searched. I still have no audio, but I think that's back to the
Potentially the "netcam" stuff is incompatible with the RPi camera wired in locally - happy to have a new thread for that if it helps, just let me know. Thanks for working on this, it seems like we're getting somewhere! |
Yes, I think this is another issue where MotionEyeOS is different from MotionEye... I'll try digging into it and see where I get. Thanks! |
Sure, it's pretty much defaults and I can't see anything sensitive so you can have all of it...
Given the camera in this case is the Raspberry Pi Camera, which has no audio capability, then I think that tells us the streams have to be separate. Obviously, if there's another way of associating the RPi camera with a USB mic so they are treated as the same "device" that's probably a better solution than capturing and merging the streams. |
Signing off for the evening now, but just to say I've had some success capturing the default device audio with
There's definitely scope for further optimisation here (CD quality audio is totally not necessary, but it was simple for now). Do have a look in my fork for the latest version of the script I'm using, which seems compatible with a vanilla MotionEyeOS, the default RPi camera and a generic USB microphone. |
I've recently installed a fresh MotionEyeOS 20200606 on a Raspberry Pi Zero W, hooked it up to the native Raspberry Pi camera and a basic USB microphone. The motioneye-audio.sh file doesn't cause audio to be captured, so I've done a few investigations helped by my fork of the repo, in which I've added some debug lines for each of the variables. You may wish to take a look here... https://github.com/lapsedtheorist/MotionEyeAudio
My
Video Device > Extra Motion Options
sayson_movie_start /data/etc/motioneye-audio.sh start %t %f '%$'
, and myFile Storage > Run a Command
says/data/etc/motioneye-audio.sh stop %t %f '%$'
.The script definitely runs when it should, however the
camera_id
variable remains empty, so the config file is not found. If I attempt to manually run the command that would populate it (from a root SSH session), I see the following terminal output. Note I've hardcoded the "1" in the example, which is the value that comes through from the command line into themotion_thread_id
variable.Does this help?
Also in the config file
/data/etc/camera-1.conf
there are no lines containing the word 'netcam'... maybe the native Raspberry Pi camera doesn't present itself that way, I'm not sure?Anecdotally, I'm looking at variants of the audio capture such as
arecord
as well asffmpeg -y -i default:CARD=Device ...
and have had a little success with the latter however the output is noisy and the CPU is high. I'll keep on with that and will contribute back if I get something working.The text was updated successfully, but these errors were encountered: