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: Is there a way to get duration of a recording? (David Powell)


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

Message: 1
Date: Sat, 9 Feb 2019 09:36:24 -0500
From: David Powell <da...@depowell.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Is there a way to get duration of a
        recording?
Message-ID: <a158bc70-119d-0126-b5c9-e5dfe8373...@depowell.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

I do something similar on mine, except I use ffmpeg? with the -i 
option.? Motion runs a java program when it closes the movie, which 
parses the ffmpeg output and updates the row in the database.

David

On 2/8/19 6:19 AM, Dougie Nisbet wrote:
> On 08/02/2019 07:58, tosiara wrote:
>> mediainfo 20190208-0750-207.mp4 | grep Duration | head -n 1 | awk '{
>> print $3 $4 }'
>
> What a fiendishly useful command! I've been using du to get file size 
> and ffprobe to check for file corruption but mediainfo may do that too 
> I guess.
>
> Dougie
>
>
>
> _______________________________________________
> 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...

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



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

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 152, Issue 6
*******************************************

Reply via email to