Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/source/components/bootloader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,11 @@ Depthai application package (**.dap**) consists of:
- Assets structure (section “assets”)
- Asset storage (section “asset_storage”)

MAC address
###########

All OAK PoE cameras have a unique MAC address which is used to identify the device on the network. It is calculated from the
MxID of the device, see `logic here <https://gist.github.com/Erol444/85d6ef7ae9c946f5688854b86c548dc7>`__.
The MAC address is stored in the DeviceBootloader configuration.

.. include:: ../includes/footer-short.rst
2 changes: 2 additions & 0 deletions docs/source/components/nodes/script.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Examples of functionality
- :ref:`Script camera control` - Controlling the camera
- :ref:`Script get local IP` - Get local IP
- :ref:`Script HTTP client` - Send HTTP request
- `Script TCP streaming <https://github.com/luxonis/depthai-experiments/tree/master/gen2-poe-tcp-streaming>`__ - TCP communication from within Script node, either in host or client mode
- `Script MQTT publishing <https://github.com/luxonis/depthai-experiments/tree/master/gen2-poe-mqtt>`__ - MQTT publishing from within Script node
- :ref:`Script HTTP server` - still image over HTTP
- :ref:`Script MJPEG server` - MJPEG video stream over HTTP
- :ref:`Script NNData example` - Constructs :ref:`NNData`
Expand Down
11 changes: 6 additions & 5 deletions docs/source/components/nodes/video_encoder.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
VideoEncoder
============

VideoEncoder node is used to encode :ref:`image frames <ImgFrame>` into H264/H265/JPEG.
VideoEncoder node is used to encode :ref:`ImgFrame` into either H264, H265, or MJPEG streams. Only NV12 or GRAY8 (which gets converted to NV12) format is
supported as an input.

.. include:: /includes/container-encoding.rst

Expand Down Expand Up @@ -36,7 +37,7 @@ Inputs and Outputs

**Message types**

- :code:`input` - :ref:`ImgFrame`
- :code:`input` - :ref:`ImgFrame` (NV12/GRAY8)
- :code:`bitstream` - :ref:`ImgFrame`

Usage
Expand All @@ -55,7 +56,7 @@ Usage

# Create MJPEG encoding for still images
stillEncoder = pipeline.create(dai.node.VideoEncoder)
stillEncoder.setDefaultProfilePreset(cam.getStillSize(), 1, dai.VideoEncoderProperties.Profile.MJPEG)
stillEncoder.setDefaultProfilePreset(1, dai.VideoEncoderProperties.Profile.MJPEG)

cam.still.link(stillEncoder.input)
cam.video.link(videoEncoder.input)
Expand All @@ -67,11 +68,11 @@ Usage
// Create ColorCamera beforehand
// Set H265 encoding for the ColorCamera video output
auto videoEncoder = pipeline.create<dai::node::VideoEncoder>();
videoEncoder->setDefaultProfilePreset(cam->getVideoSize(), cam->getFps(), dai::VideoEncoderProperties::Profile::H265_MAIN);
videoEncoder->setDefaultProfilePreset(cam->getFps(), dai::VideoEncoderProperties::Profile::H265_MAIN);

// Create MJPEG encoding for still images
stillEncoder = pipeline.create(dai.node.VideoEncoder);
stillEncoder->setDefaultProfilePreset(cam->getStillSize(), 1, dai::VideoEncoderProperties::Profile::MJPEG);
stillEncoder->setDefaultProfilePreset(1, dai::VideoEncoderProperties::Profile::MJPEG);

cam->still.link(stillEncoder->input);
cam->video.link(videoEncoder->input);
Expand Down