diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e652df6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.h265 +*.mkv diff --git a/LICENSE b/LICENSE index b45d6ba..c480310 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (c) 2020 Luxonis LLC +Copyright (c) 2021 Jeff Moe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index db67429..a82483d 100644 --- a/README.md +++ b/README.md @@ -1 +1,47 @@ +# Camera AI Scripts +Scripts for Luxonis OAK-D-POE AI Camera. + +# Streaming +There is no RTSP streaming available yet, but it is in the development +pipeline from Luxonis. For now a crufty workaround, perhaps. + +``` +# Install depthai, various ways, maybe like: +pip install --user depthai + +# Clone this repo +git clone https://spacecruft.org/jebbacam/luxonis-cruft + +# Build a streaming server +# Install deps first: +apt install [whatever ffmpeg-dev deps are on your system] + +git clone https://github.com/klaxa/mkvserver_mk2 +cd mkvserver_mk2 +make + +# Now run thang + +# In another terminal +cd luxonis-cruft +rm video.mkv video.h265 +./rgb_encoding.py + +# In another terminal +cd luxonis-cruft +ffmpeg -i video.h265 video.mkv + +# In another terminal +# Run the server back in the +cd mkvserver_mk2 +./server ../luxonis-cruft/video.mkv + +# View stream at localhost or your IP or: +# http://127.0.0.1:8080 +``` + +# Upstream Source Code Forklets of Luxonis examples. + +https://github.com/luxonis/depthai-python +