Merge branch 'master' of https://github.com/commaai/openpilot into debayer10
commit
72caee2933
18 changed files with 116 additions and 26 deletions
@ -1 +1 @@ |
||||
Subproject commit c54369f8ad4e0bcb18c96feb4334755c6f65e8f1 |
||||
Subproject commit 80e1e55f0dd71cea7f596e8b80c7c33865b689f3 |
@ -1 +1 @@ |
||||
Subproject commit 457e3b262d798aa6e400033c92d12a0b0f52a7ed |
||||
Subproject commit f48fc21a17079bc04cfb3d8042fd2d67d0aac104 |
@ -0,0 +1,66 @@ |
||||
# Camera stream |
||||
|
||||
`compressed_vipc.py` connects to a remote device running openpilot, decodes the video streams, and republishes them over VisionIPC. |
||||
|
||||
## Usage |
||||
|
||||
### On the device |
||||
SSH into the device and run following in separate terminals: |
||||
|
||||
`cd /data/openpilot/cereal/messaging && ./bridge` |
||||
|
||||
`cd /data/openpilot/system/loggerd && ./encoderd` |
||||
|
||||
`cd /data/openpilot/system/camerad && ./camerad` |
||||
|
||||
Note that both the device and your PC must be on the same openpilot commit. |
||||
|
||||
Alternatively paste this as a single command: |
||||
``` |
||||
( |
||||
cd /data/openpilot/cereal/messaging/ |
||||
./bridge & |
||||
|
||||
cd /data/openpilot/system/camerad/ |
||||
./camerad & |
||||
|
||||
cd /data/openpilot/system/loggerd/ |
||||
./encoderd & |
||||
|
||||
wait |
||||
) ; trap 'kill $(jobs -p)' SIGINT |
||||
``` |
||||
Ctrl+C will stop all three processes. |
||||
|
||||
### On the PC |
||||
Decode the stream with `compressed_vipc.py`: |
||||
|
||||
```cd ~/openpilot/tools/camerastream && ./compressed_vipc.py <ip>``` |
||||
|
||||
To actually display the stream, run `watch3` in separate terminal: |
||||
|
||||
```cd ~/openpilot/selfdrive/ui/ && ./watch3``` |
||||
|
||||
## compressed_vipc.py usage |
||||
``` |
||||
$ python compressed_vipc.py -h |
||||
usage: compressed_vipc.py [-h] [--nvidia] [--cams CAMS] [--silent] addr |
||||
|
||||
Decode video streams and broadcast on VisionIPC |
||||
|
||||
positional arguments: |
||||
addr Address of comma three |
||||
|
||||
options: |
||||
-h, --help show this help message and exit |
||||
--nvidia Use nvidia instead of ffmpeg |
||||
--cams CAMS Cameras to decode |
||||
--silent Suppress debug output |
||||
``` |
||||
|
||||
|
||||
## Example: |
||||
``` |
||||
cd ~/openpilot/tools/camerastream && ./compressed_vipc.py comma-ffffffff --cams 0 |
||||
cd ~/openpilot/selfdrive/ui/ && ./watch3 |
||||
``` |
Loading…
Reference in new issue