質問するログイン新規登録

質問編集履歴

7

書式

2020/02/09 07:01

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -163,7 +163,6 @@
163
163
  o: commands.............: enabled
164
164
  ```
165
165
  > 接続がタイムアウトしました
166
-
167
166
  192.168.1.81 のサーバーからの応答が一定時間以内に返ってきませんでした。
168
167
  このサイトが一時的に利用できなくなっていたり、サーバーの負荷が高すぎて接続できなくなっている可能性があります。しばらくしてから再度試してください。
169
168
  他のサイトも表示できない場合、コンピューターのネットワーク接続を確認してください。

6

書式

2020/02/09 07:01

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -165,7 +165,6 @@
165
165
  > 接続がタイムアウトしました
166
166
 
167
167
  192.168.1.81 のサーバーからの応答が一定時間以内に返ってきませんでした。
168
-
169
168
  このサイトが一時的に利用できなくなっていたり、サーバーの負荷が高すぎて接続できなくなっている可能性があります。しばらくしてから再度試してください。
170
169
  他のサイトも表示できない場合、コンピューターのネットワーク接続を確認してください。
171
170
  ファイアウォールやプロキシーでネットワークが保護されている場合、Firefox によるウェブアクセスが許可されているか確認してください。

5

追記

2020/02/09 07:00

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -137,10 +137,35 @@
137
137
  ```
138
138
  と表示される。
139
139
 
140
- それ以前の段階に持って作業すると、
140
+ ~~それ以前の段階に持って作業すると、
141
141
 
142
142
  ```
143
143
  sudo git clone https://github.com/jacksonliam/mjpg-streamer.git
144
144
  fatal: destination path 'mjpg-streamer' already exists and is not an empty directory.
145
145
  ```
146
- と表示され、「ディレクトリが見つかりません」的なエラーメッセージになる。(これが原因だろうか?)
146
+ と表示され、「ディレクトリは元々存在」的なメッセージになる。~~
147
+
148
+ ### (追記3)うまくいっているように見えたが・・・
149
+
150
+ ```Terminal
151
+ monjp@raspberrypi:~ $ mjpg_streamer -o "/usr/local/lib/mjpg-streamer/output_http.so -w ./www -p 8080" -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 -r 640x480 -fps 30 -q 10 -y -n"
152
+ MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
153
+ i: Using V4L2 device.: /dev/video0
154
+ i: Desired Resolution: 640 x 480
155
+ i: Frames Per Second.: 30
156
+ i: Format............: YUYV
157
+ i: JPEG Quality......: 10
158
+ i: TV-Norm...........: DEFAULT
159
+ o: www-folder-path......: ./www/
160
+ o: HTTP TCP port........: 8080
161
+ o: HTTP Listen Address..: (null)
162
+ o: username:password....: disabled
163
+ o: commands.............: enabled
164
+ ```
165
+ > 接続がタイムアウトしました
166
+
167
+ 192.168.1.81 のサーバーからの応答が一定時間以内に返ってきませんでした。
168
+
169
+ このサイトが一時的に利用できなくなっていたり、サーバーの負荷が高すぎて接続できなくなっている可能性があります。しばらくしてから再度試してください。
170
+ 他のサイトも表示できない場合、コンピューターのネットワーク接続を確認してください。
171
+ ファイアウォールやプロキシーでネットワークが保護されている場合、Firefox によるウェブアクセスが許可されているか確認してください。

4

追記

2020/02/09 06:51

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -123,4 +123,24 @@
123
123
  と表示され、固定したIPアドレス(192.168.0.81)でストリーム画面を確認しようとすると、
124
124
  > 192.168.0.81:8080 のサーバーへの接続を確立できませんでした。
125
125
 
126
- と表示されて失敗。という状況です。
126
+ と表示されて失敗。という状況です。
127
+
128
+ ### (追記2)設定を[Raspberry Piで室内カメラを作る①](https://qiita.com/henjiganai/items/b491e498d7d367306cd5)と同じ条件にしてみると
129
+
130
+ ```
131
+ monjp@raspberrypi:/usr/local/lib $ mjpg_streamer -o "./output_http.so -w ./www -p 8080" -i "./input_uvc.so -d /dev/video0 -r 640x480 -fps 30 -q 10 -y -n"
132
+ MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
133
+ ERROR: could not find input plugin
134
+ Perhaps you want to adjust the search path with:
135
+ # export LD_LIBRARY_PATH=/path/to/plugin/folder
136
+ dlopen: ./input_uvc.so: cannot open shared object file: No such file or directory
137
+ ```
138
+ と表示される。
139
+
140
+ それ以前の段階に持って作業すると、
141
+
142
+ ```
143
+ sudo git clone https://github.com/jacksonliam/mjpg-streamer.git
144
+ fatal: destination path 'mjpg-streamer' already exists and is not an empty directory.
145
+ ```
146
+ と表示され、「ディレクトリが見つかりません」的なエラーメッセージになる。(これが原因だろうか?)

3

追記の強調

2020/02/08 10:43

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -58,7 +58,7 @@
58
58
  https://qiita.com/xeno1991/items/e32e52c688d969d182e2
