Time scale setting method and apparatus, storage medium, and electronic device
By setting multiple time scales in the video playback progress bar, the problem of inconvenient video retrieval with large and small time spans is solved, and retrieval with both large and small time spans is achieved during video playback, which improves the user experience.
Patent Information
- Application Number
- CN202211595626.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2042-12-13
AI Technical Summary
In the prior art, video playback devices cannot take into account both long time span and short time span video retrieval, which is inconvenient to operate. Especially on mobile clients, it is difficult for users to accurately locate and find distant videos.
Multiple time scales are set in the video playback progress bar. The progress bar is divided into history and target progress bars according to preset rules, and different time scales are set for them, so that the time scale of the progress bar corresponding to the current playback moment is smaller than that of other progress bars, and then multiple partial progress bars are set on the progress bar to correspond to the time scales one by one.
It realizes the retrieval of both large and small time spans during video playback. Users can easily find and locate videos, which improves the accuracy and convenience of operations and enhances the user experience.
Smart Images

Figure CN116033230B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a time scale setting method and device, a storage medium and an electronic device. BACKGROUND
[0002] In the prior art, the existing positioning and playing video device of a network video recorder (NVR) mainly includes playing, pausing, resuming, fast forwarding, fast rewinding, stopping, etc. In addition, the existing positioning and playing video device indicates the video playing progress in the form of cursor sliding in a progress bar displaying the video playing progress, and specifically identifies the specific video playing progress by displaying the playing progress time at the specific position of the cursor. In the detailed operation of video playing, when the video progress details need to be focused on, the operation is possible, but it is troublesome to play across a large range of time. When the time scale is large, the problem of inaccurate playing control exists, and when the time is accurate, it is not easy to play the video recording far away from the current playing time, and the user operation is inconvenient.
[0003] For a mobile client, when playing a video, the date is generally selected based on a traditional calendar list. The user selects a date on the calendar list displayed on the terminal, and the terminal displays the video clip collected on the selected date. As shown in FIG. 1, the user selects a video clip moment for playing in the video clip displayed on the terminal according to the requirement. If the time progress bar scale is large, the operation of playing the specified starting moment is not accurate, and if the time scale is small, it is not easy to operate and find the video recording of a large time span. Figure 3 As shown in FIG. 2, if the video recording is accurately positioned, the time search can be used to accurately play the moment, but the user needs to remember the time and needs to call out the time selection menu to select the time, and the actual scale selection is also troublesome. Figure 4 As shown in FIG. 3, the size button can also be used to adjust and control the scale of the progress bar, and the time scale can also be directly enlarged or reduced by sliding two fingers outward along the direction of the progress bar, but the operation of accurately positioning the moment and finding the video recording of a large span is cumbersome. Figure 5
[0004] For the related art, when playing a video, the large time span video search and the small time span video search cannot be considered, and currently no effective solution has been proposed.
[0005] Therefore, it is necessary to improve the related art to overcome the defects in the related art. SUMMARY
[0006] The embodiment of the present application provides a time scale setting method and device, a storage medium and an electronic device, so as to at least solve the problem that large time span video retrieval and small time span video retrieval cannot be considered at the same time when video is played.
[0007] According to an aspect of the embodiment of the present application, a time scale setting method is provided, comprising: determining a current playing time corresponding to a current video frame of a target video in a target device playing the target video; and setting a plurality of time scales for a progress bar of the target video according to the current playing time, wherein the progress bar comprises a plurality of partial progress bars divided according to a preset rule, the plurality of partial progress bars correspond to the plurality of time scales one by one, a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars.
[0008] In an exemplary embodiment, before the target device plays the target video, the method further comprises: determining a starting playing time of the target video by the following manner, and controlling the target device to play the target video from the starting playing time of the target video: in a case that a current time is located in a first time range, determining a starting playing time of a sub-video closest to the current time from a recording completion time as the starting playing time of the target video; in a case that the current time is not located in the first time range, determining a reference time corresponding to the current time in the first time range, and determining a starting playing time of a sub-video closest to the reference time from a recording completion time or a recording starting time as the starting playing time of the target video; wherein the target video comprises the sub-video; the first time range is a recording time range of a sub-video to be queried; and the target video comprises video frames of a plurality of continuous time points, and the plurality of continuous time points comprise the starting playing time.
[0009] In an exemplary embodiment, setting the plurality of time scales for the progress bar of the target video according to the current playing time comprises: determining a current video frame positioning point in the progress bar corresponding to the current playing time; dividing the progress bar into a history progress bar and a target progress bar according to the current video frame positioning point, wherein the history progress bar is a progress bar corresponding to a preset time period before the current playing time, and the target progress bar is a progress bar corresponding to a preset time period after the current playing time; and setting a plurality of time scales for the history progress bar and the target progress bar respectively.
[0010] In an example embodiment, in the process of dividing the progress bar into the history progress bar and the target progress bar according to the current video frame positioning point, the method further comprises: determining the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar by at least one of the following: obtaining the size of the display of the target device, and determining the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar according to the size of the display; obtaining a second time range, and determining the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar according to the second time range, wherein the second time range is a time range in which video content in the target video is allowed to be played.
[0011] In an example embodiment, a plurality of time scales are set for the history progress bar and the target progress bar respectively, comprising: setting a plurality of first time scales for the partial progress bars included in the history progress bar according to a setting rule, wherein the setting rule is used to indicate that the first time scales are set to gradually increase according to the increasing trend of the time difference between the partial progress bars included in the history progress bar and the current video frame positioning point; and setting a plurality of second time scales for the partial progress bars included in the target progress bar according to a setting rule, wherein the setting rule is used to indicate that the second time scales are set to gradually increase according to the increasing trend of the time difference between the partial progress bars included in the target progress bar and the current video frame positioning point.
[0012] In an example embodiment, each of the plurality of partial progress bars includes a plurality of video frame positioning points, each of which corresponds to a play time of the target video, and each of the video frame positioning points has adjacent first and second video frame positioning points; the time difference between each of the video frame positioning points and the first video frame positioning point is greater than or equal to the time difference between each of the video frame positioning points and the second video frame positioning point; the time difference between the first video frame positioning point and the current video frame positioning point is greater than the time difference between the second video frame positioning point and the current video frame positioning point; and the current video frame positioning point is a point in the progress bar corresponding to the current play time.
[0013] In one exemplary embodiment, after the plurality of time scales are set for the progress bar of the target video according to the current play time, the method further comprises: determining a coarse group state of each of the plurality of partial progress bars included in the progress bar according to the time scale corresponding to the each of the plurality of partial progress bars, and displaying the progress bar in the display of the target device according to the coarse group state of the each of the plurality of partial progress bars, wherein the greater the time range of the time scale of the each of the plurality of partial progress bars, the thicker or thinner the each of the plurality of partial progress bars is displayed in the display; and / or determining a color corresponding to each of the plurality of partial progress bars according to the time scale corresponding to the each of the plurality of partial progress bars, and displaying the progress bar in the display of the target device according to the color corresponding to the each of the plurality of partial progress bars; and / or displaying a target shape of the color corresponding to the each of the plurality of partial progress bars in a preset area corresponding to the each of the plurality of partial progress bars when the progress bar is displayed in the display of the target device, wherein the area of the target shape is positively correlated with the coarse group state of the each of the plurality of partial progress bars.
[0014] In one exemplary embodiment, after the plurality of time scales are set for the progress bar of the target video according to the current play time, the method further comprises: selecting a plurality of play times within the time scale corresponding to each of the plurality of partial progress bars included in the progress bar, and determining a video frame corresponding to each of the plurality of play times in the target video; displaying the video frame corresponding to each of the plurality of play times in the target device when the control component of the target device is moved to a video frame positioning point on the progress bar corresponding to the each of the plurality of play times.
[0015] In one exemplary embodiment, after the plurality of time scales are set for the progress bar of the target video according to the current play time, the method further comprises: determining a target play time corresponding to a target video frame positioning point of the progress bar when the control component of the target device is moved to the target video frame positioning point; and setting the plurality of time scales for the progress bar of the target video again according to the target play time.
[0016] According to another aspect of the embodiments of the present application, there is further provided a time scale setting device, comprising: a determination module configured to determine a current playing time corresponding to a current video frame of a target video in a process in which a target device plays the target video; and a setting module configured to set a plurality of time scales for a progress bar of the target video according to the current playing time, wherein the progress bar comprises a plurality of partial progress bars divided according to a preset rule, the plurality of partial progress bars correspond to the plurality of time scales one by one, a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars.
[0017] According to still another aspect of the embodiments of the present application, there is further provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the time scale setting method when running.
[0018] According to still another aspect of the embodiments of the present application, there is further provided an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the time scale setting method through the computer program.
[0019] According to the present application, in a process in which a target device plays a target video, a plurality of time scales are set for a progress bar of the target video according to a current playing time of the target video, so that the progress bar comprises a plurality of partial progress bars corresponding to the plurality of time scales one by one, and a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars. Since a time scale of the progress bar corresponding to the current playing time is smaller than time scales of other progress bars, the problem that large time span video retrieval and small time span video retrieval cannot be considered at the same time when playing a video is solved. The user can conveniently search for large time span videos and small time span videos, and the use experience of the user when searching for videos is improved. BRIEF DESCRIPTION OF DRAWINGS
[0020] 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 serve to explain the principles of the application. In the drawings:
[0021] Figure 1 FIG. 1 is a hardware structure block diagram of a computer terminal of a time scale setting method according to an embodiment of the present application.
[0022] Figure 2 is a flow chart of a method for setting time scale according to an embodiment of the present application;
[0023] Figure 3 is a schematic diagram according to a prior video positioning method (I);
[0024] Figure 4 is a schematic diagram according to a prior video positioning method (II);
[0025] Figure 5 is a schematic diagram according to a prior video positioning method (III);
[0026] Figure 6 is a schematic diagram of a method for setting time scale according to an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (I);
[0028] Figure 8 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (II);
[0029] Figure 9 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (III);
[0030] Figure 10 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (IV);
[0031] Figure 11 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (V);
[0032] Figure 12 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (VI);
[0033] Figure 13 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (VII);
[0034] Figure 14 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (VIII);
[0035] Figure 15 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (IX);
[0036] Figure 16 is a schematic diagram of setting time scale of a progress bar according to an embodiment of the present application (X);
[0037] Figure 17 11 is a schematic diagram of setting the time scale of a progress bar according to an embodiment of the present invention;
[0038] Figure 18 12 is a schematic diagram of setting the time scale of a progress bar according to an embodiment of the present invention;
[0039] Figure 19 4 is a structural block diagram of a device for setting a time scale according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a computer terminal for the time scale setting method according to an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art thatFigure 1 The structure shown is merely illustrative and does not limit the structure of the computer terminal described above. For example, the computer terminal can further include more or less components than those shown, or have different configurations of the components shown with the same or more functionality than the components shown. Figure 1 Figure 1 Figure 1
[0043] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the time scale setting method in the embodiments of the present application. The processor 102 performs various functional applications and data processing by running the computer programs stored in the memory 104, i.e., implements the method described above. The memory 104 can include a high-speed random access memory and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the computer terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0044] The transmission device 106 is used to receive or send data via a network. Specific examples of the network can include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0045] Specifically, in the embodiments, a time scale setting method is provided, Figure 2 is a flowchart of the time scale setting method according to the embodiments of the present application, which includes the following steps:
[0046] In step S202, during playing of a target video by a target device, a current video frame of the target video is determined to correspond to a current playing time point in the target video.
[0047] It should be noted that the target video is a video collected by an image collection device. The image collection device includes, but is not limited to, a camera. The target device includes, but is not limited to, a device that can play and query the target video.
[0048] It should be noted that, assuming that the target video is a 120-minute video, when the target video is opened, a default starting playing time (for example, starting from the beginning or starting from the middle) needs to be determined.
[0049] In an exemplary embodiment, before the target device plays the target video, the starting playing time of the target video can be determined by one or two ways as follows, and the target device is controlled to play the target video from the starting playing time of the target video.
[0050] Way one: when the current time is located in the first time range, the starting playing time of the sub-video closest to the current time is determined as the starting playing time of the target video.
[0051] It should be noted that the target video includes the sub-video; the first time range is the recording time range of the sub-video to be queried; and the target video includes a plurality of continuous time video frames, and the plurality of continuous time includes the starting playing time.
[0052] As an optional example, if the first time range is the current day, the current time is located in the first time range, that is, the video to be queried and played and the recording date are the same day, and the starting playing time is the beginning time of the video file closest to the current time.
[0053] Way two: when the current time is not located in the first time range, a reference time corresponding to the current time in the first time range is determined, and the starting playing time of the sub-video closest to the reference time is determined as the starting playing time of the target video.
[0054] As an optional example, if the first time range is yesterday, and the current time is 12:01, the starting playing time of the sub-video closest to 12:01 of yesterday is determined as the starting playing time of the target video.
[0055] Optionally, if the current time is t, the target video is played on a certain date, and manual jump is performed to query other dates, the starting playing time of the target video is the starting playing time of the video playing file closest to the playing time t in the new date.
[0056] In step S204, a plurality of time scales are set for the progress bar of the target video according to the current playing time. The progress bar includes a plurality of partial progress bars divided according to a preset rule. The plurality of partial progress bars correspond to the plurality of time scales one by one. The time scale corresponding to the first partial progress bar is smaller than the time scale corresponding to other partial progress bars. The time range of the first partial progress bar includes the current playing time. The plurality of partial progress bars include the first partial progress bar and the other partial progress bars.
[0057] As an optional example, as shown in Figure 7 , the current playing time can be the t time in Figure 7 , the first partial progress bar can be t-t1, t`1-t in Figure 7 , and the other partial progress bars include t1-t2, t2-t3, and the like.
[0058] In an exemplary embodiment, the above step S204 can be implemented by the following steps S11-S13.
[0059] In step S11, the current video frame positioning point corresponding to the current playing time in the progress bar is determined.
[0060] As an optional example, the current video frame positioning point can be the point corresponding to the t time in the progress bar as shown in Figure 7 .
[0061] In step S12, the progress bar is divided into a history progress bar and a target progress bar according to the current video frame positioning point. The history progress bar is the progress bar corresponding to a preset time period before the current playing time. The target progress bar is the progress bar corresponding to a preset time period after the current playing time.
[0062] As an optional example, the history progress bar can be the progress bar corresponding to the t`5-t time as shown in Figure 7 , and the target progress bar can be the progress bar corresponding to the t-t5 time as shown in Figure 7 .
[0063] In step S13, a plurality of time scales are set for the history progress bar and the target progress bar, respectively.
[0064] As an optional example, the above step S13 can be implemented by the following steps S131-S132.
[0065] Step S131: setting a plurality of first time scales for the plurality of partial progress bars included in the history progress bar according to a setting rule, wherein the setting rule is used to indicate setting the first time scales increasing step by step according to the increasing trend of the time difference from the current video frame positioning point of the plurality of partial progress bars included in the history progress bar.
[0066] As an optional example, as shown in FIG. 6, in the progress bar corresponding to the time point of t`5-t, the corresponding first time scales (60s, 5min, 1h, 6h, 12h) can be set according to the increasing trend of the time difference from the current video frame positioning point of t`1-t, t`2-t`1, t`3-t`2, t`4-t`3, t`5-t`4. Figure 7 Figure 7 As an optional example, as shown in FIG. 6, in the progress bar corresponding to the time point of t`5-t, the corresponding first time scales (60s, 5min, 1h, 6h, 12h) can be set according to the increasing trend of the time difference from the current video frame positioning point of t`1-t, t`2-t`1, t`3-t`2, t`4-t`3, t`5-t`4.
[0067] Step S132: setting a plurality of second time scales for the plurality of partial progress bars included in the target progress bar according to a setting rule, wherein the setting rule is used to indicate setting the second time scales increasing step by step according to the increasing trend of the time difference from the current video frame positioning point of the plurality of partial progress bars included in the target progress bar.
[0068] As an optional example, as shown in FIG. 7, in the progress bar corresponding to the time point of t-t5, the corresponding second time scales (60s, 5min, 1h, 6h, 12h) can be set according to the increasing trend of the time difference from the current video frame positioning point of t-t1, t1-t2, t2-t3, t3-t4, t4-t5. Figure 7 Figure 7 As an optional example, as shown in FIG. 7, in the progress bar corresponding to the time point of t-t5, the corresponding second time scales (60s, 5min, 1h, 6h, 12h) can be set according to the increasing trend of the time difference from the current video frame positioning point of t-t1, t1-t2, t2-t3, t3-t4, t4-t5.
[0069] It should be noted that the execution of the above steps S131-S132 has no sequence.
[0070] In the embodiment, the large time span retrieval and the accurate positioning of the playing time point can be considered when playing the video.
[0071] In the embodiment, the time scale of the progress bar in which the current media stream playing time point is located is small, and the time scale of the progress bar far away from the current playing time point is large, through the time scale processing of the playing progress bar. The large time span video data searching can be conveniently performed, and the second-level positioning to the playing time point and the cross date retrieval of the video can be facilitated. The user operation is simple, the searching video positioning to the playing time point is fast and accurate, and the user experience is greatly improved.
[0072] In one exemplary embodiment, in the process of dividing the progress bar into the history progress bar and the target progress bar according to the current video frame positioning point, the number of the partial progress bars included in the history progress bar and the number of the partial progress bars included in the target progress bar can be determined by at least the following three ways and four ways:
[0073] Way three: obtaining the size of the display of the target device, and determining the number of the partial progress bars included in the history progress bar and the number of the partial progress bars included in the target progress bar according to the size of the display;
[0074] As an optional example, the number of the partial progress bars can be divided according to the size of the display. If the screen of the display is large, the number of the divided partial progress bars and the time span can be changed to be larger, as shown in Figure 12 If the screen of the display is small, in order to facilitate user operation, the number of the divided partial progress bars and the time span can be appropriately reduced, as shown in Figure 13
[0075] Way four: obtaining a second time range, and determining the number of the partial progress bars included in the history progress bar and the number of the partial progress bars included in the target progress bar according to the second time range, wherein the second time range is a time range in which video content in the target video is allowed to be played.
[0076] As an optional example, if the current playing time (t time) is 12:00 noon of a day, the video recording before 07:06 of the next day and the video recording after 04:54 of the previous day can be inquired through the progress bar as shown in Figure 7 If the user wants to inquire a larger range of video clips in the current progress bar, the user can set a corresponding second time range, as shown in Figure 12 Figure 7 The user increases two partial progress bars (t5-t6, t`6-t`5) on the basis of
[0077] As an optional example, if the second time range is a day (00:00-24:00), as the current playing time is closer to the end time of the day (24:00), the number of the partial progress bars of different time scales after the current playing time becomes less, and the corresponding time span becomes smaller. Since the current playing time is close to the end time of the day, it can be known that the current playing time is farther and farther away from the start time of the day (00:00), and the number of the partial progress bars of different time scales becomes larger, and the corresponding time span of the time scale becomes longer. The interval of the progress bars from the start time of the day and the end time of the current day changes due to the change of the current playing time. For example, Figure 14 As shown, the play time is close to 24:00 of the current day, and the time scale is reduced at different times thereafter. The largest time scale is at the time difference between 24:00 and t2. As shown, if the current play time is 2:00 of the current day, the span from t4 to 24:00 is 24-t4, and the time span from the start of the current day is less than 12 hours. If the number of segments of the partial progress bar is unchanged, the time span is t`3-0. That is, as the play of a certain segment is completed, the time scale from 0 / 24 of the current day changes until the scale becomes a second. Figure 15
[0078] As an optional example, in order to facilitate the query of the video of the current day and the video of the previous day and the next day, a partial progress bar can be reserved after 24:00 and before 0:00 of the current day. When the video of a certain day is queried, the 12-hour video of the previous day and the next day is queried and spliced into the adjacent positions above and below the progress bar of the video of the current day to represent the video of the previous day and the next day, such as Figure 16 . This facilitates the user to slide / drag the progress bar to the previous day and the next day, and facilitates the query of the video across the adjacent previous day and the next day. For the play time relative to the current time (actual time), the display can be as shown in Figure 17 .
[0079] Through the above steps, during the playing of the target video on the target device, a plurality of time scales are set for the progress bar of the target video according to the current play time of the target video, so that the plurality of partial progress bars included in the progress bar correspond to the plurality of time scales one by one, and the time scale corresponding to the first partial progress bar is smaller than the time scale corresponding to the other partial progress bars. The time range of the first partial progress bar includes the current play time, and the plurality of partial progress bars include the first partial progress bar and the other partial progress bars. Since the time scale of the progress bar corresponding to the current play time is smaller than that of the other progress bars, the problem that large-time-span video retrieval and small-time-span video retrieval cannot be considered at the same time when video is played is solved. This makes it convenient for the user to not only search for large-time-span video, but also search for small-time-span video, thereby improving the user experience when the user queries the video.
[0080] In an exemplary embodiment, each of the plurality of partial progress bars included in the progress bar of the target video comprises a plurality of video frame positioning points, each of the video frame positioning points corresponding to a play time of the target video, each of the video frame positioning points having a first video frame positioning point and a second video frame positioning point adjacent to each other, the time difference between each of the video frame positioning points and the first video frame positioning point is greater than or equal to the time difference between each of the video frame positioning points and the second video frame positioning point, the time difference between the first video frame positioning point and a current video frame positioning point is greater than the time difference between the second video frame positioning point and the current video frame positioning point, and the current video frame positioning point is a point in the progress bar corresponding to the current play time.
[0081] For a better understanding, Figure 8 As shown, the time points between t1 and t2 are not necessarily in equal proportion, and in the case that the time points between t1 and t2 are not in equal proportion, the time granularity is greater as the time is further away from the current play time. That is, assuming that there is a tx time point in the middle of the partial progress bar corresponding to t1 and t2, the time difference between tx and t1 is less than the time difference between t2 and tx.
[0082] In an exemplary embodiment, after setting a plurality of time scales for the progress bar of the target video according to the current play time, at least one of the following steps is further performed:
[0083] Step S21: determining a coarse group state corresponding to each of the plurality of partial progress bars included in the progress bar according to the time scale corresponding to each of the partial progress bars, and displaying the progress bar in the display of the target device according to the coarse group state corresponding to each of the partial progress bars, wherein the greater the time range of the time scale of each of the partial progress bars, the coarser or thinner each of the partial progress bars is when displayed in the display.
[0084] As an optional example, the width of the progress bar of different time scales is as shown in Figure 7 The smaller the time scale, the thinner the progress bar, and the greater the scale, the thicker the progress bar.
[0085] As an optional example, the smaller the time scale, the thicker the progress bar, and the greater the scale, the thinner the progress bar, as shown in Figure 8
[0086] Step S22: determining a color corresponding to each of the plurality of partial progress bars included in the progress bar according to the time scale corresponding to each of the partial progress bars, and displaying the progress bar in the display of the target device according to the color corresponding to each of the partial progress bars.
[0087] That is, different colors of the progress bar can also be used to represent different time scales.
[0088] Step S23: When the progress bar is displayed on the display of the target device, display the target shape of the color corresponding to each part of the progress bar in the preset area corresponding to each part of the progress bar, wherein the area of the target shape is positively correlated with the thick group state of each part of the progress bar.
[0089] As an optional example, not limited to displaying different time scales of the progress bar to the user through the progress bar, other identifiers such as different colors can also be used outside the progress bar to represent different time scales, such as Figure 11 As shown, different colors of the rectangle outside the progress bar represent different time scales.
[0090] In this embodiment, the user can clearly know the different time scales corresponding to the progress bar through the above-mentioned manner.
[0091] In an exemplary embodiment, after setting multiple time scales for the progress bar of the target video according to the current playing time, the following steps S31-S32 can also be performed:
[0092] Step S31: Select multiple playing times within the time scale corresponding to each part of the progress bar included in the progress bar, and determine the video frame corresponding to each playing time in the target video in the multiple playing times;
[0093] Step S32: When the control component of the target device moves to the video frame positioning point corresponding to each playing time on the progress bar, display the video frame corresponding to each playing time in the target device.
[0094] As an optional example, the control component includes but is not limited to a cursor and the like.
[0095] That is, the inside of each part of the progress bar can also be subdivided into a case of one lower scale, and then each small section inside can obtain a key frame for display, and an event key frame is preferentially selected. As shown Figure 18 The part of the progress bar corresponding to t3-t4 time can be represented by the right internal subdivided progress bar. The subdivided small block transverse time can be used to display multiple key frames in this small section in the actual process, which facilitates the user to quickly specify to the interested playing time.
[0096] In one exemplary embodiment, after setting multiple time scales for the progress bar of the target video according to the current playing time, there is further a step of: in the case that the control component of the target device is moved to a target video frame positioning point of the progress bar, determining the time corresponding to the target video frame positioning point as a target playing time; and setting multiple time scales for the progress bar of the target video again according to the target playing time.
[0097] As an optional example, when a large-span range of the sliding / dragging progress bar is used to search for a video recording, it is only required to slide / drag the target playing time of the progress bar to the rear of the playing cursor and then release the hand, and then the target device will re-divide the progress bar into different time scales with the target playing time as the center, at this time, the time scale of the part of the progress bar where the target playing time is located is small, and then the user can make fine adjustment, thereby making the large-span search for the video recording simple, fast and accurate. Optionally, the target playing time of the sliding / dragging progress bar can be Figure 7 t`5 as shown, and the time other than t5.
[0098] As an optional example, the method of setting multiple time scales for the progress bar of the target video according to the target playing time is the same as the method of setting multiple time scales for the progress bar of the target video according to the current playing time.
[0099] Obviously, the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. In order to better understand the above-described time scale setting method, the above-described process is described below in combination with the embodiments, but is not used to limit the technical solutions of the embodiments of the present application, specifically:
[0100] As an optional example, as shown in Figure 3 the present application is applicable to the WEB client / human-machine client display of the front-end management client device such as NVR / VMS, and is also applicable to the mobile client such as the mobile phone APP management access to the device in the cloud. That is, after the front-end camera collects audio and video, it is transmitted to the client device through the network, and then played by the client of the client management device. It should be noted that, Figure 3 the IPC in the above is a network camera.
[0101] As an optional example, the present application processes the time scales of the client playing progress bar, so that the time scale of the progress bar corresponding to the current media stream playing time is small, and the time scale of the progress bar far away from the current playing time is large. It is convenient to search for video recording data with a large time span, and it is also convenient to locate the playing time to the second level and search for video recording by date. The user operation is simple, the search for video recording is fast and accurate, and the user experience is greatly improved. Specifically, there are the following steps:
[0102] 1. Query the current playing time and date.
[0103] 2. Confirm the preset playing time of a certain day. If it is a video recording of the current day, the playing time of the video recording is the beginning time of the nearest video file before the current time. If it is a video recording of other days, find the video file of the same time as the current time, if not, the playing time of the nearest video file before and after the current time is taken as the playing time of the video recording.
[0104] 3. If the current playing time is t in a certain day, and the manual jump to other days for query, the playing time is the time of the nearest video file before and after the playing time t in the new day.
[0105] It should be noted that the playing time of the video recording can be determined by the above steps 1-3.
[0106] 4. After the video recording query is completed, the video recording is segmented to the past and future time around the current playing time, that is, different thickness progress bars display different scale time span video recordings, as shown in Figure 7 Specifically:
[0107] (1) If the current time is t, and the video recording of t time of the previous day is queried, the preset t1-t time interval before and after t is the smallest time scale, such as 60 seconds, and the sliding / dragging progress bar can be accurately controlled to the second time; the time t2 after the time t1, t2-t1 is another time scale, such as 5 minutes; the time t3 after the time t2, t3-t2 is the hour scale, such as 1h; the time t4 after the time t3, t4-t3 is the 1 / 4 day scale, such as 6h; the time t5 after the time t4, t5-t6 is the half day scale, such as 12h; the width of the progress bar of different time scales is shown in Figure 7 The smaller the time scale, the thinner the progress bar, and the larger the scale, the thicker the progress bar.
[0108] (2) The video recordings before the current time t, such as t`1, t`2, t`3, t`4, t`5, have different time scales between two time points, and the principle is that the farther away from the current playing time, the thicker the progress bar, and the larger the time span.
[0109] (3) Similarly, the smaller the time scale, the thicker the progress bar, and the larger the scale, the thinner the progress bar, such as Figure 8In actual use, it is not limited to using different colors of the progress bar to represent different time scales; it is not limited to using a certain progress bar with a trend of thick and thin over time to represent the change of time scale. Each segment of the application is an equal scale time scale, such as between t1 and t2, which is an equal scale, or it can not be an equal scale, i.e. the time granularity is larger as it is farther away from the current playing time, and the granularity of the current playing time is the smallest, such as shown in Figure 9 and Figure 10 The length of the progress bar of a certain time period can be set according to actual needs. The method is not limited to being represented by the progress bar, and also includes using different colors and other identifiers outside the progress bar to represent different time scales, such as Figure 11 using different colors outside the progress bar to represent the scale.
[0110] (4) The case is not limited to the number of segments divided by different time scales, and the appropriate scale number can be selected according to the playing client, such as a certain client with a large screen, which can change the segment number and time span to be larger, such as Figure 12 . For a small screen client, the segment number and time span can be appropriately reduced for user operation, such as shown in Figure 13
[0111] 5. Based on the above video division, as an optional example, when searching for a playing video by sliding / dragging the progress bar in a large span range, only the target playing time of the progress bar needs to be slid / dragged to the playing cursor and then released, and then the client re-divides the scales of different times with the time as the center. At this time, the time scale of the progress bar where the playing time is located is small, and then the user can fine-tune it. Therefore, it can be seen that the large-span query video operation is simple, fast and accurate.
[0112] 6. The existing technology generally can only query the video of a certain day, and for the next day video query, it needs to manually go to the next day or after the current day video is played to enter the next day, which is extremely inconvenient for user operation. Based on Figure 7 If the current time is 12 noon of a certain day, the video before 7:06 am of the next day and the video after 4:54 am of the previous day can be queried. As shown in Figure 12 Based on Figure 7 , the video of the previous and next two days can be further queried.
[0113] 7. For the solution that only the recordings of the current day can be queried at the current moment, this solution has the following implementation method. As the playback time gets closer to the end of the day, the number of different time scale segments after the current moment becomes smaller and smaller, and the corresponding time span becomes smaller and smaller; since the current playback time is close to the end of the day, it can be seen that the playback time is getting farther and farther from the 0 moment at the beginning of the day, and the number of segments of different time scales can become larger, and the time span becomes longer. Correspondingly, the time interval of the progress bar from the 0 moment and 24 moment at the beginning of the day is getting larger and smaller due to the change of the current playback time. Figure 14 As shown in , the playback time is close to 24:00 on the same day, and the different time scales become fewer after that. The largest time difference of the time scale is 24-t2. Figure 15 As shown, if the playback time of the day begins shortly, for example, at 2:00 AM, the span from t4 to 24:00 is 24-t4. The time span from time 0 is less than 12 hours. If the number of segments remains unchanged, the time span is t'3-0. That is, as a certain length of video is played, the time scale from 0 / 24:00 on the same day changes, until the scale is reduced to seconds. This embodiment addresses the issue of only being able to play videos from a specific day.
[0114] 8. In addition, in order to facilitate the query of the videos of the day before and after the current day, this embodiment can reserve a progress bar video after 24:00 and before 0:00 on the current day. When querying the videos of a certain day, the 12-hour videos of the two days before and after are found and spliced to the upper and lower adjacent positions of the progress bar of the current day's video to indicate the videos of the previous / next day, such as within a 12-hour range. Figure 16 It is convenient for users to slide / drag the progress bar to reach the previous and next dates, and to query across adjacent previous and next dates. For the playback time from the current time (actual time), the display can be as follows Figure 17 shown.
[0115] 9. For large-scale situations, the progress bar can also be subdivided into smaller-scale situations, and then each small segment can obtain a key frame for display, with event key frames being preferred. Figure 18 The progress bar can be represented by the subdivided progress bar on the right. These small horizontal time segments can be used to display multiple keyframes within each segment, allowing users to quickly select the desired playback moment.
[0116] 10. This application is applicable to standard, full-length recordings, including surveillance footage, movies, short videos, and other media files. It is also applicable to event recordings. For event recordings, gaps between unrecorded events can be represented by blank spaces, without affecting the time scale of recordings across different time periods. Since recorded events typically span a larger time scale, event queries are faster, more convenient, and more accurate, and user operation is also very simple.
[0117] Briefly, the embodiments of the present application provide:
[0118] 1. A video stream target recording progress bar scale division method: the time scale of the progress bar is divided, the recording play scale near the current play time is small, and the farther away from the current play time, the larger the scale is. Limited to the thickness, length, color, and whether the scale is proportional, etc. In addition, the current play time of the progress bar can be adjusted by sliding / dragging to a farther play time. It is convenient to locate the target play time near the target play time by crossing a large time scale, and then fine-tune. Further, it can have large time scale query and small time precise positioning.
[0119] 2. A recording query method: by pre-querying the recordings of adjacent dates, and then splicing before and after the recording of the current date that will be played, it is convenient for users to cross-day query and specify the target recording play time across days. The user operation is simple and convenient, and the search efficiency is high.
[0120] It should be noted that the present application also has the following advantages:
[0121] (1) It can accurately locate the second-level play time, avoid repeatedly sliding / dragging the progress bar to position in a large time scale, and also avoid the tedious operation of adjusting to a small time scale in the original scheme, and then adjusting back to a large time scale.
[0122] (2) It can conveniently play recordings across a large time range, avoid the prior art of sliding / dragging a long time to reach the target play time in a small time scale, and adjust the time scale to reach the vicinity of the target play time, and then adjust the small time scale for fine-tuning operation, so that the user can quickly and conveniently search, accurately, and the user experience is good.
[0123] (3) Compared with the prior art that can only query recordings of a day, it can display to-be-played and played recordings across days, query recordings across days, and specify target play times across days, which is more convenient and faster than the original scheme of querying recordings of adjacent dates.
[0124] (4) The time span of each scale can be reasonably adjusted according to the play time and the size of the client display screen, so as to facilitate users to reasonably search and play target time recordings.
[0125] Those skilled in the art can clearly understand that the method according to the above-mentioned embodiments can be realized by means of software on a general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device) to execute the method of each embodiment of the present application.
[0126] In the present embodiment, a time scale setting device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware, or a combination of software and hardware is also possible and is contemplated.
[0127] Figure 19 is a structural block diagram of a time scale setting device according to an embodiment of the present application, which comprises:
[0128] A determination module 192 is configured to determine a corresponding current playing time of a current video frame of a target video in the target video during playing of the target video by a target device.
[0129] A setting module 194 is configured to set a plurality of time scales for a progress bar of the target video according to the current playing time, wherein the progress bar comprises a plurality of partial progress bars divided according to a preset rule, the plurality of partial progress bars correspond to the plurality of time scales one by one, a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars.
[0130] By the above device, in the process that the target device plays the target video, a plurality of time scales are set for the progress bar of the target video according to a current playing time of the target video, so that the plurality of partial progress bars in the progress bar correspond to the plurality of time scales one by one, and the time scale corresponding to the first partial progress bar is smaller than the time scales corresponding to the other partial progress bars, the time range of the first partial progress bar includes the current playing time, and the plurality of partial progress bars include the first partial progress bar and the other partial progress bars. Since the time scale of the progress bar corresponding to the current playing time is smaller than that of the other progress bars, the problem that large-time-span video retrieval and small-time-span video retrieval cannot be considered at the same time when video is played is solved. Therefore, the user can conveniently search for large-time-span video and small-time-span video, and the use experience of the user when searching for video is improved.
[0131] In an exemplary embodiment, the above device further includes a control module configured to determine a starting playing time of the target video before the target device plays the target video, and control the target device to play the target video from the starting playing time of the target video by: in a case where a current time is located in a first time range, determining a starting playing time of a sub-video closest to the current time from a recording completion time as the starting playing time of the target video; in a case where the current time is not located in the first time range, determining a reference time corresponding to the current time in the first time range, and determining a starting playing time of a sub-video closest to the reference time from a recording completion time or a recording starting time as the starting playing time of the target video; wherein the target video includes the sub-video; the first time range is a recording time range in which the sub-video to be queried is located; and the target video includes video frames of a plurality of continuous time points, and the plurality of continuous time points include the starting playing time.
[0132] In an exemplary embodiment, the setting module 194 is further configured to determine a current video frame positioning point in the progress bar corresponding to the current playing time; divide the progress bar into a history progress bar and a target progress bar according to the current video frame positioning point, wherein the history progress bar is a progress bar corresponding to a preset time period before the current playing time, and the target progress bar is a progress bar corresponding to a preset time period after the current playing time; and set a plurality of time scales for the history progress bar and the target progress bar, respectively.
[0133] In an example embodiment, the setting module 194 is further configured to, in the process of dividing the progress bar into the history progress bar and the target progress bar according to the current video frame positioning point, determine the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar by at least one of the following manners: obtaining the size of the display of the target device, and determining the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar according to the size of the display; obtaining a second time range, and determining the number of partial progress bars included in the history progress bar and the number of partial progress bars included in the target progress bar according to the second time range, wherein the second time range is a time range in which video content in the target video is allowed to be played.
[0134] In an example embodiment, the setting module 194 is further configured to set a plurality of first time scales for the partial progress bars included in the history progress bar according to a setting rule, wherein the setting rule is used to indicate that the first time scales are set in a gradually increasing manner according to a change trend of time difference between the partial progress bars included in the history progress bar and the current video frame positioning point from small to large; and set a plurality of second time scales for the partial progress bars included in the target progress bar according to a setting rule, wherein the setting rule is used to indicate that the second time scales are set in a gradually increasing manner according to a change trend of time difference between the partial progress bars included in the target progress bar and the current video frame positioning point from small to large.
[0135] In an example embodiment, each of the partial progress bars includes a plurality of video frame positioning points, each of the video frame positioning points corresponds to a playing time of the target video, each of the video frame positioning points has a first video frame positioning point and a second video frame positioning point adjacent to each other; the time difference between each of the video frame positioning points and the first video frame positioning point is greater than or equal to the time difference between each of the video frame positioning points and the second video frame positioning point; the time difference between the first video frame positioning point and the current video frame positioning point is greater than the time difference between the second video frame positioning point and the current video frame positioning point; and the current video frame positioning point is a point in the progress bar corresponding to the current playing time.
[0136] In an example embodiment, the apparatus further comprises a display module configured to, after setting the plurality of time scales for the progress bar of the target video according to the current play time, determine a coarse group state of each of the plurality of partial progress bars according to the time scale corresponding to the each of the plurality of partial progress bars, and display the progress bar in the display of the target device according to the coarse group state of the each of the plurality of partial progress bars, wherein the greater the time range of the time scale of the each of the plurality of partial progress bars, the thicker or thinner the each of the plurality of partial progress bars is displayed in the display; and / or determine a color corresponding to the each of the plurality of partial progress bars according to the time scale corresponding to the each of the plurality of partial progress bars, and display the progress bar in the display of the target device according to the color corresponding to the each of the plurality of partial progress bars; and / or display a target shape of the color corresponding to the each of the plurality of partial progress bars in a preset area corresponding to the each of the plurality of partial progress bars when the progress bar is displayed in the display of the target device, wherein the area of the target shape is positively correlated with the coarse group state of the each of the plurality of partial progress bars.
[0137] In an example embodiment, the setting module 194 is further configured to, after setting the plurality of time scales for the progress bar of the target video according to the current play time, select a plurality of play times within the time scale corresponding to each of the plurality of partial progress bars included in the progress bar, and determine a video frame corresponding to each of the plurality of play times in the target video; display the video frame corresponding to each of the plurality of play times in the target device when the control component of the target device is moved to a video frame positioning point corresponding to the each of the plurality of play times in the progress bar.
[0138] In an example embodiment, the setting module 194 is further configured to, after setting the plurality of time scales for the progress bar of the target video according to the current play time, determine a target play time corresponding to a target video frame positioning point of the progress bar when the control component of the target device is moved to the target video frame positioning point, and set the plurality of time scales for the progress bar of the target video again according to the target play time.
[0139] Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the steps in any of the method embodiments described above when running.
[0140] Optionally, in the present embodiment, the storage medium can be configured to store a computer program for executing the following steps:
[0141] S1, in a process of playing a target video on a target device, determining a current playing time corresponding to a current video frame of the target video in the target video;
[0142] S2, setting a plurality of time scales for a progress bar of the target video according to the current playing time, wherein the progress bar comprises a plurality of partial progress bars divided according to a preset rule, the plurality of partial progress bars correspond to the plurality of time scales one by one, a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars.
[0143] In an example embodiment, the computer readable storage medium described above can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0144] The specific examples in the embodiment can refer to the examples described in the above embodiments and example implementations, and the embodiment will not be described here.
[0145] The embodiment of the application further provides an electronic device comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the method embodiments.
[0146] Optionally, in the embodiment, the processor can be configured to execute the following steps by the computer program:
[0147] S1, in a process of playing a target video on a target device, determining a current playing time corresponding to a current video frame of the target video in the target video;
[0148] S2, setting a plurality of time scales for a progress bar of the target video according to the current playing time, wherein the progress bar comprises a plurality of partial progress bars divided according to a preset rule, the plurality of partial progress bars correspond to the plurality of time scales one by one, a time scale corresponding to a first partial progress bar is smaller than time scales corresponding to other partial progress bars, a time range of the first partial progress bar comprises the current playing time, and the plurality of partial progress bars comprise the first partial progress bar and the other partial progress bars.
[0149] In one example embodiment, the electronic device described above can further include a transmission device connected to the processor and an input / output device connected to the processor.
[0150] The specific examples in the embodiments can refer to the examples described in the above embodiments and exemplary implementation, which will not be repeated here.
[0151] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, which can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be made into individual integrated circuit modules, or multiple modules or steps can be made into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0152] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various modifications and changes to the present application. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for setting a time scale, characterized in that: include: During the process of the target device playing the target video, determining a current playback moment corresponding to a current video frame of the target video in the target video; Setting multiple time scales for the progress bar of the target video according to the current playback moment, wherein the progress bar includes: multiple partial progress bars divided according to a preset rule, the multiple partial progress bars correspond one-to-one to the multiple time scales, the time scale corresponding to the first partial progress bar is smaller than the time scales corresponding to the other partial progress bars, the time range of the first partial progress bar includes the current playback moment, and the multiple partial progress bars include: the first partial progress bar and the other partial progress bars; Each of the plurality of partial progress bars includes a plurality of video frame positioning points, each video frame positioning point corresponds to a playback moment of the target video, and each video frame positioning point has a first video frame positioning point and a second video frame positioning point that are adjacent to each other; a time difference between each video frame positioning point and the first video frame positioning point is greater than a time difference between each video frame positioning point and the second video frame positioning point; a time difference between the first video frame positioning point and the current video frame positioning point is greater than a time difference between the second video frame positioning point and the current video frame positioning point; and the current video frame positioning point is a point in the progress bar corresponding to the current playback moment; Among them, after setting multiple time scales for the progress bar of the target video according to the current playback moment, the method also includes: selecting multiple playback moments within the time scale corresponding to each of the multiple partial progress bars included in the progress bar, and determining the video frame corresponding to each of the multiple playback moments in the target video; when the control component of the target device moves to the video frame positioning point corresponding to each playback moment on the progress bar, the video frame corresponding to each playback moment is displayed in the target device.
2. The method according to claim 1, characterized in that Before the target device plays the target video, the method further includes: The start time of playing the target video is determined by the following method, and the target device is controlled to play the target video from the start time of playing the target video: When the current moment is within the first time range, determining the start playback time of a sub-video whose recording completion time is closest to the current moment as the start playback time of the target video; If the current moment is not within the first time range, determining a reference moment corresponding to the current moment in the first time range, and determining the start playback moment of a sub-video whose recording completion moment or recording start moment is closest to the reference moment as the start playback moment of the target video; The target video includes the sub-video; the first time range is the recording time range of the sub-video to be queried; the target video includes video frames at multiple consecutive moments, and the multiple consecutive moments include the start playback moment.
3. The method according to claim 1, characterized in that Setting multiple time scales for the progress bar of the target video according to the current playback time, including: Determining that the current playback moment corresponds to a current video frame positioning point in the progress bar; Dividing the progress bar into a historical progress bar and a target progress bar according to the current video frame positioning point, wherein the historical progress bar is a progress bar corresponding to a preset time period before the current playback moment, and the target progress bar is a progress bar corresponding to a preset time period after the current playback moment; A plurality of time scales are set for the history progress bar and the target progress bar respectively.
4. The method according to claim 3, characterized in that In the process of dividing the progress bar into a historical progress bar and a target progress bar according to the current video frame positioning point, the method further includes: The multiple partial progress bars included in the historical progress bar and the multiple partial progress bars included in the target progress bar are determined by at least one of the following methods: Acquire the size of the display of the target device, and determine the multiple partial progress bars included in the historical progress bar and the multiple partial progress bars included in the target progress bar according to the size of the display; Obtain a second time range, and determine multiple partial progress bars included in the historical progress bar and multiple partial progress bars included in the target progress bar based on the second time range, wherein the second time range is a time range in which video content is allowed to be played in the target video.
5. The method according to claim 3, wherein Multiple time scales are set for the historical progress bar and the target progress bar respectively, including: Setting a plurality of first time scales for the plurality of partial progress bars included in the historical progress bar according to a setting rule, wherein the setting rule is used to indicate setting gradually increasing first time scales according to a changing trend of a time difference between the plurality of partial progress bars included in the historical progress bar and the current video frame positioning point from small to large; and Multiple second time scales are set for the multiple partial progress bars included in the target progress bar according to the setting rules, wherein the setting rules are used to indicate that the gradually increasing second time scales are set according to the changing trend of the time difference between the multiple partial progress bars included in the target progress bar and the current video frame positioning point from small to large.
6. The method according to any one of claims 1 to 5, characterized in that After setting multiple time scales for the progress bar of the target video according to the current playback time, the method further includes: determining a coarse group state corresponding to each of the plurality of partial progress bars included in the progress bar according to a time scale corresponding to each of the partial progress bars, and displaying the progress bar on a display of the target device according to the coarse group state corresponding to each of the partial progress bars, wherein the larger the time range of the time scale of each partial progress bar, the thicker or thinner each partial progress bar is when displayed on the display; and / or Determining a color corresponding to each partial progress bar in a plurality of partial progress bars included in the progress bar according to a time scale corresponding to each partial progress bar, and displaying the progress bar on a display of the target device according to the color corresponding to each partial progress bar; and / or When the progress bar is displayed on the display of the target device, a target shape of the color corresponding to each partial progress bar is displayed in the preset area corresponding to each partial progress bar, wherein the area of the target shape is positively correlated with the coarse group state of each partial progress bar.
7. The method according to any one of claims 1 to 5, characterized in that After setting multiple time scales for the progress bar of the target video according to the current playback time, the method further includes: When the control component of the target device moves to the target video frame positioning point of the progress bar, determining the time corresponding to the target video frame positioning point as the target playback time; Multiple time scales are set again for the progress bar of the target video according to the target playback time.
8. A time scale setting device, characterized in that: include: a determination module, configured to determine, during a process of a target device playing a target video, a current playback moment corresponding to a current video frame of the target video in the target video; a setting module, configured to set multiple time scales for the progress bar of the target video according to the current playback moment, wherein the progress bar includes: multiple partial progress bars divided according to a preset rule, the multiple partial progress bars correspond one-to-one to the multiple time scales, the time scale corresponding to the first partial progress bar is smaller than the time scales corresponding to the other partial progress bars, the time range of the first partial progress bar includes the current playback moment, and the multiple partial progress bars include: the first partial progress bar and the other partial progress bars; Each of the plurality of partial progress bars includes a plurality of video frame positioning points, each video frame positioning point corresponds to a playback moment of the target video, and each video frame positioning point has a first video frame positioning point and a second video frame positioning point that are adjacent to each other; a time difference between each video frame positioning point and the first video frame positioning point is greater than a time difference between each video frame positioning point and the second video frame positioning point; a time difference between the first video frame positioning point and the current video frame positioning point is greater than a time difference between the second video frame positioning point and the current video frame positioning point; and the current video frame positioning point is a point in the progress bar corresponding to the current playback moment; Among them, the setting module is also used to set multiple time scales for the progress bar of the target video according to the current playback moment, select multiple playback moments within the time scale corresponding to each of the multiple partial progress bars included in the progress bar, and determine the video frame corresponding to each of the multiple playback moments in the target video; when the control component of the target device moves to the video frame positioning point corresponding to each playback moment on the progress bar, the video frame corresponding to each playback moment is displayed in the target device.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Dynamically scaled navigation system for social network data
US20140013243A1