CN114979784B - Playing method and device of target video, electronic device and storage medium - Google Patents
Playing method and device of target video, electronic device and storage medium Download PDFInfo
- Publication number
- CN114979784B CN114979784B CN202210384293.2A CN202210384293A CN114979784B CN 114979784 B CN114979784 B CN 114979784B CN 202210384293 A CN202210384293 A CN 202210384293A CN 114979784 B CN114979784 B CN 114979784B
- Authority
- CN
- China
- Prior art keywords
- video clip
- video
- height value
- time axis
- duration
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2387—Stream processing in response to a playback request from an end-user, e.g. for trick-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to a playing method, a device, an electronic device and a storage medium of a target video, wherein the method comprises the following steps: acquiring video information generated by a monitoring system in a preset inquiry time period, wherein the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip; generating a time axis according to the earliest starting time and the latest ending time in the video information; generating a histogram corresponding to each video clip on a time axis, wherein a height value of the histogram is used to identify a duration of the corresponding video clip; and responding to the selection operation of the user on the target video clip on the time axis, and playing the target video clip. According to the method and the device for selecting and playing the target video clips, the problem that selection and playing operation efficiency of the target video clips is low in the related technology is solved, and the technical effect of improving selection and playing efficiency of the target video clips for users is achieved.
Description
Technical Field
The present invention relates to the field of video monitoring technologies, and in particular, to a method and apparatus for playing a target video, an electronic device, and a storage medium.
Background
The monitoring system generally comprises: a plurality of network cameras and a network video recorder. Each video file shot by the network camera corresponds to one video channel, and one video channel can be called one video channel. Network video recorders have the ability to store and playback video files.
Along with the maturity of an image analysis algorithm and the improvement of the computing capacity of a chip, the video monitoring is widely applied in the field of security and protection, and the viewing requirement of a user on a monitoring video generated in the monitoring process is also generated; in a monitoring system, a user usually uses two functions, namely, viewing a real-time monitoring picture and viewing a recorded monitoring video.
Currently, when a user needs to view a monitoring video, the user needs to click on a corresponding target video clip on a time axis and play the target video clip in a play interface; however, when the monitoring system acquires multiple dense video clips in a short time, multiple dense and fine video clips will be displayed on the time axis, and at this time, it is difficult for the user to precisely select the required target video clip, which is cumbersome and time-consuming to operate.
At present, no effective solution is proposed for the problem of low selection and playing operation efficiency of the target video clips in the related art.
Disclosure of Invention
The embodiment of the application provides a playing method, a device, an electronic device and a storage medium of a target video, which at least solve the problems of low efficiency of selecting and playing target video clips in the related technology.
In a first aspect, an embodiment of the present application provides a method for playing a target video, where the method includes: acquiring video information generated by a monitoring system in a preset inquiry time period, wherein the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip; generating a time axis according to the earliest starting time and the latest ending time in the video information; generating a histogram corresponding to each video clip on the time axis, wherein the height value of the histogram is used for identifying the duration of the corresponding video clip; and responding to the selection operation of the user on the target video clip on the time axis, and playing the target video clip.
In some of these embodiments, generating a histogram corresponding to each of the video clips on the timeline includes: calculating a difference between the longest duration and the shortest duration in the video information; dividing a preset first height value by a difference value between the longest duration and the shortest duration to obtain a height value required by each second of video clips; and generating a histogram corresponding to each video clip on the time axis according to the duration time of each video clip in the video information and the height value required by each video clip per second.
In some of these embodiments, the first height value is obtained by multiplying the total height value of the timeline interface by a preset first ratio; generating a histogram corresponding to each video clip on the time axis according to the duration of each video clip in the video information and the height value required by each video clip per second comprises: calculating a difference between the duration of each video clip in the video information and the shortest duration; multiplying the difference between the duration of each video clip and the shortest duration by the height value required by each video clip per second to obtain a third height value of each video clip; respectively adding the third height value of each video clip to a preset second height value to obtain a fourth height value of each video clip, wherein the second height value is obtained by multiplying the total height value of the time axis interface by a preset second ratio, and the sum of the first ratio and the second ratio is smaller than or equal to 1; and generating a bar graph corresponding to each video clip on the time axis according to the fourth height value of each video clip.
In some of these embodiments, generating a histogram corresponding to each of the video clips on the time axis based on the fourth height value of each of the video clips includes: acquiring the total width value of the time axis interface and the number of video clips in the video information; dividing the total width value by the number of the video clips to obtain a width value of each video clip; and generating a histogram corresponding to each video clip on the time axis according to the width value and the fourth height value of each video clip.
In some embodiments, in response to a user selection operation of a target video clip on the time axis, playing the target video clip includes: responding to the clicking operation of the user on the target video clip on the time axis, and playing the target video clip; or, responding to the long-press operation of the user on the first video clip on the time axis, and generating a selection list, wherein the selection list comprises the first video clip, a plurality of sections of video clips before the first video clip and a plurality of sections of video clips after the first video clip; and responding to the selection operation of the user on the target video clips in the selection list, and playing the target video clips.
In some embodiments, obtaining video information generated by the monitoring system during a preset query period includes: acquiring a video query instruction, wherein the video query instruction comprises the query time period; and acquiring video information generated by the monitoring system in the query time period according to the video query instruction.
In some embodiments, the top of the histogram is labeled with the start time of the corresponding video clip and the bottom of the histogram is labeled with the end time of the corresponding video clip.
In a second aspect, an embodiment of the present application provides a playing device for a target video, where the device includes: the system comprises an acquisition module, a monitoring module and a storage module, wherein the acquisition module is used for acquiring video information generated by the monitoring system in a preset inquiry time period, and the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip; the first generation module is used for generating a time axis according to the earliest starting time and the latest ending time in the video information; a second generating module, configured to generate a histogram corresponding to each video clip on the time axis, where a height value of the histogram is used to identify a duration of the corresponding video clip; and the playing module is used for responding to the selection operation of the user on the target video clip on the time axis and playing the target video clip.
In a third aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the method for playing a target video according to the first aspect.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where a computer program is stored, where the computer program when executed by a processor implements a method for playing a target video according to the first aspect.
Compared with the related art, the playing method, the device, the electronic device and the storage medium of the target video provided by the embodiment of the application acquire video information generated by the monitoring system in a preset query time period, wherein the video information comprises a plurality of video segments, and the starting time, the ending time and the duration of each video segment; generating a time axis according to the earliest starting time and the latest ending time in the video information; generating a histogram corresponding to each video clip on a time axis, wherein a height value of the histogram is used to identify a duration of the corresponding video clip; and responding to the selection operation of the user on the target video clip on the time axis, and playing the target video clip. According to the method and the device for selecting and playing the target video clips, the problem that selection and playing operation efficiency of the target video clips is low in the related technology is solved, and the technical effect of improving selection and playing efficiency of the target video clips for users is achieved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flowchart of a method for playing a target video according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a playback interface of a monitoring system according to the related art;
FIG. 3 is a schematic diagram of a playback interface according to one embodiment of the present application;
FIG. 4 is a schematic diagram of a playback interface according to another embodiment of the present application;
FIG. 5 is a flowchart of a method for playing a target video according to another embodiment of the present application;
FIG. 6 is a block diagram of a playback apparatus for target video according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The present embodiment provides a method for playing a target video, and fig. 1 is a flowchart of a method for playing a target video according to an embodiment of the present application, as shown in fig. 1, where the method includes:
step S101, obtaining video information generated by a monitoring system in a preset inquiry time period, wherein the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip.
The monitoring system comprises a front end and a rear end, wherein the front end is used for realizing the functions of monitoring picture output, user interaction with the system and the like, and the rear end is used for realizing the functions of monitoring data acquisition, storage, processing, data stream output and the like. For example, the front end may be a terminal device such as a computer or a mobile phone, and the terminal device may access a page through a browser, run application software, and so on to implement the functions of the front end.
In this embodiment, the playing method of the target video may be applied to a front end in the monitoring system, or may be applied to a back end integrated with a front end function.
In this embodiment, the preset query time period is input by the user, and may be a day, a few hours, or the like, and in a default case, that is, when the user starts to perform the video query without inputting the specified query time period, the query time period is the day on which the user performs the video query.
Step S102, a time axis is generated according to the earliest starting time and the latest ending time in the video information.
In this embodiment, a time coordinate range may be drawn on a time axis according to the earliest start time and the latest end time in the video information, for example, the time range of the earliest video clip in the video information is 5:00 to 5:10, the time range of the latest video clip is 11:00 to 11:30, and the time coordinate range shown on the time axis is 5:00 to 11:30.
Step S103, generating a bar graph corresponding to each video clip on a time axis, wherein the height value of the bar graph is used for identifying the duration of the corresponding video clip.
Step S104, in response to the selection operation of the user on the target video clip on the time axis, playing the target video clip.
Fig. 2 is a schematic diagram of a playing interface of a monitoring system in the related art, as shown in fig. 2, where the playing interface includes a video picture and a time axis interface, and the time axis interface includes a mark time and a video clip marked in a form of a filling stripe, as shown in fig. 2, when the monitoring system acquires multiple segments of dense video clips in a short time, multiple segments of dense and fine filling stripes will be displayed on the time axis, at this time, because the filling stripes corresponding to the video clips are too fine, it is difficult for a user to accurately select a target video clip, the user needs to manually zoom the time axis interface, and zoom the time axis interface to accurately select the required target video clip, but the zooming operation is complicated and time-consuming.
Fig. 3 is a schematic diagram of a playing interface according to an embodiment of the present application, as shown in fig. 3, in this embodiment, all video clips are identified in a histogram, and a height value of the histogram is used to identify a duration of a corresponding video clip, so that a view space can be utilized as much as possible, and the situation that some places are too dense and some places are too sparse on a time axis due to too long intervals between video clips is avoided, so that a situation that the view space utilization of the time axis interface is unreasonable due to uneven distribution time of video clips is avoided, and a user can more conveniently and quickly select a required target video clip, thereby improving selection and playing efficiency of the user on the target video.
Through the steps S101 to S104, obtaining video information generated by the monitoring system in a preset query time period, where the video information includes a plurality of video clips and a start time, an end time and a duration of each video clip; generating a time axis according to the earliest starting time and the latest ending time in the video information; generating a histogram corresponding to each video clip on a time axis, wherein a height value of the histogram is used to identify a duration of the corresponding video clip; and responding to the selection operation of the user on the target video clip on the time axis, and playing the target video clip. According to the method and the device for selecting and playing the target video clips, the problem that selection and playing operation efficiency of the target video clips is low in the related technology is solved, and the technical effect of improving selection and playing efficiency of the target video clips for users is achieved.
In some of these embodiments, generating a histogram corresponding to each video clip on the timeline is accomplished by:
step 1, calculating the difference between the longest duration and the shortest duration in the video information.
And step 2, dividing the preset first height value by the difference between the longest duration and the shortest duration to obtain the height value required by the video clip per second.
And 3, generating a bar graph corresponding to each video clip on a time axis according to the duration time of each video clip in the video information and the height value required by each video clip per second.
In this embodiment, the first height value is obtained by multiplying the total height value of the time axis interface by a preset first ratio; the first ratio may be 0.9 or another value.
In the above embodiment, the longest duration T may be obtained according to the duration of each video clip in the video information max And a minimum duration T min And calculating to obtain the difference value of the two: t (T) max -T min =T △ The total height value H (unit is px) of the time axis interface is obtained, the first height value 0.9 x H is calculated according to the preset first proportion, and the first height value 0.9 x H and the difference value T are used △ The required height value Pps (pixels per second) of the video clip per second can be calculated:
Pps=0.9*H/T △ 。
in the above embodiment, the first height value is 0.9×h, so as to set a space of one tenth of the height of the time axis interface for the video clip with a shorter duration, and no matter how short the duration of the video clip is, the first height value occupies at least one tenth of the height value of the time axis interface, so as to improve the display effect of the time axis interface on the video clip with a shorter duration, and when the target video clip required by the user is the video clip with a shorter duration, the first height value can be selected and played more conveniently, thereby improving the selection and playing efficiency of the target video clip by the user.
In some embodiments, generating a histogram corresponding to each video clip on the time axis according to the duration of each video clip in the video information and the desired height value of each video clip per second is accomplished by:
step 1, calculating the difference between the duration of each video clip in the video information and the shortest duration.
And 2, multiplying the difference between the duration time and the shortest duration time of each video clip by the height value required by each video clip per second to obtain a third height value of each video clip.
And 3, respectively adding the third height value of each video clip to a preset second height value to obtain a fourth height value of each video clip, wherein the second height value is obtained by multiplying the total height value of the time axis interface by a preset second ratio, and the sum of the first ratio and the second ratio is smaller than or equal to 1.
And 4, generating a histogram corresponding to each video clip on a time axis according to the fourth height value of each video clip.
In this embodiment, generating the histogram corresponding to each video clip on the time axis according to the fourth height value of each video clip includes: acquiring the total width value of a time axis interface and the number of video clips in video information; dividing the total width value by the number of video clips to obtain the width value of each video clip; and generating a histogram corresponding to each video clip on a time axis according to the width value and the fourth height value of each video clip.
In the above embodiment, the duration T and the shortest duration T of each video clip can be calculated min The difference (T-T) min ) And the difference (T-T min ) Multiplying the height value Pps required by each second video clip to obtain a third height value H1 of each video clip, adding a preset second height value to the third height value H1, and calculating to obtain a fourth height value H2 of each video clip on a time axis interface.
In this embodiment, the second height value is obtained by multiplying the total height value of the time axis interface by a preset second ratio, taking the first ratio as 0.9 as an example, the second ratio may be 0.1, and the sum of the first ratio and the second ratio is ensured to be less than or equal to 1.
By the formula: h1 = (T-T min ) Pps; h2 =h1+0.1×h; the final height of each video clip on the time axis interface can be calculated, then the required width value of each video clip can be calculated according to the total width value of the time axis interface and the number of video clips in the video information, and the time can be obtained according to the required width value and the fourth height value of each video clipAnd generating a histogram corresponding to each video clip on the interval shaft, and marking the duration of the video clip by the height value of the histogram, thereby avoiding the condition that the view space of a time shaft interface is unreasonable due to uneven distribution of the video clips, facilitating the user to select and play the target video clip, and improving the selection and play efficiency of the user to the target video clip.
In some embodiments, in response to a user selection operation of a target video clip on a time axis, playing the target video clip is achieved by:
and step 1, responding to the clicking operation of a user on the target video clip on the time axis, and playing the target video clip.
Step 2, or, responding to long-press operation of a user on a first video clip on a time axis, and generating a selection list, wherein the selection list comprises the first video clip, a plurality of video clips before the first video clip and a plurality of video clips after the first video clip;
and step 3, responding to the selection operation of the user on the target video clips in the selection list, and playing the target video clips.
Fig. 4 is a schematic diagram of a playing interface according to another embodiment of the present application, as shown in fig. 4, in this embodiment, if a user wants to play back a target video clip, a clicking operation may be directly performed on the target video clip on a time axis, after the clicking operation, the video clip corresponding to the touch point of the finger may be selected and played on the video screen, and the clicking operation is suitable for a case where the number of video clips is smaller and is easy to be selected in the query time period, where the top of the histogram is marked with a start time of the corresponding video clip, and the bottom of the histogram is marked with an end time of the corresponding video clip.
In this embodiment, under the condition that the number of video clips is large in the query time period and the target video clip required by the user is not easy to select, the user can perform long-press operation on the first video clip on the time axis, at this time, a selection list is popped up above the long-press area of the finger, where the selection list includes the first video clip, multiple video clips preceding the first video clip, and multiple video clips following the first video clip, taking 5 video clips including the first video clip as an example, and in the default case, the first video clip is selected by a selection box in the selection list, that is, the video picture will play the first video clip under the condition that the user does not perform subsequent operation.
If the finger pressed by the user moves left and right, the selection frame in the selection list moves left and right along with the left and right movement of the finger, when the user packs the finger, the user judges that one selection operation is finished, at this time, the video clip selected by the selection frame in the selection list is the target video clip required by the user, the video clip is played in the video screen, and the selection list disappears.
If the target video clip required by the user does not exist in the selection list, the user can move the finger to enable the selection box in the selection list to move to the exit entry on the rightmost side, so that the current selection is abandoned.
In the above embodiment, the selection list may be popped up at the long-press position of the user, and the user may move the finger left and right to select the desired video clip while pressing long, thereby overcoming the disadvantage that the user needs to zoom the time axis multiple times to select the desired video clip in the related art, solving the problem of low efficiency of the selection and playing operation of the target video clip in the related art, and achieving the technical effect of improving the selection and playing efficiency of the target video by the user.
Fig. 5 is a flowchart of a method for playing a target video according to another embodiment of the present application, as shown in fig. 5, in some embodiments, the method includes:
step S501, a video query instruction is acquired, where the video query instruction includes a query time period.
Step S502, obtaining video information generated by the monitoring system in the query time period according to the video query instruction.
Step S503, according to the video information generated by the monitoring system in the inquiry time period, a histogram corresponding to each video clip is drawn on the time axis interface.
Step S504, judging whether the user performs a clicking operation; if yes, the process proceeds to step S505, otherwise, the process proceeds to step S506.
Step S505, playing the target video clip selected by the user click.
Step S506, judging whether the user performs long-press operation; if yes, the flow advances to step S507.
Step S507, determining that the user presses the selected first video clip for a long time.
Step S508, a plurality of video clips before and after the first video clip are acquired.
Step S509 pops up a selection list above the time axis, wherein the selection list includes the first video clip, a plurality of video clips preceding the first video clip, and a plurality of video clips following the first video clip.
Step S510, judging whether the user performs the selection operation on the video recording segments in the selection list; if yes, the process proceeds to step S511, otherwise, the process proceeds to step S512.
In step S511, after the user releases the finger, the target video clip selected by the selection box of the selection list is played.
In step S512, the selection box of the selection list moves to the rightmost exit entry.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
The embodiment provides a playing device of a target video, fig. 6 is a block diagram of a playing device of a target video according to an embodiment of the present application, and as shown in fig. 6, the device includes: the obtaining module 60 is configured to obtain video information generated by the monitoring system in a preset query time period, where the video information includes a plurality of video segments, and a start time, an end time, and a duration of each video segment; a first generating module 61, configured to generate a time axis according to an earliest start time and a latest end time in the video information; a second generating module 62, configured to generate a histogram corresponding to each video clip on a time axis, where a height value of the histogram is used to identify a duration of the corresponding video clip; and a playing module 63, configured to respond to a user selection operation of the target video clip on the time axis, and play the target video clip.
In some of these embodiments, the second generation module 62 is further configured to calculate a difference between the longest duration and the shortest duration in the video information; dividing a preset first height value by a difference value between the longest duration and the shortest duration to obtain a height value required by each second of video clips; and generating a bar graph corresponding to each video clip on a time axis according to the duration time of each video clip in the video information and the height value required by each video clip per second.
In some of these embodiments, the first height value is obtained by multiplying the total height value of the timeline interface by a preset first ratio; the second generation module 62 is further configured to calculate a difference between the duration and the shortest duration of each video clip in the video information; multiplying the difference between the duration time and the shortest duration time of each video clip by the height value required by each video clip per second to obtain a third height value of each video clip; respectively adding the third height value of each video clip to a preset second height value to obtain a fourth height value of each video clip, wherein the second height value is obtained by multiplying the total height value of a time axis interface by a preset second proportion, and the sum of the first proportion and the second proportion is smaller than or equal to 1; and generating a histogram corresponding to each video clip on a time axis according to the fourth height value of each video clip.
In some embodiments, the total width value of the time axis interface and the number of video clips in the video information are obtained; dividing the total width value by the number of video clips to obtain the width value of each video clip; and generating a histogram corresponding to each video clip on a time axis according to the width value and the fourth height value of each video clip.
In some of these embodiments, the playing module 63 is further configured to play the target video clip in response to a user clicking on the target video clip on the time axis; or, responding to the long-press operation of the user on the first video clip on the time axis, and generating a selection list, wherein the selection list comprises the first video clip, a plurality of sections of video clips before the first video clip and a plurality of sections of video clips after the first video clip; and responding to the selection operation of the user on the target video clips in the selection list, and playing the target video clips.
In some of these embodiments, the acquisition module 60 is further configured to acquire a video query instruction, wherein the video query instruction includes a query time period; and acquiring video information generated by the monitoring system in the query time period according to the video query instruction.
In some of these embodiments, the top of the histogram is labeled with the start time of the corresponding video clip and the bottom of the histogram is labeled with the end time of the corresponding video clip.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
The present embodiment also provides an electronic device, and fig. 7 is a schematic diagram of a hardware structure of the electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device includes a memory 704 and a processor 702, where the memory 704 stores a computer program, and the processor 702 is configured to execute the computer program to perform steps in any one of the method embodiments.
In particular, the processor 702 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 704 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 704 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, solid state Drive (Solid State Drive, SSD), flash memory, optical Disk, magneto-optical Disk, tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory 704 may include removable or non-removable (or fixed) media, where appropriate. The memory 704 may be internal or external to the playback device of the target video, where appropriate. In a particular embodiment, the memory 704 is a Non-Volatile (Non-Volatile) memory. In a particular embodiment, the Memory 704 includes Read-Only Memory (ROM) and random access Memory (Random Access Memory, RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (Electrically Alterable Read-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be Static Random-Access Memory (SRAM) or dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory FPMDRAM), extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory EDODRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory SDRAM), or the like, as appropriate.
Memory 704 may be used to store or cache various data files that are required for processing and/or communication, as well as possible computer program instructions for execution by processor 702.
The processor 702 reads and executes the computer program instructions stored in the memory 704 to implement any one of the methods for playing a target video according to the above embodiments.
Optionally, the electronic apparatus may further include a transmission device 706 and an input/output device 708, where the transmission device 706 is connected to the processor 702 and the input/output device 708 is connected to the processor 702.
Alternatively, in the present embodiment, the processor 702 may be configured to execute the following steps by a computer program:
s1, obtaining video information generated by a monitoring system in a preset inquiry time period, wherein the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip.
S2, generating a time axis according to the earliest starting time and the latest ending time in the video information.
And S3, generating a bar graph corresponding to each video clip on a time axis, wherein the height value of the bar graph is used for identifying the duration time of the corresponding video clip.
S4, responding to the selection operation of the user on the target video clip on the time axis, and playing the target video clip.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the method for playing the target video in the above embodiment, the embodiment of the present application may provide a storage medium for implementation. The storage medium has a computer program stored thereon; the computer program, when executed by the processor, implements the method for playing any one of the target videos in the above embodiments.
It should be understood by those skilled in the art that the technical features of the above embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The foregoing examples merely represent several embodiments of the present application, the description of which is more specific and detailed and which should not be construed as limiting the scope of the present application in any way. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (8)
1. The method for playing the target video is characterized by comprising the following steps:
acquiring video information generated by a monitoring system in a preset inquiry time period, wherein the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip;
generating a time axis according to the earliest starting time and the latest ending time in the video information;
generating a histogram corresponding to each video clip on the time axis, wherein the height value of the histogram is used for identifying the duration of the corresponding video clip;
responding to the selection operation of a user on the target video clip on the time axis, and playing the target video clip;
wherein the generating a histogram corresponding to each video clip on the time axis includes:
calculating a difference between the longest duration and the shortest duration in the video information;
dividing a preset first height value by a difference value between the longest duration and the shortest duration to obtain a height value required by each second of video clips;
generating a histogram corresponding to each video clip on the time axis according to the duration time of each video clip in the video information and the height value required by each video clip per second;
the first height value is obtained by multiplying the total height value of the time axis interface by a preset first proportion; generating a histogram corresponding to each video clip on the time axis according to the duration of each video clip in the video information and the height value required by each video clip per second comprises:
calculating a difference between the duration of each video clip in the video information and the shortest duration;
multiplying the difference between the duration of each video clip and the shortest duration by the height value required by each video clip per second to obtain a third height value of each video clip;
respectively adding the third height value of each video clip to a preset second height value to obtain a fourth height value of each video clip, wherein the second height value is obtained by multiplying the total height value of the time axis interface by a preset second ratio, and the sum of the first ratio and the second ratio is smaller than or equal to 1;
and generating a bar graph corresponding to each video clip on the time axis according to the fourth height value of each video clip.
2. The method of claim 1, wherein generating a histogram corresponding to each video clip on the time axis according to a fourth height value of each video clip comprises:
acquiring the total width value of the time axis interface and the number of video clips in the video information;
dividing the total width value by the number of the video clips to obtain a width value of each video clip;
and generating a histogram corresponding to each video clip on the time axis according to the width value and the fourth height value of each video clip.
3. The method for playing a target video according to claim 1, wherein playing a target video clip in response to a user selection operation of the target video clip on the time axis comprises:
responding to the clicking operation of the user on the target video clip on the time axis, and playing the target video clip;
or, responding to the long-press operation of the user on the first video clip on the time axis, and generating a selection list, wherein the selection list comprises the first video clip, a plurality of sections of video clips before the first video clip and a plurality of sections of video clips after the first video clip;
and responding to the selection operation of the user on the target video clips in the selection list, and playing the target video clips.
4. The method for playing a target video according to claim 1, wherein obtaining video information generated by a monitoring system in a preset query time period comprises:
acquiring a video query instruction, wherein the video query instruction comprises the query time period;
and acquiring video information generated by the monitoring system in the query time period according to the video query instruction.
5. The method according to any one of claims 1 to 4, wherein a top of the histogram is marked with a start time of a corresponding video clip and a bottom of the histogram is marked with an end time of the corresponding video clip.
6. A playback device for a target video, the device comprising:
the system comprises an acquisition module, a monitoring module and a storage module, wherein the acquisition module is used for acquiring video information generated by the monitoring system in a preset inquiry time period, and the video information comprises a plurality of video clips and the starting time, the ending time and the duration of each video clip;
the first generation module is used for generating a time axis according to the earliest starting time and the latest ending time in the video information;
a second generating module, configured to generate a histogram corresponding to each video clip on the time axis, where a height value of the histogram is used to identify a duration of the corresponding video clip;
the playing module is used for responding to the selection operation of a user on the target video clip on the time axis and playing the target video clip;
wherein the second generation module is further configured to:
calculating a difference between the longest duration and the shortest duration in the video information;
dividing a preset first height value by a difference value between the longest duration and the shortest duration to obtain a height value required by each second of video clips;
generating a histogram corresponding to each video clip on the time axis according to the duration time of each video clip in the video information and the height value required by each video clip per second;
the first height value is obtained by multiplying the total height value of the time axis interface by a preset first proportion;
the second generation module is further configured to:
calculating a difference between the duration of each video clip in the video information and the shortest duration;
multiplying the difference between the duration of each video clip and the shortest duration by the height value required by each video clip per second to obtain a third height value of each video clip;
respectively adding the third height value of each video clip to a preset second height value to obtain a fourth height value of each video clip, wherein the second height value is obtained by multiplying the total height value of the time axis interface by a preset second ratio, and the sum of the first ratio and the second ratio is smaller than or equal to 1;
and generating a bar graph corresponding to each video clip on the time axis according to the fourth height value of each video clip.
7. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of playing a target video according to any of claims 1 to 5.
8. A storage medium having a computer program stored therein, wherein the computer program when executed by a processor implements the method of playing a target video according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210384293.2A CN114979784B (en) | 2022-04-13 | 2022-04-13 | Playing method and device of target video, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210384293.2A CN114979784B (en) | 2022-04-13 | 2022-04-13 | Playing method and device of target video, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114979784A CN114979784A (en) | 2022-08-30 |
CN114979784B true CN114979784B (en) | 2024-01-09 |
Family
ID=82976674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210384293.2A Active CN114979784B (en) | 2022-04-13 | 2022-04-13 | Playing method and device of target video, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114979784B (en) |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101032164A (en) * | 2004-09-30 | 2007-09-05 | 索尼株式会社 | Moving picture data edition device and moving picture data edition method |
CN103325399A (en) * | 2013-05-15 | 2013-09-25 | 北京汉邦高科数字技术股份有限公司 | Method for video file playing and video file back-up |
CN104519295A (en) * | 2013-10-08 | 2015-04-15 | 纬创资通股份有限公司 | Video recording control method of digital television program |
CN104662895A (en) * | 2012-09-24 | 2015-05-27 | 罗伯特·博世有限公司 | User interface arrangement and computer program |
CN106060453A (en) * | 2015-04-14 | 2016-10-26 | 群晖科技股份有限公司 | Method and apparatus for managing video storage space in a surveillance system |
CN107277621A (en) * | 2017-06-06 | 2017-10-20 | 环球智达科技(北京)有限公司 | A kind of statistical method based on broadcasting record |
CN108833830A (en) * | 2018-06-05 | 2018-11-16 | 浙江大华技术股份有限公司 | The method and device of monitored picture is shown in a kind of monitoring system |
CN109584656A (en) * | 2018-12-03 | 2019-04-05 | 湖北美和易思教育科技有限公司 | Online education platform learns track data statistical analysis system and method |
CN110225310A (en) * | 2019-06-24 | 2019-09-10 | 浙江大华技术股份有限公司 | Computer readable storage medium, the display methods of video and device |
CN110363593A (en) * | 2019-07-19 | 2019-10-22 | 浙江大搜车软件技术有限公司 | Network Data Control method, apparatus, computer equipment and storage medium |
CN110689568A (en) * | 2019-10-17 | 2020-01-14 | 南京鑫和汇通电子科技有限公司 | Accurate calculation method for cubic object volume based on depth image |
CN111131902A (en) * | 2019-12-13 | 2020-05-08 | 华为技术有限公司 | Method for determining target object information and video playing equipment |
CN111259637A (en) * | 2020-01-13 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN111739120A (en) * | 2020-05-19 | 2020-10-02 | 云知声智能科技股份有限公司 | Pure text histogram drawing method |
CN112667849A (en) * | 2020-12-24 | 2021-04-16 | 树根互联技术有限公司 | Information indexing method, device, system, electronic equipment and storage medium |
CN113613082A (en) * | 2021-06-30 | 2021-11-05 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113723315A (en) * | 2021-09-01 | 2021-11-30 | 常熟希那基汽车零件有限公司 | Raspberry pie-based utilization rate monitoring system |
CN114005124A (en) * | 2021-10-28 | 2022-02-01 | 上海商汤科技开发有限公司 | Sampling method and device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5664605B2 (en) * | 2012-07-26 | 2015-02-04 | 株式会社デンソー | Drive video recording apparatus and drive video recording system |
US9728055B2 (en) * | 2014-04-11 | 2017-08-08 | Vivint, Inc. | Chronological activity monitoring and review |
US10810255B2 (en) * | 2017-09-14 | 2020-10-20 | Avigilon Corporation | Method and system for interfacing with a user to facilitate an image search for a person-of-interest |
-
2022
- 2022-04-13 CN CN202210384293.2A patent/CN114979784B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101032164A (en) * | 2004-09-30 | 2007-09-05 | 索尼株式会社 | Moving picture data edition device and moving picture data edition method |
CN104662895A (en) * | 2012-09-24 | 2015-05-27 | 罗伯特·博世有限公司 | User interface arrangement and computer program |
CN103325399A (en) * | 2013-05-15 | 2013-09-25 | 北京汉邦高科数字技术股份有限公司 | Method for video file playing and video file back-up |
CN104519295A (en) * | 2013-10-08 | 2015-04-15 | 纬创资通股份有限公司 | Video recording control method of digital television program |
CN106060453A (en) * | 2015-04-14 | 2016-10-26 | 群晖科技股份有限公司 | Method and apparatus for managing video storage space in a surveillance system |
CN107277621A (en) * | 2017-06-06 | 2017-10-20 | 环球智达科技(北京)有限公司 | A kind of statistical method based on broadcasting record |
CN108833830A (en) * | 2018-06-05 | 2018-11-16 | 浙江大华技术股份有限公司 | The method and device of monitored picture is shown in a kind of monitoring system |
CN109584656A (en) * | 2018-12-03 | 2019-04-05 | 湖北美和易思教育科技有限公司 | Online education platform learns track data statistical analysis system and method |
CN110225310A (en) * | 2019-06-24 | 2019-09-10 | 浙江大华技术股份有限公司 | Computer readable storage medium, the display methods of video and device |
CN110363593A (en) * | 2019-07-19 | 2019-10-22 | 浙江大搜车软件技术有限公司 | Network Data Control method, apparatus, computer equipment and storage medium |
CN110689568A (en) * | 2019-10-17 | 2020-01-14 | 南京鑫和汇通电子科技有限公司 | Accurate calculation method for cubic object volume based on depth image |
CN111131902A (en) * | 2019-12-13 | 2020-05-08 | 华为技术有限公司 | Method for determining target object information and video playing equipment |
CN111259637A (en) * | 2020-01-13 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN111739120A (en) * | 2020-05-19 | 2020-10-02 | 云知声智能科技股份有限公司 | Pure text histogram drawing method |
CN112667849A (en) * | 2020-12-24 | 2021-04-16 | 树根互联技术有限公司 | Information indexing method, device, system, electronic equipment and storage medium |
CN113613082A (en) * | 2021-06-30 | 2021-11-05 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113723315A (en) * | 2021-09-01 | 2021-11-30 | 常熟希那基汽车零件有限公司 | Raspberry pie-based utilization rate monitoring system |
CN114005124A (en) * | 2021-10-28 | 2022-02-01 | 上海商汤科技开发有限公司 | Sampling method and device, electronic equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
双摄像机下人体遮挡时的跟踪方法;张莉;于海滨;;中国图象图形学报(第04期);全文 * |
基于双端须丛试样的棉毛纤维长度频率分布测量;金敬业;杨欢;吴美琴;陈雪飞;王府梅;;东华大学学报(自然科学版)(第02期);全文 * |
融合音视频上下文时序特征的视频片段检测;岳占峰;;中国传媒科技(第10期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114979784A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111698553B (en) | Video processing method and device, electronic equipment and readable storage medium | |
EP1830361A1 (en) | Image displaying method and video playback apparatus | |
CN101998048A (en) | Digital image signal processing method, medium for recording the method, digital image signal pocessing apparatus | |
CN105825521A (en) | Information processing apparatus and control method thereof | |
KR101948692B1 (en) | Phtographing apparatus and method for blending images | |
JP5034706B2 (en) | Information processing apparatus, information processing method, and program | |
CN112529611B (en) | Outdoor advertisement putting method and device, electronic device and storage medium | |
US20140365893A1 (en) | Causing elements to be displayed | |
CN114979784B (en) | Playing method and device of target video, electronic device and storage medium | |
JP6948787B2 (en) | Information processing equipment, methods and programs | |
CN108200477A (en) | The method, apparatus and equipment that video file is generated and played | |
JP2011250095A (en) | Electronic apparatus, video editing method, and program | |
JP2008040851A (en) | Information processor, information processing methodology, and computer program | |
CN113315910A (en) | Shooting method, shooting device, computer equipment and storage medium | |
CN111866419B (en) | Thermal imaging image display method and device and thermal imaging equipment | |
WO2016095285A1 (en) | Image obtaining and processing method, system and terminal | |
WO2010084602A1 (en) | Image display system, method, and program | |
JP2007036737A (en) | Image display device | |
CN104935815A (en) | Shooting method, shooting device, camera and mobile terminal | |
CN112565595B (en) | Image jitter eliminating method, device, electronic equipment and storage medium | |
CN111683215B (en) | Video playback method and device, electronic equipment and computer readable storage medium | |
JP6381208B2 (en) | Image reproducing apparatus, image reproducing method, and program | |
JP2011009958A (en) | Network control device, image processor, and program | |
JP2009290336A (en) | Image reproducing device, image reproducing method, and program | |
JP2024169905A (en) | Playback control device, control method and program thereof |
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 |