zoukankan      html  css  js  c++  java
  • 一个用于网络摄像机的开源软件 mjpgstreamer

    一个用于网络摄像机的开源软件 --- mjpg-streamer

    http://sourceforge.net/projects/mjpg-streamer
    luther@gliethttp:~$ wget http://mjpg-streamer.svn.sourceforge.net/viewvc/mjpg-streamer.tar.gz?view=tar

    "MJPG-streamer", is a command line application that copied JPG-frame from a single input plugin to multiple output plugins. It can be used to stream JPEG files over an IP-based network from the webcam to a viewer like Firefox, Cambozola, Videolanclient or even to a Windows Mobile device running the TCPMP-Player.

    It was written for embedded devices with very limited ressources in terms of RAM and CPU. Its origin, the "uvc_streamer" was written, because Linux-UVC compatible cameras directly produce JPEG-data, allowing fast and perfomant M-JPEG streams even from an embedded device running OpenWRT. The input module "input_uvc.so" captures such JPG frames from a connected webcam.

    This tool can be modified and distributed according to the terms of the GPL v2.

    Currently no issues are known, but since this software is quite young and not used widely it may cause problems. You must really know what you are doing, if you use this software. If you want to use the software you are obliged to check if the sourcecode does what you expect it to do and take the risk yourself to use it.

    To view the stream use VLC or Firefox and open the URL:
    http://127.0.0.1:8080/?action=stream

    To view a single JPEG just call:
    http://127.0.0.1:8080/?action=snapshot

    To compile and start the tool:
    # tar xzvf mjpg-streamer.tgz
    # cd mjpg-streamer
    # make clean all
    # export LD_LIBRARY_PATH=.
    # ./mjpg_streamer -o "output_http.so -w ./www"

    More examples can be found in the start.sh bash script.

    In case of error:
     * the input plugin "input_uvc.so" depends on libjpeg, make sure it is installed.

    Dependencies for the input plugin "input_uvc.so":
     * libjpeg
     * recent Linux-UVC driver (newer then revision #170)

    Dependencies for the output plugin "output_autofocus.so":
     * libmath
     

    To play the HTTP M-JPEG stream with mplayer:
    # mplayer -fps 30 -demuxer lavf "http://127.0.0.1:8080/?action=stream&ignored.mjpg"

    It might be necessary to configure mplayer to prefer IPv4 instead of IPv6
    # vi ~./mplayer/config
    add or change the option: prefer-ipv4=yes
  • 相关阅读:
    xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
    xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
    处理oracle数据方式
    JS处理数据库数据
    整理任正非思想:再论反骄破满,在思想上艰苦奋斗-1996
    整理任正非思想:要树立服务意识、品牌意识、群体意识-1996
    整理任正非思想:加强合作走向世界-1996
    整理任正非思想:反骄破满,在思想上艰苦奋斗-1996
    整理任正非思想:我们要向市场、开发、创造性工作倾斜-1996
    BUMO 3.0原理以及设计.
  • 原文地址:https://www.cnblogs.com/hnrainll/p/2074931.html
Copyright © 2011-2022 走看看