CN117056287A - Multichannel video data processing method and device, storage medium and electronic device - Google Patents

Multichannel video data processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN117056287A
CN117056287A CN202311015197.1A CN202311015197A CN117056287A CN 117056287 A CN117056287 A CN 117056287A CN 202311015197 A CN202311015197 A CN 202311015197A CN 117056287 A CN117056287 A CN 117056287A
Authority
CN
China
Prior art keywords
video
target
channel
index file
time period
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.)
Pending
Application number
CN202311015197.1A
Other languages
Chinese (zh)
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.)
Hangzhou Huacheng Network Technology Co ltd
Original Assignee
Hangzhou Huacheng Network 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 Hangzhou Huacheng Network Technology Co ltd filed Critical Hangzhou Huacheng Network Technology Co ltd
Priority to CN202311015197.1A priority Critical patent/CN117056287A/en
Publication of CN117056287A publication Critical patent/CN117056287A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a method and a device for processing multichannel video data, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a first acquisition request for acquiring a video recorded by a first video channel in a specified time period, which is sent by a target client; acquiring a first-level index file based on the equipment identifier and the appointed time period, wherein the first-level index file is an index file of a plurality of second-level index files, and the second-level index file is an index file of a target video recorded by one video channel in the target time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and is matched with a designated time period, wherein the first target index file is a second level index file corresponding to a first video channel; and responding to the received first acquisition request, and sending the first channel video to the target client.

Description

