Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Adding audio to motion movie from stream (Richard Fall) 2. Re: Adding audio to motion movie from stream (prismb...@gmail.com) 3. Re: Adding audio to motion movie from stream (Dougie Nisbet) ---------------------------------------------------------------------- Message: 1 Date: Sat, 9 Mar 2019 15:51:36 -0600 From: Richard Fall <fall.r...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] Adding audio to motion movie from stream Message-ID: <62822beb-96b1-41f3-98c0-250129901...@gmail.com> Content-Type: text/plain; charset="utf-8" I have a setup where a number of webcams are monitor by Motion, and which record to MP4 files with no problems. However, I want to add a sound track to the MP4 files, are they are recorded, from a sound source near the cameras. That sound source is an RTP stream from a Raspberry Pi Zero W that has a USB microphone attached. I?ve tried a number of ways to get this to work, all using the movie_extpipe to kick off an FFMPEG job. Here?s one of the ffmpeg command lines I tried: movie_extpipe /usr/bin/ffmpeg -y -thread_queue_size 1024 -rtsp_transport tcp -i "rtsp://XXX:YYY!@192.168.Z.Z/cam/realmonitor?channel=1&subtype=1" -thread_queue_size 1024 -i rtp://224.168.2.105:1234 -map 0:v:0 -map 1:a:0 -f mp4 %f.mp4 In all cases of such ffmpeg command lines, when motion is detected in the camera?s field of view, the log file shows: [1:ml1:house-road] [ERR] [EVT] [Mar 09 15:27:15] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe Has anyone done anything quite like this successfully, or have any pointers as to how this might be accomplished? Thanks. - Rich ================= Richard Fall fall.r...@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sat, 9 Mar 2019 15:04:52 -0800 From: prismb...@gmail.com To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Adding audio to motion movie from stream Message-ID: <cagd+p+ykrmhd9a2ndcebbpdgojnopg63amnah8p29sco6eh...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" The only thing I have done that is a little bit similar to what you are doing is discussed here: https://www.lavrsen.dk/foswiki/bin/view/Motion/SoundAudioRecording Basically, it's recording a separate audio track that can be "merged" with the video track. On Sat, Mar 9, 2019 at 1:52 PM Richard Fall <fall.r...@gmail.com> wrote: > I have a setup where a number of webcams are monitor by Motion, and which > record to MP4 files with no problems. > > However, I want to add a sound track to the MP4 files, are they are > recorded, from a sound source near the cameras. > > That sound source is an RTP stream from a Raspberry Pi Zero W that has a > USB microphone attached. > > I?ve tried a number of ways to get this to work, all using the > movie_extpipe to kick off an FFMPEG job. > > Here?s one of the ffmpeg command lines I tried: > > movie_extpipe /usr/bin/ffmpeg -y -thread_queue_size 1024 -rtsp_transport > tcp -i "rtsp://XXX:YYY!@192.168.Z.Z/cam/realmonitor?channel=1&subtype=1" > -thread_queue_size 1024 -i rtp://224.168.2.105:1234 -map 0:v:0 -map 1:a:0 > -f mp4 %f.mp4 > > In all cases of such ffmpeg command lines, when motion is detected in the > camera?s field of view, the log file shows: > > [1:ml1:house-road] [ERR] [EVT] [Mar 09 15:27:15] event_extpipe_put: Error > writing in pipe , state error 1: Broken pipe > > Has anyone done anything quite like this successfully, or have any > pointers as to how this might be accomplished? > > Thanks. > > - Rich > > ================= > > Richard Fall > fall.r...@gmail.com > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Sun, 10 Mar 2019 11:40:47 +0000 From: Dougie Nisbet <dou...@katsura.uk> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Adding audio to motion movie from stream Message-ID: <de6b309d-1265-7082-3a9f-694b579d2...@katsura.uk> Content-Type: text/plain; charset="utf-8"; Format="flowed" On 09/03/2019 23:04, prismb...@gmail.com wrote: > The only thing I have done that is a little bit similar to what you > are doing is discussed here: > https://www.lavrsen.dk/foswiki/bin/view/Motion/SoundAudioRecording > > Basically, it's recording a separate audio track that can be "merged" > with the video track. Same here. I have limited success. Sometimes it gets the audio, sometimes it doesn't. Longer video periods result in an increasing audio-video lag too. My standard motion setup nowadays is to use a Raspberry Pi with a Logitech Webcam C270. Can dig out my configuration details and setup if it helps. Dougie -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 153, Issue 5 *******************************************