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: Can motion use GPU? (MrDave) 2. Re: Resize input video. (Thomas Drebert) ---------------------------------------------------------------------- Message: 1 Date: Sat, 26 Sep 2020 07:56:33 -0600 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Can motion use GPU? Message-ID: <6b3ec9ae-9f8f-73a5-06eb-511e2f6e6...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" As an addendum to my earlier response. The VAAPI decoding for netcams that I referenced was in a fork had now been pushed into the master branch. Dave On 9/26/2020 1:15 AM, Amos Shapira wrote: > 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 <motionmrd...@gmail.com > <mailto:motionmrd...@gmail.com>> 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 >>> <amos.shap...@gmail.com <mailto:amos.shap...@gmail.com>> 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 >>> Motion-user@lists.sourceforge.net >>> <mailto: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 >>> >>> >>> >>> _______________________________________________ >>> Motion-user mailing list >>> Motion-user@lists.sourceforge.net >>> <mailto: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 >> >> >> >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> <mailto: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 > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > <mailto: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 > > > > -- > <http://au.linkedin.com/in/gliderflyer> > > > _______________________________________________ > 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: Sat, 26 Sep 2020 16:40:16 +0200 From: Thomas Drebert <dreb...@web.de> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Resize input video. Message-ID: <CANn+32hNwcAZfgLiMr+=k3mrtjdceh2qjtt7p8x8i-9uf20...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" thanks that work fine. Am Sa., 26. Sept. 2020 um 16:03 Uhr schrieb MrDave <motionmrd...@gmail.com>: > > Have you tried the v4l2 via the netcam_url option? > > https://motion-project.github.io/motion_config.html#netcam_url > > This will rescale the image to whatever is being specified in the > configuration file. > > On 9/26/2020 5:35 AM, Thomas Drebert wrote: > > > 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 > > > > > > _______________________________________________ > > 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 ------------------------------ ------------------------------ 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 171, Issue 16 ********************************************