如何在 mjpg-streamer 中保存电影?
How to save movie in mjpg-streamer?
我在树莓派上安装了mjpg-streamer,运行很好。
但是如何将电影保存到我的 sdcard 中?
我试过mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -i "mjpg-streamer/mjpg-streamer-experimental/input_uvc.so" -o "mjpg-streamer/mjpg-streamer-experimental/output_http.so -w mjpg-streamer/mjpg-streamer-experimental/www"
,但不知道该怎么做。
我不知道 mjpg-streamer
。
但我建议使用 Motion
视频库 streaming/record 电影。
通过添加 motion.conf 文件,您可以将其保存到存储卡中。
This Tutorial 会帮助你。
您使用 output_file.so 插件。所以请参阅选项 运行:
mjpg-streamer -o "output_file.so --help"
获得:
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 frames to an mjpg file
[-l | --link ]..........: link the last picture in ringbuffer as this fixed named file
[-d | --delay ].........: delay after saving pictures in ms
[-i | --input ].........: read frames from the specified input plugin
The following arguments are takes effect only if the current mode is not MJPG
[-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
使用-m 将流保存到动画jpg 文件。如果您不想保存所有输入帧,请使用 -d 在保存的帧之间延迟
我在树莓派上安装了mjpg-streamer,运行很好。 但是如何将电影保存到我的 sdcard 中?
我试过mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -i "mjpg-streamer/mjpg-streamer-experimental/input_uvc.so" -o "mjpg-streamer/mjpg-streamer-experimental/output_http.so -w mjpg-streamer/mjpg-streamer-experimental/www"
,但不知道该怎么做。
我不知道 mjpg-streamer
。
但我建议使用 Motion
视频库 streaming/record 电影。
通过添加 motion.conf 文件,您可以将其保存到存储卡中。
This Tutorial 会帮助你。
您使用 output_file.so 插件。所以请参阅选项 运行:
mjpg-streamer -o "output_file.so --help"
获得:
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 frames to an mjpg file
[-l | --link ]..........: link the last picture in ringbuffer as this fixed named file
[-d | --delay ].........: delay after saving pictures in ms
[-i | --input ].........: read frames from the specified input plugin
The following arguments are takes effect only if the current mode is not MJPG
[-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
使用-m 将流保存到动画jpg 文件。如果您不想保存所有输入帧,请使用 -d 在保存的帧之间延迟