forked from jcmellado/js-aruco
-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
29 lines (29 loc) · 1.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"name": "aruco-server",
"version": "1.0.0",
"description": "aruco-server",
"config": {
"port": 8081,
"secret": "_secret",
"camera": "Integrated Webcam",
"camera_notes_windows": "default: 'Integrated Webcam'. Check the available cameras using the command 'ffmpeg -f dshow -list_devices true -i dummy' and then 'ffmpeg -f dshow -i video=\"Integrated Webcam\" -list_options true' to see the device formats",
"camera_notes_unix": "default: 'video0'. Check the available cameras using the command 'v4l2-ctl --list-devices' and then 'ffmpeg -f v4l2 -list_formats all -i /dev/video0' to see the device formats",
"camera_notes_osx": "default: 'default'. Check the available cameras using the command 'ffmpeg -f avfoundation -list_devices true -i \"\"'",
"cameraWidth": 640,
"cameraHeight": 480,
"dictionaryName": "ARUCO_MIP_36h12",
"maxHammingDistance": 5
},
"scripts": {
"server": "node aruco-server-node.js",
"stream_win": "ffmpeg -f dshow -video_size %npm_package_config_cameraWidth%x%npm_package_config_cameraHeight% -i video=\"%npm_package_config_camera%\" -f rawvideo -r 1 -pix_fmt rgba http://127.0.0.1:%npm_package_config_port%/stream%npm_package_config_secret%",
"stream_unix": "ffmpeg -f v4l2 -video_size $npm_package_config_cameraWidthx$npm_package_config_cameraHeight -i /dev/$npm_package_config_camera -f rawvideo -r 1 -pix_fmt rgba http://127.0.0.1:$npm_package_config_port/stream$npm_package_config_secret",
"stream_osx": "ffmpeg -f avfoundation -video_size $npm_package_config_cameraWidthx$npm_package_config_cameraHeight -i \"$npm_package_config_camera\" -f rawvideo -r 1 -pix_fmt rgba http://127.0.0.1:$npm_package_config_port/stream$npm_package_config_secret",
"init": "npm install"
},
"dependencies": {
"http": "0.0.1-security",
"jpeg-js": "^0.4.2",
"url": "^0.11.0"
}
}