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: Can motion use GPU? (Amos Shapira)
   2. Resize input video. (Thomas Drebert)


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

Message: 1
Date: Sat, 26 Sep 2020 17:15:43 +1000
From: Amos Shapira <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Can motion use GPU?
Message-ID:
        <CAF9n_WUpMs0xSvtCkqF=m0hvgnvbvqgjak5nomgphuh1xmv...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Tha ks everyone for your responses.

Since all replies pointed to just getting ffmpeg to use the GPU, a very
quick google about this came up with the following solution:

TL;DR: Install ffmpeg using "snap" instead of the usual "apt". It will
include the required binary drivers to take advantage of the GPU.

Source:
https://askubuntu.com/questions/1175488/how-enable-gpu-accelerated-video-encoders-in-ffmpeg-ubuntu-19-04

(it's about Ubuntu 19.04 but I think it's reasonable to expect it to be
relevant for any newer Ubuntu).

Snap page: https://snapcraft.io/ffmpeg

On Sun, 13 Sep 2020 at 16:52, MrDave <[email protected]> wrote:

> Its an easy question but the answer is a bit complicated....
>
> Generally, the answer to the question is "no" there isn't any direct
> support for hardware decoding.  However, for certain cameras and platforms,
> there is an option to specify a specific decoder and encoder that could be
> built into ffmpeg.  Its been observed however that this is primarily only a
> benefit for those with PI's and allows them to specify the ffmpeg hardware
> OMX encoders/decoders.  The other HW decoders for regular desktop platforms
> such as VAAPI, QSV, VDPAU, etc, all seem to require unique coding that the
> regular Motion program does not have built in.  (There is at least one fork
> that illustrates how to implement VAAPI but those revisions are not in the
> main Motion code/releases).
>
> Previous discussions on the mailing list indicated possible workarounds to
> get it implemented using a v4l2 loopback device.  This is virtually
> identical to the example in the Motion guide at
> https://motion-project.github.io/motion_config.html#basic_setup_static
> but instead of just a static file, specify the IP camera and HW decoding.
>
> For each of the above options, it will usually be required to build ffmpeg
> from source and specify all the HW options that are applicable to your
> computer.
>
> Finally, I'd comment that the "standard" option to reduce CPU for your
> situation is use the netcam_url, netcam_highres and movie_passthrough
> options.  I believe that generally this method is going to result in lower
> CPU usage than just using the higher resolution streams alone with HW
> decoding.
>
> MrDave
>
> On 9/12/2020 6:41 PM, rmbusy wrote:
>
> Supposedly if you can get ffmpeg to use the GPU, then yes, as motion uses
> ffmpeg.  You need to research for your hardware, how to build ffmpeg for
> that.
>
>
> --
> Rob.
>
>
> On 9/12/20 5:15 PM, Harlan Daneker wrote:
>
> I'm not an expert, but are you using extpipe, if not I believe motion only
> uses 1 thread.
>
> On Sat, Sep 12, 2020 at 2:59 PM Amos Shapira <[email protected]>
> wrote:
>
>> Hi,
>>
>> I have Motion (with MotionEye) installed on Ubuntu connected to 4 6MP IP
>> cameras and it can't handle the load.
>>
>> I'm thinking of buying stronger hardware for it and was wondering whether
>> it could take advantage of a GPU.
>>
>> Can it?
>> What would be required to make it do that?
>>
>> Thanks
>>
>> --Amos
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> Motion-user mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/motion-userhttps://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
>
> _______________________________________________
> Motion-user mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/motion-userhttps://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
> _______________________________________________
> 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



-- 
<http://au.linkedin.com/in/gliderflyer>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sat, 26 Sep 2020 13:35:19 +0200
From: Thomas Drebert <[email protected]>
To: Motion discussion list <[email protected]>
Subject: [Motion-user] Resize input video.
Message-ID:
        <cann+32hcnccq+pbk4vwe3q9c08yimckpb633xbvpi4spzru...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hallo,

I use as source a thermal module, this produces a v4l2 video stream
with 80x60 px.
To use this with motion I resize the stream with ffmpeg on the fly.
I would like to leave this step out and resize the stream in Motion.
does anyone have any idea how this could work?

regards
ThomasD



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



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

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


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

End of Motion-user Digest, Vol 171, Issue 15
********************************************

Reply via email to