CN107959791B - Video image acquisition processing method and device, computer equipment and storage medium - Google Patents

Video image acquisition processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN107959791B
CN107959791B CN201711147860.8A CN201711147860A CN107959791B CN 107959791 B CN107959791 B CN 107959791B CN 201711147860 A CN201711147860 A CN 201711147860A CN 107959791 B CN107959791 B CN 107959791B
Authority
CN
China
Prior art keywords
video image
image data
snapshot
preset
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711147860.8A
Other languages
Chinese (zh)
Other versions
CN107959791A (en
Inventor
汪土桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU CHNAVS DIGITAL TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU CHNAVS DIGITAL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU CHNAVS DIGITAL TECHNOLOGY Co Ltd filed Critical GUANGZHOU CHNAVS DIGITAL TECHNOLOGY Co Ltd
Priority to CN201711147860.8A priority Critical patent/CN107959791B/en
Publication of CN107959791A publication Critical patent/CN107959791A/en
Application granted granted Critical
Publication of CN107959791B publication Critical patent/CN107959791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Studio Devices (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method and a device for acquiring and processing video images, computer equipment and a storage medium. A method for video image acquisition processing comprises the following steps: the method comprises the steps of receiving a snapshot request of video image data of a client, detecting whether a preset snapshot rule is met or not according to the snapshot request of the video image data, asynchronously outputting an instruction of snapshot video image data when the preset snapshot rule is met, wherein the instruction of the snapshot video image data is used for controlling a streaming media system to snapshot video images, receiving the snapshot video image data, and pushing the snapshot video image data to a resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.

Description

Video image acquisition processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method and an apparatus for video image acquisition and processing, a computer device, and a storage medium.
Background
With the development of science and technology, multimedia technology is further developed, video image acquisition is a means for acquiring image information by using the multimedia technology, the video image acquisition plays an important role in modern multimedia technology, the video image acquisition is widely applied to daily life, and the speed and quality of video image acquisition directly influence the overall effect of products.
Most of the existing video image acquisition modes are that a camera is actively controlled by a terminal such as a television, a Personal Computer (PC), a mobile phone, and the like to acquire a captured image from a streaming media system, and then the captured image is uploaded to a static resource server associated with a World Wide Web (ww) management service platform through http (HyperText Transfer Protocol), so that the dependence degree of the mode of actively uploading video image information and then updating video image data through the terminal on the terminal is high.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for video image capture processing, in order to solve the problem that the existing image capture method has a high degree of dependence on a terminal.
A method for video image acquisition processing comprises the following steps:
receiving a video image data snapshot request of a client;
detecting whether a preset snapshot rule is met or not according to a snapshot request of video image data;
when a preset snapshot rule is met, asynchronously outputting a command for snapshotting video image data, wherein the command for snapshotting the video image data is used for controlling a streaming media system to snapshoot the video image;
receiving video image data which are captured;
and pushing the captured video image data to a resource server.
In one embodiment, the preset snapshot rules include:
the method comprises the steps of allowing an instruction of capturing video image data to be output, detecting that the state of equipment capable of capturing the video image data is normal and detecting that the time interval from the last captured video image data exceeds a preset specified time limit.
In one embodiment, the step of receiving a snapshot request of video image data of the client further comprises:
and creating a thread for controlling the instruction output of the snapshot video image data.
In one embodiment, the step of detecting whether the preset snapshot rule is satisfied according to the snapshot request of the video image data further includes:
and when the history updating record exists, feeding back the last updated snapshot video image data to the client.
In one embodiment, the step of asynchronously outputting instructions to snap video image data comprises:
and when the preset snapshot rule is met, the management server outputs the command of snapshotting the video image data in a timing and asynchronous mode.
In one embodiment, the video image is captured by FFmpeg (Fast forwarding Moving Picture experts group).
In one embodiment, the step of pushing the captured video image data to a resource server includes:
and pushing the captured video image data to a resource server in an ftp (File Transfer Protocol) uploading mode.
An apparatus for video image capture processing, comprising:
the receiving module is used for receiving a snapshot request of video image data of a client;
the detection module is used for detecting whether a preset snapshot rule is met or not according to the snapshot request of the video image data;
the instruction output module is used for asynchronously outputting an instruction for snapshotting video image data when a preset snapshotting rule is met, and the instruction for snapshotting the video image data is used for controlling a streaming media system to snapshoot a video image;
the receiving module is used for receiving the video image data which is captured;
and the processing module is used for pushing the captured video image data to the resource server.
A computer device comprising a processor and a memory, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method of video image acquisition processing.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of a method of video image acquisition processing.
According to the method, the device, the computer equipment and the storage medium for acquiring and processing the video images, the management server receives a snapshot request of video image data of a client, whether a preset snapshot rule is met or not is detected according to the snapshot request of the video image data, when the preset snapshot rule is met, an instruction for snapshotting the video image data is asynchronously output, the instruction for snapshotting the video image data is used for controlling a streaming media system to snapshoot the video images, receiving the snapshotted video image data, and pushing the snapshotted video image data to the resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a method for video image capture processing according to the present application;
FIG. 2 is a schematic flow chart diagram illustrating an embodiment of a method for video image capture processing according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for video image capture processing according to the present application;
fig. 4 is a schematic flowchart of one embodiment of a method for video image capture processing according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that the steps in the flowcharts of the present application are shown in order as indicated by the arrows, but the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
A general video image acquisition and processing system comprises a client, a management server, a streaming media system and a resource server. The client is connected with the management server, the management server is connected with the streaming media system, and the client is connected with the resource server. The existing video image acquisition processing system realizes video image acquisition processing through interaction of a client, a management server and a resource server, has high dependence degree on the client, and may cause failure in updating video image data due to unstable network communication of the client and other reasons. Based on this, a video image capturing and processing method applied to a management server is provided for the above system, as shown in fig. 1, which specifically includes the following steps:
s200: and receiving a snapshot request of video image data of the client.
Specifically, the client is also called a user side, and refers to a program corresponding to the server and providing local services to the client. Except for some application programs which only run locally, the application programs are generally installed on common clients and need to be operated together with a server. Common clients include web browsers used by the world wide web, email clients when receiving and sending emails, client software for instant messaging, and the like. For such applications, a corresponding server and a corresponding service program are required in the network to provide corresponding services, such as database services, e-mail services, etc., so that specific communication connections need to be established between the client and the server to ensure the normal operation of the applications. Common clients include televisions, computers, cell phones, and the like.
Video image data refers to a part of image data cut out from video data of video equipment, and common video equipment includes an image sensor, a video camera, a video recorder, a television set, and the like.
The client sends a snapshot request of the video image data to the management server.
S400: and detecting whether a preset snapshot rule is met or not according to the snapshot request of the video image data.
Specifically, after receiving a snapshot request of video image data of a client, the management server starts an internal detection module, and the detection module is used for detecting a preset snapshot rule. The preset snapshot rule is a control rule for triggering snapshot, the operation of snapshot video image data can be performed only when the preset snapshot rule is met, the preset snapshot rule is set before a snapshot request comes, and the preset snapshot rule can be set according to actual needs.
Further, the snapping rules may relate to a management server, a video device, and the like. For the management server, the snapshot rule may relate to a time interval at which the management server outputs an instruction to snapshot the video image data. For a video device, the snap rules may relate to the state of the video device.
S500: and when the preset snapshot rule is met, asynchronously outputting a command for snapshotting the video image data, wherein the command for snapshotting the video image data is used for controlling the streaming media system to snapshoot the video image.
Specifically, when a preset snapshot rule is met, the management server asynchronously outputs a command for snapshotting video image data to the streaming media system, and the streaming media system is controlled to snapshoot the video image.
Asynchronous output is one of two basic modes of operation for any particular output stream, including synchronous and asynchronous output. In asynchronous mode, the natural output transactions do not have to be synchronized or interlocked with the output state of a program. A common asynchronous output approach involves using fsockopen asynchronous output. In this embodiment, if the management server asynchronously outputs the instruction for capturing the video image data, the operation for outputting the instruction for capturing the video image data and the related captured video image data after the instruction for outputting the captured video image data and the interactive operation between the management server and the client are not performed synchronously. The method does not affect other normal data return of the client, and the experience of the client is optimized to a great extent. The other normal data here may be other data requested by the client.
Streaming media refers to a form of media that streams audio, video, and multimedia files over a network. Compared with the network playing mode of watching after downloading, the streaming media is typically characterized in that continuous audio and video information is compressed and then put on a network server, and a user can watch while downloading without waiting for the whole file to be downloaded. Streaming media technology has gained rapid development in recent years as a sign of new generation internet applications. The streaming media server is a core system of the streaming media application, and is a key platform for an operator to provide video services to users. The main functions of the streaming media server are to collect, cache, schedule, transmit and play streaming media contents. In this embodiment, we control the streaming media system to snapshot image data of a video device in the streaming media system through instructions to snapshot the video image data.
S600: and receiving the video image data which is captured.
Specifically, after capturing image data of the video device, the streaming media system feeds back the captured video image data to the management server.
S700: and pushing the captured video image data to a resource server.
Specifically, various network transport protocols may be employed to push video image data to the resource server. A common network transport protocol is ftp.
The method for acquiring and processing the video image comprises the steps of receiving a snapshot request of video image data of a client through a management server, detecting whether a preset snapshot rule is met or not according to the snapshot request of the video image data, asynchronously outputting a command of snapshot video image data when the preset snapshot rule is met, wherein the command of the snapshot video image data is used for controlling a streaming media system to snapshot the video image, receiving the snapshot video image data, and pushing the snapshot video image data to a resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.
In one embodiment, the preset snapshot rules include:
the method comprises the steps of allowing an instruction of capturing video image data to be output, detecting that the state of equipment capable of capturing the video image data is normal and detecting that the time interval from the last captured video image data exceeds a preset specified time limit.
Specifically, a switch for controlling the operation of the command of the snapshot video image data is arranged in the management server, when the switch is turned on, the management server can output the command of the snapshot video image data to the streaming media, the switch uniformly controls the snapshot video image data, and the operation of the output command is managed, so that the system is easy to manage and maintain. The streaming media system can communicate with the video equipment in the streaming media system in real time and detect the state of the video equipment. When the management server needs to detect the preset snapshot rule, a detection instruction is output to the streaming media system, the streaming media system is controlled to detect the video equipment, and a detection result is fed back to the management server. The management server can know whether the state of the equipment capable of capturing the video image data is normal or not, wherein the normal state means that the working condition of the video equipment is normal and the video equipment is not disconnected. A timing program is set in the management server, the time point of outputting the instruction of the snapshot video image data every time is recorded, a specified time limit is preset and used as the time interval of the snapshot video image data, the instruction of the snapshot video image data can be output only when the time interval of the snapshot video image data exceeds the specified time limit, and the waste of server resources due to frequent snapshot is avoided.
In one embodiment, the step of receiving the snapshot request of the video image data of the client at step S200 further includes:
s100: and creating a thread for controlling the instruction output of the snapshot video image data.
Specifically, the created thread is used for controlling the output of the command of the snapshot video image data of the management server, after the thread is created, the management server can output the command of the snapshot video image data to the streaming media, and the threads uniformly control the operations of the snapshot video image data and the output command, so that the system is easy to manage and maintain.
Further, in the thread, the management server controls the number of execution threads for capturing the video images through a streaming media system. In order to accurately transmit video image data, the number of snapshot processes allowed to wait in the simultaneous terminal is controlled. The management server sets the maximum waiting process number, acquires the process number of the snapshot video images allowed to wait from the streaming media system, and when the process number of the snapshot video images allowed to wait is equal to the maximum waiting process number, the switch controls the streaming media system to close the snapshot channels of the video devices except the video device waiting for snapshot, sets a time interval, and opens the snapshot channels of other video devices after the specified time interval. The number and the time interval may be set according to the deployed architecture and the performance of the servers. Each camera is additionally provided with a special thread, and when emergency needs exist, the control of the thread can be bypassed, and real-time snapshot operation can be directly carried out.
In one embodiment, the step S400 of detecting whether the preset snapshot rule is satisfied according to the snapshot request of the video image data further includes:
s300: and when the history updating record exists, feeding back the last updated snapshot video image data to the client.
Specifically, when the management server receives a snapshot request from the client, the management server obtains the last updated snapshot video image data from the resource server, and then feeds back the last updated snapshot video image data to the client.
In one embodiment, the step S500 of asynchronously outputting the instruction to capture the video image data includes:
s520: and when the preset snapshot rule is met, the management server outputs the command of snapshotting the video image data in a timing and asynchronous mode.
Specifically, in order to prevent that the data of the video image is not updated all the time because some cold video devices do not have a client request to trigger the operation of capturing the video image for a long time, the operation of capturing the video image is triggered to the video device which meets the control rule at regular time. After the timer starts working, the management server firstly acquires video equipment meeting a preset snapshot rule through the streaming media system, then controls the streaming media system to perform video image snapshot operation on the video equipment, acquires video images through the streaming media system, and pushes the video images to the resource server, wherein a timing period can be set according to needs.
Further, crontab may be used for planning tasks. The crontab command is commonly found in Unix (Eunism) and Unix-like operating systems for setting up instructions to be executed periodically. This command reads the instruction from a standard input device and deposits it in a "crontab" file for later reading and execution.
In one embodiment, the video image is captured by FFmpeg.
In particular, FFmpeg is a set of open source computer programs that can be used to record, convert digital audio, video, and convert them into streams. LGPL (GNU letter General Public License, GNU-wide General Public License) or GPL (GNU General Public License) licenses are used. It provides a complete solution for recording, converting and streaming audio and video. It contains a very advanced audio/video codec library. The function of the FFmpeg includes a video acquisition function, video format conversion, video capture, video watermarking and the like, the FFmpeg video acquisition function is very powerful, not only can acquire images of a video acquisition card or a USB (Universal Serial Bus) camera, but also can record a screen, and simultaneously supports transmitting a video stream to a Streaming media server supporting RTSP (Real Time Streaming Protocol) in an RTP (Real-Time Transport Protocol) mode, and supports live broadcast application.
In one embodiment, the step S700 of pushing the captured video image data to the resource server includes:
s720: and pushing the captured video image data to a resource server in an ftp uploading mode.
Specifically, ftp is a file transfer protocol used for bi-directional transfer of control files over the Internet. The ftp server refers to a server supporting an ftp protocol, in this embodiment, the management server and the resource server are both servers supporting the ftp protocol, the management server uploads the video image data to the resource server through ftp, and when the video image data is needed, the management server downloads the video image data from the resource server through ftp.
An apparatus for video image capture processing, comprising:
a receiving module 100, configured to receive a snapshot request of video image data of a client;
the detection module 200 is configured to detect whether a preset snapshot rule is satisfied according to a snapshot request of video image data;
the instruction output module 300 is used for asynchronously outputting an instruction for capturing video image data when a preset capturing rule is met, wherein the instruction for capturing the video image data is used for controlling a streaming media system to capture a video image;
a receiving module 400, configured to receive captured video image data;
the processing module 500 is configured to push captured video image data to a resource server.
Specifically, firstly, the receiving module 100 receives a snapshot request of video image data of a client, the detecting module 200 detects whether a preset snapshot rule is satisfied according to the snapshot request of the video image data, when the preset snapshot rule is satisfied, the instruction output module 300 asynchronously outputs an instruction of the snapshot video image data, the instruction of the snapshot video image data is used for controlling a streaming media system to snapshot a video image, the receiving module 400 receives the snapshot video image data, and finally the processing module 500 pushes the snapshot video image data to the resource server.
The device for collecting and processing the video images receives the snapshot request of the video image data of the client through the management server, detects whether the preset snapshot rule is met or not according to the snapshot request of the video image data, asynchronously outputs the instruction of the snapshot video image data when the preset snapshot rule is met, the instruction of the snapshot video image data is used for controlling the streaming media system to snapshot the video images, receives the snapshot video image data, and pushes the snapshot video image data to the resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.
A computer device comprising a processor and a memory, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method of video image acquisition processing.
The computer device comprises a processor, a memory, a network interface, an input device and a display screen which are connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a method of video image capture processing. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method of video image capture processing. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like. Those skilled in the art will appreciate that the above-described arrangements are merely part of the arrangements associated with the present application and do not constitute a limitation on the computing devices to which the present application may be applied, and that a particular computing device may comprise more or less elements than those shown, or some of the elements may be combined, or have a different arrangement of elements.
In one embodiment, the apparatus for video image capture processing provided herein may be implemented in the form of a computer program, and the computer program may be run on a computer device. The memory of the computer device may store various program modules constituting the apparatus for video image capturing processing, such as the receiving module 100, the detecting module 200, the instruction outputting module 300, the receiving module 400, and the processing module 500 shown in fig. 3. The computer program constituted by the respective program modules causes the processor to execute the steps in the method of video image capture processing of the various embodiments of the present application described in the present specification.
For example, the computer device may perform step S200 by the receiving module 100, the detecting module 200, the instruction outputting module 300, the receiving module 400, and the processing module 500 in the apparatus for video image capturing processing shown in fig. 3, and perform step S700 by the processing module 500.
The computer equipment for collecting and processing the video images receives a snapshot request of video image data of a client through a management server, detects whether a preset snapshot rule is met or not according to the snapshot request of the video image data, asynchronously outputs an instruction of the snapshot video image data when the preset snapshot rule is met, the instruction of the snapshot video image data is used for controlling a streaming media system to snapshot the video images, receives the snapshot video image data, and pushes the snapshot video image data to a resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of a method of video image acquisition processing.
It will be understood by those skilled in the art that all or part of the processes in the method for implementing the video image capturing process described above can be implemented by a computer program instructing associated hardware, where the program can be stored in a non-volatile computer readable storage medium, and when executed, the program can include the processes of the various embodiments of the method for implementing the video image capturing process described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The storage medium for video image acquisition and processing receives a snapshot request of video image data of a client through a management server, detects whether a preset snapshot rule is met or not according to the snapshot request of the video image data, asynchronously outputs an instruction of the snapshot video image data when the preset snapshot rule is met, the instruction of the snapshot video image data is used for controlling a streaming media system to snapshot the video image, receives the snapshot video image data, and pushes the snapshot video image data to a resource server. In the scheme, the management server outputs an instruction for snapshotting video image data, controls the streaming media system to snapshoot the video image, acquires the video image data, uploads the acquired video image data to the resource server, and updates the video image data. The dependence degree of the whole working process on the terminal is low, and the updating efficiency is high.
As shown in fig. 4, first, a client sends a request for acquiring camera data to a management server, and after receiving the request from the client, the management server acquires a last updated camera poster picture from a resource server, and then feeds back the last updated camera poster picture to the client. Meanwhile, the management server triggers and detects whether the management server and the cameras of the relevant snapshot camera poster pictures meet preset snapshot rules or not according to the request of the client for acquiring the camera data, when the preset snapshot rules are met, the instruction for snapshotting the camera poster pictures is output to the streaming media system, the streaming media system snapshotting the poster pictures of the cameras in the streaming media system according to the instruction for snapshotting the camera poster pictures, and feeds back the snapshotted camera poster pictures to the management server. And the management server pushes the snap shot camera poster picture to a resource server to finish the operation of the video image acquisition and processing.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method for video image acquisition processing is characterized by comprising the following steps:
receiving a video image data snapshot request of a client;
detecting whether a preset snapshot rule is met or not according to the snapshot request of the video image data;
when the preset snapshot rule is met, asynchronously outputting a command for snapshotting video image data, wherein the command for snapshotting the video image data is used for controlling a streaming media system to snapshoot the video image;
receiving video image data which are captured;
pushing the captured video image data to a resource server;
the step of detecting whether the video image data meet the preset snapshot rule according to the snapshot request of the video image data further comprises the following steps:
when a history updating record exists, acquiring last updated snapshot video image data from a resource server, and feeding back the last updated snapshot video image data to a client;
the step of asynchronously outputting instructions to snap video image data comprises:
when the preset snapshot rule is met, the management server outputs a command of snapshotting video image data in a timing and asynchronous mode;
the preset snapshot rule comprises the following steps:
the method comprises the steps of allowing the instruction of the video image data to be output, detecting that the equipment capable of being snappingly shot is normal and detecting that the time interval from the last video image data to be snappingly shot exceeds a preset specified time limit.
2. The method of video image capture processing as recited in claim 1 wherein said step of receiving a request for a snapshot of video image data from a client further comprises:
and creating a thread for controlling the instruction output of the snapshot video image data.
3. The method of video image capture processing as claimed in claim 1 wherein said instructions to asynchronously output captured video image data when said preset capture rules are satisfied comprise:
and controlling the number of execution threads for capturing the video image data through a streaming media system.
4. The method of video image capture processing as claimed in claim 3 wherein said controlling the number of threads of execution of the capturing of video image data by the streaming media system comprises:
acquiring the number of processes of snapshot video images allowed to wait from a streaming media system;
and when the number of the processes of allowing the waiting snapshot video images is equal to the preset maximum waiting process number, controlling the streaming media system to close the snapshot channels of the video equipment which do not correspond to the snapshot video images allowed to wait.
5. The method of video image capture processing of claim 1, wherein the video image is captured by FFmpeg.
6. The method of video image capture processing as claimed in claim 1 wherein said step of pushing said captured video image data to a resource server comprises:
and pushing the captured video image data to a resource server in an ftp uploading mode.
7. An apparatus for video image capture processing, comprising:
the receiving module is used for receiving a snapshot request of video image data of a client;
the detection module is used for detecting whether a preset snapshot rule is met according to the snapshot request of the video image data;
the instruction output module is used for asynchronously outputting an instruction of the snapshot video image data when the preset snapshot rule is met, and the instruction of the snapshot video image data is used for controlling a streaming media system to snapshot a video image;
the receiving module is used for receiving the video image data which is captured;
the processing module is used for pushing the captured video image data to a resource server;
the detection module is also used for acquiring the snapshot video image data updated last time from the resource server and feeding back the snapshot video image data updated last time to the client when the history update record exists;
the instruction output module is also used for outputting the instruction of the snapshot video image data by the management server in a timing and asynchronous manner when the preset snapshot rule is met;
the preset snapshot rule comprises the following steps:
the method comprises the steps of allowing the instruction of the video image data to be output, detecting that the equipment capable of being snappingly shot is normal and detecting that the time interval from the last video image data to be snappingly shot exceeds a preset specified time limit.
8. A computer device comprising a processor and a memory, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
CN201711147860.8A 2017-11-17 2017-11-17 Video image acquisition processing method and device, computer equipment and storage medium Active CN107959791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711147860.8A CN107959791B (en) 2017-11-17 2017-11-17 Video image acquisition processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711147860.8A CN107959791B (en) 2017-11-17 2017-11-17 Video image acquisition processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107959791A CN107959791A (en) 2018-04-24
CN107959791B true CN107959791B (en) 2020-02-18

Family

ID=61964700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711147860.8A Active CN107959791B (en) 2017-11-17 2017-11-17 Video image acquisition processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107959791B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719332B (en) * 2019-10-17 2022-07-26 北京旷视科技有限公司 Data transmission method, device, system, computer equipment and storage medium
EP3869813B1 (en) 2020-02-24 2022-03-30 Axis AB Streaming of a live video stream
CN111354154B (en) * 2020-03-11 2022-05-17 杭州涂鸦信息技术有限公司 AI detection method based on cloud algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025980A (en) * 2010-12-15 2011-04-20 上海敏拓计算机科技有限公司 Mobile terminal video monitoring system
CN201904873U (en) * 2010-12-15 2011-07-20 上海敏拓计算机科技有限公司 Mobile terminal video monitoring system
CN102402857A (en) * 2011-11-30 2012-04-04 江苏奇异点网络有限公司 Network-oriented traffic platform interaction control method
CN105847913A (en) * 2016-05-20 2016-08-10 腾讯科技(深圳)有限公司 Live video broadcast control method, mobile terminal and system
CN105898137A (en) * 2015-12-15 2016-08-24 乐视移动智能信息技术(北京)有限公司 Image collection and information push methods, image collection and information push devices and mobile phone
CN106612416A (en) * 2015-10-27 2017-05-03 上海进欣信息科技有限公司 Centralized monitoring management system based on streaming media

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025980A (en) * 2010-12-15 2011-04-20 上海敏拓计算机科技有限公司 Mobile terminal video monitoring system
CN201904873U (en) * 2010-12-15 2011-07-20 上海敏拓计算机科技有限公司 Mobile terminal video monitoring system
CN102402857A (en) * 2011-11-30 2012-04-04 江苏奇异点网络有限公司 Network-oriented traffic platform interaction control method
CN106612416A (en) * 2015-10-27 2017-05-03 上海进欣信息科技有限公司 Centralized monitoring management system based on streaming media
CN105898137A (en) * 2015-12-15 2016-08-24 乐视移动智能信息技术(北京)有限公司 Image collection and information push methods, image collection and information push devices and mobile phone
CN105847913A (en) * 2016-05-20 2016-08-10 腾讯科技(深圳)有限公司 Live video broadcast control method, mobile terminal and system

Also Published As

Publication number Publication date
CN107959791A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
US9819973B2 (en) Embedded appliance for multimedia capture
CN107959791B (en) Video image acquisition processing method and device, computer equipment and storage medium
WO2014025319A1 (en) System and method for enabling user control of live video stream(s)
CN106453572B (en) Method and system based on Cloud Server synchronous images
TW200715223A (en) Remote monitoring method using mobile terminal and system thereof
JP2009171558A (en) Image processor, image managing server, and control method and program thereof
JP6327491B2 (en) Application test system and application test method
CN113906764B (en) Method, apparatus and computer readable medium for transcoding video
CN110149524B (en) Live stream slicing system, live stream slicing method, live stream slicing device and readable medium
WO2018224839A2 (en) Methods and systems for generating a reaction video
US10712994B2 (en) Image compressing method, image reconstructing method, image compressing device, image reconstructing device, image compressing program product, and image reconstructing program product
WO2020093879A1 (en) Video synthesis method and apparatus, computer device and readable storage medium
US10306276B2 (en) Information device
TWI731579B (en) Transmission device, communication system, transmission method, and computer program product
US8824854B2 (en) Method and arrangement for transferring multimedia data
CN102904926A (en) Method and system for sharing and editing file
CN103856549A (en) System and method for sharing digital data in real time
KR102492014B1 (en) Method, Apparatus and System of managing contents in Multi-channel Network
US10750115B1 (en) Video sugar capture
CN115022677B (en) Video playing method, device, equipment and medium
CN112306337B (en) Conference same screen system, method and device, computer equipment and storage medium
US20230121095A1 (en) Image capturing apparatus capable of guaranteeing authenticity of digital image, management system, control method, and storage medium
CN106101531B (en) Network image acquisition and content playing system
JP2022167830A (en) Apparatus, method and computer-readable medium for access
JP2023060814A (en) Imaging apparatus, management system, control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant