Comments (10)
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.
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.
from motioneyeaudio.
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.
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.
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.
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.
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.
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.
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)
- Audio missing in some videos HOT 1
- my mp4 files with audio are corrupted after adding this HOT 1
- Adon motioneye homeassistant??? HOT 1
- Script motioneye-audio.sh for Home Assistant Generic x86-64? / Скрипт motioneye-audio.sh для Home Assistant Generic x86-64?
- Creating two separate files. HOT 1
- Could you help, audio-modul... HOT 4
- PiZero & USB Mic... Unable to identify audio input stream (camera ID blank & no netcam information) HOT 12
- Stuck trying to get the script to work HOT 10
- Audio is ahead of video HOT 5
- Not working, is project dead? HOT 3
- where to put settings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motioneyeaudio.