Multichannel video data processing method and device, storage medium and electronic device
Technical Field
The present application relates to the field of video storage and playback, and in particular, to a method and apparatus for processing multichannel video data, a storage medium, and an electronic apparatus.
Background
Currently, multiple catalog image devices can be used to record video of the same scene through multiple angles, so as to facilitate backtracking of events occurring in the scene. The multi-catalog image equipment is provided with a plurality of video channels, and videos recorded by each video channel are respectively stored in the file storage system. When the video recorded by the multi-catalog image equipment needs to be played, the stored video recorded by each video channel needs to be searched from the file storage system, and the problem of complicated operation of video acquisition exists.
Therefore, the processing method of the multichannel video data in the related technology has the problem of complicated video acquisition operation.
Disclosure of Invention
The embodiment of the application provides a processing method and device of multichannel video data, a storage medium and an electronic device, which at least solve the problem of complicated video acquisition operation in the processing method of multichannel video data in the related technology.
According to an aspect of the embodiment of the present application, there is provided a method for processing multichannel video data, including: receiving a first acquisition request sent by a target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of a multi-catalog image device in a specified time period; acquiring a first-level index file based on the equipment identification of the multi-catalog equipment and the appointed time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in the plurality of video channels in the target time period containing the appointed time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with the specified time period, wherein the first target index file is a second level index file corresponding to the first video channel in the plurality of second level index files; and responding to the received first acquisition request, and sending the first channel video to the target client.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for multichannel video data, including: the first receiving unit is used for receiving a first acquisition request sent by the target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of the multi-catalog image equipment in a specified time period; an obtaining unit, configured to obtain a first-level index file based on a device identifier of the multi-catalog device and the specified time period, where the first-level index file is an index file of a plurality of second-level index files, and each of the plurality of second-level index files is an index file of a target video recorded by one video channel of the plurality of video channels in a target time period including the specified time period; the first execution unit is used for acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with the specified time period, wherein the first target index file is a second level index file corresponding to the first video channel in the plurality of second level index files; and the first sending unit is used for responding to the received first acquisition request and sending the first channel video to the target client.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described method for processing multichannel video recording data when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for processing multi-channel video data by using the computer program.
In the embodiment of the application, a first acquisition request sent by a target client is received by adopting a mode of acquiring index information of a target video step by step based on a first-level index file and further acquiring videos recorded by each video channel of a multi-catalog image device in a specified time period based on the index information of the target video, wherein the first acquisition request is used for requesting to acquire the videos recorded by a first video channel in a plurality of video channels of the multi-catalog image device in the specified time period; acquiring a first-level index file based on equipment identification of multi-catalog equipment and a designated time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in a plurality of video channels in a target time period containing the designated time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and is matched with a designated time period, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files; in response to the received first acquisition request, the first channel video is sent to the target client, and because the index information of the video recorded by each video channel of the multi-catalog image equipment and the index information of the index file corresponding to each video channel are respectively stored through two-stage index files, the video recorded by each video channel in a specified time period can be positioned through searching the index files step by step without searching all the videos stored by the file storage system, the flow of video acquisition (query) can be simplified, the technical effect of improving the video acquisition efficiency is achieved, and the problem of complex video acquisition operation in the processing method of the multi-channel video data in the related art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method for processing multichannel video data according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method for processing multichannel video data according to an embodiment of the application;
FIG. 3 is a flow chart of an alternative method for processing multichannel video data according to an embodiment of the application;
FIG. 4 is a flow chart of yet another alternative method for processing multichannel video recording data according to an embodiment of the application;
FIG. 5 is a flow chart of yet another alternative method for processing multichannel video recording data according to an embodiment of the application;
FIG. 6 is a flow chart of yet another alternative method for processing multichannel video recording data according to an embodiment of the application;
FIG. 7 is a block diagram of an alternative multi-channel video data processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an alternative electronic device according to an embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for processing multichannel video data is provided. Alternatively, in the present embodiment, the above-described method for processing multichannel video data may be applied to a hardware environment formed by the video recording device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the video recording device 102 through a network, and may be used to provide services (such as application services, etc.) for the video recording device 102 or clients to which the video recording device is bound, and a database may be provided on the server or independent of the server, for providing data storage services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The video recording apparatus 102 may not be limited to a camera or the like.
The method for processing multi-channel video data according to the embodiment of the present application may be performed by the server 104, or may be performed by a client bound by the server 104 and the video recording device 102, taking the method for processing multi-channel video data in the embodiment of the present application performed by the server 104 as an example, fig. 2 is a schematic flow diagram of an alternative method for processing multi-channel video data according to the embodiment of the present application, as shown in fig. 2, the flow of the method may include the following steps:
Step S202, a first acquisition request sent by a target client is received, where the first acquisition request is used to request to acquire video recorded by a first video channel of a plurality of video channels of a multi-video recording device in a specified time period.
The method for processing multichannel video data in this embodiment may be applied to a scenario in which video recorded by a plurality of video channels of a multi-video recording device is processed. Here, the multi-catalog image apparatus may be a multi-view camera, the plurality of video channels of the multi-catalog image apparatus may correspond to each camera of the multi-view camera, the plurality of video channels of the multi-catalog image apparatus may capture images or videos of different angles or different directions at the same time, and processing the videos recorded by the plurality of video channels of the multi-catalog image apparatus may be, but is not limited to, processing operations such as capturing (querying) the videos, playing the videos, storing the videos, managing the videos, and the like.
As in patent 1 (CN 105407307 a), a method, a system and a device for processing multichannel video recording data are disclosed, which mainly teach that video recording data of each channel is stored in a local video recording file according to a time period, and video recording data corresponding to a specified time period is searched from the local video recording file when the local video recording file is searched and played; reading video recording data corresponding to the designated channel identification from the searched data; the read video recording data is fed back to the client through one path of network connection, so that the storage operation can be simplified, and the network transmission resources can be saved.
However, in the method, video recording data are stored according to the independent multiple channel identifiers, and the video recording data of each channel are stored in one local video recording file, so that multiple video recording records are stored, the whole local video recording file needs to be traversed when inquiring and playing, and the problem of complex subsequent acquisition operation exists.
In order to at least partially solve the above problem, in this embodiment, for the video recorded by the plurality of video channels of the multi-catalog image device, the index information of the video recorded by each video channel of the multi-catalog image device and the index information of the index file corresponding to each video channel may be stored respectively by two levels of index files, and the index files may be searched step by step based on the first level of index file, so that the video recorded by each video channel in a specified time period may be located, so that it is unnecessary to traverse all the videos in the file storage system, and the process of video acquisition (query) may be simplified, thereby achieving the technical effect of improving the efficiency of video acquisition.
In this embodiment, when the user needs to acquire the video, the user may trigger the target client to send a first acquisition request for acquiring the target video to the server, and the server may send the target video to the target client after receiving the first acquisition request sent by the target client. The first obtaining request may be used to request to obtain a video recorded by a first video channel in the multiple video channels of the multiple video recording devices within a specified time period, where the first video channel may be one or more, and the specified time period may be a preset time period with any length and expressed in any format, for example, a month and a day of a year, and 10:00-11:00, and the indication information of the specified time period may be carried and sent in the first obtaining request, or may be sent to the server after the target client confirms that the server receives the first obtaining request, which is not limited in this embodiment.
For example, taking a multi-catalog image apparatus as a multi-catalog camera, a first video channel of the multiple video channels of the multi-catalog image apparatus may correspond to a target camera of the multiple cameras of the multi-catalog image apparatus, where a user wants to obtain video recorded by a first video channel a of the multiple video channels { A, B, C, … … } of the multi-catalog image apparatus on a month-of-year basis, and 1:00-2:00, the first obtaining request sent by the target client for requesting to obtain video recorded by the first video channel a of the multiple video channels { A, B, C, … … } of the multi-catalog image apparatus on a month-of-year basis may be received.
Step S204, based on the device identification of the multi-catalog device and the designated time period, a first-level index file is obtained, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in the plurality of video channels in the target time period including the designated time period.
Alternatively, the first acquisition request may carry a device identifier corresponding to the multi-catalog device. After the first acquisition request is acquired, a first-level index file may be acquired based on the device identifier of the multi-catalog device and the specified time period.
Here, the first-level index file is an index file of a plurality of second-level index files, each of the plurality of second-level index files is an index file of a target video recorded by one of the plurality of video channels within a target time period including a specified time period, and optionally, the target time period may correspond to a time period in which an event triggering the multi-catalog image apparatus to record occurs.
Because the multi-catalog image equipment triggers video recording based on the target event, when the first-level index file cannot be acquired based on the equipment identification of the multi-catalog image equipment and the appointed time period, the indication information for indicating that no target event occurs at the video recording angle corresponding to the first video recording channel in the appointed time period can be sent to the target client.
It should be noted that the index file itself typically does not contain data items. An index file is a file used to store and manage index information for data items, and its primary function is to provide a method for quickly finding and accessing data items. The index file generally comprises index keys (or called keywords) of the data items and corresponding pointers or position information, and the index keys are used for indicating positions or storage addresses of the data items in the data file.
For example, in the present embodiment, the first level index file is taken as a device level index file, and the second level index file is taken as a channel level index file as an example. When an event triggers the multi-catalog image equipment to record, the multi-channel video channels of the multi-catalog image equipment can send video streams to the video storage service at the same time, the server can store the video streams sent by each video channel into a plurality of video clip files and a channel-level index file, and after the video storage triggered by a single event is completed, an equipment-level index file can be packaged on the upper layer of the multi-channel video index file. The video is managed by the device level index file, i.e. based on the device identification and the specified time period of the multi-catalog device, the corresponding device level index file can be obtained.
Step S206, obtaining a first target index file according to index information of a first target index file recorded by the first level index file, and obtaining a first channel video according to index information matched with a specified time period and recorded by the first target index file, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files.
In this embodiment, the first level index file is an index file of a plurality of second level index files, and at least index information of the plurality of second level index files is recorded. The second-level index file is an index file of a target video recorded by one of a plurality of video channels of the multi-video recording apparatus within a target time period. Here, the index information includes at least a file name and a complete file path. The target time period may be an occurrence time period of an event triggering the multi-catalog device to record, the start time of the target time period corresponds to the start time of the event, and the end time of the target time period corresponds to the end time of the event.
When the target video is acquired based on the specified time period, the video recorded by all video channels of the multi-catalog image equipment in the time period matched with the specified time period can be acquired from the server, or the video recorded by part of video channels of the multi-catalog image equipment in the time period matched with the specified time period can be selectively acquired from the server.
In this embodiment, after the first-stage index file is obtained, the first target index file is obtained according to the index information of the first target index file recorded by the first-stage index file, where the first target index file is a second-stage index file corresponding to the first video channel in the plurality of second-stage index files. The first target index file records index information of a video file corresponding to the first video channel and matched with the designated time. According to the index information which is recorded by the first target index file and is matched with the appointed time period, a first channel video is obtained, wherein the first channel video can be a video of the target time period which comprises the appointed time period, the starting time of the first channel video corresponds to the starting time of an event which triggers the video of the multi-catalog image equipment, the ending time of the first channel video corresponds to the ending time of the event which triggers the video of the multi-catalog image equipment, the first channel video can also be a group of continuous video fragments which corresponds to the appointed time period, the starting time of the appointed time period corresponds to the first video fragment in the group of continuous video fragments, and the ending time of the appointed time period corresponds to the last video fragment in the group of continuous video fragments.
For example, in the case of camera a in which the first video channel corresponds to the plurality of cameras { A, B, C, … … }, the first target index file corresponds to the second-level index file (channel-level index file) corresponding to the first video channel. According to the index information of the first target index file recorded by the first level index file, the first target index file is obtained, and according to the index information which is recorded by the first target index file and matches with the specified time period, the first channel video is obtained, that is, the first level index file (equipment level index file) corresponding to the specified time period can be corresponding to a plurality of second level index files (channel level index files), the index information of a plurality of video clips is recorded in the second level index files (channel level index files), and the second level index files (channel level index files) can be corresponding to a plurality of video clips.
Step S208, the first channel video is sent to the target client in response to the received first acquisition request.
After receiving the first acquisition request sent by the target client, the server responds to the received first acquisition request and can send the first channel video to the target client.
Optionally, the first channel video may be a video of all video channels of the multi-catalog image device, or may be a video of part of video channels of the multi-catalog image device; the first channel video may be a video clip of a specified time period, or may be a video file containing a target time period of the specified time period.
Receiving a first acquisition request sent by a target client through the steps S202 to S208, where the first acquisition request is used to request to acquire video recorded by a first video channel of a plurality of video channels of a multi-catalog device in a specified time period; acquiring a first-level index file based on equipment identification of multi-catalog equipment and a designated time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in a plurality of video channels in a target time period containing the designated time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and is matched with a designated time period, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files; in response to the received first acquisition request, the first channel video is sent to the target client, so that the problem of complicated video acquisition operation in a processing method of multichannel video data in the related technology is solved, and the video acquisition efficiency is improved.
In an exemplary embodiment, obtaining the first channel video according to the index information recorded in the first target index file and matched with the specified time period includes:
s11, determining a group of target index information matched with a specified time period in index information recorded in a first target index file, wherein each index information in the first target index file is index information of a video clip recorded by a first video channel in a sub-time period of the target time period, and the group of target sub-time periods corresponding to the group of target index information comprise the specified time period;
s12, according to each target index information in the group of target index information, target video clips matched with each target index information are respectively obtained, and a group of target video clips are obtained, wherein the first channel video includes a group of target video clips.
Similar to the previous embodiments, the first target index file is a second-level index file corresponding to the first video recording channel among the plurality of second-level index files. The first target index file records index information of a video file corresponding to the first video channel, which matches a specified time, for example, a video file name, a file path, and the like.
And respectively acquiring the target video clips matched with each target index information according to each target index information in the set of target index information by determining the set of target index information matched with the designated time period in the index information recorded by the first target index file, so as to obtain a set of target video clips. The target index information is index information of video clips recorded by the first video channel in a sub-time period of the target time period.
Here, the target period is similar to the previous embodiment, and a description thereof will be omitted. It should be noted that, in this embodiment, a video clip is generated according to the number of video code stream frames, video data is stored in the form of video clips, the video frames carry frame time stamps, and the start time and the end time of a plurality of video clips corresponding to the second index file can be recorded in the target database.
For example, in the case that the specified time period is a month, and the specified time period is a day, and the time period of the video recorded by the multiple video recording devices is a day 12:30-18:00, the multiple video recording segments corresponding to the video recording may be the same time length or different time lengths, in this embodiment, the same time length of the video recording segments is taken as an example, and if the time length (sub-time period) of the video recording segments is 30 minutes, the obtained first channel video recording is 13:00-13:30, 13:30-14:00, 14:00-14:30 video clips.
According to the embodiment, the channel video is stored in the mode of video clips, and the video clips are acquired based on the matching of time periods, so that the required video is obtained, and the video acquisition efficiency can be improved.
In an exemplary embodiment, after the first channel video is sent to the target client, the method further includes:
s21, receiving a second acquisition request sent by a target client in a preset time, wherein the second acquisition request is used for requesting to acquire video recorded by a second video channel in a plurality of video channels in a specified time period;
s22, acquiring a second target index file according to index information of a second target index file recorded by the first level index file, and acquiring a second channel video according to index information which is recorded by the second target index file and matched with a designated time period, wherein the second target index file is a second level index file corresponding to a second video channel in a plurality of second level index files;
s23, responding to the received second acquisition request, and sending the second channel video to the target client.
Considering that events need to be observed from multiple angles corresponding to multiple video channels of the multi-catalog image equipment, when the video of the first channel is acquired based on the first-level index file, users may need to acquire video of other channels based on the first-level index file, and based on this, the buffer time of the first-level index file can be preset.
If the second acquisition request sent by the target client for requesting to acquire the video recorded by the second video channel in the specified time period is received within the preset cache time, the first-stage index file cached during the video recording of the first channel can be directly used for acquiring the second target index file according to the index information of the recorded second target index file, and the second channel video is acquired according to the index information which is recorded by the second target index file and is matched with the specified time period, wherein the second target index file is a second-stage index file corresponding to the second video channel in the second-stage index files; in response to the received second acquisition request, the server may send the second channel video to the target client, and the user may acquire (view) the corresponding video clip.
For example, in this embodiment, taking the example of the multi-camera { A, B, C … … }, in the case of obtaining the video recorded by the camera a in the specified period of time, month, and month according to the first-stage index file, if the request for obtaining the video recorded by the camera B in the specified period of time, month, and month is received in the preset time, the cached first-stage index file may be directly used for performing the subsequent processing.
According to the embodiment, for the obtained first-level index file, when a new video obtaining request is received, if the stored first-level index file is needed, the stored first-level index file can be directly used, and information obtaining efficiency is improved.
In an exemplary embodiment, before receiving the second acquisition request sent by the target client, the method further includes:
s31, playing a first channel video through a first player in a video playing window of the target client;
s32, responding to the detected channel switching operation, and sending a second acquisition request to a video storage server, wherein the channel switching operation is used for triggering switching of channel video displayed by a video playing window into video recorded by a second video channel in a specified time period;
after sending the second channel video to the target client, the method further comprises:
s41, receiving a second channel video returned by the video storage server;
s42, playing the second channel video through a second player in the video playing window.
In this embodiment, the video playing window of the target client may include a plurality of players, and the channel video played by one player may be switched based on the requirement, so that the plurality of players may play different channel videos at the same time.
Switching the channel video played by the current player: after the first channel video is acquired and before the second acquisition request is sent, the first channel video can be played by a first player in a video playing window of the target client, and under the condition that a user triggers a channel switching operation of switching the channel video displayed in the video playing window to the video recorded by the second video channel in a specified time period, the second acquisition request can be sent to the video storage server to acquire the video recorded by the second video channel in the specified time period, so that the first player in the video playing window plays the second channel video.
After the second channel video is sent to the target client, the second channel video returned by the video storage server can be received, and the second channel video is played through a second player in the video playing window. Here, the second player may be the same player as the first player, or may be a different player, and the first channel video may not be displayed, may be paused, or may be synchronously played while the second channel video is played by the second player in the video playing window.
According to the embodiment, on the client side, video of one channel or a plurality of channels played in a display window of the client can be switched (the second video channel can be a plurality of channels), so that flexible control of video of different channels of the multi-catalog image equipment is realized, and user experience is improved.
In an exemplary embodiment, before receiving the first acquisition request sent by the target client, the method further includes:
s51, receiving multiple paths of video streams sent by multiple video recording devices, wherein each path of video stream in the multiple paths of video streams is a video stream obtained by video recording through one video channel in a plurality of video channels;
s52, storing each video stream in the multiple video streams as multiple video segments according to the preset frame number, wherein the preset frame number corresponds to one sub-time period of the target time period;
s53, generating and storing second-level index files corresponding to each video stream according to file information and storage paths of a plurality of video clips corresponding to each video stream, and obtaining a plurality of second-level index files;
s54, generating and storing a first-level index file according to the file information and the storage path of each second-level index file;
S55, adding a target record index into a target database, wherein the target record index is used for recording the corresponding relation among the equipment identifier of the multi-catalog image equipment, the file information of the first-stage index file and the storage path.
In this embodiment, when the multi-catalog image apparatus has video generation, the multi-channel video stream may be sent to the video storage server, and the video storage server may store the multi-channel video streams synchronously, where each of the multi-channel video streams is a video stream obtained by recording video in one of the plurality of video channels.
And receiving the multi-path video stream sent by the multi-catalog image equipment, wherein each path of video stream in the multi-path video stream can be stored as a plurality of video clips according to the number of preset frames, the number of the preset frames corresponds to one sub-time period of the target time period, the starting time of the sub-time period corresponds to the time stamp of the first frame of the video clip, and the ending time of the sub-time period corresponds to the time stamp of the last frame of the video clip. One sub-time period corresponds to one video clip, and the target time period corresponds to one complete video, i.e. one video recorded continuously by the multi-catalog image equipment can correspond to an occurrence time period of an event triggering the multi-catalog image equipment to record.
According to the file information and the storage path of the video clips corresponding to each video stream, a second-level index file corresponding to each video stream can be generated and stored to obtain a plurality of second-level index files, and the file information of the video clips can include, but is not limited to, the name of the video clip, the starting time, the ending time and the equipment identifier. The first level index file may be generated and stored according to file information of each second level index file and a storage path, and the file information of the second level index file may include, but is not limited to, a file name. The first-level index file, the second-level index file, and the video clip file may be stored in a file cloud storage system corresponding to the video storage server.
Optionally, a target record index is added in the target database, wherein the target record index is used for recording the corresponding relation among the equipment identifier of the multi-catalog image equipment, the file information of the first-level index file and the storage path. Here, the target database may be a relational database, such as MySQL, or an ES database, which is not limited in this embodiment. For example, when the client queries the target video, the client may query the target record index from the target database based on the device identifier and the designated time period, determine a storage path of the first-level index file corresponding to the target video, obtain the first-level index file from the file cloud storage system corresponding to the video storage server based on the storage path of the first-level index file, and locate the video recorded by each video channel by searching the index file step by step.
According to the embodiment, the video clips are stored according to the number of frames, the video records (target record indexes) are stored in the target database, the first-level index file, the second-level index file and the video clip files are stored in the file cloud storage system, so that the video records can be positioned to a specific one through equipment identification and a designated time period, and the video clips stored in the file storage system can be positioned step by step according to the video records.
In an exemplary embodiment, after receiving the first acquisition request sent by the target client, the method further includes:
s61, extracting downloading authorization information from the first acquisition request, wherein the downloading authorization information is used for indicating to authorize downloading of the video recorded by the first video channel in a specified time period;
s62, determining to allow downloading of the video recorded by the first video channel in a specified time period when the download authorization information is checked to pass.
In this embodiment, the first obtaining request may carry download authorization information to instruct the video storage system to authorize downloading of the video recorded by the first video channel of the multi-catalog device in the specified time period, and for the server, when the download authorization information is extracted from the first obtaining request and the download authorization information is checked, it may be determined that the downloading of the video recorded by the first video channel in the specified time period is allowed, and then the downloaded video recorded by the first video channel in the specified time period is sent to the target client for subsequent processing by the user.
For example, in this embodiment, the target client sends the first acquisition request to the video storage system, and based on the download authorization information extracted from the first acquisition request, the video storage system may determine to allow downloading of the video recorded by the first video channel in the specified period of time if the download authorization information is checked.
According to the embodiment, based on one-time authorization, the index files and the video files of each level are acquired, so that the video acquisition process can be simplified.
In an exemplary embodiment, after the first channel video is sent to the target client, the method further includes:
s71, synchronously playing a plurality of first channel videos through a plurality of players in a video playing window of a target client under the condition that the plurality of first channel videos are provided, wherein each player in the plurality of players is used for playing one first channel video respectively;
s72, in response to the detected play control operation executed on the target player in the plurality of players, adjusting the first channel video played by the target player, and synchronously adjusting the first channel video played by other players except the target player in the plurality of players.
Currently, as in patent 2 (CN 104618673 a), a method and a device for controlling synchronous playback of multiple video recordings based on NVR (Network Video Recorder, network hard disk recorder) are disclosed, and mainly speaking, multiple devices are connected under the NVR; when the video frame passes through NVR, a frame header (NVR system time) is added to ensure the frame information time of the output video stream, the added frame header time information is used for calculating video playing synchronization time, and a synchronization playing mechanism is as follows: traversing the receiving time carried by the packet header of the frame data to be played back of each channel, and taking the video frame in the channel A with the minimum difference between the receiving time and the starting time as a reference frame I0; judging whether the receiving time carried by the packet header in other channel videos is the same as the receiving time carried by the packet header of the reference frame I0; if the video frame exists, playing the video frame synchronously with the reference frame I0, and if the video frame does not exist, searching a video frame with the receiving time closest to the receiving time carried by the reference frame I0 and carried by the video frame in each channel; and confirming that the receiving time difference value between the nearest video frame on each channel and the reference frame I0 is within a preset threshold value, and playing synchronously with the reference frame I0.
However, the method uses playing of a certain channel as a reference, and obtains code streams of other channel times according to the reference video frame time to realize synchronous playing, and synchronous control cannot be realized. For example: synchronous fast forward, pause, resume, double speed, drag progress bar play, etc.
In order to at least partially solve the above-mentioned problem, in this embodiment, after the target client receives the first channel video, if the first channel video is multiple, multiple first channel videos may be synchronously played by multiple players in the video playing window of the target client, where each player in the multiple players is used to play one first channel video.
In the case of the detected play control operation performed on the target player of the plurality of players, in response to the detected play control operation, for example, play, pause, fast forward, and the like, the first channel video played by the target player is correspondingly adjusted according to the play control operation, and simultaneously, the first channel video played by other players except the target player of the plurality of players is synchronously adjusted, so that synchronous control of the plurality of channel videos corresponding to the plurality of players is realized.
For example, as shown in fig. 3, in this embodiment, the multi-channel synchronous playing mechanism may include the following steps:
s302, multichannel synchronization processing: double-speed playing, progress bar playing, pausing, fast forwarding and the like;
s304, selecting and controlling all channels or single channel video playback operation (pause, double speed play, etc.);
S306, aiming at the video playback of the multi-view equipment, the video playback is played in the same player, the playing channel and the number of the played view are freely switched in the playing process, and all video operations are synchronous.
According to the embodiment, the synchronous control of the multichannel video playback can be realized based on the multichannel synchronous play mechanism, so that the completeness of the video data of the multi-catalog video equipment acquired by a user is improved, and the use experience of the user is improved.
The following explains the processing method of the multichannel video data in the embodiment of the application with reference to an alternative example. In this alternative example, the processing of the multichannel video data is to acquire (query) the video data, the multi-catalog image device is a multi-catalog camera, the first-stage index file is a device-stage index file, and the second-stage index file is a channel-stage index file.
At present, video recording devices such as security cameras are widely used, and after binding with a client app (Application program), a user can query and operate the video through the client. With the development of upgrading hardware devices, multiple cameras have been presented, i.e. multiple cameras are presented on one device. When the event triggers video recording, the cameras can record videos at the same time and send the recorded videos to the back-end server for storage. However, at present, the videos recorded by the multiple cameras are respectively stored according to the multiple independent channels corresponding to the multiple cameras, and since the multiple video records are stored, the subsequent playing and inquiring operations are complicated, and the video files of the multiple channels cannot be synchronously operated, for example, the multiple catalog images cannot be synchronously stored and played, so that a better product experience effect is achieved.
In order to at least partially solve the above-mentioned problem, in this optional example, the video produced by the multi-camera is converged into a file system with a recursive structure through a video storage system (including a video storage server and a corresponding file storage system, video storage index database), and only one video record index is needed to be saved in the multi-catalog image data triggered by one event, so that the video query and operation flow can be simplified.
The flow of the processing method of the multichannel video data in this alternative example may be as shown in fig. 4, and may include the following steps:
step S402, storing the recorded video of each video channel of the multi-video recording device.
As shown in fig. 5, taking a 4-mesh camera of an intelligent device as an example, the camera 1, the camera 2, the camera 3 and the camera 4 of the intelligent device can send video streams to a video storage server for multiplexing video and simultaneously, the server can store the video streams as video clip files and channel level index files according to the number of frames, and after single video generation is completed (i.e. one event triggering of multiple directory images is completed), an upper layer of the multiplexed video index files needs to be packaged with a device level index file. The video is managed through the device-level index files, the final index is stored in the video index storage, and 1 device-level index file, a plurality of channel-level index files and a plurality of video files are finally stored in the cloud storage (file storage system).
Step S404, obtaining and playing the video recorded by the target video channel of the multi-catalog device at the target time.
The client acquires the information of the video index file according to the time; and authorizing downloading and analyzing the device-level index file, loading the number of channels to be played and downloading video clips according to 1 or more channels to be played, switching the playing channels to 1 or more during playing, downloading and decoding in sequence, playing synchronously, and controlling the player to synchronously fast forward, pause, resume, double speed, pull progress bar playing and the like.
Here, the client may only perform one interaction to acquire the target video clip from the video storage system, that is, the client sends a target video acquisition request to the video storage system, and the video storage system returns the target video to the client, or as shown in fig. 6, the client performs multiple interactions with the video storage system, and the client queries the video according to time, and the video storage system returns the video index file; when the client plays, the video storage system is authorized to download the video clips, and returns a device-level index file download URL (Uniform Resource Locator ); the client analyzes the equipment-level index files, acquires a plurality of channel-level index files, authorizes the video storage system to download the channel-level index files, and returns a channel-level index file downloading URL; the client analyzes the channel-level index file, acquires a plurality of video clip files according to a channel to be played, authorizes the video storage system to download the video clip files, and returns the video storage system to the video clip URL; and loading the number of players according to the number of the channel-level index files by the client, and playing according to the sequence of the video clips.
A URL is a type of string used to identify the location of a resource on the internet. In the video clip URL, the URL is used to specify a network address of the video clip file so that the video clip file is acquired and played in the player. The URL may be a link directly to a video clip file or a link to a playlist file containing a plurality of media files. Through the URL, the player can access and load the video clip file and play it.
By the alternative example, videos generated according to the multi-camera are converged into a file system with a recursive structure through the video storage system, and only one video record index is needed to be stored and used for later query operation and the like, so that a multi-channel video storage mechanism can be simplified, video query and operation flow can be simplified; the multi-view camera can play the video of 1 channel or a plurality of channels simultaneously in the same window according to the index file, and can freely switch 1 channel or a plurality of channels according to the channel index during playing, control the multi-channel playing to play synchronously, pause, fast forward and double-speed playing in time, namely synchronously control the video playback, control the number of playing channels and freely switch during playing, and keep the integrity of the video of the equipment aiming at the multi-view equipment.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM (Read-Only Memory)/RAM (Random Access Memory), magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for multi-channel video data for implementing the above-mentioned processing method for multi-channel video data. Fig. 7 is a block diagram of an alternative apparatus for processing multichannel video data according to an embodiment of the present application, and as shown in fig. 7, the apparatus may include:
a first receiving unit 702, configured to receive a first acquisition request sent by a target client, where the first acquisition request is used to request to acquire a video recorded by a first video channel of a plurality of video channels of a multi-catalog device in a specified time period;
an obtaining unit 704, coupled to the first receiving unit 702, configured to obtain a first level index file based on a device identifier of the multi-catalog image device and a specified time period, where the first level index file is an index file of a plurality of second level index files, and each of the plurality of second level index files is an index file of a target video recorded by one video channel of the plurality of video channels in a target time period including the specified time period;
the first execution unit 706 is connected to the obtaining unit 704, and configured to obtain a first target index file according to index information of a first target index file recorded in the first level index file, and obtain a first channel video according to index information recorded in the first target index file and matched with a specified time period, where the first target index file is a second level index file corresponding to the first video channel in the plurality of second level index files;
The first sending unit 708 is connected to the first executing unit 706, and is configured to send the first channel video to the target client in response to the received first acquisition request.
It should be noted that, the first receiving unit 702 in this embodiment may be used to perform the above-mentioned step S202, the obtaining unit 704 in this embodiment may be used to perform the above-mentioned step S204, the first performing unit 706 in this embodiment may be used to perform the above-mentioned step S206, and the first transmitting unit 708 in this embodiment may be used to perform the above-mentioned step S208.
Receiving a first acquisition request sent by a target client through the module, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of the multi-catalog image equipment in a specified time period; acquiring a first-level index file based on equipment identification of multi-catalog equipment and a designated time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in a plurality of video channels in a target time period containing the designated time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and is matched with a designated time period, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files; in response to the received first acquisition request, the first channel video is sent to the target client, so that the problem of complicated video acquisition operation in a processing method of multichannel video data in the related technology is solved, and the video acquisition efficiency is improved.
In one exemplary embodiment, the first execution unit includes:
the determining module is used for determining a group of target index information matched with a specified time period in index information recorded by the first target index file, wherein each index information in the first target index file is index information of a video clip recorded by the first video channel in a sub-time period of the target time period, and the group of target sub-time periods corresponding to the group of target index information comprise the specified time period;
the acquisition module is used for respectively acquiring target video clips matched with each target index information according to each target index information in the group of target index information to obtain a group of target video clips, wherein the first channel video comprises the group of target video clips.
In an exemplary embodiment, the above apparatus further includes:
the second receiving unit is used for receiving a second acquisition request sent by the target client in a preset time after the first channel video is sent to the target client, wherein the second acquisition request is used for requesting to acquire video recorded by a second video channel in the plurality of video channels in a specified time period;
The second execution unit is used for acquiring a second target index file according to the index information of the second target index file recorded by the first level index file, and acquiring a second channel video according to the index information which is recorded by the second target index file and matched with the designated time period, wherein the second target index file is a second level index file corresponding to a second video channel in a plurality of second level index files;
and the second sending unit is used for responding to the received second acquisition request and sending the second channel video to the target client.
In an exemplary embodiment, the above apparatus further includes: the first playing unit is used for playing the first channel video through a first player in a video playing window of the target client before receiving the second acquisition request sent by the target client; the third sending unit is used for responding to the detected channel switching operation and sending a second acquisition request to the video storage server, wherein the channel switching operation is used for triggering the channel video displayed by the video playing window to be switched to video recorded by the second video channel in a specified time period;
the device further comprises: the third receiving unit is used for receiving the second channel video returned by the video storage server after the second channel video is sent to the target client; the second playing unit is used for playing the second channel video through a second player in the video playing window.
In an exemplary embodiment, the above apparatus further includes:
a fourth receiving unit, configured to receive multiple video streams sent by the multiple video devices before receiving the first acquisition request sent by the target client, where each video stream in the multiple video streams is a video stream obtained by performing video recording on one video channel in the multiple video channels;
the storage unit is used for respectively storing each video stream in the multiple video streams into multiple video segments according to the number of preset frames, wherein the number of the preset frames corresponds to one sub-time period of the target time period;
the third execution unit is used for generating and storing second-level index files corresponding to each video stream according to the file information and the storage path of a plurality of video clips corresponding to each video stream to obtain a plurality of second-level index files;
the fourth execution unit is used for generating and storing the first-stage index file according to the file information and the storage path of each second-stage index file;
and the adding unit is used for adding a target record index into the target database, wherein the target record index is used for recording the corresponding relation among the equipment identifier of the multi-catalog image equipment, the file information of the first-stage index file and the storage path.
In an exemplary embodiment, the above apparatus further includes:
the extraction unit is used for extracting the downloading authorization information from the first acquisition request after receiving the first acquisition request sent by the target client, wherein the downloading authorization information is used for indicating to authorize downloading of the video recorded by the first video channel in the appointed time period;
and the determining unit is used for determining that the video recorded by the first video channel in the appointed time period is allowed to be downloaded under the condition that the downloading authorization information is checked to pass.
In an exemplary embodiment, the above apparatus further includes:
the third playing unit is used for synchronously playing a plurality of first channel videos through a plurality of players in a video playing window of the target client after the first channel videos are sent to the target client, wherein each player in the plurality of players is used for playing one first channel video respectively;
the adjusting unit is used for responding to the detected play control operation executed on the target player in the plurality of players, adjusting the first channel video played by the target player, and synchronously adjusting the first channel video played by other players except the target player in the plurality of players.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to yet another aspect of an embodiment of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute the program code of the method for processing multi-channel video data according to any one of the foregoing embodiments of the present application.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
s1, receiving a first acquisition request sent by a target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of a multi-catalog image device in a specified time period;
S2, acquiring a first-level index file based on equipment identification of multi-catalog equipment and a designated time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in a plurality of video channels in a target time period containing the designated time period;
s3, acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with a specified time period, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files;
s4, responding to the received first acquisition request, and sending the first channel video to the target client.
Alternatively, specific examples in the present embodiment may refer to examples described in the above embodiments, which are not described in detail in the present embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, ROM, RAM, a mobile hard disk, a magnetic disk or an optical disk.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the above-mentioned method for processing multi-channel video data, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 8 is a block diagram of an alternative electronic device, according to an embodiment of the present application, as shown in fig. 8, including a processor 802, a communication interface 804, a memory 806, and a communication bus 808, wherein the processor 802, the communication interface 804, and the memory 806 communicate with each other via the communication bus 808, wherein,
a memory 806 for storing a computer program;
the processor 802, when executing the computer program stored on the memory 806, performs the following steps:
s1, receiving a first acquisition request sent by a target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of a multi-catalog image device in a specified time period;
s2, acquiring a first-level index file based on equipment identification of multi-catalog equipment and a designated time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in a plurality of video channels in a target time period containing the designated time period;
S3, acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with a specified time period, wherein the first target index file is a second level index file corresponding to a first video channel in a plurality of second level index files;
s4, responding to the received first acquisition request, and sending the first channel video to the target client.
Alternatively, the communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 806 may include, but is not limited to, a first receiving unit 702, an acquiring unit 704, a first executing unit 706, and a first transmitting unit 708 in a processing apparatus including the multichannel video data. In addition, other module units in the processing device of the multichannel video data may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be understood by those skilled in the art that the structure shown in fig. 8 is only illustrative, and the device implementing the above-mentioned method for processing multichannel video data may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 8 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the present embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or at least two units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for processing multichannel video data, comprising:
receiving a first acquisition request sent by a target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of a multi-catalog image device in a specified time period;
acquiring a first-level index file based on the equipment identification of the multi-catalog equipment and the appointed time period, wherein the first-level index file is an index file of a plurality of second-level index files, and each second-level index file in the plurality of second-level index files is an index file of a target video recorded by one video channel in the plurality of video channels in the target time period containing the appointed time period; acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with the specified time period, wherein the first target index file is a second level index file corresponding to the first video channel in the plurality of second level index files;
And responding to the received first acquisition request, and sending the first channel video to the target client.
2. The method of claim 1, wherein the obtaining the first channel video according to the index information recorded in the first target index file and matched with the specified time period includes:
determining a group of target index information matched with the specified time period in index information recorded by the first target index file, wherein each index information in the first target index file is index information of a video clip recorded by the first video channel in a sub-time period of the target time period, and the group of target sub-time periods corresponding to the group of target index information comprises the specified time period;
and respectively acquiring target video clips matched with each target index information according to each target index information in the group of target index information to obtain a group of target video clips, wherein the first channel video comprises the group of target video clips.
3. The method of claim 2, wherein after said sending the first channel video to the target client, the method further comprises:
Receiving a second acquisition request sent by the target client in a preset time, wherein the second acquisition request is used for requesting to acquire video recorded by a second video channel in the plurality of video channels in the appointed time period;
acquiring a second target index file according to index information of the second target index file recorded by the first level index file, and acquiring a second channel video according to index information which is recorded by the second target index file and matched with the appointed time period, wherein the second target index file is a second level index file corresponding to the second video channel in the plurality of second level index files;
and responding to the received second acquisition request, and sending the second channel video to the target client.
4. The method of claim 3, wherein the step of,
before the receiving the second acquisition request sent by the target client, the method further includes: playing the first channel video through a first player in a video playing window of the target client; responding to the detected channel switching operation, and sending the second acquisition request to a video storage server, wherein the channel switching operation is used for triggering switching of the channel video displayed by the video playing window into video recorded by the second video channel in the appointed time period;
After the sending the second channel video to the target client, the method further comprises: receiving the second channel video returned by the video storage server; and playing the second channel video through a second player in the video playing window.
5. The method of claim 2, wherein prior to receiving the first acquisition request sent by the target client, the method further comprises:
receiving multiple paths of video streams sent by the multiple-catalog image equipment, wherein each path of video stream in the multiple paths of video streams is a video stream obtained by video recording through one video channel in the multiple video channels;
storing each video stream in the multiple video streams as multiple video segments according to the preset frame number, wherein the preset frame number corresponds to one sub-time period of the target time period;
generating and storing second-level index files corresponding to each video stream according to file information and storage paths of a plurality of video clips corresponding to each video stream, and obtaining a plurality of second-level index files;
generating and storing the first-level index files according to the file information and the storage path of each second-level index file;
And adding a target record index into a target database, wherein the target record index is used for recording the corresponding relation among the equipment identifier of the multi-catalog image equipment, the file information of the first-level index file and the storage path.
6. The method of claim 1, wherein after receiving the first acquisition request sent by the target client, the method further comprises:
extracting downloading authorization information from the first acquisition request, wherein the downloading authorization information is used for indicating to authorize downloading of the video recorded by the first video channel in the appointed time period;
and under the condition that the download authorization information is checked to pass, determining that the video recorded by the first video channel in the appointed time period is allowed to be downloaded.
7. The method of any of claims 1-6, wherein after the sending the first channel video to the target client, the method further comprises:
under the condition that a plurality of first channel videos are recorded, synchronously playing the plurality of first channel videos through a plurality of players in a video playing window of the target client, wherein each player in the plurality of players is used for playing one first channel video;
And responding to the detected play control operation executed on the target player in the plurality of players, adjusting the first channel video played by the target player, and synchronously adjusting the first channel video played by other players except the target player in the plurality of players.
8. A device for processing multichannel video data, comprising:
the first receiving unit is used for receiving a first acquisition request sent by the target client, wherein the first acquisition request is used for requesting to acquire video recorded by a first video channel in a plurality of video channels of the multi-catalog image equipment in a specified time period;
an obtaining unit, configured to obtain a first-level index file based on a device identifier of the multi-catalog device and the specified time period, where the first-level index file is an index file of a plurality of second-level index files, and each of the plurality of second-level index files is an index file of a target video recorded by one video channel of the plurality of video channels in a target time period including the specified time period;
The first execution unit is used for acquiring a first target index file according to index information of a first target index file recorded by the first level index file, and acquiring a first channel video according to index information which is recorded by the first target index file and matched with the specified time period, wherein the first target index file is a second level index file corresponding to the first video channel in the plurality of second level index files;
and the first sending unit is used for responding to the received first acquisition request and sending the first channel video to the target client.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202311015197.1A 2023-08-11 2023-08-11 Multichannel video data processing method and device, storage medium and electronic device Pending CN117056287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311015197.1A CN117056287A (en) 2023-08-11 2023-08-11 Multichannel video data processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311015197.1A CN117056287A (en) 2023-08-11 2023-08-11 Multichannel video data processing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117056287A true CN117056287A (en) 2023-11-14

