Új hozzászólás Aktív témák

  • mgrincs

    tag

    válasz Maximusz #20309 üzenetére

    Azért a --help opció nem olyan bonyolult ;) .

    root@OpenWrt:~# /usr/bin/mjpg_streamer --help
    -----------------------------------------------------------------------
    Usage: /usr/bin/mjpg_streamer
    -i | --input "<input-plugin.so> [parameters]"
    -o | --output "<output-plugin.so> [parameters]"
    [-h | --help ]........: display this help
    [-v | --version ].....: display version information
    [-b | --background]...: fork to the background, daemon mode
    -----------------------------------------------------------------------
    Example #1:
    To open an UVC webcam "/dev/video1" and stream it via HTTP:
    /usr/bin/mjpg_streamer -i "input_uvc.so -d /dev/video1" -o "output_http.so"
    -----------------------------------------------------------------------
    Example #2:
    To open an UVC webcam and stream via HTTP port 8090:
    /usr/bin/mjpg_streamer -i "input_uvc.so" -o "output_http.so -p 8090"
    -----------------------------------------------------------------------
    Example #3:
    To get help for a certain input plugin:
    /usr/bin/mjpg_streamer -i "input_uvc.so --help"
    -----------------------------------------------------------------------
    In case the modules (=plugins) can not be found:
    * Set the default search path for the modules with:
    export LD_LIBRARY_PATH=/path/to/plugins,
    * or put the plugins into the "/lib/" or "/usr/lib" folder,
    * or instead of just providing the plugin file name, use a complete
    path and filename:
    /usr/bin/mjpg_streamer -i "/path/to/modules/input_uvc.so"
    -----------------------------------------------------------------------

    root@OpenWrt:~# /usr/bin/mjpg_streamer -o "/usr/lib/output_file.so --help"
    MJPG Streamer Version: svn rev: exported
    ---------------------------------------------------------------
    Help for output plugin..: FILE output plugin
    ---------------------------------------------------------------
    The following parameters can be passed to this plugin:

    [-f | --folder ]........: folder to save pictures
    [-m | --mjpeg ]........: save the stream to an mjpeg file
    [-d | --delay ].........: delay after saving pictures in ms
    [-s | --size ]..........: size of ring buffer (max number of pictures to hold)
    [-e | --exceed ]........: allow ringbuffer to exceed limit by this amount
    [-c | --command ].......: execute command after saving picture

    [-i | --input ].......: read frames from the specified input plugin

    ---------------------------------------------------------------
    output_init() return value signals to exit
    root@OpenWrt:~#

    Mivel alapból hotplug eseményre indul el(kamerát dugnak a routerre), ha ilyen módon szeretnéd folyamatosan használni, a hotplug szkriptet esetleg ki kell törölnöd, hogy ne zavarjon be.
    Egyébként a fentieket alapul véve add ki ezt a parancsot, és nézd meg gyártja-e rendesen a képeket:

    mjpg-streamer -i "input_uvc.so" -o "output_file.so -f /mnt/webcam -d 60000 -s 60"

    Elvileg percenként kapsz egy képet és egy órányit tart meg(60 db).
    Meglátjuk.

    @chipi89:

    Neked a sonixb driver kell.

    opkg update
    opkg install kmod-video-gspca-core
    opkg install kmod-video-gspca-sonixb

    [ Szerkesztve ]

    http://www.youtube.com/watch?v=HkTa3-ZZbD8

Új hozzászólás Aktív témák