Code Monkey home page Code Monkey logo

Comments (10)

DeadEnded avatar DeadEnded commented on June 25, 2024

From the error, it appears that instead of getting the motion thread ID it is getting the config file path. This looks like you have the wrong parameter order being passed in.

Can you please paste in the Extra Motion Options and the Run a Command that you are using?
It is getting the second parameter as %f instead of %t so something is messed up I would guess.

Lets fix this part, and then take a look at the missing audio - it could be the same issue as if Motion starts with a different thread # it could miss the audio as well.

Cheers!
DeadEnd

from motioneyeaudio.

DeadEnded avatar DeadEnded commented on June 25, 2024

FYI another user has had the same issues, it looks like it is a difference between MotionEye and MotionEyeOS.
I am working with them to figure it out, and I expect once I have it fix your issue will be resolved as well.

Cheers!
DeadEnd

from motioneyeaudio.

prodiac1 avatar prodiac1 commented on June 25, 2024

from motioneyeaudio.

DeadEnded avatar DeadEnded commented on June 25, 2024

I did try shinobi as well.
Very nice software - my issue was doing a high and low res feed simultaneously... couldn't get it to work.
Also recording lengths weren't consistent - would get random 10 second segments.

I have confirmed the issue is with the difference between MotionEye and MotionEyeOS.
I will be working on fixing this... for the initial, if you are using IP cameras you can just comment out line 9 and change line 5:

line 5:

camera_id=$2

comment line 9:

camera_id="$(python -c 'import motioneye.motionctl; ..... blah blah blah

But chances are you are using a camera designed for the PI and so the script doesn't handle that. I will be working to try and write a second script designed for MotionEyeOS but don't have any idea how long it will take if it is even possible.

Cheers!
DeadEnd

from motioneyeaudio.

prodiac1 avatar prodiac1 commented on June 25, 2024

Did you see the second issue I noted though? Half of my recordings had no audio, while half did. After I manually did comment out the line 9, and manually set camera_id=1 to get it working at all.

from motioneyeaudio.

DeadEnded avatar DeadEnded commented on June 25, 2024

how long are your recordings typically?
there could be some delay in the processing and so for short recordings it could be missed.

from motioneyeaudio.

prodiac1 avatar prodiac1 commented on June 25, 2024

My motion detection settings did not seem to be working properly and I was getting recordings for 45seconds-1min every couple of minutes, when I was noticing this.

from motioneyeaudio.

DeadEnded avatar DeadEnded commented on June 25, 2024

hmm... IDK to be honest.
it could be the script wasn't being called every time, but I can't say why. You could try digging through logs and see what you can find - needle in a haystack.

What camera are you using? Is it a Pi cam or an IP cam?

from motioneyeaudio.

prodiac1 avatar prodiac1 commented on June 25, 2024

It's a Sercomm ipcamera2, I had gone through my logs, couldn't find any indication of ffmpeg being triggered for the extra trigger on the times where I got no audio to be honest.

from motioneyeaudio.

DeadEnded avatar DeadEnded commented on June 25, 2024

Ok, then the existing script should work. A new script is going to need to be made for when the camera is a raspberry pi cam and they are using a separate mic. Since you are using an IP cam the first script should work with the small change that you've already done.

As to why the audio is being missed on some recordings, I am wondering if it is related to your issue with motion detection not working sometimes... IDK if there is a setup issue or a resource issue? Maybe rule out the resource by taking a look while its running (specifically when recording) and see how high the usage goes. If CPU is maxing out during recording it just might not have enough juice to keep up. Just an idea.

Or if you are liking Shinobi run with that - easier than hacking together something else 😄 .

Cheers!
DeadEnd

from motioneyeaudio.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.