Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 ([email protected])
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 <[email protected]>
To: [email protected]
Subject: [Motion-user] Adding audio to motion movie from stream
Message-ID: <[email protected]>
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:[email protected]/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
[email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Sat, 9 Mar 2019 15:04:52 -0800
From: [email protected]
To: Motion discussion list <[email protected]>
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 <[email protected]> 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:[email protected]/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
> [email protected]
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> 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 <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Adding audio to motion movie from stream
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
On 09/03/2019 23:04, [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 153, Issue 5
*******************************************