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. Unix domain sockets as input (Ruslan Matveev) 2. Re: Unix domain sockets as input (tosiara) 3. Re: Unix domain sockets as input (Ruslan Matveev) 4. Re: Unix domain sockets as input (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Wed, 3 Feb 2021 16:03:30 +0300 From: Ruslan Matveev <matveev.rus...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: [Motion-user] Unix domain sockets as input Message-ID: <CABqvc7tu6aUSXtLoPEvPd6V=rweutbguivglwxt5qruhojv...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi, is that possible to use unix domain sockets as input for motion? FFMPEG documentation says that it supports it: https://ffmpeg.org/ffmpeg-protocols.html#unix So what's the point? When motion receives stream produced by some kind of proxy (that may for example receive it from somewhere else), it would be nice to avoid overhead on TCP sockets and use unix domain sockets, because according to this discussion: https://unix.stackexchange.com/questions/91774/performance-of-unix-sockets-vs-tcp-ports Unix domain sockets are faster than loopback. So my question is: is that possible now? Maybe something like unix:rtsp://blabla/ will work? / Ruslan -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 3 Feb 2021 15:25:59 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Unix domain sockets as input Message-ID: <CACHTdwTunfPgMYZbmexG-YY=pyflvso38f9s1msabem-yjr...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" You mean, you want to read RTSP stream from unix socket? On Wed, Feb 3, 2021 at 3:06 PM Ruslan Matveev <matveev.rus...@gmail.com> wrote: > > Hi, > > is that possible to use unix domain sockets as input for motion? > FFMPEG documentation says that it supports it: > https://ffmpeg.org/ffmpeg-protocols.html#unix > > So what's the point? > When motion receives stream produced by some kind of proxy (that may for > example receive it from somewhere else), it would be nice to avoid overhead > on TCP sockets and use unix domain sockets, because according to this > discussion: > https://unix.stackexchange.com/questions/91774/performance-of-unix-sockets-vs-tcp-ports > > Unix domain sockets are faster than loopback. > So my question is: is that possible now? Maybe something like > unix:rtsp://blabla/ will work? > > / Ruslan > > _______________________________________________ > 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 ------------------------------ Message: 3 Date: Wed, 3 Feb 2021 16:32:58 +0300 From: Ruslan Matveev <matveev.rus...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Unix domain sockets as input Message-ID: <cabqvc7t1irv91czgjjttrunrfzb56vcyx3stt0ycwc-aszl...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Exactly, I have a setup where all streams from cams are coming from outside, then on the machine where motion is running, I have kind of proxy, that from the one side receives RTSP from outside, and on the other side feeds motion with it, right now both sides are TCP, but I can imagine that switching second side to be unix domain socket server will reduce CPU / MEM On Wed, Feb 3, 2021 at 4:28 PM tosiara <tosi...@gmail.com> wrote: > You mean, you want to read RTSP stream from unix socket? > > On Wed, Feb 3, 2021 at 3:06 PM Ruslan Matveev <matveev.rus...@gmail.com> > wrote: > > > > Hi, > > > > is that possible to use unix domain sockets as input for motion? > > FFMPEG documentation says that it supports it: > https://ffmpeg.org/ffmpeg-protocols.html#unix > > > > So what's the point? > > When motion receives stream produced by some kind of proxy (that may for > example receive it from somewhere else), it would be nice to avoid overhead > on TCP sockets and use unix domain sockets, because according to this > discussion: > > > https://unix.stackexchange.com/questions/91774/performance-of-unix-sockets-vs-tcp-ports > > > > Unix domain sockets are faster than loopback. > > So my question is: is that possible now? Maybe something like > unix:rtsp://blabla/ will work? > > > > / Ruslan > > > > _______________________________________________ > > 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 > > > _______________________________________________ > 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: 4 Date: Wed, 3 Feb 2021 16:42:24 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Unix domain sockets as input Message-ID: <CACHTdwR4NGv4V7mD0z9Rk44X0u0o5x=bvniqfedwgtzzpoj...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" No, motion dors not support unix:// protocol And I doubt that there will be significant (if any) improvement in performance when streaming RTSP over unix socket vs tcp socket. On Wed, Feb 3, 2021 at 3:34 PM Ruslan Matveev <matveev.rus...@gmail.com> wrote: > > Exactly, I have a setup where all streams from cams are coming from outside, > then on the machine where motion is running, I have kind of proxy, that from > the one side receives RTSP from outside, and on the other side feeds motion > with it, right now both sides are TCP, but I can imagine that switching > second side to be > unix domain socket server will reduce CPU / MEM > > On Wed, Feb 3, 2021 at 4:28 PM tosiara <tosi...@gmail.com> wrote: >> >> You mean, you want to read RTSP stream from unix socket? >> >> On Wed, Feb 3, 2021 at 3:06 PM Ruslan Matveev <matveev.rus...@gmail.com> >> wrote: >> > >> > Hi, >> > >> > is that possible to use unix domain sockets as input for motion? >> > FFMPEG documentation says that it supports it: >> > https://ffmpeg.org/ffmpeg-protocols.html#unix >> > >> > So what's the point? >> > When motion receives stream produced by some kind of proxy (that may for >> > example receive it from somewhere else), it would be nice to avoid >> > overhead on TCP sockets and use unix domain sockets, because according to >> > this discussion: >> > https://unix.stackexchange.com/questions/91774/performance-of-unix-sockets-vs-tcp-ports >> > >> > Unix domain sockets are faster than loopback. >> > So my question is: is that possible now? Maybe something like >> > unix:rtsp://blabla/ will work? >> > >> > / Ruslan >> > >> > _______________________________________________ >> > 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 >> >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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 176, Issue 11 ********************************************