CN110324656B - Data processing method and device for video network - Google Patents

Data processing method and device for video network Download PDF

Info

Publication number
CN110324656B
CN110324656B CN201810265299.1A CN201810265299A CN110324656B CN 110324656 B CN110324656 B CN 110324656B CN 201810265299 A CN201810265299 A CN 201810265299A CN 110324656 B CN110324656 B CN 110324656B
Authority
CN
China
Prior art keywords
video
data
video network
network terminal
terminal
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
CN201810265299.1A
Other languages
Chinese (zh)
Other versions
CN110324656A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201810265299.1A priority Critical patent/CN110324656B/en
Publication of CN110324656A publication Critical patent/CN110324656A/en
Application granted granted Critical
Publication of CN110324656B publication Critical patent/CN110324656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data processing method and a device of a video network, wherein a video network terminal is provided with a Frame Buffer interface, a video network server comprises an image folder, and the method comprises the following steps: the video networking remote control device sends a video playing instruction to a video networking terminal; after receiving a video playing instruction, the video networking terminal sends a video request instruction to a video networking server; the video networking server responds to the video request instruction and returns video data to the video networking terminal; when the video network terminal plays video data, the video network terminal acquires bitmap data corresponding to the video data through a Frame Buffer interface; the video network terminal sends the bitmap data to a video network server; the video network server stores the bitmap data into an image folder; the function of one-key screenshot is realized, the screenshot efficiency is improved, the fussy operation of a user is reduced, and the use performance of the video network terminal is improved.

Description

