Security monitoring project—mjpeg-streamer video image display (real-time video streaming implementation)

Article directory Preface 1. Hardware preparation and hardware equipment inquiry 2. Transplantation of jpeg library 2.1 Source code download 2.2 Transplantation of jpeg library 3. Transplantation of mjpeg-stream 4. Test results Summarize Foreword Continuing from the previous issue, we have implemented many functions, but the real-time upload of video streams has not yet been implemented. […]

It takes time to convert gstreamer’s I420 to jpeg format data

1. Convert I430 data into jpg data JPegEncoder.h #pragma once #include <cstdint> #include <vector> #include <functional> #include <gst/gst.h> #include <gst/app/gstappsink.h> #include “Resolution.h” #include “VideoSettings.h” namespace sinftech { namespace tv { class JpegEncoder { public: using Handler = std::function<void(const uint8_t* data, size_t size, const Resolution & amp; resolution)>; JpegEncoder(Handler & amp; & amp; handler); ~JpegEncoder(); void […]

Various image processing, cropping tools of hutool. Generate progressive jpeg format pictures and generate thumbnails

Various picture tools: imageConversion2ImgStream method: Crop various image streams to generate a rectangular thumbnail stream form. bufferedConversion2ProgressiveJPEGStream: Get the image stream and target address conversion ProgressiveJPEG stream. imgType: can determine the image type. Required dependencies: <!– hutool tool package –> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.8.18</version> </dependency> <!–webp format pictures–> <dependency> <groupId>org.sejda.imageio</groupId> <artifactId>webp-imageio</artifactId> <version>0.1.6</version> </dependency> ImageWUtil tool […]

libjpeg practice 1: source code compilation and MJPG conversion to BMP testing:

Compile source code Download source code http://www.ijg.org/files/ wget http://www.ijg.org/files/jpegsrc.v9b.tar.gz Unzip: tar zxvf jpegsrc.v9b.tar.gz Start configuring and compiling because it is tested in ubuntu. So the configuration is very simple ./configure –prefix=/home/lkmao/linux/3588-linux/app/tools/jpeg-9b/_install_ubuntu/ Then make and make install When executing make install, a warning appears: Is it to execute this command: Based on the principle of listening […]

Display of mjpeg-streamer video images realized by linux security monitoring

mjpeg-streamer video image display 1, MJPG Introduction: MJPG is the abbreviation of MJPEG, but MJPEG can also represent the file format extension. MJPEG The full name is “Motion Joint Photographic Experts Group”, which is a video encoding format. Motion JPEG technology is commonly used with closed-circuit television cameras to “translate” the analog video signal into […]

Install libjpeg library in Linux (two applications)

About the installation and use of libjpeg library foreword 1. Applied to ubuntu 1. Download the compressed package (libjpeg source code) 2. Unzip to a certain directory 3. Perform some operations in this directory 4. How to use 2. Applied to embedded Linux development board 1. Download the compressed package (same as above) 2. Unzip […]

Detailed analysis of libjpeg library usage examples

Detailed analysis of libjpeg library usage examples Article directory Detailed analysis of libjpeg library usage examples error manager structure libjpeg library error handling function Is the file a JPG file Take out a row of pixel data and convert it into a format that can be used on the display device #include <config.h> #include <pic_operation.h> […]

FFmpeg converts the video into a frame-by-frame jpeg image (code implementation)

#include <iostream> using namespace std; extern “C” { #include “libavcodec/avcodec.h” #include “libavformat/avformat.h” #include “libswscale/swscale.h” #include “libavutil/imgutils.h” } int savePicture(AVFrame *pFrame, char *out_name) ; int main(int argc, char *argv[]) {//decode video int ret; const char *in_filename, *out_filename; AVFormatContext *fmt_ctx = NULL; const AVCodec *codec; AVCodecContext *codeCtx = NULL; AVStream *stream = NULL; int stream_index; AVPacket avpkt; […]