CN108184095B - Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium - Google Patents

Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium Download PDF

Info

Publication number
CN108184095B
CN108184095B CN201810015189.XA CN201810015189A CN108184095B CN 108184095 B CN108184095 B CN 108184095B CN 201810015189 A CN201810015189 A CN 201810015189A CN 108184095 B CN108184095 B CN 108184095B
Authority
CN
China
Prior art keywords
video
interface
format conversion
data
video data
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
CN201810015189.XA
Other languages
Chinese (zh)
Other versions
CN108184095A (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.)
Zhengcaiyun Co ltd
Original Assignee
Zhengcaiyun 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 Zhengcaiyun Co ltd filed Critical Zhengcaiyun Co ltd
Priority to CN201810015189.XA priority Critical patent/CN108184095B/en
Publication of CN108184095A publication Critical patent/CN108184095A/en
Application granted granted Critical
Publication of CN108184095B publication Critical patent/CN108184095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a data packaging method, a data processing device, a computing device and a storage medium, wherein the data processing method comprises the following steps: receiving a video request from a browsing terminal; calling a data type adaptation callable file according to the video request, and receiving a processing result of the data type adaptation callable file on the video request; sending the processing result to a browsing terminal; the method and the device can realize remote viewing and retrieval of video data, can make full use of the existing resources, do not need too much construction investment, and greatly reduce the cost.

