RTSP player + video surveillance written by Qt (ffmpeg version)

I remember that I wrote a simple version four years ago. At that time, the writing was very rough, and the code was really horrible. After many years, I wrote a new version, and also solved the problem that previously did not support 6-screen 8-screen switching and other special-shaped layouts. .
1: You can use rtsp.txt in the directory to set the video stream address to be displayed.
2: Support 4 pictures + 6 pictures + 8 pictures + 9 pictures + 16 pictures switching.
3: Support double-click to maximize the current screen.
4: Support right-click screenshot.
5: Support various video streams and local file playback.
6: OSD label can be set.
7: Compiled and worked perfectly on all possible operating systems and platforms tested.
8: If XP runs an error, please execute fixff.cmd in the directory.

/**
* ffmpeg video playback author: feiyangqingyun (QQ: 517216493) 2018-5-1
* 1: Multi-threaded real-time playback of rtsp video streams
* 2: Support X86 and embedded linux
* 3: Multi-threaded display images, no card Main interface
* 4: Automatically reconnect the webcam
* 5: You can set the border size, i.e. offset and border color
* 6: You can set whether to draw the OSD label, that is, the label text and label position
* 7: You can set two OSD positions and styles
* 8: Can set whether to save to file and file name
* 9: Can play local video files, support setting frame rate
* 10: Support common video streams such as h265 video stream + rtmp
*/

/**
* USB camera acquisition class Author: feiyangqingyun (QQ: 517216493) 2018-5-1
* 1: You can get real-time video of the camera
* 2: Support X86 and embedded linux
* 3: Multi-threaded display image, not stuck on the main interface
* 4: Automatically reconnect the USB camera
* 5: You can set the frame size, i.e. the offset and frame color
* 6: You can set whether to draw the OSD label, that is, the label text and label position
* 7: You can set two OSD positions and styles
* 8: You can set Whether to display the real-time face frame
* 9: You can set to find the largest similar face in the current picture
*/

Executable file download: Click to open the link

Run the screenshot:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325396585&siteId=291194637