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. Re: Using ffmpeg via extpipe (tosiara)
2. Re: Using ffmpeg via extpipe (S?bastien Delafond)
3. Re: Using ffmpeg via extpipe (tosiara)
4. Re: Using ffmpeg via extpipe (S?bastien Delafond)
----------------------------------------------------------------------
Message: 1
Date: Thu, 25 Jan 2018 07:19:47 +0200
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Using ffmpeg via extpipe
Message-ID:
<CACHTdwTx=nsmqyk0skclychepjtciua2majcokqkbc7e6kw...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
I don't see any error. Has the file
"/var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.webm" been
created?
On Wed, Jan 24, 2018 at 6:41 PM, S?bastien Delafond <[email protected]> wrote:
> On 2018-01-24, tosiara <[email protected]> wrote:
>> Great to know that it works now
>> If you would like to get webm, you can use this extpipe command:
>>
>> extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h
>> -framerate %fps -i pipe:0 -vcodec libvpx %f.webm
>
> And this is where I get the error:
>
> ,----
> | [1:ml1] [NTC] [EVT] [Jan 24 16:37:04] event_new_video Source FPS 30
> | [1:ml1] [NTC] [EVT] [Jan 24 16:37:04] event_create_extpipe: pipe: ffmpeg -y
> -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -framerate 30 -i pipe:0
> -vcodec libvpx /var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.webm
> | [1:ml1] [NTC] [EVT] [Jan 24 16:37:04] event_create_extpipe: cnt->moviefps:
> 30
> | [1:ml1] [NTC] [EVT] [Jan 24 16:37:04] event_newfile: File of type 8 saved
> to: /var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23
> | [1:ml1] [NTC] [ALL] [Jan 24 16:37:04] motion_detected: Motion detected -
> starting event 1
> | [1:ml1] [NTC] [EVT] [Jan 24 16:38:17] event_newfile: File of type 1 saved
> to: /var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.jpg
> | [1:ml1] [NTC] [EVT] [Jan 24 16:38:17] event_extpipe_end: CLOSING: extpipe
> file desc 9, error state 0
> | [1:ml1] [NTC] [EVT] [Jan 24 16:38:17] event_extpipe_end: pclose return: -1
> | [1:ml1] [NTC] [ALL] [Jan 24 16:38:17] motion_loop: End of event 1
> `----
>
> I guess at this point, since extpipe+ffmpeg->mp4 works fine, but
> extpipe+ffmpeg->webm doesn't, there is something not quite right with my
> versions of ffmpeg/libavcodec ?
>
> Cheers,
>
> --Seb
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
------------------------------
Message: 2
Date: Thu, 25 Jan 2018 08:48:18 +0000 (UTC)
From: S?bastien Delafond <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Using ffmpeg via extpipe
Message-ID: <[email protected]>
On 2018-01-25, tosiara <[email protected]> wrote:
> I don't see any error. Has the file
> "/var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.webm" been
> created?
"pclose return: -1" seemed wrong to me. There is a webm file, but it's 0
bytes long...
--Seb
------------------------------
Message: 3
Date: Thu, 25 Jan 2018 11:13:57 +0200
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Using ffmpeg via extpipe
Message-ID:
<CACHTdwT0HS5=ezfnjunubijz+lpv+yfpyrrkodap7lvgghq...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Lets test your ffmpeg
Create a script "rawvideo.sh":
while [ true ]
do
mx=320;my=240;head -c "$((3*mx*my))" /dev/urandom
sleep 1
done
Then run a command:
./rawvideo.sh | ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size
320x240 -framerate 1 -i pipe:0 -vcodec libvpx test.webm
Let it run for some time and kill using CTRL+C
You should now get a test.webm file. Do you get it? If not - what
error does ffmpeg write to console?
On Thu, Jan 25, 2018 at 10:48 AM, S?bastien Delafond <[email protected]> wrote:
> On 2018-01-25, tosiara <[email protected]> wrote:
>> I don't see any error. Has the file
>> "/var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.webm" been
>> created?
>
> "pclose return: -1" seemed wrong to me. There is a webm file, but it's 0
> bytes long...
>
> --Seb
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
------------------------------
Message: 4
Date: Thu, 25 Jan 2018 11:42:39 +0000 (UTC)
From: S?bastien Delafond <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Using ffmpeg via extpipe
Message-ID: <[email protected]>
On 2018-01-25, tosiara <[email protected]> wrote:
> Lets test your ffmpeg
> [...]
Thanks a lot, you put me on the right track and I've finally figured out
the problem: the ffmpeg in /usr/bin (from Debian stretch) does have the
libvpx encoder. The more recent one in /usr/local/bin, built from
source, doesn't...
Now I'll just need to come up with a proper set of options to pass the
vpx encoder: right now the resulting files are much shorter, and sped
up, compared to their mp4 counterparts.
Anyway, thanks again for your help, it was invaluable :)
Cheers,
--Seb
------------------------------
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 139, Issue 10
********************************************