From: Robert F <raf...@gm...> - 2013-09-19 18:56:40
|
Thanks to both replies, This is assuming that vlc is available on the remote motion client. Unfortunately it isn't. The remote client (video source) is an arm based system with only motion and mjpg-streamer installed. There is no space left on the device for further installs. The remote client has an upload speed of 1024 kbps (1 Mb/S), the local VLC server has a download speed of 10Mb/S. On 19 September 2013 18:20, tosiara <to...@gm...> wrote: > Try this command: > > /usr/bin/vlc -I dummy -vvv v4l2:///dev/video1 --sout > '#transcode{vcodec=mjpg,vb=10000,scale=1,w > idth=720,height=576}:standard{access=http,mux=mpjpeg,dst=0.0.0.0:8081}' > --sout-deinterlace-mode=bob --sout-transcode-deinterlace > --sout-http-mime="multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a" > > > > On Thu, Sep 19, 2013 at 7:12 PM, Colin Law <cl...@go...> wrote: > >> On 19 September 2013 16:24, Robert F <raf...@gm...> wrote: >> > Thanks again Colin, you're a star! >> > >> > With the great info above I'm now successfully streaming to/from vlc and >> > motion. >> > >> > I am currently facing 2 issues that I'd appreciate some input on: >> > >> > 1) >> > I wish I could connect VLC to the raw video from /dev/video0 but >> > unfortunately the remote motion machine has minimal resources and I do >> not >> > have physical access to it. Alas, the source video has to reach VLC via >> the >> > internet and I'm using mjpeg_streamer to deliver it which of course >> encodes >> > the raw video (MJPEG 176x144 YUV 2fps) before arriving. >> > Following successful >> > motion detection calibration the source will be switched back to >> /dev/video0 >> > in motion.conf. I've set mjpeg_streamer's JPEG quality to 100% in an >> effort >> > to make the source stream as best as possible, however I'm concerned >> that >> > the differences between raw video and mjpeg_streamer may render this >> > exercise pointless since calibration to the mjpeg_streamer stream may >> not >> > match the raw stream from /dev/video0. If anyone has any suggestions for >> > getting the raw video data remotely I'd love to hear it please! Could >> > motion's extpipe option be used with dd using ssh somehow? >> >> You can use vlc rather than mjpeg_streamer to stream at full quality, >> but your main problem is likely to be the bandwidth available across >> the internet. What upload bandwidth have you got at the video source >> machine and download bandwidth at the client machine? >> >> > >> > 2) >> > Regarding containers for the MJPEG codec; what is recommended? I've >> tried >> > out AVI and ASF so far. I don't need more than 2fps as that is what >> motion's >> > 'framerate' option is set to. Extra frames are unnecessary and would >> create >> > larger files. I thought the avi container would suffice but capturing a >> less >> > than 4fps stream with VLC results in an avi file that VLC has trouble >> > playing back (Xine plays these ok). I tried again capturing 2fps with >> ASF >> > and VLC plays that ok but I don't know if that is re-encoding or >> degrading >> > the capture further ?: --sout >> > "#duplicate{dst=std{access=file,dst=stream.asf}" >> >> I don't know the answer to this, perhaps someone else can help. >> >> Colin >> >> >> ------------------------------------------------------------------------------ >> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! >> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, >> SharePoint >> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack >> includes >> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Motion-user mailing list >> Mot...@li... >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > > > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, > SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack > includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > |