Go to the documentation of this file.
8 static std::atomic<bool>
alive{
true};
13 int main(
int argc,
char** argv) {
25 xout->setStreamName(
"h265");
34 videoEnc->bitstream.link(xout->
input);
43 auto videoFile = std::ofstream(
"video.h265", std::ios::binary);
44 cout <<
"Press Ctrl+C to stop encoding..." << endl;
48 videoFile.write((
char*)(h265Packet->getData().data()), h265Packet->getData().size());
51 cout <<
"To view the encoded data, convert the stream file (.h265) into a video file (.mp4) using a command below:" << endl;
52 cout <<
"ffmpeg -framerate 30 -i video.h265 -c copy video.mp4" << endl;
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
int main(int argc, char **argv)
ColorCamera node. For use with color sensors.
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
std::shared_ptr< N > create()
static void sigintHandler(int signum)
static std::atomic< bool > alive
VideoEncoder node. Encodes frames into MJPEG, H264 or H265.
void link(const Input &in)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19