Family

ID=88652996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311015197.1A Pending CN117056287A (en) 2023-08-11 2023-08-11 Multichannel video data processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117056287A (en)

Similar Documents

Publication Publication Date Title
CN107231581B (en) Method and system for video playing and streaming media playing control server
US6351596B1 (en) Content control of broadcast programs
US10003861B2 (en) Auto-summarizing video content system and method
US20140325020A1 (en) Content reproduction system, content reproduction apparatus, program, content reproduction method, and providing content server
JP5984707B2 (en) VIDEO DATA DISTRIBUTION DEVICE, VIDEO DATA DISTRIBUTION SYSTEM, AND PROGRAM
US20100100640A1 (en) Video recording and playing apparatus, and file management method
US10210906B2 (en) Content playback and recording based on scene change detection and metadata
CN111866457B (en) Monitoring image processing method, electronic device, storage medium and system
US8665963B2 (en) Communication terminal, content reproduction method, content reproduction program, and content reproduction system for distributing and reproducing video contents with reduced stress
CN107995513A (en) A kind of method of TV remote controller and its button multiplexing, storage medium
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
CN111741338A (en) HLS streaming media playing method, system, equipment and storage medium
US20140115626A1 (en) Method and system for enhancing redistributed audio/video content
CN111327585B (en) Method and system for processing audio and video
KR101841259B1 (en) Method and apparatus for tracking video playing of client
CN117056287A (en) Multichannel video data processing method and device, storage medium and electronic device
KR101033558B1 (en) Private Video Recorder and Method for Highlight Reproduction of Private Video Recorder
US20090297129A1 (en) Apparatus and Method for Recording Programs and for Replaying them with a Time Offset
US20160173551A1 (en) System and method for session mobility for adaptive bitrate streaming
KR102143766B1 (en) Apparatus and method for displaying dramatic moments of contents
KR20140134126A (en) Content creation method and apparatus
KR101213153B1 (en) System and method for searching video data having simultaneous play function
JP4682267B1 (en) Progressive download playback method and playback program
AU2015101273A4 (en) A computer implemented system and method for transferring multimedia content
US20220286642A1 (en) Event-oriented multi-channel video backup apparatus and method, and network surveillance camera system including the same

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