A video marking method and device, electronic equipment and storage medium
By identifying and inserting tags during video recording, the problem of low efficiency in manual tagging after video recording is solved, achieving efficient video tagging and reducing storage size.
Patent Information
- Application Number
- CN202310349526.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-03-31
AI Technical Summary
In existing video tagging methods, the process involves manually marking the timestamps and names of key parts of the video after recording, and then storing these marks in association with the video. This tagging method is inefficient and increases the storage size and management workload of the video.
During video recording, the target timestamp corresponding to the tag to be added is determined, and the tag is inserted at the target timestamp of the target video. The tag is a marker indicating the position of the target video frame corresponding to the target timestamp.
It enables marking during video recording, improving marking efficiency, reducing video storage size and management workload, and eliminating the need for additional file storage of marked files.
Smart Images

Figure CN116405624B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a video marking method and device, electronic equipment and storage medium. BACKGROUND
[0002] With the continuous development of video technology, in the process of watching video, because the playing time of part of the video is long or the user is only interested in part of the content of the video, how to accurately locate the exciting part or the part of interest of the user in the video has become a demand of the user watching the video.
[0003] In the related art, for the recorded video, the time stamp corresponding to the exciting part in the video is determined manually, and the exciting part is named. The time stamp corresponding to the exciting part in the video is associated with the name, and is stored in association with the video, so that the user can watch the content of interest according to the time stamp and the name of the exciting part marked and associated by the user when watching the video. However, in the related art, the time stamp and the name of the exciting part in the video need to be marked manually after the video is recorded, and are stored in association with the video, which is low in marking efficiency, and additional files are needed to store the time stamp and the name of the exciting part in the video, increasing the storage size of the video and the workload of management. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a video marking method, device, electronic equipment and storage medium to improve the marking efficiency of the video, reduce the storage size of the video and the workload of management. The specific technical solutions are as follows:
[0005] In a first aspect, the embodiments of the present application provide a video marking method, which comprises:
[0006] In the recording process of the target video, determine the target time stamp corresponding to the label to be added;
[0007] Insert a label at the target time stamp of the target video, and the label is a mark indicating the target video frame position corresponding to the target time stamp.
[0008] In a possible implementation, the determination of the target time stamp corresponding to the label to be added comprises:
[0009] Determine whether the currently recorded video frame of the target video meets a preset condition;
[0010] In the case where the currently recorded video frame meets the preset condition, obtain the time stamp of the currently recorded video frame to obtain the target time stamp.
[0011] In a possible implementation, the determining the target timestamp corresponding to the label to be added during the recording of the target video comprises:
[0012] During the recording of the target video, when the label adding instruction is received, a timestamp of a current time is acquired to obtain the target timestamp.
[0013] In a possible implementation, the inserting the label at the target timestamp of the target video comprises:
[0014] A target video frame corresponding to the target timestamp in the target video is determined, and the label is inserted before or after the target video frame.
[0015] In a possible implementation, the method further comprises:
[0016] The video frames included in the target video are scanned, and it is determined whether the target video includes a label;
[0017] In the case that the target video includes the label, a target timestamp corresponding to the label is determined;
[0018] Based on the label and the target timestamp corresponding to the label, a label list corresponding to the target video is constructed.
[0019] In a possible implementation, the method further comprises:
[0020] The label included in the label list and the target timestamp corresponding to the label are displayed;
[0021] A selection instruction for the label included in the label list or the target timestamp corresponding to the label is received;
[0022] The video frames after the label corresponding to the selection instruction in the target video are played.
[0023] In a possible implementation, the determining whether the currently recorded video frame of the target video meets a preset condition comprises:
[0024] It is determined whether a target object is included in the currently recorded video frame of the target video, the target object being at least one of the following: a target scene, a target geographical location or a target person.
[0025] In a second aspect, an embodiment of the present application provides a video marking device, and the device comprises:
[0026] A timestamp determination module is configured to determine a target timestamp corresponding to a label to be added during the recording of a target video.
[0027] A video marking module is configured to insert a label at a target timestamp of the target video, the label being a mark indicating a target video frame position corresponding to the target timestamp.
[0028] In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.
[0029] The memory is configured to store a computer program.
[0030] The processor is configured to execute the program stored in the memory, and implement the method steps of any of the above.
[0031] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the method steps of any of the above.
[0032] The embodiments of the present application also provide a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the method steps of any of the above.
[0033] The embodiments of the present application have the following beneficial effects:
[0034] The video marking method and device, the electronic device and the storage medium provided by the embodiments of the present application can directly determine a target timestamp corresponding to a label to be added in the recording process of a target video, and insert a label indicating a target video frame position corresponding to the target timestamp at the target timestamp of the target video, so that the marking of the target video is placed in the internal part of the target video, the marking in the recording process of the target video is realized, and then manual marking of the target video after the recording of the target video is completed is not needed, the marking efficiency is higher, and the label inserted in the recording process is part of the target video, which almost does not affect the storage size of the target video, and additional files are not needed to store the marking files of the target video, compared with storing the marking files of the target video, the storage size of the target video and the management workload are reduced.
[0035] Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above. BRIEF DESCRIPTION OF DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and other embodiments can also be obtained by those skilled in the art according to these drawings.
[0037] Figure 1 A flowchart of a video marking method provided by an embodiment of the present application is shown in FIG. 1.
[0038] Figure 2 A display diagram of inserting a label provided by an embodiment of the present application is shown in FIG. 2.
[0039] Figure 3 A flowchart of another video marking method provided by an embodiment of the present application is shown in FIG. 3.
[0040] Figure 4 A structural diagram of a video marking device provided by an embodiment of the present application is shown in FIG. 4.
[0041] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art based on the present application belong to the scope of protection of the present application.
[0043] With the development of computer technology, electronic files and the like provide more convenience for users in people's life. In the use process of electronic files, it is simpler to search for target content by using electronic files. With the application of multimedia technology, how to accurately locate the multimedia content stored by using electronic files has become a problem to be solved.
[0044] In the related art, a person manually determines the time stamp corresponding to the highlight part of a recorded video and names the highlight part, associates the time stamp corresponding to the highlight part in the video with the name, and stores the time stamp and the name in association with the video, so that the user can select the content of interest for viewing according to the time stamp and the name of the marked and associated highlight part when watching the video. In this process, the time stamp and the name of the highlight part in the video need to be manually marked after the video is recorded and stored in association with the video, which is low in marking efficiency and requires additional files to store the time stamp and the name of the highlight part in the video, thereby increasing the storage size of the video and the workload of management.
[0045] To solve the above problems, an embodiment of the present application provides a video marking method. In the recording process of a target video, a target time stamp corresponding to a label to be added is determined, and the label is inserted at the target time stamp of the target video, the label being a mark indicating the frame position of the target video corresponding to the target time stamp.
[0046] In the embodiment of the present application, the target timestamp corresponding to the label to be added can be directly determined during the recording process of the target video, and a label indicating the frame position of the target video corresponding to the target timestamp is inserted at the target timestamp of the target video, so that the marking of the target video is placed inside the target video, the marking during the recording process of the target video is realized, and then manual marking of the target video after the recording of the target video is completed is not required, the marking efficiency is higher, and the label inserted during the recording process is part of the target video and almost does not affect the storage size of the target video, and no additional file is required to store the marking file of the target video, compared with storing the marking file of the target video, the storage size of the target video and the management workload are reduced.
[0047] The video marking method provided by the present application will be described in detail below through specific embodiments.
[0048] The video marking method provided by the embodiment of the present application can be applied to any electronic device capable of realizing video recording or video production, such as a terminal, a server, and the like. The video marking method provided by the embodiment of the present application can be applied to the marking scene of multimedia videos such as long videos, short videos, and films.
[0049] Referring to Figure 1 , Figure 1 The video marking method provided by the embodiment of the present application comprises the following steps.
[0050] S101, determining a target timestamp corresponding to a label to be added during the recording process of a target video.
[0051] The target timestamp corresponding to the label to be added is a timestamp corresponding to the target video that needs to be labeled during the recording process of the target video. The timestamp corresponds to the time in the target video. For example, the duration of the target video is 2 hours, and the target timestamp is the 10:00 minute, 20:00 minute, or 30:00 minute of the target video, and the like. The recording of the target video can also be referred to as the shooting of the target video.
[0052] In a possible implementation, the electronic device detects the content contained in the video frame currently recorded by the target video in real time during the recording process of the target video, and in the case where it is detected that the video frame currently recorded contains a certain specific content, such as a certain star, a certain famous historical site, or a specific angle, etc., it indicates that the video frame currently recorded is a wonderful shot or content of interest to the user, and at this time, the timestamp of the video frame currently recorded is determined as the target timestamp corresponding to the label to be added.
[0053] In another possible implementation, during recording of the target video, a recorder of the target video or another user finds that the content under the current shot is a highlight shot or content of interest, and triggers the electronic device to determine a time stamp corresponding to the current time as the target time stamp corresponding to the label to be added.
[0054] S102, inserting the label at the target time stamp of the target video.
[0055] In a case where the target time stamp corresponding to the label to be added is determined, the label is directly inserted at the target time stamp of the target video, the label is a mark indicating a frame position of the target video corresponding to the target time stamp, and the target time stamp and the label correspond to each other in a one-to-one manner.
[0056] In one example, the label can be a label frame, which is a frame with a preset visual feature, and is used to mark the position of the target video frame corresponding to the target time stamp. The frame with the preset visual feature can be a frame with a visual angle feature that is different from visual angle features of video frames in the target video, and the frame with the preset visual feature has a relatively low probability of appearing in the target video, such as a frame with a full screen of a pure color, for example, a full screen of red, a full screen of yellow, or a full screen of green. Therefore, the frame with the preset visual feature is more easily distinguished from the video frames in the target video, and is convenient for identification and detection. The label can also be text information, special symbols, or other mark information that can be used to mark the position of the target video frame corresponding to the target time stamp.
[0057] In one possible implementation, step S102 of inserting the label at the target time stamp of the target video can include: determining a target video frame in the target video corresponding to the target time stamp, and inserting the label before or after the target video frame.
[0058] In the embodiments of the application, the label is taken as an example of a label frame. In one example, the target video is represented in the form of a video stream, and the electronic device continuously obtains new video frames during recording of the target video. When the target time stamp corresponding to the label to be added is determined, a plurality of new video frames can have been generated. At this time, the target video frame corresponding to the target time stamp in the target video is determined, and the video frames adjacent to the target video frame before and after the target video frame are highly likely to be closely related to the target video frame. Therefore, it is feasible to insert the label before or after the target video frame, and the problem of inaccurate or untimely insertion of the label will not occur.
[0059] For example, the video recording function in the electronic device is started to record a target video. When the recording reaches 2:00 minutes, the electronic device detects that the current recording video frame contains a certain specific content (such as a certain historical site), indicating that the current recording video frame is a highlight or content of interest to the user. The timestamp of the current recording video frame is determined as the target timestamp corresponding to the label to be added (i.e., 2:00 minutes), but the recording process does not stop (i.e., the video frame is continuously acquired). At this time, another thread can be started to determine the target video frame corresponding to the target timestamp in the target video, and a label frame (a frame with a full screen of red) is inserted before or after the target video frame. After the label frame is inserted, the thread is closed.
[0060] In the embodiment of the present application, the target timestamp corresponding to the label to be added can be directly determined during the recording process of the target video, and a label frame indicating the position of the target video frame corresponding to the target timestamp is inserted at the target timestamp of the target video. The marking of the target video is placed inside the target video, which realizes the marking during the recording process of the target video. Furthermore, manual marking of the target video after the recording of the target video is completed is not required, the marking efficiency is high, and the label inserted during the recording process is part of the target video, which almost does not affect the storage size of the target video. In addition, no additional file is required to store the marking file of the target video, which reduces the storage size of the target video and the management workload compared with storing the marking file of the target video.
[0061] In a possible implementation, the step S101 of determining the target timestamp corresponding to the label to be added can include:
[0062] determining whether the current recording video frame of the target video meets a preset condition.
[0063] In a case where the current recording video frame meets the preset condition, the timestamp of the current recording video frame is acquired to obtain the target timestamp.
[0064] In one example, the electronic device can detect the content contained in the current recording video frame of the target video in real time during the recording process of the target video, further determine whether the current recording video frame meets the preset condition according to the content contained in the current recording video frame, and acquire the timestamp of the current recording video frame to obtain the target timestamp in a case where it is determined that the current recording video frame meets the preset condition.
[0065] In a possible implementation, the step of determining whether the current recording video frame of the target video meets the preset condition can include: determining whether the target object is contained in the current recording video frame of the target video, the target object being at least one of the following: a target scene, a target geographical location, or a target person.
[0066] In one example, the electronic device detects, in real time, content contained in a video frame currently recorded by the target video during recording of the target video, determines whether the target object, the target geographical location, and at least one of the target person, the target vehicle, and the target building are contained in the video frame currently recorded by the target video, and determines that the video frame currently recorded by the target video meets the preset condition if the content contained in the video frame currently recorded by the target video meets the preset condition.
[0067] In the embodiment of the present application, the electronic device can detect, in real time, content contained in a video frame currently recorded by the target video during recording of the target video, so as to determine the target timestamp corresponding to the label to be added based on the content contained in the video frame currently recorded by the target video, and then insert the label at the target timestamp of the target video, thereby achieving automatic labeling of the target video during recording of the target video.
[0068] In one possible implementation, the step S101 comprises the following steps.
[0069] When the recorder or other users of the target video find that the content under the current shot is a wonderful shot or content of interest and want to add a label, the electronic device receives a label adding instruction, and determines the timestamp of the current time as the target timestamp.
[0070] In one possible implementation, the method can further comprise the following steps.
[0071] Correspondingly, the step S101 comprises the following steps.
[0072] When the recorder or other users of the target video find that the content under the current shot is a wonderful shot or content of interest and want to add a label, the electronic device receives a label adding instruction, and determines the timestamp of the current time as the target timestamp.
[0073] In one possible implementation, the method can further comprise the following steps. Figure 2As shown, when recording a target video using an electronic device (such as a mobile phone), the recording interface for the target video is displayed when the user enables the target video recording function. This recording interface may include a tag addition button. Figure 2 The button shown in the lower left corner), the pause button ( Figure 2 The top right button), start / stop button ( Figure 2 The button in the middle on the right) and the camera button ( Figure 2 (The bottom right button, etc.) When the recorder of the target video or other users find the current footage to be a great shot or something of interest and want to add a tag, they can click the tag addition button on the recording interface. The electronic device receives the user's trigger command for the tag addition button, obtains the current timestamp to get the target timestamp, and inserts the tag at the target timestamp of the target video.
[0074] In this embodiment of the invention, through user interaction with electronic devices, tags are added to exciting shots or scenes of interest during the recording process of the target video, thereby achieving the marking of the target video during the recording process.
[0075] In one possible implementation, the above method may further include the following steps:
[0076] Step 1: Scan the video frames contained in the target video to determine whether the target video contains tags;
[0077] Step 2: If the target video contains tags, determine the target timestamp corresponding to the tags;
[0078] Step 3: Based on the tags and the target timestamps corresponding to the tags, construct a list of tags corresponding to the target video.
[0079] In one example, an electronic device scans all video frames contained in a target video, checks whether each video frame matches a tag, and if a match is found, determines that the target video contains a tag. Furthermore, it determines the target timestamp corresponding to the tag and constructs a tag list containing the tag and its corresponding target timestamp.
[0080] Exemplarily, the label is a label frame, and the electronic device scans all video frames contained in the target video against the target video, matches each video frame with the label frame respectively, to determine whether the label frame is contained in the target video. Since the label frame is inserted at the target timestamp of the target video, one label frame corresponds to one target timestamp, and in the case that the label frame is contained in the target video, the target timestamp corresponding to the label frame can be directly determined, which is the marked time point. The label frame and the target timestamp corresponding to the label frame are expressed in the form of a list, and a label list corresponding to the target video is constructed.
[0081] In a possible implementation, the label list corresponding to the target video can be constructed while the target video is being recorded and marked; the label list corresponding to the target video can also be constructed after the recording of the target video is completed (i.e., the target video is also marked).
[0082] In the embodiment of the application, the label list corresponding to the target video is constructed, which facilitates the checking of the labels contained in the target video, and in the process of playing the target video, the user can select the marked information contained in the label list to watch the node that the user wants to watch.
[0083] In a possible implementation, the method can further include the following steps:
[0084] Step A, displaying the labels contained in the label list and the target timestamps corresponding to the labels;
[0085] Step B, receiving a selection instruction for the labels contained in the label list or the target timestamps corresponding to the labels;
[0086] Step C, playing the video frames after the label corresponding to the selection instruction in the target video.
[0087] In an example, when the user plays the target video through a player of an electronic device, the labels contained in the label list and the target timestamps corresponding to the labels can be displayed at a relevant position of the interface of the player, such as being displayed on the interface of the player, or being displayed on the left side, right side, upper side or lower side of the interface of the player, etc. The user can select the labels contained in the label list or the target timestamps corresponding to the labels, and the electronic device plays the video frames after the label corresponding to the selection instruction in the target video when receiving the selection instruction of the user for the labels contained in the label list or the target timestamps corresponding to the labels.
[0088] In the embodiment of the present application, the user selects the label or the target timestamp corresponding to the label in the label list, and the video frame after the label corresponding to the selection instruction in the target video is played, and the label frame is not played, thereby improving the user's viewing experience.
[0089] In one example, when the electronic device receives the selection instruction of the user for the label or the target timestamp corresponding to the label in the label list, the label frame and the video frame after the label corresponding to the selection instruction in the target video can also be played. Alternatively, when the electronic device plays the target video, the label in the label list and the target timestamp corresponding to the label are not displayed, and at this time, all video frames (including the label frame) in the target video are directly played. For example, when the target video is played at a rate of 60 frames per second, and the label frame is not skipped and played, the label frame appears at a time of 1 / 60 second, i.e., it appears and disappears in a flash, and does not affect the user's viewing.
[0090] In a possible implementation, after the target video is recorded (i.e., the target video is also marked), the user can also receive the theme adding instruction for each label, and add a theme name to each label. Correspondingly, when the label list corresponding to the target video is constructed, the label, the target timestamp corresponding to the label, and the theme name of the label can be constructed in the label list corresponding to the target video. During the playing of the target video, the label, the target timestamp corresponding to the label, and the theme name of the label in the label list are displayed, so that the user can select the node content of interest.
[0091] Referring to Figure 3 , Figure 3 Another video marking method provided by the embodiment of the present application includes:
[0092] S301, determining a target timestamp corresponding to a label to be added during the recording of a target video;
[0093] In a possible implementation, during the recording of the target video, it is determined whether the currently recorded video frame of the target video meets a preset condition, and in the case that the currently recorded video frame meets the preset condition, the timestamp of the currently recorded video frame is obtained to obtain the target timestamp. Alternatively, during the recording of the target video, when a label adding instruction is received, the timestamp of the current time is obtained to obtain the target timestamp.
[0094] S302, determining a target video frame corresponding to the target timestamp in the target video, and inserting the label before or after the target video frame;
[0095] The label is a mark indicating the position of the target video frame corresponding to the target timestamp.
[0096] S303, scanning the video frames contained in the target video to determine whether the target video contains the label;
[0097] S304, in the case where the target video contains the label, determining the target timestamp corresponding to the label;
[0098] S305, constructing a label list corresponding to the target video based on the label and the target timestamp corresponding to the label;
[0099] S306, displaying the label contained in the label list and the target timestamp corresponding to the label.
[0100] In the embodiment of the application, the target timestamp corresponding to the label to be added can be directly determined during the recording process of the target video, and the target video frame corresponding to the target timestamp in the target video can be determined, and the label indicating the position of the target video frame corresponding to the target timestamp can be inserted before or after the target video frame, so that the marking of the target video is placed inside the target video, the marking during the recording process of the target video is realized, and then the target video does not need to be manually marked after the recording of the target video is completed, the marking efficiency is higher, and the label inserted during the recording process belongs to a part of the target video, which almost does not affect the storage size of the target video, and there is no need to additionally increase a file to store the marking file of the target video by using professional software, compared with storing the marking file of the target video, the storage size of the target video and the management workload are reduced. In addition, the label list corresponding to the target video is constructed, which facilitates the checking of the labels contained in the target video, and in the playing process of the target video, the user can select the marking information contained in the label list to watch the node that the user wants to watch.
[0101] Corresponding to the video marking method provided in the above embodiment, the embodiment of the application further provides a video marking device, as shown in the figure, the device comprises: Figure 4 The timestamp determination module 401 is configured to determine the target timestamp corresponding to the label to be added during the recording process of the target video.
[0102] The video marking module 402 is configured to insert the label at the target timestamp of the target video, and the label is a mark indicating the position of the target video frame corresponding to the target timestamp.
[0103]
[0104] The video marking device provided by the embodiment of the present application can directly determine the target timestamp corresponding to the label to be added in the recording process of the target video, and insert the label indicating the target video frame position corresponding to the target timestamp at the target timestamp of the target video, so that the marking of the target video is placed in the internal part of the target video, the marking in the recording process of the target video is realized, and then manual marking of the target video after the recording of the target video is completed is not needed, the marking efficiency is higher, and the label inserted in the recording process is part of the target video and almost does not affect the storage size of the target video, and no additional file is needed to store the marking file of the target video, compared with another storage of the marking file of the target video, the storage size of the target video and the management workload are reduced.
[0105] In a possible implementation, the determining of the target timestamp corresponding to the label to be added includes:
[0106] determining whether the currently recorded video frame of the target video meets a preset condition;
[0107] in a case where the currently recorded video frame meets the preset condition, obtaining the timestamp of the currently recorded video frame to obtain the target timestamp.
[0108] In a possible implementation, the timestamp determination module 401 is specifically configured to, in the recording process of the target video, obtain the timestamp of the current moment to obtain the target timestamp when the label adding instruction is received.
[0109] In a possible implementation, the video marking module 402 is specifically configured to determine the target video frame corresponding to the target timestamp in the target video, and insert the label before or after the target video frame.
[0110] In a possible implementation, the device further includes:
[0111] a label determination module configured to scan the video frames contained in the target video, and determine whether the target video contains a label;
[0112] a time determination module configured to, in a case where the target video contains the label, determine the target timestamp corresponding to the label;
[0113] a label list construction module configured to construct a label list corresponding to the target video based on the label and the target timestamp corresponding to the label.
[0114] In a possible implementation, the device further includes:
[0115] a display module configured to display the label contained in the label list and the target timestamp corresponding to the label;
[0116] The instruction receiving module is used to receive selection instructions for tags contained in the tag list or the target timestamp corresponding to the tags;
[0117] The video playback module is used to play the video frames following the tag corresponding to the selected instruction in the target video.
[0118] In one possible implementation, determining whether the currently recorded video frame of the target video meets the preset conditions includes: determining whether the currently recorded video frame of the target video contains a target object, wherein the target object is at least one of the following: target scenery, target geographical location, or target person.
[0119] This invention also provides an electronic device, such as... Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0120] Memory 503 is used to store computer programs;
[0121] When the processor 501 executes the program stored in the memory 503, it implements the steps of any of the above-mentioned video marking methods to achieve the same technical effect.
[0122] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0123] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0124] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0125] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0126] In another embodiment provided by the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any one of the video marking methods described above to achieve the same technical effects.
[0127] In another embodiment provided by the present application, a computer program product is provided, and the computer program product contains instructions. When the computer program product is run on a computer, the computer is caused to execute the steps of any one of the video marking methods described above to achieve the same technical effects.
[0128] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, solid state disk (SSD)) and the like.
[0129] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0130] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device / electronic device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0131] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A video marking method characterized by, The method comprises: In the recording process of the target video, determining a target timestamp corresponding to a label to be added; Inserting a label at the target timestamp of the target video, the label being a mark indicating a target frame position corresponding to the target timestamp; the label comprising: a label frame having a preset visual feature; the label frame having the preset visual feature being a full-screen frame of a pure color that is distinguished from visual features of each video frame in the target video; Scanning video frames contained in the target video to determine whether the target video contains a label; In the case where the target video contains a label, determining a target timestamp corresponding to the label; Receiving a theme adding instruction for each label to add a theme name to each label; Based on the label, the target timestamp corresponding to the label, and the theme name of the label, constructing a label list corresponding to the target video; The inserting of the label at the target timestamp of the target video comprises: determining a target video frame corresponding to the target timestamp in the target video, and inserting the label before or after the target video frame.
2. The method of claim 1, wherein, The determining of the target timestamp corresponding to the label to be added comprises: Determining whether a currently recorded video frame of the target video meets a preset condition; In the case where the currently recorded video frame meets the preset condition, obtaining a timestamp of the currently recorded video frame to obtain the target timestamp.
3. The method of claim 1, wherein, The method further comprises: Displaying the label and the target timestamp corresponding to the label contained in the label list; 4. The method of claim 1, wherein, Receiving a selection instruction for the label or the target timestamp corresponding to the label contained in the label list; Playing a video frame after the label corresponding to the selection instruction in the target video. The determining of whether the currently recorded video frame of the target video meets the preset condition comprises: Determining whether a target object is contained in the currently recorded video frame of the target video, the target object being at least one of the following: a target scene, a target geographical location, or a target person.
5. The method of claim 2, wherein, The device comprises: A timestamp determination module configured to determine a target timestamp corresponding to a label to be added in the recording process of a target video; 6. A video marking apparatus characterized by comprising: A video marking module configured to insert a label at the target timestamp of the target video, the label being a mark indicating a target frame position corresponding to the target timestamp; the label comprising: a label frame having a preset visual feature; the label frame having the preset visual feature being a full-screen frame of a pure color that is distinguished from visual features of each video frame in the target video; A label determination module configured to scan video frames contained in the target video to determine whether the target video contains a label; A time determination module configured to, in the case where the target video contains a label, determine a target timestamp corresponding to the label; and A theme adding module is configured to receive theme adding instructions for each label and add a theme name to each label; A label list constructing module is configured to construct a label list corresponding to the target video based on the labels, target time stamps corresponding to the labels, and theme names of the labels. The video marking module is specifically configured to determine a target video frame corresponding to the target time stamp in the target video, and insert a label before or after the target video frame.
7. An electronic device, comprising: The video marking device comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory are in communication with each other through the communication bus. The memory is configured to store a computer program. The processor is configured to execute the program stored in the memory to implement the method steps in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method steps in any one of claims 1-5.
Citation Information
Patent Citations
Video processing method and device, video playing method and device and storage medium
CN112543368A
Live video recording method and device, storage medium and electronic equipment
CN112702613A