Data processing method and device for video network
Technical Field
The invention relates to the technical field of video networking, in particular to a data processing method and a data processing device of the video networking.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
The video networking equipment can comprise a video networking server, a video networking switch (comprising an Ethernet gateway), a video networking terminal (comprising various set top boxes, coding boards, memories and the like), under the general condition, a plurality of video networking terminals can be connected to the video networking server through the video networking switch, the video networking terminal can be used for holding video conferences and playing video data in the video networking, if a user needs to intercept a currently played video image frame, the interception operation can be completed through the cooperation of a plurality of keys of a video networking remote control device, the operation is too complex, the steps are complex, and key response can cause certain time delay, and the use experience of the user aiming at the video networking terminal is reduced.
Disclosure of Invention
The embodiment of the invention provides a data processing method of a video network and a corresponding data processing device of the video network, aiming at solving the problems that the screenshot operation is completed by the cooperation of a plurality of keys of a remote control device of the video network, the steps are complicated, and the key response causes time delay.
In order to solve the above problems, an embodiment of the present invention discloses a data processing method for a video network, where the video network includes a video network terminal and a video network server, the video network terminal is connected to a video network remote control device, the video network terminal has a Frame Buffer interface, and the video network server includes an image folder, and the method includes:
the video networking remote control device sends a video playing instruction to the video networking terminal;
after receiving the video playing instruction, the video networking terminal sends the video request instruction to the video networking server;
the video networking server responds to the video request instruction and returns video data to the video networking terminal;
when the video data are played by the video network terminal, the video network terminal acquires bitmap data corresponding to the video data through the Frame Buffer interface;
the video network terminal sends the bitmap data to the video network server;
and the video network server stores the bitmap data into the image folder.
Preferably, when the video data is played by the video network terminal, the step of acquiring bitmap data corresponding to the video data by the video network terminal through the Frame Buffer interface includes:
when the video data is played by the video network terminal, the video network terminal acquires current image Frame data through the Frame Buffer interface;
the video network terminal acquires bit depth information of each pixel in the current image frame data;
the video network terminal converts the current image frame data into RGB image data according to the bit depth information;
and the video network terminal packages the RGB image data into bitmap data.
Preferably, the video network terminal includes a display device, and the step of acquiring the bit depth information of each pixel in the current image frame data by the video network terminal includes:
the video network terminal acquires pixel format information of the display device;
and the video network terminal acquires the bit depth information of each pixel in the current image frame data according to the pixel format information.
Preferably, the step of the video network terminal packaging the RGB image data into bitmap data comprises:
the video network terminal converts the RGB image data into color value data;
and the video network terminal adopts the color value data to construct bitmap data.
Preferably, the video network terminal further comprises a designated folder, and the method further comprises:
and the video network terminal stores the bitmap data into the specified folder.
The embodiment of the invention discloses a data processing device of a video network, wherein the video network comprises a video network terminal and a video network server, the video network terminal is connected with a video network remote control device, the video network terminal is provided with a Frame Buffer interface, the video network server comprises an image folder, and the device comprises:
the video playing instruction sending module is used for sending a video playing instruction to the video networking terminal by the video networking remote control device;
the video request instruction sending module is used for sending the video request instruction to the video network server by the video network terminal after receiving the video playing instruction;
the video data returning module is used for the video networking server to respond to the video request instruction and return video data to the video networking terminal;
the bitmap data acquisition module is used for acquiring bitmap data corresponding to the video data by the video network terminal through the Frame Buffer interface when the video network terminal plays the video data;
the bitmap data sending module is used for sending the bitmap data to the video network server by the video network terminal;
and the image folder storage module is used for storing the bitmap data into the image folder by the video network server.
Preferably, the bitmap data acquiring module includes:
the current image Frame data acquisition submodule is used for acquiring current image Frame data through the Frame Buffer interface by the video network terminal when the video network terminal plays the video data;
the bit depth information acquisition sub-module is used for the video network terminal to acquire the bit depth information of each pixel in the current image frame data;
the conversion submodule is used for converting the current image frame data into RGB image data by the video network terminal according to the bit depth information;
and the packaging submodule is used for packaging the RGB image data into bitmap data by the video network terminal.
Preferably, the video network terminal includes a display device, and the bit depth information obtaining sub-module includes:
the pixel format information acquisition unit is used for acquiring the pixel format information of the display device by the video network terminal;
and the bit depth information acquisition unit is used for acquiring the bit depth information of each pixel in the current image frame data by the video network terminal according to the pixel format information.
The embodiment of the invention also discloses electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data processing steps of the video network when executing the program.
The embodiment of the present invention further discloses a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the above-mentioned data processing steps of the video network.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the video network comprises a video network terminal and a video network server, the video network terminal is connected with a video network remote control device, the video network terminal is provided with a Frame Buffer interface, the video network server comprises an image folder, and the method comprises the following steps: the video networking remote control device sends a video playing instruction to the video networking terminal; after receiving the video playing instruction, the video network terminal sends the video request instruction to the video network server; the video networking server responds to the video request instruction and returns video data to the video networking terminal; when the video network terminal plays the video data, the video network terminal acquires bitmap data corresponding to the video data through the Frame Buffer interface; the video network terminal sends the bitmap data to the video network server; the video network server stores the bitmap data to the image folder; in the embodiment of the invention, the current image Frame data is acquired through the Frame Buffer interface, and then the current image Frame data is converted into the bitmap data, so that the function of one-key screenshot is realized, compared with the function of intercepting one Frame of video image data in a decoder, the speed is high, the image data of the whole display area (including a video image area and a non-video image area) can be intercepted, the screenshot efficiency is improved, the complicated operation of a user is reduced, and the use performance of the video network terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts;
FIG. 1 is a schematic diagram of a video networking of an embodiment of the present invention;
fig. 2 is a schematic diagram of a hardware structure of a node server according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a first embodiment of a method for processing data in a video network according to an embodiment of the present invention;
FIG. 6 is a flowchart of the steps of a second embodiment of a data processing method for a video network according to the present invention;
fig. 7 is a block diagram of an embodiment of a data processing apparatus of a video network according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the video networking technology adopts Packet Switching to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video network is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the large-scale high-definition video real-time transmission of the whole network which can not be realized by the current Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical movement of hard disk magnetic head tracking, the resource consumption only accounts for 20% of the same-grade IP internet, but the concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once, but also connected with a single user, a private network user or the sum of one network. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a central control function in the metropolitan area network and can control the node switch and the node server. The metropolitan area server can be directly connected with the node switch and can also be directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may interconnect and interwork via metropolitan and wide area video networks.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the packets coming from the network interface module 201, the cpu module 203 and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 according to the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, reading, writing, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switch engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2 byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be largely classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
On the basis of the basic characteristics of the video network, one of the core ideas of the embodiment of the invention is to acquire the current image Frame data through the Frame Buffer interface and convert the current image Frame data into bitmap data, so that the function of one-key screenshot is realized, the complicated operation of a user is reduced, the user experience is improved, and the use performance of a video network terminal is improved.
Referring to fig. 5, a flowchart illustrating a first step of a data processing method of an internet of view according to an embodiment of the present invention is shown, where the internet of view includes an internet of view terminal and an internet of view server, the internet of view terminal is connected to an internet of view remote control device, the internet of view terminal has a Frame Buffer interface, and the internet of view server includes an image folder, and the first step may specifically include the following steps:
step 501, the video networking remote control device sends a video playing instruction to the video networking terminal;
in the embodiment of the present invention, the video network includes a video network server and a video network terminal, the video network terminal may be a terminal that realizes functions such as video conference or monitoring through the video network, for example, the video network terminal may be a mobile terminal such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch, and the like), and the video network terminal is connected to the video network server through the video network.
In the embodiment of the present invention, an operating system of the terminal of the video network may be an Android system (Android system), further, the terminal of the video network is connected to a remote control device of the video network, and the remote control device of the video network may include an infrared remote control device, a radio remote control device, and the like, which is not limited in this embodiment of the present invention.
Specifically, the video networking terminal is provided with a Frame Buffer interface, the Frame Buffer interface is a driver interface (namely a video memory interface) in an inner core of an android system, and the Frame Buffer is abstracted by the Linux inner core of the android system to be used for a user mode process to realize direct screen writing. The Frame Buffer mechanism simulates the function of the display card, abstracts the hardware structure of the display card, and directly operates the display memory through reading and writing of the Frame Buffer interface. The Frame Buffer interface can be regarded as a mapping of a display memory, and after the mapping is mapped to a process address space, the read-write operation can be directly carried out, and the read-write operation can be immediately reflected on a display device of the terminal.
In this embodiment of the present invention, the video network server stores a plurality of folders, where the plurality of folders includes image folders, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the video network remote control device can send a video playing instruction to the video network terminal; specifically, the video network remote control device can send a video playing instruction to the video network terminal in the form of an infrared signal.
Step 502, after receiving the video playing instruction, the video networking terminal sends the video request instruction to the video networking server;
in further application to the embodiment of the present invention, after receiving the video playing command, the video networking terminal sends the video request command to the video networking server; that is, the video request command may be sent to the video networking server in the form of a video networking packet.
Step 503, the video network server returns video data to the video network terminal in response to the video request instruction;
in practical application to the embodiment of the present invention, the video network server may return video data to the video network terminal in response to the video request instruction, and when the video network terminal receives the video data, the video data may be played on a display device of the video network terminal.
Step 504, when the video network terminal plays the video data, the video network terminal obtains bitmap data corresponding to the video data through the Frame Buffer interface;
further, when the video data is played by the video network terminal, the video network terminal acquires bitmap data corresponding to the video data through the Frame Buffer interface; wherein the video data includes a video image area and a non-video image area of the display device.
Specifically, when the video data is played by the video network terminal, the video network terminal acquires current image Frame data through the Frame Buffer interface; then acquiring the bit depth information of each pixel in the current image frame data; then converting the current image frame data into RGB (three color channels) image data according to the bit depth information; and the video network terminal packages the RGB image data into bitmap data.
It should be noted that, the RGB image data may be converted into color value data and stored in an array, and Bitmap (Bitmap) data is constructed by using the color value data; further, if bit depth information of each Pixel in current image frame data needs to be acquired, the bit depth information needs to be acquired according to a Pixel Format (Pixel Format) of the display device.
Step 505, the terminal of the video network sends the bitmap data to the server of the video network;
in a preferred embodiment of the embodiments of the present invention, after the video network terminal obtains the bitmap data, the video network terminal sends the bitmap data to the video network server.
Step 506, the video network server stores the bitmap data to the image folder.
In practical application to the embodiment of the present invention, the video network server may store the bitmap data in the image folder, and when the video network terminal needs to view the bitmap data, the video network server may request the bitmap data.
In the embodiment of the invention, the video network comprises a video network terminal and a video network server, the video network terminal is connected with a video network remote control device, the video network terminal is provided with a Frame Buffer interface, the video network server comprises an image folder, and the method comprises the following steps: the video networking remote control device sends a video playing instruction to the video networking terminal; after receiving the video playing instruction, the video networking terminal sends the video request instruction to the video networking server; the video networking server responds to the video request instruction and returns video data to the video networking terminal; when the video network terminal plays the video data, the video network terminal acquires bitmap data corresponding to the video data through the Frame Buffer interface; the video network terminal sends the bitmap data to the video network server; the video network server stores the bitmap data to the image folder; in the embodiment of the invention, the current image Frame data is acquired through the Frame Buffer interface, and then the current image Frame data is converted into the bitmap data, so that the function of one-key screenshot is realized.
Referring to fig. 6, a flowchart of a second step of a data processing method for a video network according to an embodiment of the present invention is shown, where the video network includes a video network terminal and a video network server, the video network terminal is connected to a remote control device of the video network, the video network terminal has a Frame Buffer interface, and the video network server includes an image folder, and specifically includes the following steps:
601, the video networking remote control device sends a video playing instruction to the video networking terminal;
in the embodiment of the invention, the video network comprises a video network server and a video network terminal, the video network terminal can be a terminal for realizing the functions of video conference or monitoring and the like through the video network, and the video network terminal is connected with the video network server through the video network.
In a preferred embodiment of the present invention, an operating system of the video networking terminal may be an Android system, and further, the video networking terminal is connected to a video networking remote control device.
Specifically, the terminal of the video network has a Frame Buffer interface, the Frame Buffer interface is a driver interface (i.e., a video memory interface) in an inner core of an android system, and the video network server stores a plurality of folders, where the folders include image folders, which is not limited in this embodiment of the present invention.
In a specific application of the embodiment of the invention, the video network remote control device can send a video playing instruction to the video network terminal; specifically, the video network remote control device can send a video playing instruction to the video network terminal in the form of an infrared signal.
It should be noted that the video network remote control device can receive click events for single keys; the video network remote control device responds to the click event aiming at the single key and sends a video playing instruction to the video network terminal.
Step 602, after receiving the video playing instruction, the video networking terminal sends the video request instruction to the video networking server;
further, after receiving the video playing instruction, the video networking terminal sends the video request instruction to the video networking server; that is, the video request command may be sent to the video network server in the form of a video network data packet.
Step 603, the video network server responds to the video request instruction and returns video data to the video network terminal;
in an actual application of the embodiment of the invention, the video network server can respond to the video request instruction and return video data to the video network terminal, and when the video network terminal receives the video data, the video data can be played.
Step 604, when the video data is played by the video network terminal, the video network terminal acquires current image Frame data through the Frame Buffer interface;
specifically, when the video data is played by the video networking terminal, the video networking terminal acquires current image Frame data through the Frame Buffer interface, that is, when a screen capture instruction is received, the video networking terminal directly operates a display memory through reading and writing of the Frame Buffer interface to acquire the current image Frame data being played.
605, the video network terminal obtains the bit depth information of each pixel in the current image frame data;
in practical application, the view network terminal may obtain Pixel Format information (Pixel Format) of the display device; and then acquiring bit depth information (Bytes Per Pixel) of each Pixel in the current image frame data according to the Pixel format information.
In a preferred embodiment of the present invention, the video network terminal includes a display device, and the step of acquiring the bit depth information of each pixel in the current image frame data by the video network terminal includes the following substeps:
substep S6051, the video network terminal acquires pixel format information of the display device;
and a substep S6052, acquiring the bit depth information of each pixel in the current image frame data by the video network terminal according to the pixel format information.
Step 606, the terminal of the video network converts the current image frame data into RGB image data according to the bit depth information;
further, the video network terminal converts the current image frame data into RGB image data according to the bit depth information, where an image format of the current image frame data may be an ARGB image format, that is, an image format in which an Alpha (transparency) channel is added to an RGB color mode.
Step 607, the video network terminal packages the RGB image data into bitmap data;
specifically, in the embodiment of the present invention, the step of packaging the RGB image data into bitmap data by the terminal of the video network includes: the video network terminal converts the RGB image data into color value data; and the video network terminal adopts the color value data to construct bitmap data.
Namely, the video network terminal can convert the RGB image data into color value data and store the color value data in an array, and the color value data in the array is adopted to construct bitmap data.
In a preferred embodiment of the present invention, the video network terminal further includes a designated folder, and the method further includes: and the video network terminal stores the bitmap data into the specified folder.
Step 608, the terminal of the video network sends the bitmap data to the server of the video network;
in a preferred embodiment of the present invention, after the video network terminal obtains the bitmap data, the video network terminal sends the bitmap data to the video network server.
Step 609, the video network server stores the bitmap data to the image folder.
In practical application to the embodiment of the present invention, the video network server may store the bitmap data in the image folder, and when the video network terminal needs to view the bitmap data, the video network server may request the bitmap data.
In the embodiment of the invention, the video networking remote control device sends a video playing instruction to the video networking terminal; after receiving the video playing instruction, the video network terminal sends the video request instruction to the video network server; the video networking server responds to the video request instruction and returns video data to the video networking terminal; when the video data is played by the video network terminal, the video network terminal acquires current image Frame data through the Frame Buffer interface; the video network terminal acquires bit depth information of each pixel in the current image frame data; the video network terminal converts the current image frame data into RGB image data according to the bit depth information; the video network terminal packages the RGB image data into bitmap data; the video network terminal sends the bitmap data to the video network server; the video network server stores the bitmap data to the image folder; in the embodiment of the invention, the current image Frame data is obtained through the Frame Buffer interface, and then the current image Frame data is converted into the bitmap data, so that the one-key screenshot function is realized, compared with the method for intercepting a certain video image Frame data in a decoder, the image data of the whole display area (including a video image area and a non-video image area) can be intercepted, the screenshot efficiency is improved, the operation is fast and convenient, the complicated operation of a user is greatly reduced, and the use performance of a video network terminal is improved.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of a data processing apparatus of an internet of view according to an embodiment of the present invention is shown, where the internet of view includes an internet of view terminal and an internet of view server, the internet of view terminal is connected to an internet of view remote control apparatus, the internet of view terminal has a Frame Buffer interface, and the internet of view server includes an image folder, and may specifically include the following modules:
a video playing instruction sending module 701, configured to send a video playing instruction to the video networking terminal by the video networking remote control device;
a video request instruction sending module 702, configured to, after receiving the video playing instruction, send the video request instruction to the video networking server by the video networking terminal;
a video data returning module 703, configured to the video networking server to return video data to the video networking terminal in response to the video request instruction;
a bitmap data obtaining module 704, configured to, when the video network terminal plays the video data, obtain, by the video network terminal, bitmap data corresponding to the video data through the Frame Buffer interface;
a bitmap data sending module 705, configured to send the bitmap data to the video network server by the video network terminal;
an image folder storage module 706, configured to store the bitmap data in the image folder by the video network server.
Preferably, the bitmap data acquisition module includes:
the current image Frame data acquisition submodule is used for acquiring current image Frame data through the Frame Buffer interface by the video network terminal when the video network terminal plays the video data;
the bit depth information acquisition sub-module is used for the video network terminal to acquire the bit depth information of each pixel in the current image frame data;
the conversion submodule is used for converting the current image frame data into RGB image data by the video network terminal according to the bit depth information;
and the packaging submodule is used for packaging the RGB image data into bitmap data by the video network terminal.
Preferably, the video network terminal includes a display device, and the bit depth information obtaining sub-module includes:
the pixel format information acquisition unit is used for acquiring the pixel format information of the display device by the video network terminal;
and the bit depth information acquisition unit is used for acquiring the bit depth information of each pixel in the current image frame data by the video network terminal according to the pixel format information.
Preferably, the encapsulation sub-module comprises:
the color value data conversion unit is used for converting the RGB image data into color value data by the video network terminal;
and the construction unit is used for constructing bitmap data by the video network terminal by adopting the color value data.
Preferably, the terminal of the video network further comprises a designated folder, and the apparatus further comprises:
and the appointed folder storage module is used for storing the bitmap data into the appointed folder by the video network terminal.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiment of the invention also discloses electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data processing steps of the video network when executing the program.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the data processing of the video network are realized.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The data processing method and the data processing device of the video network provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A data processing method of video network is characterized in that the video network comprises a video network terminal and a video network server, the video network terminal is connected with a video network remote control device, the video network terminal is provided with a Frame Buffer interface, the video network server comprises an image folder, and the method comprises the following steps:
the video networking remote control device sends a video playing instruction to the video networking terminal;
after receiving the video playing instruction, the video networking terminal sends a video request instruction to the video networking server;
the video networking server responds to the video request instruction and returns video data to the video networking terminal;
when the video networking terminal plays the video data, the video networking terminal acquires bitmap data corresponding to the video data through the FrameBuffer interface; the video network terminal comprises a display device; the video data comprises a video image area and a non-video image area of a display device;
the video network terminal sends the bitmap data to the video network server;
the video network server stores the bitmap data to the image folder;
when the video network terminal plays the video data, the step that the video network terminal acquires bitmap data corresponding to the video data through the FrameBuffer interface comprises the following steps:
when the video data are played by the video network terminal through the display device, the video network terminal acquires current image frame data through the FrameBuffer interface; the video network terminal acquires bit depth information of each pixel in the current image frame data; the video network terminal converts the current image frame data into RGB image data according to the bit depth information; and the video network terminal packages the RGB image data into bitmap data.
2. The method according to claim 1, wherein the step of the video network terminal acquiring the bit depth information of each pixel in the current image frame data comprises:
the video network terminal acquires pixel format information of the display device;
and the video network terminal acquires the bit depth information of each pixel in the current image frame data according to the pixel format information.
3. The method as claimed in claim 1, wherein the step of the video network terminal packaging the RGB image data into bitmap data comprises:
the video network terminal converts the RGB image data into color value data;
and the video network terminal adopts the color value data to construct bitmap data.
4. The method of claim 1, wherein the video networking terminal further comprises a designated folder, the method further comprising:
and the video network terminal stores the bitmap data into the specified folder.
5. A data processing device of video network, wherein the video network comprises a video network terminal and a video network server, the video network terminal is connected with a video network remote control device, the video network terminal is provided with a Frame Buffer interface, the video network server comprises an image folder, the device comprises:
the video playing instruction sending module is used for sending a video playing instruction to the video networking terminal by the video networking remote control device;
the video request instruction sending module is used for sending a video request instruction to the video network server by the video network terminal after receiving the video playing instruction;
the video data returning module is used for the video networking server to respond to the video request instruction and return video data to the video networking terminal;
the bitmap data acquisition module is used for acquiring bitmap data corresponding to the video data through the FrameBuffer interface by the video network terminal when the video data is played by the video network terminal; the video network terminal comprises a display device; the video data comprises a video image area and a non-video image area of a display device;
the bitmap data sending module is used for sending the bitmap data to the video network server by the video network terminal;
the image folder storage module is used for storing the bitmap data into the image folder by the video network server;
the bitmap data acquisition module comprises:
the current image frame data acquisition sub-module is used for acquiring current image frame data through the FrameBuffer interface by the video network terminal when the video network terminal plays the video data through the display device;
the bit depth information acquisition sub-module is used for acquiring the bit depth information of each pixel in the current image frame data by the video network terminal;
the conversion submodule is used for converting the current image frame data into RGB image data by the video network terminal according to the bit depth information;
and the packaging submodule is used for packaging the RGB image data into bitmap data by the video network terminal.
6. The apparatus of claim 5, wherein the bit depth information obtaining sub-module comprises:
the pixel format information acquisition unit is used for acquiring the pixel format information of the display device by the video network terminal;
and the bit depth information acquisition unit is used for acquiring the bit depth information of each pixel in the current image frame data by the video network terminal according to the pixel format information.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of a method for data processing of a video network according to any of claims 1 to 4 are implemented by the processor when executing said program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method for data processing of a video network according to any one of claims 1 to 4.
CN201810265299.1A 2018-03-28 2018-03-28 Data processing method and device for video network Active CN110324656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810265299.1A CN110324656B (en) 2018-03-28 2018-03-28 Data processing method and device for video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810265299.1A CN110324656B (en) 2018-03-28 2018-03-28 Data processing method and device for video network

