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. Re: piping from motion to ffmpeg (Jessica Bryant)
   2. Re: piping from motion to ffmpeg (tosiara)


----------------------------------------------------------------------

Message: 1
Date: Sun, 4 Mar 2018 14:39:46 -0500
From: Jessica Bryant <jessawbry...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] piping from motion to ffmpeg
Message-ID:
        <caee+m8+lhpcbf56qatj8jftsqr7ehzu_hafgzktwd6gxuav...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Tosiara,
Thanks for the response! Can you elaborate a bit? I was under the
impression that the ffmpeg commands are only triggered when motion detects
movement. Is that correct? I'm hoping to have a continuous video stream +
recorded images when a 'motion event' occurs.
Cheers

On Sun, Mar 4, 2018 at 12:49 PM, tosiara <tosi...@gmail.com> wrote:

> Check the example ffmpeg command in config and first make it write a local
> file. If it works - adopt it for live stream
>
> On Mar 4, 2018 5:51 PM, "Jessica Bryant" <jessawbry...@gmail.com> wrote:
>
>> Hello,
>> Sorry, this is most likely a newb question, but I'm trying to capture
>> motion's output video and push it to youtube via ffmpeg.  My setup is
>> successfully displaying video over my local network and sending email
>> notifications when movement is detected.
>>
>> However, adding the following settings the motion.config file aren't
>> piping the video to ffmpeg, then youtube.
>>
>>    - use_extpipe <http://192.168.0.16:8080/0/config/set?use_extpipe> = on
>>    - extpipe <http://192.168.0.16:8080/0/config/set?extpipe> = ffmpeg
>>    -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i - -f h264 -i -
>>    -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv 
>> rtmp://
>>    a.rtmp.youtube.com/live2/ <http://a.rtmp.youtube.com/live2/><youtube
>>    key>
>>
>>
>> Note that ffmpeg command does work if I'm piping video to it from
>> raspivid instead of motion.
>>
>> Thanks!
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> 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
>>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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: 2
Date: Sun, 4 Mar 2018 22:21:27 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] piping from motion to ffmpeg
Message-ID:
        <cachtdwsc+ttgeiwjkffcmsnrefzt99lwwndjvv26pqoetvt...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Check documentation and this config section:

############################################################
# Image File Output
############################################################
# Output 'normal' pictures when motion is detected (default: off)
# Valid values: on, off, first, best, center
# When set to 'first', only the first picture of an event is saved.
# Picture with most motion of an event is saved when set to 'best'.
# Picture with motion nearest center of picture is saved when set to
'center'.
# Can be used as preview shot for the corresponding movie.
output_pictures off

On Sun, Mar 4, 2018 at 9:39 PM, Jessica Bryant <jessawbry...@gmail.com>
wrote:

> Hi Tosiara,
> Thanks for the response! Can you elaborate a bit? I was under the
> impression that the ffmpeg commands are only triggered when motion
> detects movement. Is that correct? I'm hoping to have a continuous video
> stream + recorded images when a 'motion event' occurs.
> Cheers
>
> On Sun, Mar 4, 2018 at 12:49 PM, tosiara <tosi...@gmail.com> wrote:
>
>> Check the example ffmpeg command in config and first make it write a
>> local file. If it works - adopt it for live stream
>>
>> On Mar 4, 2018 5:51 PM, "Jessica Bryant" <jessawbry...@gmail.com> wrote:
>>
>>> Hello,
>>> Sorry, this is most likely a newb question, but I'm trying to capture
>>> motion's output video and push it to youtube via ffmpeg.  My setup is
>>> successfully displaying video over my local network and sending email
>>> notifications when movement is detected.
>>>
>>> However, adding the following settings the motion.config file aren't
>>> piping the video to ffmpeg, then youtube.
>>>
>>>    - use_extpipe <http://192.168.0.16:8080/0/config/set?use_extpipe> =
>>>    on
>>>    - extpipe <http://192.168.0.16:8080/0/config/set?extpipe> = ffmpeg
>>>    -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i - -f h264 -i -
>>>    -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv 
>>> rtmp://
>>>    a.rtmp.youtube.com/live2/ <http://a.rtmp.youtube.com/live2/><youtube
>>>    key>
>>>
>>>
>>> Note that ffmpeg command does work if I'm piping video to it from
>>> raspivid instead of motion.
>>>
>>> Thanks!
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> 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
>>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> 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
>>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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...

------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

------------------------------

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 141, Issue 4
*******************************************

Reply via email to