Description

Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium
Technical Field
The present application relates to the field of video surveillance technology, and in particular, to a data encapsulation method, a data processing device, a computing device, and a storage medium.
Background
When a project is purchased and tendered, video monitoring equipment and corresponding monitoring software are installed on a general tendering site and are used for supporting local checking and retrieval, but accurate searching cannot be carried out according to project names and the like, remote checking and retrieval cannot be carried out, great inconvenience is brought to financial supervision users or suppliers, if a special line is adopted for direct passing, the cost of whole set of network construction and hardware construction is too high, and the workload is extremely huge and unrealistic when the video monitoring equipment and the corresponding monitoring software are spread to the tendering site of each district and county (city) from a provincial level.
Disclosure of Invention
In view of this, embodiments of the present application provide a data encapsulation method, a data processing method, an apparatus, a computing device, and a storage medium, so as to solve technical defects in the prior art.
The embodiment of the application discloses a data encapsulation method, which comprises the following steps:
setting a business interface, a format conversion interface, a video equipment interface and a video conversion algorithm for interacting with a browsing terminal;
setting a channel for communication among the service interface, the format conversion interface and the video equipment interface;
and packaging the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and the channel into a data type adaptation callable file.
In another aspect, the present application further provides a data processing method, including:
receiving a video request from a browsing terminal;
calling a data type adaptation callable file according to the video request, and receiving a processing result of the data type adaptation callable file on the video request;
sending the processing result to a browsing terminal;
the data type adaptation callable file is generated by packaging a service interface, a video conversion algorithm, a format conversion interface, the video equipment interface and a channel for communication among the service interface, the format conversion interface and the video equipment interface.
On the other hand, the present application also provides a data encapsulation apparatus, including:
the first setting module is used for setting a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm which are used for interacting with the browsing terminal;
the second setting module is used for setting a channel for communication among the service interface, the format conversion interface and the video equipment interface;
and the packaging module is used for packaging the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and the channel into a data type adaptation callable file.
In another aspect, the present application further provides a data processing apparatus, including:
the receiving module is used for receiving a video request from the browsing terminal;
the processing result receiving module is used for calling a data type adaptation calling file according to the video request and receiving a processing result of the data type adaptation calling file on the video request;
the sending module is used for sending the processing result to the browsing terminal;
the data type adaptation callable file is generated by packaging a service interface, a video conversion algorithm, a format conversion interface, a video equipment interface and a channel for communication among the service interface, the format conversion interface and the video equipment interface.
In another aspect, the present application also provides a computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the data encapsulation method.
In another aspect, the present application also provides a computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the data processing method.
In another aspect, the present application also provides a computer readable storage medium storing a computer program, which when executed by a processor implements the data packaging method or the steps of the data processing method as described above.
The application provides a data packaging method, a data processing device, a computing device and a storage medium, wherein the data processing method comprises the following steps: receiving a video request from a browsing terminal; calling a data type adaptation callable file according to the video request, and receiving a processing result of the data type adaptation callable file on the video request; sending the processing result to a browsing terminal; the data type adaptation callable file is generated by packaging a service interface, a video conversion algorithm, a format conversion interface, the video equipment interface and a channel for communication among the service interface, the format conversion interface and the video equipment interface; the method and the device can realize remote viewing and retrieval of video data, can make full use of the existing resources, do not need too much construction investment, and greatly reduce the cost.
Drawings
Fig. 1 is a flowchart of a data encapsulation method according to an embodiment of the present application;
FIG. 2 is a block diagram of a data type adaptation callable file according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 6 is a flowchart of a data processing method according to an embodiment of the present application.
Fig. 7 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data packaging apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 10 is a block diagram of a computing device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In the present application, the terms "first", "second", "third", "fourth", "fifth", and the like are used only for distinguishing one from another, and do not indicate importance levels, order, and the presence of one another.
In the present application, a data encapsulation method, a data processing method, an apparatus, a computing device, and a storage medium are provided, which are described in detail in the following embodiments one by one.
Referring to fig. 1, an embodiment of the present application provides a data encapsulation method, which includes steps 101 to 103.
Step 101: and setting a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm for interacting with the browsing terminal.
In the embodiment of the application, the browsing terminal may be a user, for example, a financial monitoring user or a supplier of a project purchasing bidding center, and the browsing terminal does not have the capability of the video conversion algorithm, needs to acquire a result returned by the video conversion algorithm, and finally realizes a function of presenting the result based on the result. The service interface is an interface for interacting with the browsing terminal, and is usually implemented by using a script language.
In the embodiment of the application, the browsing terminal transmits requirement parameters, such as the item number of the item video to be acquired and the format parameters of the receivable item video, by interacting with the service interface; the service interface controls video acquisition equipment (such as a camera) by interacting with the video equipment interface, and selects the video acquisition equipment to which the video data to be acquired belongs; the video equipment interface transmits video data acquired by appointed video acquisition equipment to the format conversion interface through interacting with the format conversion interface, and performs format conversion according to the video conversion algorithm; the business interface acquires a return result of the video conversion algorithm by interacting with the format conversion interface; and the service interface transmits the obtained return result to the browsing terminal. The specific device of the service interface can be set by those skilled in the art as appropriate according to the actual situation.
In the embodiment of the application, the video conversion algorithm is a bottom-layer algorithm for realizing format conversion of video data, and the video data acquired by the video acquisition equipment can be converted into the video data requested by the browsing terminal through the video conversion algorithm; the video conversion algorithm may employ a compiled language algorithm or an interpreted language algorithm.
In the embodiment of the present application, specific implementation manners of each interface may be implemented by any appropriate manner according to actual needs by those skilled in the art, and the embodiment of the present application does not limit this.
Step 102: and setting a channel for communication among the service interface, the format conversion interface and the video equipment interface.
In the embodiment of the application, data transmission, interaction, processing and the like can be performed among the interfaces through the communication channel. The communication channels may be in the form of parameter passing and/or interface calling between each other.
Optionally, the service interface is configured to control a video acquisition device to acquire the channel of the video data to be acquired through the video device interface.
Further, the service interface is set to select a channel of the video acquisition device to which the video data to be acquired belongs through the video device interface.
Optionally, the format conversion interface is configured to receive a channel of the video data acquired by the video acquisition device through the video device interface.
Optionally, a channel for format conversion of the received video data by the format conversion interface through the video conversion algorithm is set.
Optionally, a channel is set for the service interface to receive the video data after format conversion through the format conversion interface; the service interface may also manage the video conversion algorithm through the format conversion interface.
Optionally, the service interface is configured to receive the returned video data through the format conversion interface, and send the video data to a channel of the browsing terminal.
Step 103: and packaging the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and the channel into a data type adaptation callable file.
In the embodiment of the present application, the data type adaptation callable file may adopt any appropriate file form. By means of the file calling mode, the browser can directly load and call the data type to adapt to the file to be called for video format conversion processing, a video conversion algorithm does not need to be carried by the browser, details of the video conversion algorithm are not needed to be known, and therefore the format conversion of the video is more flexible and compatible.
In this embodiment of the application, a designated storage space may be further set for the video data acquired by the format conversion interface, and information of the storage space is encapsulated in the data type adaptation callable file, and specifically, the information of the storage space may be encapsulated in the data type adaptation callable file according to a preset time period.
It should be noted that, in practical applications, the video conversion algorithm and the interface and the channel are not limited to those described above, and those skilled in the art may also package other suitable interfaces or channels or functional components or functional modules into the data type adaptation callable file according to actual requirements.
According to the method and the device, a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm which interact with a browsing terminal, and a channel for communication among the service interface, the format conversion interface and the video equipment interface are packaged together to generate the data type adaptation callable file. The data type adaptation callable file can realize video data format conversion and storage functions, for any browsing terminal, the data type adaptation callable file is loaded and called, the browsing terminal only needs to interact with the data type adaptation callable file to realize the corresponding video data format conversion function, and the browsing terminal does not need to embed a video conversion algorithm and know the specific implementation details of the video conversion algorithm. Therefore, according to the scheme of the embodiment of the application, the video data in different formats acquired by different video acquisition devices can be converted into the video data format required by the browsing terminal, and the video data after format conversion can be stored on the cloud server or the company server selected autonomously, so that autonomous supervision is realized.
The data encapsulation method of the present embodiment may be implemented by any suitable device or apparatus with data processing function, including but not limited to various terminals and servers.
An example of a data type adaptation callable file implemented based on the above-mentioned process is shown in fig. 2, where the data type adaptation callable file in fig. 2 encapsulates a service interface (only one service interface is shown in fig. 2, and in practical application, multiple service interfaces may be included), multiple video conversion algorithms, a format conversion interface (in practical application, multiple format conversion interfaces corresponding to multiple video conversion algorithms may also be implemented), a video capture device, and a video device interface.
In the embodiment of the application, the browsing terminal may be provided with a browsing user 1, a browsing user 2, and a browsing user 3, and the browsing user 1, the browsing user 2, and the browsing user 3 interact with the service interface.
When a browsing terminal initiates a project video viewing request, the required parameters of the project video viewing request, such as the project number of the project video to be acquired and the format parameters of the requested project video, are transmitted through the service interface, and the video acquisition equipment to which the video data to be acquired belongs is opened. After the video data is acquired by the video acquisition device to which the video data to be acquired belongs, the video data is sent to the format conversion interface through the video device interface, after the video data is received by the format conversion interface, the format conversion interface performs format conversion on the received video data through the video conversion algorithm, such as the video conversion algorithm 1, the video conversion algorithm 2 or the video conversion algorithm 3, then returns the video data after the format conversion to the service interface through the format conversion interface, and the service interface transmits the video data to the browsing terminal.
According to the method and the device, a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm which interact with a browsing terminal, and a channel for communication among the service interface, the format conversion interface and the video equipment interface are packaged together to generate the data type adaptation callable file. The data type adaptation callable file can realize a video data format conversion function, for any browsing terminal, the data type adaptation callable file is loaded and called, the browsing terminal only needs to interact with the data type adaptation callable file to realize the corresponding video data format conversion function, and the browsing terminal does not need to embed a video conversion algorithm and know the specific implementation details of the video conversion algorithm. Therefore, according to the scheme of the embodiment of the application, the video data in different formats acquired by different video acquisition devices can be converted into the video data format required by the browsing terminal, and the video data after format conversion can be stored on the cloud server or the company server selected autonomously, so that autonomous supervision is realized.
The data encapsulation method of the present embodiment may be implemented by any suitable device or apparatus with data processing function, including but not limited to various terminals and servers.
Referring to fig. 3, an embodiment of the present application provides a data encapsulation method, including steps 301 to 303.
Step 301: and receiving a video request from the browsing terminal.
In the embodiment of the application, the video request carries at least one parameter, which may be a video name, time, or video recording location.
Step 302: and calling a data type adaptation callable file according to the video request, and receiving a processing result of the data type adaptation callable file on the video request.
In the embodiment of the application, the data type adaptation callable file is generated by encapsulating a service interface, a video conversion algorithm, a format conversion interface, the video equipment interface, and a channel for communication among the service interface, the format conversion interface, and the video equipment interface, wherein the service interface is a scripting language interface; the video format is a compiled language algorithm or an interpreted language algorithm.
In this embodiment, the data type adaptation callable file may be installed on a designated cloud server side or a company server side, such as a video server side of a purchasing center or an agency. The data type adaptation callable file can automatically adapt to the mainstream video monitoring equipment protocol in the market and carry out transmission or recording and broadcasting according to the designation.
Referring to fig. 4, in the embodiment of the present application, invoking a data type adaptation callable file according to the video request, and receiving a processing result of the data type adaptation callable file on the video request includes steps 401 to 405.
Step 401: and determining that the service interface selects the video acquisition equipment through the video equipment interface according to the preset corresponding relation between the project parameters in the video request and the video acquisition equipment.
In the embodiment of the application, the item parameter in the video request may be a video name, time, or video recording location. For example, when the video request is a video request for viewing a bid item, the item parameter may be an item number, an item name, or a bid location of the bid item.
In this embodiment of the application, the preset corresponding relationship is that a set of specified services is deployed on a server side in a matching manner, and includes a transmission specification or a recorded broadcast specification initiated to a data type adaptation callable file, for example, a video that needs to be transmitted or recorded broadcast is specified according to a specific number or time, and can be bound with a current bid-attracting project, so that it is ensured that a corresponding video can be retrieved according to a project number or bid-attracting time, and the like.
For example, the video request is a video requesting to bid on item a, the item number of item a: a1, the starting bidding time is: 14 points 1 month 1 day 2016; first, the correspondence between the bidding room and the cameras is configured in advance, that is, the camera 1 is installed in the bidding room B, and then the correspondence between the item number a1, the bidding time and the bidding room B is configured, that is, the item a is bidding in the bidding room B, so that the camera corresponding to the item can be retrieved through the item number or the bidding time of the bidding item, and when video data of the bidding item is acquired, the video data to be acquired can be accurately retrieved.
In practical application, the corresponding relation between parameters such as video recording places and the video acquisition equipment can be preset in advance, and the method is not limited in the application.
Step 402: and accessing the video equipment interface through the service interface to acquire the video data of the selected video acquisition equipment.
Step 403: and sending the format parameters in the video request to the format conversion interface through the service interface.
In the embodiment of the application, when the video request is received through the service interface, the format parameter of the video data requested to be received by the browsing terminal is received through the service interface at the same time, so that the browsing terminal can receive the adapted video data which can be viewed.
Step 404: and the format conversion interface receives the video data through the video equipment interface and performs format conversion on the video data through the video conversion algorithm according to the format parameters.
In the embodiment of the application, the format conversion is performed on the acquired video data of the specified video acquisition device through the video conversion algorithm according to the format parameters, and the video data is converted into the video data which can be viewed by the browsing terminal.
Step 405: and receiving the video data after format conversion returned by the format conversion interface.
In the embodiment of the present application, the service interface receives the returned video data after format conversion through the format conversion interface.
Step 303: and sending the processing result to a browsing terminal.
In the embodiment of the application, the service interface receives the video data after format conversion returned by the format conversion interface and sends the video data to the browsing terminal, and the browsing terminal can view or play the video data.
In the embodiment of the application, a specified storage space is set for the video data after format conversion returned by the format conversion interface, and the video data in the storage space is packaged into the data type adaptation callable file.
Further, the video data of the storage space may be packaged into the data type adaptation callable file according to a preset time period.
The data processing method provided by the embodiment of the application can realize remote viewing and retrieval of video data, can fully utilize the existing resources, does not need too much construction investment, and greatly reduces the cost.
Referring to fig. 5 and fig. 6, the embodiment of the present application will be described by taking the above-mentioned data processing method as an example for use in a bidding service, including steps 501 to 506.
Step 501: receiving an item video query request from a browsing terminal, wherein the item video query request carries an item number and a video format parameter of the video query request.
Step 502: and determining the equipment number of the video acquisition equipment selected by the service interface through the video equipment interface according to the preset corresponding relation between the project number and the video acquisition equipment.
Step 503: and accessing the video equipment interface through the service interface to acquire the video data of the video acquisition equipment corresponding to the equipment number.
Step 504: and sending the format parameters to the format conversion interface through the service interface, receiving the video data through the video equipment interface by the format conversion interface, and performing format conversion on the video data through the video conversion algorithm according to the format parameters.
Step 505: and returning the video data after format conversion through the format conversion interface according to the equipment number.
Referring to fig. 7, if the video request is a video recording and playing request, receiving an item video recording and playing request from a browsing terminal, where the item video recording and playing request carries an item number and a format parameter of a video of the video recording and playing request, completing format conversion of item video data to be recorded and played in the above steps, and then assigning a storage location for the converted video data, where the storage location may be on an autonomously selected cloud server or a company server, and specifically, the video data after format conversion may be stored according to a preset time period.
When the browsing terminal views the recorded and broadcast project video according to the request of the project number and the like, the project video can be directly acquired from the cloud server or the company server without format conversion and remote operation, and the acquisition time and the acquisition flow are saved.
The manufacturer video stream in fig. 6 and 7 is video data acquired by a video capture device (camera) of a manufacturer.
Step 506: and the browsing terminal receives and plays the video data after format conversion returned by the service interface.
The embodiment of the application can realize the configuration corresponding relation of the project, the bidding room and the video acquisition equipment, can retrieve the video acquisition equipment and the video of the specific bidding room through the project number, can also be connected with the mainstream video equipment in the market, does not need to dismantle the video equipment in the current bidding room, and can store the video stream on the cloud server or the company server selected autonomously to carry out autonomous control.
Referring to fig. 8, an embodiment of the present application provides a data encapsulation apparatus, including:
a first setting module 801, configured to set a service interface, a format conversion interface, a video device interface, and a video conversion algorithm for interacting with a browsing terminal;
a second setting module 802, configured to set a channel for communication among the service interface, the format conversion interface, and the video device interface;
an encapsulating module 803, configured to encapsulate the service interface, the video conversion algorithm, the format conversion interface, the video device interface, and the channel into a data type adaptation callable file.
Optionally, the apparatus further comprises:
and the third setting module is used for setting a channel of the video acquisition equipment to which the service interface selects the video data to be acquired through the video equipment interface.
Optionally, the second setting module 802 includes:
and the first channel setting submodule is used for setting a channel for the service interface to control the video acquisition equipment to acquire the video data to be acquired through the video equipment interface.
Optionally, the second setting module 802 includes:
and the second channel setting submodule is used for setting a channel for receiving the video data acquired by the video acquisition equipment through the format conversion interface by the video equipment interface.
Optionally, the second setting module 802 includes:
and the third channel setting submodule is used for setting a channel for the format conversion of the format conversion interface to the received video data through the video conversion algorithm.
Optionally, the second setting module 802 includes:
and the fourth channel setting submodule is used for setting a channel for the service interface to receive the video data after format conversion through the format conversion interface.
Optionally, the fourth channel setting sub-module is further configured to manage, by the service interface, the video conversion algorithm through the format conversion interface.
Optionally, the second setting module 802 includes:
and the fifth channel setting submodule is used for setting a channel for the business interface to receive the returned video data through the format conversion interface and send the video data to the browsing terminal.
Optionally, the service interface is a scripting language interface; the video conversion algorithm is a compiling language algorithm or an interpretation language algorithm.
Optionally, the apparatus further comprises:
and the storage module is used for setting a designated storage space for the video data acquired by the format conversion interface and packaging the information of the storage space into the data type adaptation callable file.
The data packaging device of the embodiment of the application can realize remote viewing and retrieval of video data, can make full use of the existing resources, does not need too much construction investment, and greatly reduces the cost.
The above is a schematic scheme of the data encapsulation apparatus of the present embodiment. It should be noted that the technical solution of the data packaging apparatus and the technical solution of the data packaging method belong to the same concept, and details that are not described in detail in the technical solution of the data packaging apparatus can be referred to the description of the technical solution of the data packaging method.
Referring to fig. 9, an embodiment of the present application provides a data processing apparatus, including:
a receiving module 901, configured to receive a video request from a browsing terminal;
a processing result receiving module 902, configured to call a data type adaptation callable file according to the video request, and receive a processing result of the data type adaptation callable file on the video request;
a sending module 903, configured to send the processing result to a browsing terminal;
the data type adaptation callable file is generated by packaging a service interface, a video conversion algorithm, a format conversion interface, a video equipment interface and a channel for communication among the service interface, the format conversion interface and the video equipment interface.
Optionally, the receiving module 901 is configured to receive a video request from a browsing terminal through the service interface.
Optionally, the processing result receiving module 902 includes:
the selection submodule is used for determining that the service interface selects the video acquisition equipment through the video equipment interface according to the preset corresponding relation between the project parameters in the video request and the video acquisition equipment;
the acquisition submodule is used for accessing the video equipment interface through the service interface so as to acquire the video data of the selected video acquisition equipment;
the sending submodule is used for sending the format parameters in the video request to the format conversion interface through the service interface;
the format conversion sub-module is used for receiving the video data through the video equipment interface by the format conversion interface and converting the format of the video data through the video conversion algorithm according to the format parameters;
and the receiving submodule is used for receiving the video data after the format conversion returned by the format conversion interface.
Optionally, the sending module 903 is further configured to receive, by the service interface, the video data after format conversion returned by the format conversion interface, and send the video data to the browsing terminal.
Optionally, the apparatus further comprises:
and the specified storage space module is used for setting a specified storage space for the video data after format conversion returned by the format conversion interface and packaging the video data in the storage space into the data type adaptation callable file.
Optionally, the specified storage space module is further configured to:
and packaging the video data of the storage space into the data type adaptation callable file according to a preset time period.
Optionally, the service interface is a scripting language interface; the video format is a compiled language algorithm or an interpreted language algorithm.
The data processing device of this application embodiment, can effectively utilize current equipment, reduce remote video monitoring's equipment construction cost by a wide margin, use the device when tendering the tender project, only need be in the current front end service tool of tendering the tender point installation promptly and handle result receiving module, the video just can be deposited on the server that can independently select, and is safer controllable, and can be according to the video in the accurate retrieval project tendering time quantum of project, can not lead to the video in the non-opening tender project time also to deposit and retrieve, lead to wasted space, can also make the video remote supervision who tenders the tender project, look over more conveniently, it is more directly perceived.
The above is a schematic arrangement of the data processing apparatus of the present embodiment. It should be noted that the technical solution of the data processing apparatus and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the data processing apparatus can be referred to the description of the technical solution of the data processing method.
The embodiment of the application provides a computer readable storage medium, which stores a computer program, and the program realizes the steps of the data packaging method when being executed by a processor.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data packaging method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data packaging method.
An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the steps of the data processing method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data processing method.
Referring to fig. 10, an embodiment of the present application provides a schematic structural diagram of a computing device, and a specific embodiment of the present application does not limit a specific implementation of the computing device.
The computing device may include: a processor (processor)1001, a communication interface (communication interface)1002, a memory (memory)1003, and a communication bus 1004.
Wherein:
the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other via a communication bus 1004.
A communication interface 1002 for communicating with other terminal devices or servers.
The processor 1001 is configured to execute the program 1005, and may specifically execute the relevant steps in the data encapsulation method embodiment.
In particular, program 1005 may include program code comprising computer operating instructions.
The processor 1001 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present application. The terminal device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 1003 stores a program 1005. The memory 1003 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 1005 may specifically be configured to enable the processor 1001 to execute the operations corresponding to the data encapsulation method described above.
In embodiments of the present application, the computing device may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. The computing device may also be a mobile or stationary server.
Referring to fig. 11, an embodiment of the present application provides a schematic structural diagram of a computing device, and a specific embodiment of the present application does not limit a specific implementation of the computing device.
The computing device may include: a processor (processor)1101, a communications interface 1102, a memory 1103, and a communication bus 1104.
Wherein:
the processor 1101, communication interface 1102, and memory 1103 communicate with each other via a communication bus 1104.
A communication interface 1102 for communicating with other terminal devices or servers.
The processor 1101 is configured to execute the program 1105, and may specifically execute relevant steps in the data processing method embodiment described above.
In particular, the program 1105 may include program code that includes computer operating instructions.
The processor 1101 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present application. The terminal device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
A memory 1103 for storing the program 1105. The memory 1103 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 1105 may specifically be configured to cause the processor 1101 to execute operations corresponding to the data processing method described above.
In embodiments of the present application, the computing device may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. The computing device may also be a mobile or stationary server.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (23)