Publications (2)

Publication Number Publication Date
CN110324656A CN110324656A (en) 2019-10-11
CN110324656B true CN110324656B (en) 2022-11-08

Family

ID=68110016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810265299.1A Active CN110324656B (en) 2018-03-28 2018-03-28 Data processing method and device for video network

Country Status (1)

Country Link
CN (1) CN110324656B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7099569B2 (en) * 2002-02-11 2006-08-29 Sony Corporation Method and apparatus for efficiently allocating memory when switching between DVD audio and DVD video
CN102722590B (en) * 2012-06-25 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Terminal and image acquisition method
CN104616241A (en) * 2014-07-24 2015-05-13 腾讯科技(北京)有限公司 Video screen-shot method and device
CN104238863B (en) * 2014-08-29 2018-02-16 广州视睿电子科技有限公司 Android-based circle selection scaling method and system
CN105828146A (en) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 Video image interception method, terminal and server

Also Published As

Publication number Publication date
CN110324656A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN109640029B (en) Method and device for displaying video stream on wall
CN109302455B (en) Data processing method and device for video network
CN108881797B (en) Data processing method and device for video network
CN109547817B (en) Method and device for double-playing video networking video recording in Internet
CN109194915B (en) Video data processing method and system
CN108965930B (en) Video data processing method and device
CN111131754A (en) Control split screen method and device of conference management system
CN108574816B (en) Video networking terminal and communication method and device based on video networking terminal
CN109802952B (en) Monitoring data synchronization method and device
CN110149305B (en) Video network-based multi-party audio and video playing method and transfer server
CN109544879B (en) Alarm data processing method and system
CN110769179B (en) Audio and video data stream processing method and system
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110769297A (en) Audio and video data processing method and system
CN110519543B (en) Video telephone dialing method and device
CN108881793B (en) Data processing method and device for video network
CN108632635B (en) Data processing method and device based on video network
CN111447396A (en) Audio and video transmission method and device, electronic equipment and storage medium
CN110795008B (en) Picture transmission method and device and computer readable storage medium
CN110557594B (en) Video call processing method and device and storage medium
CN110620796B (en) Fingerprint information access method and device
CN110324656B (en) Data processing method and device for video network
CN109413436B (en) Data processing method and device for video network
CN109194896B (en) Calling method and system for video networking terminal
CN110474934B (en) Data processing method and video networking monitoring platform

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
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China