59
59
 
60
60
 
61
- ### USBカメラの設定に変更後
61
+ ### (追記)USBカメラの設定に変更後
62
62
 
63
63
  ```Terminal
64
64
  monjp@raspberrypi:~ $ /usr/local/bin/mjpg_streamer -i "input_uvc.so -x 640 -y 480 -fps 15 -q 80" -o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www"

2

書式変更

2020/02/08 09:36

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -58,7 +58,7 @@
58
58
  https://qiita.com/xeno1991/items/e32e52c688d969d182e2
59
59
 
60
60
 
61
- USBカメラの設定に変更後
61
+ ### USBカメラの設定に変更後
62
62
 
63
63
  ```Terminal
64
64
  monjp@raspberrypi:~ $ /usr/local/bin/mjpg_streamer -i "input_uvc.so -x 640 -y 480 -fps 15 -q 80" -o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www"

1

USBカメラ用の設定に変更

2020/02/08 09:29

投稿

Monjp
Monjp

スコア12

title CHANGED
File without changes
body CHANGED
@@ -55,4 +55,72 @@
55
55
 
56
56
 
57
57
  ### 参考にしたページのURL
58
- https://qiita.com/xeno1991/items/e32e52c688d969d182e2
58
+ https://qiita.com/xeno1991/items/e32e52c688d969d182e2
59
+
60
+
61
+ USBカメラの設定に変更後
62
+
63
+ ```Terminal
64
+ monjp@raspberrypi:~ $ /usr/local/bin/mjpg_streamer -i "input_uvc.so -x 640 -y 480 -fps 15 -q 80" -o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www"
65
+ MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
66
+ UVC webcam grabber: unrecognized option '-x'
67
+ ---------------------------------------------------------------
68
+ Help for input plugin..: UVC webcam grabber
69
+ ---------------------------------------------------------------
70
+ The following parameters can be passed to this plugin:
71
+
72
+ [-d | --device ].......: video device to open (your camera)
73
+ [-r | --resolution ]...: the resolution of the video device,
74
+ can be one of the following strings:
75
+ QQVGA QCIF CGA QVGA CIF PAL
76
+ VGA SVGA XGA HD SXGA UXGA
77
+ FHD
78
+ or a custom value like the following
79
+ example: 640x480
80
+ [-f | --fps ]..........: frames per second
81
+ (camera may coerce to different value)
82
+ [-q | --quality ] .....: set quality of JPEG encoding
83
+ [-m | --minimum_size ].: drop frames smaller then this limit, useful
84
+ if the webcam produces small-sized garbage frames
85
+ may happen under low light conditions
86
+ [-e | --every_frame ]..: drop all frames except numbered
87
+ [-n | --no_dynctrl ]...: do not initalize dynctrls of Linux-UVC driver
88
+ [-l | --led ]..........: switch the LED "on", "off", let it "blink" or leave
89
+ it up to the driver using the value "auto"
90
+ [-t | --tvnorm ] ......: set TV-Norm pal, ntsc or secam
91
+ [-u | --uyvy ] ........: Use UYVY format, default: MJPEG (uses more cpu power)
92
+ [-y | --yuv ] ........: Use YUV format, default: MJPEG (uses more cpu power)
93
+ [-fourcc ] ............: Use FOURCC codec 'argopt',
94
+ currently supported codecs are: RGBP
95
+ [-timestamp ]..........: Populate frame timestamp with system time
96
+ [-softfps] ............: Drop frames to try and achieve this fps
97
+ set your camera to its maximum fps to avoid stuttering
98
+ [-timeout] ............: Timeout for device querying (seconds)
99
+ [-dv_timings] .........: Enable DV timings queriyng and events processing
100
+ ---------------------------------------------------------------
101
+
102
+ Optional parameters (may not be supported by all cameras):
103
+
104
+ [-br ].................: Set image brightness (auto or integer)
105
+ [-co ].................: Set image contrast (integer)
106
+ [-sh ].................: Set image sharpness (integer)
107
+ [-sa ].................: Set image saturation (integer)
108
+ [-cb ].................: Set color balance (auto or integer)
109
+ [-wb ].................: Set white balance (auto or integer)
110
+ [-ex ].................: Set exposure (auto, shutter-priority, aperature-priority, or intege r)
111
+ [-bk ].................: Set backlight compensation (integer)
112
+ [-rot ]................: Set image rotation (0-359)
113
+ [-hf ].................: Set horizontal flip (true/false)
114
+ [-vf ].................: Set vertical flip (true/false)
115
+ [-pl ].................: Set power line filter (disabled, 50hz, 60hz, auto)
116
+ [-gain ]...............: Set gain (auto or integer)
117
+ [-cagc ]...............: Set chroma gain control (auto or integer)
118
+ ---------------------------------------------------------------
119
+
120
+ input_init() return value signals to exit
121
+
122
+ ```
123
+ と表示され、固定したIPアドレス(192.168.0.81)でストリーム画面を確認しようとすると、
124
+ > 192.168.0.81:8080 のサーバーへの接続を確立できませんでした。
125
+
126
+ と表示されて失敗。という状況です。