1. A method of data encapsulation, comprising:
acquiring a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm, wherein the service interface is interacted with a browsing terminal;
acquiring a channel of the video acquisition equipment to which the service interface selects the video data to be acquired through the video equipment interface;
acquiring a channel for controlling a video acquisition device to acquire the video data to be acquired by the service interface through the video device interface;
acquiring a channel for receiving the video data acquired by the video acquisition equipment through the format conversion interface by the video equipment interface;
acquiring a channel for carrying out format conversion on the received video data through the video conversion algorithm by the format conversion interface;
acquiring a channel for the service interface to receive the video data after format conversion through the format conversion interface;
acquiring a channel for the business interface to receive the returned video data through the format conversion interface and sending the video data to the browsing terminal;
and packaging the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and all the obtained channels into a data type adaptation callable file for the browsing terminal to obtain the video data.
2. The method of claim 1, wherein setting up a channel for the service interface to receive format-converted video data via the format conversion interface further comprises:
and the service interface manages the video conversion algorithm through the format conversion interface.
3. The method of claim 1, wherein the service interface is a scripting language interface; the video conversion algorithm is a compiling language algorithm or an interpretation language algorithm.
4. The method of claim 1, further comprising:
and setting a designated storage space for the video data acquired by the format conversion interface, and packaging the information of the storage space into the data type adaptation callable file.
5. A data processing method, comprising:
receiving a video request of a monitoring video from a browsing terminal for bidding on the purchase of the project;
determining the equipment number of the video acquisition equipment selected by the service interface through the video equipment interface according to the preset corresponding relation between the project parameters in the video request and the video acquisition equipment;
accessing the video equipment interface through the service interface to acquire video data of the video acquisition equipment corresponding to the equipment number;
sending the format parameter in the video request to a format conversion interface through the service interface;
the format conversion interface receives the video data through the video equipment interface and performs format conversion on the video data through a video conversion algorithm according to the format parameters;
receiving the video data after format conversion returned by the format conversion interface;
sending the converted video data to a browsing terminal;
and the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and a channel for communication among the service interface, the format conversion interface and the video equipment interface are packaged to generate a data type adaptation callable file.
6. The method of claim 5, wherein receiving a video request from a browsing terminal comprises:
and receiving a video request from a browsing terminal through the service interface.
7. The method of claim 5, wherein sending the converted video data to a browsing terminal comprises:
and the service interface receives the video data after format conversion returned by the format conversion interface and sends the video data to the browsing terminal.
8. The method according to claim 5, wherein after receiving the format-converted video data returned by the format conversion interface, further comprising:
and setting a designated storage space for the video data after format conversion returned by the format conversion interface, and packaging the video data in the storage space into the data type adaptation callable file.
9. The method of claim 8, wherein encapsulating the video data of the storage space into the data type adaptation callable file comprises:
and packaging the video data of the storage space into the data type adaptation callable file according to a preset time period.
10. The method of claim 5, wherein the service interface is a scripting language interface; the video format is a compiled language algorithm or an interpreted language algorithm.
11. A data encapsulation device, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a service interface, a format conversion interface, a video equipment interface and a video conversion algorithm, and the service interface is interacted with a browsing terminal;
the second acquisition module is used for acquiring a channel of the video acquisition equipment to which the service interface selects the video data to be acquired through the video equipment interface;
the third acquisition module is used for acquiring a channel for the service interface to control the video acquisition equipment to acquire the video data to be acquired through the video equipment interface;
the fourth acquisition module is used for acquiring a channel for receiving the video data acquired by the video acquisition equipment through the format conversion interface;
a fifth obtaining module, configured to obtain a channel through which the format conversion interface performs format conversion on the received video data through the video conversion algorithm;
a sixth obtaining module, configured to obtain a channel through which the service interface receives the video data after format conversion through the format conversion interface;
a seventh obtaining module, configured to obtain a channel through which the service interface receives the returned video data through the format conversion interface, and send the video data to the browsing terminal;
and the packaging module is used for packaging the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and all the obtained channels into a data type adaptive callable file for the browsing terminal to obtain the video data.
12. The apparatus of claim 11, wherein the fourth channel setup submodule is further configured to manage the video conversion algorithm by the service interface through the format conversion interface.
13. The apparatus of claim 11, wherein the service interface is a scripting language interface; the video conversion algorithm is a compiling language algorithm or an interpretation language algorithm.
14. The apparatus of claim 11, further comprising:
and the storage module is used for setting a designated storage space for the video data acquired by the format conversion interface and packaging the information of the storage space into the data type adaptation callable file.
15. A data processing apparatus, comprising:
the receiving module is used for receiving a video request of a monitoring video from the browsing terminal aiming at project purchase bidding;
the determining module is used for determining the equipment number of the video acquisition equipment selected by the service interface through the video equipment interface according to the preset corresponding relation between the project parameters in the video request and the video acquisition equipment;
the acquisition module is used for accessing the video equipment interface through the service interface so as to acquire video data of the video acquisition equipment corresponding to the equipment number;
the sending parameter module is used for sending the format parameters in the video request to a format conversion interface through the service interface;
the conversion module is used for receiving the video data through the video equipment interface by the format conversion interface and carrying out format conversion on the video data through the video conversion algorithm according to the format parameters;
the receiving module is used for receiving the video data after the format conversion returned by the format conversion interface;
the sending module is used for sending the converted video data to the browsing terminal;
and the service interface, the video conversion algorithm, the format conversion interface, the video equipment interface and channels for communication among the service interface, the format conversion interface and the video equipment interface are generated by encapsulation.
16. The apparatus of claim 15, wherein the receiving module is configured to receive a video request from a browsing terminal through the service interface.
17. The apparatus of claim 15, wherein the sending module is further configured to receive, by the service interface, the format-converted video data returned through the format conversion interface, and send the video data to the browsing terminal.
18. The apparatus of claim 15, further comprising:
and the specified storage space module is used for setting a specified storage space for the video data after format conversion returned by the format conversion interface and packaging the video data in the storage space into the data type adaptation callable file.
19. The apparatus of claim 18, wherein the means for specifying storage space is further configured to:
and packaging the video data of the storage space into the data type adaptation callable file according to a preset time period.
20. The apparatus of claim 15, wherein the service interface is a scripting language interface; the video format is a compiled language algorithm or an interpreted language algorithm.
21. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the data packaging method according to any one of claims 1-4.
22. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the data processing method according to any one of claims 5-10.
23. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4 or 5 to 10.
CN201810015189.XA 2018-01-08 2018-01-08 Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium Active CN108184095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810015189.XA CN108184095B (en) 2018-01-08 2018-01-08 Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810015189.XA CN108184095B (en) 2018-01-08 2018-01-08 Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108184095A CN108184095A (en) 2018-06-19
CN108184095B true CN108184095B (en) 2020-05-05

Family

ID=62550062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810015189.XA Active CN108184095B (en) 2018-01-08 2018-01-08 Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108184095B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090486A (en) * 2007-06-25 2007-12-19 中国联合通信有限公司 Monitoring device for multimedium monitoring information and its monitoring method
CN102710965A (en) * 2012-05-29 2012-10-03 中国联合网络通信集团有限公司 Video monitoring data acquisition method and system and special bearing network
CN104683734A (en) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 Video surveillance content adaptation method, system, central server and device
CN106060459A (en) * 2016-05-30 2016-10-26 安徽四创电子股份有限公司 Protocol conversion system and method for camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101260167B1 (en) * 2011-07-28 2013-05-06 주식회사 엘지씨엔에스 Method and Apparatus for Distributing Video under Multi-channel, Video Management System Using The Same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090486A (en) * 2007-06-25 2007-12-19 中国联合通信有限公司 Monitoring device for multimedium monitoring information and its monitoring method
CN102710965A (en) * 2012-05-29 2012-10-03 中国联合网络通信集团有限公司 Video monitoring data acquisition method and system and special bearing network
CN104683734A (en) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 Video surveillance content adaptation method, system, central server and device
CN106060459A (en) * 2016-05-30 2016-10-26 安徽四创电子股份有限公司 Protocol conversion system and method for camera

Also Published As

Publication number Publication date
CN108184095A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN109963162B (en) Cloud directing system and live broadcast processing method and device
CN109152094B (en) Wireless network connection method for terminal
CN107608647A (en) One kind throws screen method, system, server and computer-readable recording medium
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN110099078A (en) Communication between devices, message synchronization method, apparatus, equipment and storage medium
CN102571726A (en) Multimedia data sharing method, system and state judgment server
CN109547824B (en) Video service method and system, storage medium and VPN server
CN110209842B (en) Multimedia file processing method, device, medium and electronic equipment
CN108549586B (en) Information processing method and device
CN113849179A (en) Artificial intelligence model publishing method and device
CN114465867B (en) Maintenance method and device of server, storage medium and processor
CN108536805A (en) web access method and device
CN103617028A (en) Collaborative document comment method and collaborative document comment device
US20190370293A1 (en) Method and apparatus for processing information
CN109194706A (en) Internet resources dial testing method and terminal
CN110113298A (en) Data transmission method, device, signal server and computer-readable medium
CN108184095B (en) Data packaging method, data processing method, data packaging device, data processing device, computing equipment and storage medium
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN111953718B (en) Page debugging method and device
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
US11200616B2 (en) Electronic file transmission method, device, system, and computer readable storage medium
CN112016280B (en) File editing method and device and computer readable medium
US20120198039A1 (en) Service linkage device, program, service linkage method, and service provision system
CN109413212A (en) Method and apparatus for handling request

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