您的位置:首页 > 其它

MJPG-Streamer的帮助信息

2014-01-14 10:33 127 查看
# mjpg_streamer --help

-----------------------------------------------------------------------

Usage: 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:

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:

mjpg_streamer -i "input_uvc.so" -o "output_http.so -p 8090"

-----------------------------------------------------------------------

Example #3:

To get help for a certain input plugin:

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:

mjpg_streamer -i "/path/to/modules/input_uvc.so"

-----------------------------------------------------------------------

# mjpg_streamer -i "input_uvc.so --help"

MJPG Streamer Version: svn rev: exported

---------------------------------------------------------------

Help for input plugin..: UVC webcam grabber

---------------------------------------------------------------

The following parameters can be passed to this plugin:

[-d | --device ].......: video device to open (your camera)

[-r | --resolution ]...: the resolution of the video device,

can be one of the following strings:

QSIF QCIF CGA QVGA CIF VGA

SVGA XGA SXGA

or a custom value like the following

example: 640x480

[-f | --fps ]..........: frames per second

[-y | --yuv ]..........: enable YUYV format and disable MJPEG mode

[-q | --quality ]......: JPEG compression quality in percent

(activates YUYV format, disables MJPEG)

[-m | --minimum_size ].: drop frames smaller then this limit, useful

if the webcam produces small-sized garbage frames

may happen under low light conditions

[-n | --no_dynctrl ]...: do not initalize dynctrls of Linux-UVC driver

[-l | --led ]..........: switch the LED "on", "off", let it "blink" or leave

it up to the driver using the value "auto"

---------------------------------------------------------------

input_init() return value signals to exit

# mjpg_streamer -i "input_file.so --help"

MJPG Streamer Version: svn rev: exported

---------------------------------------------------------------

Help for input plugin..: FILE input plugin

---------------------------------------------------------------

The following parameters can be passed to this plugin:

[-d | --delay ]........: delay to pause between frames

[-f | --folder ].......: folder to watch for new JPEG files

[-r | --remove ].......: remove/delete JPEG file after reading

[-n | --name ].........: ignore changes unless filename matches

---------------------------------------------------------------

input_init() return value signals to exit

# mjpg_streamer -o "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

# mjpg_streamer -o "output_http.so --help"

MJPG Streamer Version: svn rev: exported

---------------------------------------------------------------

Help for output plugin..: HTTP output plugin

---------------------------------------------------------------

The following parameters can be passed to this plugin:

[-w | --www ]...........: folder that contains webpages in

flat hierarchy (no subfolders)

[-p | --port ]..........: TCP port for this HTTP server

[-c | --credentials ]...: ask for "username:password" on connect

[-n | --nocommands ]....: disable execution of commands

---------------------------------------------------------------

output_init() return value signals to exit
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: