Replies: 8 comments 12 replies
-
Has anyone done any work on audio recording built into motion, rather than using on_motion_detected and _ended scripts? I had a quick look at the code the other day thinking I might spot somewhere I can just hack it in quickly to try it out, but soon realised it's not that easy to pass the input data to the output data. :) I am more interested in recording from an RTSP stream than from USB, and while it can be done with scripts it seems wrong to open another RTSP connection to the camera just to grab the audio since that data is already being sent to motion. It also takes a few seconds for ffmpeg to be able to start capturing audio from a new connection even on the substream, so it would be better if it can be done from the already open stream. |
Beta Was this translation helpful? Give feedback.
-
The only "work" is within the MotionPlus application but it is not working very well. There is an extreme latency. I would never be putting this into Motion so you'd have to wait for the next maintainer if you want it inside of Motion. Everyone should also be acutely aware of the legal ramifications. In "most" countries it is fine to record video but illegal to record audio security footage of people. (To my knowledge, "most" includes: USA, Canada, Europe, Australia, NZ and probably many more). It would be real bummer to submit the recording to the authorities for something happening to your property and then you are the one ending up with a felony for wiretapping! |
Beta Was this translation helpful? Give feedback.
-
I also note that connecting to rtsp stream using VLC i get video and audio - however going through motion there is video only. Is there something I'm have not set up correctly I wonder? |
Beta Was this translation helpful? Give feedback.
-
Following on with audio vs video re cording - in the US video is generally fine, but its considered polite to inform. Audio rules/laws vary by state - some states are 2 party consent while some are 1 party - but even in the latter case, there must be 1 party - and if "you" are not present then its not okay. Once again, the standard is to inform that recording is happening. There are things applicable to phone calls (periodic beeps for example) that do not make sense for surveillance - so one need ensure that all parties are made aware - then it's fine. |
Beta Was this translation helpful? Give feedback.
-
I've created a hacky solution for recording audio as a separate process, and it syncs up very well with the video motion.conf
motionaudio.sh
|
Beta Was this translation helpful? Give feedback.
-
I'll put in a note of agreement that it would be super useful to have something like an "audio_passthru" setting (takes the audio from the "netcam_url" and passes it through to the output stream), or an "audio_url" setting (takes a separate audio stream and combines it with the output audio), because motion is such a great mediator between "dumb" RTSP cameras and various home automation systems. After all, "because it's difficult" is a reasonable argument for excluding a feature, but "because something someone might do with it might be illegal someplace" really isn't. Apple, for example, doesn't seem to be concerned that HSV drops a gajillion full A/V surveillance recordings into iCloud every day. |
Beta Was this translation helpful? Give feedback.
-
Motion is a great tool in terms of motion detection, especially the feature in which it uses low resolution for detection and passing through high resolution to video recording. This is very efficient compared to another OpenCV app that I have also setup to compare performance. Motion is very CPU friendly while dvr-scan based on OpenCV requires substantial much more CPU or even needs GPU. The only missing piece here is voice/sound recording. You can always argue about legal issue. In my view, if you live in the context of no-sound-recording allowed, you just get all your mp4 through ffmpeg to strip off audio. That is it. Technically, it is just an option where you leave it to user's judgment to switch it on or off. I live in a farm and I have Motion recording so many birds hanging around in my farm. The video recording is perfect but it's just too bad and really bad not being able to listen to their voice. One so called legal issue just kills off those lovely birds singing. |
Beta Was this translation helpful? Give feedback.
-
Thanks for a great product! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use motion as surveillance system and I'm missing the possibility to record audio with an USB microphone or with an USB webcam with builtin mic, too.
I tried to code something to start audio recording manually when the event
on_motion_detected
is triggered, but it's difficult to stop the audio recording when motion is over and to compare video and audio into one file.Beta Was this translation helpful? Give feedback.
All reactions