WO2024061285A1 - 视频播放方法和装置 - Google Patents

视频播放方法和装置 Download PDF

Info

Publication number
WO2024061285A1
WO2024061285A1 PCT/CN2023/120135 CN2023120135W WO2024061285A1 WO 2024061285 A1 WO2024061285 A1 WO 2024061285A1 CN 2023120135 W CN2023120135 W CN 2023120135W WO 2024061285 A1 WO2024061285 A1 WO 2024061285A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
input
target object
playback
target
Prior art date
Application number
PCT/CN2023/120135
Other languages
English (en)
French (fr)
Inventor
缪溢翀
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024061285A1 publication Critical patent/WO2024061285A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames

Definitions

  • This application belongs to the field of video technology, and specifically relates to a video playback method and device.
  • users can watch videos through video applications.
  • the user can skip the content that he or she is not interested in by adjusting the playback parameters of the video.
  • the purpose of the embodiments of the present application is to provide a video playing method, device, electronic device and storage medium, which can solve the problem of poor flexibility of electronic devices playing videos.
  • inventions of the present application provide a video playback method.
  • the video playback method includes: receiving a first input from a user on a target object in a first video; in response to the first input, after detecting a target object in the first video, When the target object is included in the video screen, the adjustment control is displayed; a second input from the user to the adjustment control is received; in response to the second input, the first video containing the target object in the first video is adjusted according to the input parameter of the second input Playback parameters corresponding to the clip, and play the first video according to the adjusted playback parameters.
  • an embodiment of the present application provides a video playback device, which includes: a receiving module, a display module, and a playback module.
  • the receiving module is used to receive a first input from a user regarding a target object in a first video.
  • the display module is used to respond to the first input and, when it is detected that the video screen of the first video contains the target object, display an adjustment control.
  • the receiving module is also used to receive a second input from the user regarding the adjustment control.
  • the playback module is used to respond to the second input and, according to the input parameters of the second input, adjust the video screen containing the target object in the first video.
  • the playback parameters corresponding to the first video clip of the target object are adjusted, and the first video is played according to the adjusted playback parameters.
  • inventions of the present application provide an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the programs or instructions are processed by the processor.
  • the processor is executed, the steps of the method described in the first aspect are implemented.
  • embodiments of the present application provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the steps of the method described in the first aspect are implemented. .
  • inventions of the present application provide a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the first aspect. the method described.
  • embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.
  • the electronic device can receive the user's first input of the target object in the first video to determine the target object selected by the user, so that the electronic device detects that the video frame of the first video contains the target object.
  • the adjustment control is displayed so that the user can input the adjustment control to adjust the playback parameters of the video clip corresponding to the target object in the first video, and play the first video according to the adjusted playback parameters.
  • Figure 1 is a flow chart of a video playback method provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of a video playback device provided by an embodiment of the present application.
  • Figure 3 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • the electronic device can receive the user's first input of the target object in the first video to determine the target object selected by the user, so that the electronic device detects that the target object is included in the video frame of the first video.
  • the adjustment control is displayed, so that the user can input the adjustment control to adjust the playback parameters of the video clip corresponding to the target object in the first video, and play the first video according to the adjusted playback parameters.
  • the execution subject of the video playback method provided by the embodiment of the present application may be a video playback device, and the video playback device may be an electronic device or a functional module in the electronic device.
  • the following uses electronic equipment as an example to describe the technical solutions provided by the embodiments of the present application.
  • FIG. 1 shows a flow chart of a video playback method provided by an embodiment of the present application.
  • the video playback method provided by the embodiment of the present application may include the following steps 201 to 204.
  • Step 201 The electronic device receives the user's first input on the target object in the first video.
  • the electronic device can determine the playback parameters of which video segments in the first video need to be adjusted by receiving the first input of the target object, that is, adjust the video segments containing the target object.
  • the target object may be an object displayed in the current video frame in the first video.
  • the target object may be a person or an animal.
  • the above-mentioned first input may be an input received by the electronic device during the playback of the first video, or an input received by the electronic device when the first video is paused.
  • the first input may be a click input, a long press input, a preset track input, etc. of the target object by the user.
  • the specific input may be determined according to actual conditions, and the embodiment of the present application does not limit the input.
  • Step 202 The electronic device responds to the first input and displays the adjustment control when detecting that the target object is included in the video frame of the first video.
  • the electronic device after the electronic device responds to the first input, during the process of playing the first video, the electronic device can perform picture recognition on each video frame, so that when the target object is recognized, the display adjustment controls.
  • the electronic device can identify the target object by extracting image features in each video frame.
  • the electronic device can extract image features in each video frame in a target manner, thereby identifying the target object.
  • the above-mentioned target method may be any one of the following: a convolutional neural network, a radial basis function (RadialBasisFunction, RBF) neural network, or a directional propagation (Back Propagation, BP) neural network.
  • RBF Radial Basis Function
  • BP Back Propagation
  • control area of the above-mentioned adjustment control includes at least one sub-area, and each sub-area in the at least one sub-area is used to indicate at least one playback parameter.
  • control area may include three sub-areas, respectively used to indicate the adjustment of 2x speed, 3x speed, and 5x speed for the video.
  • the above playback parameters may include at least one of the following: volume, sound and Play at double speed.
  • the electronic device may display the adjustment control in the current video frame of the first video, or display the adjustment control in the target window.
  • the above target window can be overlaid on the current video picture, or the current video picture and the target window can be displayed in different screen areas.
  • the above-mentioned different screen areas may be different screen areas of a foldable screen, or different areas in one screen of a non-foldable screen (ie, split-screen display).
  • the electronic device may display adjustment controls corresponding to the target object.
  • the electronic device may acquire a partial image (eg, a face) of the target object, and then overlay a display adjustment control on the partial image, so that the electronic device may display the adjustment control corresponding to the target object.
  • a partial image eg, a face
  • step 202 when it is detected that the video frame of the first video contains the target object, display the adjustment control" in the above-mentioned step 202 may be performed through the following step 202a or step 202b.
  • Step 202a When it is detected that the target object is included in the video frame of the first video, and if the display proportion of the target object in the video frame of the first video is greater than the first threshold, the electronic device displays an adjustment control.
  • the electronic device displays the adjustment control corresponding to the target object.
  • Step 202b When it is detected that the target object is included in the video frame of the first video, and if the number of first objects included in the video frame of the first video is less than the second threshold, the electronic device displays the adjustment control.
  • the first object may be a person or an animal.
  • the first object and the target object may be objects of the same type or objects of different types.
  • the first object and the target object are objects of the same type
  • the target object is a person
  • the first object is also a person.
  • Characters correspondingly, when the first object and the target object are objects of different types, the target object is a character, and the first object can be an animal.
  • the target object in the video picture may satisfy the condition that the target object is detected in the video picture of the first video, and the target object is in the first video.
  • the display proportion in the video picture is greater than the first threshold, and/or the video picture in which the first video is detected contains
  • the electronic device displays the adjustment control only when the number of first objects included in the video frame of the first video is less than the second threshold (hereinafter referred to as the first condition).
  • the target object's display proportion in the video picture is relatively small, or there are a large number of other objects in the current video picture, it is considered that the target object in the picture is not important at this time. For example, in a TV series, if you want to skip the actor's clips due to poor acting skills, the target object will be that actor. At this time, if the actor's character display in the video screen accounts for a small proportion, , or if there are many other characters in the video screen at this time, it is considered that the actor plays less roles in these video screens and does not need to be skipped. Therefore, the adjustment controls will not be displayed, preventing the display of the adjustment controls from affecting the viewing of the screen.
  • the electronic device can display the adjustment control only when the target object in the video screen meets certain conditions, which avoids the electronic device still displaying the adjustment control when the target object accounts for a small proportion in the video screen. , thus improving the accuracy of the display adjustment control of the electronic device.
  • the video playback method provided by the embodiment of the present application further includes the following step 301, and the "display adjustment control" in the above step 202 ” Specifically, this can be achieved through the following steps 202c and 202d.
  • Step 301 The electronic device displays the target identification.
  • the above target identifier is used to indicate the target object.
  • the above-mentioned target identification may be any of the following: image identification, numeric identification, letter identification or symbol identification, etc.
  • the electronic device can pause the playback of the first video, so that the electronic device can perform image processing (such as cutout) on the video object to obtain the video object.
  • image processing such as cutout
  • target identifier can be an image of the target object.
  • Step 202c The electronic device receives the user's third input of the target identification.
  • the third input may be the user's click input, long press input, preset trajectory input, etc. on the target identification.
  • the details can be determined according to the actual situation, and are not limited by the embodiments of this application.
  • Step 202d The electronic device displays the adjustment control in response to the third input.
  • the display area of the above-mentioned target logo is smaller than the display area of the adjustment control.
  • the display area of the target logo does not include the adjustment sub-control. It is not used to adjust the playback parameters, but is only used to indicate to the user what the target object is that has been selected in the video for which the playback parameters will be adjusted.
  • the electronic device can, on the basis of displaying the target object selected by the user through the target identifier, directly update the target identifier into an adjustment control in response to the user's input of the target identifier, thereby improving the display adjustment of the electronic device.
  • the flexibility of the control simplifies the user's operations.
  • the video playback method provided by the embodiment of the present application further includes the following steps 401 and 402.
  • Step 401 The electronic device receives a fourth input of the target identifier.
  • the fourth input may be a click input, a long press input, a preset track input, etc. of the target identifier by the user.
  • the specific input may be determined according to actual conditions, and the embodiment of the present application does not limit the input.
  • Step 402 The electronic device performs a target operation on the target object in response to a fourth input.
  • the above-mentioned target operation includes at least one of the following: updating the target object and deselecting the target object.
  • the above-mentioned update target object is that the electronic device can replace the target object according to the user's input in the video screen.
  • the electronic device can automatically update the target object according to the displayed video object in the current video screen, or the electronic device can display prompt information in response to the fourth input to prompt the user to select the object that needs to be replaced.
  • the target object is then updated based on user input.
  • the user after the user selects the target object, the user can know which object has been selected through the target identification during the video playback process, so that the user can make timely adjustments during the playback process. In this way, the electronic device improves the video playback process. flexibility.
  • Step 203 The electronic device receives a second input from the user for adjusting the control.
  • the second input includes: input of a target sub-region in the at least one sub-region.
  • the above-mentioned second input may be a click input, a long press input, a preset trajectory input, etc. on the target adjustment control.
  • the details can be determined according to the actual situation, and are not limited by the embodiments of this application.
  • Step 204 The electronic device responds to the second input and adjusts the first video according to the input parameters of the second input. contains the playback parameters corresponding to the first video clip of the target object, and plays the first video according to the adjusted playback parameters.
  • the electronic device can record the input parameters of the second input. If other videos contain the target object, the electronic device can directly adjust the playback parameters of the second video clip containing the target object in the other videos. operate.
  • the first video clip may be a video clip that satisfies the above first condition.
  • the electronic device before the electronic device performs the playback parameter adjustment operation on the second video clip containing the target object in other videos, the electronic device can display prompt information to the user to prompt the user whether to adjust the playback parameters based on the last input. Parameters to adjust playback parameters.
  • step 204 can be specifically implemented through the following steps 204a and 204b.
  • Step 204a During the input process of the second input, the electronic device adjusts the playback parameters corresponding to the first video clip containing the target object in the first video.
  • the electronic device determines to increase the volume of the target video object, the range is [0, 100], the starting value is 50, and the sliding length increases the corresponding volume.
  • the electronic device determines to reduce the volume of the target video object, the range is [0, 100], the starting value is 50, and the sliding length reduces the corresponding volume.
  • the user's finger slides to the right without leaving the screen.
  • the electronic device determines to increase the playback speed of the target video object, the range is [0.5, 3], the starting value is 1, and the increase in the length of the right slide corresponds to the fast forward speed.
  • the electronic device determines that the playback speed of the target video object is reduced, the range is [0.5, 3], the starting value is 1, and the left slide length is reduced corresponding to the fast forward speed.
  • Step 204b At the end of the second input, the electronic device plays the first video according to the adjusted play parameters.
  • the electronic device may display prompt information to prompt the user to play the first video according to the adjusted playback parameters for subsequent video plays.
  • the electronic device can receive the user's input on the target object, thereby adjusting the subsequent first The playback parameters of the video, thus simplifying the user's operations and improving the flexibility of the electronic device to play the video.
  • An embodiment of the present application provides a video playback method.
  • the electronic device can receive the user's first input of the target object in the first video to determine the target object selected by the user, so that when the electronic device detects When the video frame of the first video contains the target object, the adjustment control is displayed so that the user can input the adjustment control to adjust the playback parameters of the video clip corresponding to the target object in the first video, and according to the adjusted Play parameters, play the first video.
  • the electronic device can record the target object selected by the user, and adjust the first video clip containing the target object in the first video by individually adjusting the playback parameters of the target object, in this way, the improvement This provides the electronic device with the flexibility to adjust the playback during video playback.
  • the execution subject may be a video playback device, an electronic device, or a functional module or entity in the electronic device.
  • a video playback device performing a video playback method is used as an example to illustrate the video playback device provided by the embodiment of the present application.
  • FIG. 2 shows a possible structural diagram of the video playback device involved in the embodiment of the present application.
  • the video playing device 70 may include: a receiving module 71 , a display module 72 and a playing module 73 .
  • the receiving module 71 is used to receive the user's first input on the target object in the first video;
  • the display module 72 is used in response to the first input, when it is detected that the target object is included in the video frame of the first video, Display the adjustment control;
  • the receiving module 71 is also used to receive the user's second input to the adjustment control;
  • the playback module 73 is used to respond to the second input and adjust the target object contained in the first video according to the input parameters of the second input. Playback parameters corresponding to the first video clip, and play the first video according to the adjusted playback parameters.
  • the above-mentioned display module 72 is specifically configured to, when detecting that the target object is included in the video frame of the first video, if the display proportion of the target object in the video frame of the first video is greater than first threshold, the adjustment control is displayed; or, when it is detected that the target object is included in the video frame of the first video, if the number of first objects included in the video frame of the first video is less than the second threshold, then the adjustment control is displayed Adjust controls.
  • the above-mentioned display module 72 is also used to display a target identification before displaying the adjustment control.
  • the target identification is used to indicate the target object; the display module 72 is specifically used to receive the user's response to the target identification. a third input; and in response to the third input, display the adjustment control; wherein the display area of the target identification is smaller than the display area of the adjustment control.
  • the video playback device provided by the embodiment of the present application further includes: a processing module.
  • the receiving module 71 is also configured to receive a third input of the target identification after displaying the target identification.
  • the processing module is configured to perform a target operation on the target object in response to the third input.
  • the target operation includes at least one of the following: updating the target object and deselecting the target object.
  • the playback module 73 is specifically configured to adjust the playback parameters corresponding to the first video clip containing the target object in the first video during the input process of the second input; and at the end of the second input At this time, the first video is played according to the adjusted playback parameters.
  • Embodiments of the present application provide a video playback device.
  • the video playback device can record the target object selected by the user, and adjust the first video containing the target object by individually adjusting the playback parameters of the target object.
  • the video clips are adjusted, thereby improving the flexibility of the electronic device in corresponding playback adjustments during video playback.
  • the video playback device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in an electronic device.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or an augmented reality (AR)/virtual reality (VR).
  • MID mobile Internet device
  • AR augmented reality
  • VR virtual reality
  • VR VR
  • robots wearable devices
  • ultra-mobile personal computers UMPC
  • netbooks netbooks
  • personal digital assistants etc.
  • servers can also be servers, network attached storage (Network Attached Storage) , NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc.
  • Network Attached Storage Network Attached Storage
  • NAS network Attached Storage
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the video playback device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the video playback device provided by the embodiment of the present application can implement each process implemented by the method embodiment in Figure 1. To avoid repetition, details will not be described here.
  • this embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92.
  • the memory 92 stores programs or instructions that can be run on the processor 91.
  • the program or instruction is executed by the processor 91, each step of the above video playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, etc. part.
  • the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in Figure 4 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
  • the user input unit 107 is used to receive a first input from a user regarding a target object in a first video.
  • the display unit 106 is used to display an adjustment control in response to the first input when it is detected that the target object is included in the video screen of the first video.
  • the user input unit 107 is also used to receive a second input from a user regarding the adjustment control.
  • the processor 110 is used to adjust the playback parameters corresponding to the first video segment containing the target object in the first video according to the input parameters of the second input in response to the second input, and play the first video according to the adjusted playback parameters.
  • Embodiments of the present application provide a video playback method. Since the electronic device can record the target object selected by the user, and adjust the first video clip containing the target object in the first video by adjusting the individual playback parameters of the target object, In this way, the flexibility of the electronic device in corresponding playback adjustments during video playback is improved.
  • the display unit 106 is specifically configured to, when detecting that the target object is included in the video frame of the first video, if the display proportion of the target object in the video frame of the first video is greater than first threshold, the adjustment control is displayed; or, when the video frame of the first video is detected to contain the target object. In this case, if the number of first objects included in the video frame of the first video is less than the second threshold, the adjustment control is displayed.
  • the display unit 106 is also configured to display a target identifier before displaying the adjustment control, and the target identifier is used to indicate the target object.
  • the display unit 106 is specifically configured to receive the user's third input of the target identification; and in response to the third input, display the adjustment control; wherein the display area of the target identification is smaller than the display area of the adjustment control.
  • the user input unit 107 is further configured to receive a fourth input of the target identifier after displaying the target identifier.
  • the processor 110 is further configured to perform a target operation on the target object in response to the fourth input, the target operation including at least one of the following: updating the target object and deselecting the target object.
  • the processor 110 is specifically used to adjust the playback parameters corresponding to the first video segment containing the target object in the first video during the input process of the second input; and at the end time of the second input, play the first video according to the adjusted playback parameters.
  • the electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042.
  • the graphics processor 1041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 .
  • Touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • Memory 109 may be used to store software programs as well as various data.
  • the memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory
  • the processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the program or instructions are executed by a processor, each process of the above method embodiments is implemented and the same technology can be achieved. The effect will not be described here in order to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement various processes of the above method embodiments. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
  • Embodiments of the present application provide a computer program product.
  • the program product is stored in a storage medium.
  • the program product is executed by at least one processor to implement each process of the above video playback method embodiment, and can achieve the same technical effect. , to avoid repetition, we will not go into details here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种视频播放方法和装置,属于视频技术领域。该方法包括:接收用户对第一视频中的目标对象的第一输入;响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件;接收用户对调整控件的第二输入;响应于第二输入,根据第二输入的输入参数,调整第一视频中包含目标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。

Description

视频播放方法和装置
相关申请的交叉引用
本申请主张在2022年09月23日在中国提交的中国专利申请号202211165881.3的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于视频技术领域,具体涉及一种视频播放方法和装置。
背景技术
目前,用户可以通过视频类应用程序观看视频,在用户对视频中的某个片段不感兴趣时,用户可以通过调整视频的播放参数来跳过自身不感兴趣的内容。
然而,用户在观看视频的过程中,若该视频中有多处用户不感兴趣的内容,则用户每次都需要调整,从而用户的操作繁琐且耗时,如此,电子设备播放视频的灵活性较差。
发明内容
本申请实施例的目的是提供一种视频播放方法、装置、电子设备及存储介质,能够解决电子设备播放视频的灵活性较差的问题。
第一方面,本申请实施例提供了一种视频播放方法,该视频播放方法包括:接收用户对第一视频中的目标对象的第一输入;响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件;接收用户对调整控件的第二输入;响应于第二输入,根据第二输入的输入参数,调整第一视频中包含目标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。
第二方面,本申请实施例提供了一种视频播放装置,该视频播放装置包括:接收模块、显示模块和播放模块。接收模块,用于接收用户对第一视频中的目标对象的第一输入。显示模块,用于响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件。接收模块,还用于接收用户对调整控件的第二输入。播放模块,用于响应于第二输入,根据第二输入的输入参数,调整第一视频中包含目 标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备可以接收用户对该第一视频中目标对象的第一输入,以确定用户选择的目标对象,从而在电子设备检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件,以使得用户可以对调整控件进行输入,以调整第一视频中目标对象的对应的视频片段的播放参数,并按照调整后的播放参数,播放第一视频。本方案中,由于电子设备可以记录用户选定的目标对象,并通过对目标对象单独的播放参数调整,对第一视频中包含目标对象的第一视频片段进行调整,如此,提升了电子设备在播放视频过程中对应播放调整的灵活性。
附图说明
图1是本申请实施例提供的一种视频播放方法的流程图;
图2是本申请实施例提供的一种视频播放装置的结构示意图;
图3是本申请实施例提供的一种电子设备的硬件结构示意图之一;
图4是本申请实施例提供的一种电子设备的硬件结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完 整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频播放方法进行详细地说明。
随着通信技术的发展,电子设备的功能的也越来越多,例如,用户可以通过电子设备观看视频,由于视频的多样化和社会的不断进步,用户的观影质量需求也在不断上升,用户在看到视频中不感兴趣的人物或片段时,可以通过拖动该视频画面下方的进度条或长按视频画面,以使得电子设备来跳过用户不感兴趣的人物或片段,然而,用户在观看视频的过程中,若该视频中有多处用户不感兴趣的内容,则用户每次都需要调整,从而用户的操作繁琐且耗时,如此,电子设备播放视频的灵活性较差。
本申请实施例中,电子设备可以接收用户对该第一视频中目标对象的第一输入,以确定用户选择的目标对象,从而在电子设备检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件,以使得用户可以对调整控件进行输入,以调整第一视频中目标对象的对应的视频片段的播放参数,并按照调整后的播放参数,播放第一视频。本方案中,由于电子设备可以记录用户选定的目标对象,并通过对目标对象单独的播放参数调整,对第一视频中包含目标对象的第一视频片段进行调整,如此,提升了电子设备在播放视频过程中对应播放调整的灵活性。
本申请实施例提供的视频播放方法的执行主体可以为视频播放装置,该视频播放装置可以为电子设备,或电子设备中的功能模块。以下以电子设备为例,对本申请实施例提供的技术方案进行说明。
本申请实施例提供一种视频播放方法,图1示出了本申请实施例提供的一种视频播放方法的流程图。如图1所示,本申请实施例提供的视频播放方法可以包括下述的步骤201至步骤204。
步骤201、电子设备接收用户对第一视频中的目标对象的第一输入。
本申请实施中,电子设备可以通过接收对目标对象的第一输入,确定第一视频中需要对哪些视频片段的播放参数进行调整,即对于包含目标对象的视频片段进行调整。
本申请实施例中,上述目标对象可以为第一视频中当前视频画面中显示的对象,示例性地,上述目标对象可以为人物或动物。
可选地,本申请实施例中,上述第一输入可以为电子设备在第一视频的播放过程中接收的输入,或者,电子设备在第一视频暂停的情况下接收的输入。
可选地,本申请实施例中,上述第一输入可以为用户对目标对象的点击输入、长按输入、预设轨迹输入等。具体的可以根据实际情况确定,本申请实施例不作限制。
步骤202、电子设备响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件。
本申请实施例中,电子设备响应于第一输入之后,电子设备在播放第一视频的过程中,电子设备可以对每帧视频帧进行画面识别,从而在识别到目标对象的情况下,显示调整控件。
具体地,电子设备可以通过提取每帧视频帧中的图像特征,从而识别目标对象。
示例性地,电子设备可以通过目标方式提取每帧视频帧中的图像特征,从而识别目标对象。
可选地,本申请实施例中,上述目标方式可以为以下任一项:卷积神经网络、径向基函数(RadialBasisFunction,RBF)神经网络或方向传播(Back Propagation,BP)神经网络。
可选地,本申请实施例中,上述调整控件的控件区域包括至少一个子区域,该至少一个子区域中的每个子区域用于指示至少一个播放参数。例如,控件区域可以包含3个子区域,分别用于指示对于视频进行2倍速、3倍速、5倍速的调整。
可选地,本申请实施例中,上述播放参数可以包括以下至少一项:音量、声音和 播放倍速。
可选地,本申请实施例中,电子设备可以在第一视频的当前视频画面中显示调整控件,或者,在目标窗口中显示调整控件。
具体地,上述目标窗口可以覆盖在当前视频画面上,或者在不同的屏幕区域显示当前视频画面和目标窗口。
可选地,本申请实施例中,上述不同的屏幕区域可以为可折叠屏幕的不同屏幕区域,或者为不可折叠屏幕的一个屏幕中的不同区域(即分屏显示)。
可选地,本申请实施例中,电子设备响应第一输入之后,电子设备可以显示目标对象对应的调整控件。
示例性地,电子设备可以获取目标对象的局部图像(例如脸部),然后在该局部图像上覆盖显示调整控件,如此,电子设备可以显示目标对象对应的调整控件。
可选地,本申请实施例中,上述步骤202中的“在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件”具体可以通过下述的步骤202a或步骤202b。
步骤202a、在检测到第一视频的视频画面中包含目标对象的情况下,若目标对象在第一视频的视频画面中的显示占比大于第一阈值,则电子设备显示调整控件。
示例性地,若目标对象在第一视频的视频画面中的显示占比大于70%,则电子设备显示目标对象对应的调整控件。
步骤202b、在检测到第一视频的视频画面中包含目标对象的情况下,若第一视频的视频画面中包含的第一对象的数量小于第二阈值,则电子设备显示调整控件。
可选地,本申请实施例中,上述第一对象可以为人物或动物。
具体地,上述第一对象和目标对象可以为同类对象或不同类对象,示例性地,在第一对象和目标对象为同类对象的情况下,若目标对象为人物,则第一对象同样也为人物,对应的,在第一对象和目标对象为不同类对象的情况下,目标对象为人物,第一对象可以为动物。
可选地,本申请实施例中,在用户选择目标对象之后,可以在视频画面中的目标对象满足在检测到第一视频的视频画面中包含目标对象的情况下,目标对象在第一视频的视频画面中的显示占比大于第一阈值,和/或在检测到第一视频的视频画面中包含 目标对象的情况下,第一视频的视频画面中包含的第一对象的数量小于第二阈值的情况下(下述简称为第一条件),电子设备才显示调整控件。
能够理解的,若目标对象在视频画面中的显示占比较小,或者,当前视频画面中的其他对象数量较多,则认为此时画面中目标对象不重要。例如,在一部电视剧中,若由于某一演员演技较差,希望跳过该演员的片段的,则目标对象即为该演员,此时,若该演员在视频画面中的人物显示占比小,或者此时视频画面中有较多其他人物,则认为该演员在这些视频画面中戏份较少,无需跳过。因此不会显示调整控件,避免了调整控件的显示导致画面观看受到影响。
本申请实施例中,电子设备可以在视频画面中的目标对象满足一定条件的情况下,才会显示调整控件,避免了目标对象在视频画面中所占的比重较小时,电子设备仍然显示调整控件,如此,提高了电子设备显示调整控件的准确性。
可选地,本申请实施例中,在上述步骤202中的“显示调整控件”之前,本申请实施例提供的视频播放方法还包括下述的步骤301,并且上述步骤202中的“显示调整控件”具体可以通过下述的步骤202c和步骤202d实现。
步骤301、电子设备显示目标标识。
本申请实施例中,上述目标标识用于指示目标对象。
可选地,本申请实施例中,上述目标标识可以为以下任一项:图像标识、数字标识、字母标识或符号标识等。
可选地,本申请实施例中,电子设备在接收用户的第一输入之后,电子设备可以暂停播放第一视频,从而电子设备可以对视频对象进行图像处理(例如抠图),以得到视频对象的目标标识。即目标标识可以为目标对象的图像。
步骤202c、电子设备接收用户对目标标识的第三输入。
可选地,本申请实施例中,上述第三输入可以为用户对目标标识的点击输入、长按输入、预设轨迹输入等。具体的可以根据实际情况确定,本申请实施例不作限制。
步骤202d、电子设备响应于第三输入,显示调整控件。
本申请实施例中,上述目标标识的显示面积小于调整控件的显示面积。
需要说明的是,上述目标标识的显示区域中不包括上述调整子控件。即目标标识 不用于对播放参数进行调整,而仅仅用于指示用户该视频中已选中的会进行播放参数调整的目标对象是什么。
本申请实施例中,电子设备可以在通过目标标识显示用户选择的目标对象的基础上,可以响应于用户对目标标识的输入,直接将该目标标识更新为调整控件,在提升了电子设备显示调整控件的灵活性的同时,简化了用户的操作。
可选地,本申请实施例中,在上述步骤301之后,本申请实施例提供的视频播放方法还包括下述的步骤401和步骤402。
步骤401、电子设备接收对目标标识的第四输入。
可选地,本申请实施例中,上述第四输入可以为用户对目标标识的点击输入、长按输入、预设轨迹输入等。具体的可以根据实际情况确定,本申请实施例不作限制。
步骤402、电子设备响应于第四输入,对目标对象进行目标操作。
本申请实施例中,上述目标操作包括以下至少一项:更新目标对象、取消选中目标对象。
具体地,上述更新目标对象为电子设备可以根据用户在视频画面中的的输入,更换目标对象。
可选地,本申请实施例中,电子设备可以根据当前视频画面中的显示的视频对象来自动更新目标对象,或者,电子设备响应于第四输入,显示提示信息,以提示用户选择需要更换的目标对象,然后根据用户的输入,更新目标对象。
本申请实施例中,用户选择了目标对象之后,在视频播放的过程中用户可以通过目标标识知晓选择了哪个对象,以便于用户在播放的过程中可以及时调整,如此,提升了电子设备播放视频的灵活性。
步骤203、电子设备接收用户对调整控件的第二输入。
本申请实施例中,上述第二输入包括:对上述至少一个子区域中的目标子区域的输入。
可选地,本申请实施例中,上述第二输入可以为对目标调整控件的点击输入、长按输入、预设轨迹输入等。具体的可以根据实际情况确定,本申请实施例不作限制。
步骤204、电子设备响应于第二输入,根据第二输入的输入参数,调整第一视频 中包含目标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。
可选地,本申请实施例中,电子设备可以记录第二输入的输入参数,若其他的视频包含目标对象,则电子设备可以直接对其他视频中包含目标对象的第二视频片段进行播放参数调整操作。
可选地,本申请实施例中,上述第一视频片段可以为满足上述第一条件的视频片段。
可选地,本申请实施例中,在电子设备对其他视频中包含目标对象的第二视频片段进行播放参数调整操作之前,电子设备可以显示给用户提示信息,以提示用户是否根据上次的输入参数,进行播放参数调整。
可选地,本申请实施例中,上述步骤204具体可以通过下述的步骤204a和步骤204b实现。
步骤204a、在第二输入的输入过程中,电子设备调整第一视频中包含目标对象的第一视频片段对应的播放参数。
示例性地,用户手指不离开屏幕,向上滑动。电子设备判定为增加目标视频对象的音量,范围[0,100],起始值为50,上滑长度增加对应音量。
示例性地,用户手指不离开屏幕,向下滑动。电子设备判定为减少目标视频对象的音量,范围[0,100],起始值为50,下滑长度减少对应音量。
示例性地,用户手指不离开屏幕,向右滑动。电子设备判定为增加目标视频对象的播放倍速,范围[0.5,3],起始值为1,右滑长度增加对应快进倍速。
示例性地,用户手指不离开屏幕,向左滑动。电子设备判定为减少目标视频对象的播放倍速,范围[0.5,3],起始值为1,左滑长度减少对应快进倍速。
步骤204b、在第二输入的结束时刻,电子设备按照调整后的播放参数,播放第一视频。
可选地,本申请实施例中,在电子设备恢复播放第一视频之前,电子设备可以显示提示信息,以提示用户后续视频播放均根据调整后的播放参数播放第一视频。
本申请实施例中,电子设备可以接收用户对目标对象的输入,从而调整后续第一 视频的播放参数,如此,在简化了用户的操作的同时,提升了电子设备播放视频的灵活性。
本申请实施例提供一种视频播放方法,在本申请实施例中,电子设备可以接收用户对该第一视频中目标对象的第一输入,以确定用户选择的目标对象,从而在电子设备检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件,以使得用户可以对调整控件进行输入,以调整第一视频中目标对象的对应的视频片段的播放参数,并按照调整后的播放参数,播放第一视频。本方案中,本方案中,由于电子设备可以记录用户选定的目标对象,并通过对目标对象单独的播放参数调整,对第一视频中包含目标对象的第一视频片段进行调整,如此,提升了电子设备在播放视频过程中对应播放调整的灵活性。
需要说明的是,本申请实施例提供的视频播放方法,执行主体可以为视频播放装置,或者电子设备,或者还可以为电子设备中的功能模块或实体。本申请实施例中以视频播放装置执行视频播放方法为例,说明本申请实施例提供的视频播放装置。
图2示出了本申请实施例中涉及的视频播放装置的一种可能的结构示意图。如图2所示,该视频播放装置70可以包括:接收模块71、显示模块72和播放模块73。接收模块71,用于接收用户对第一视频中的目标对象的第一输入;显示模块72,用于响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件;接收模块71,还用于接收用户对调整控件的第二输入;播放模块73,用于响应于第二输入,根据第二输入的输入参数,调整第一视频中包含目标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。
在一种可能的实现方式中,上述显示模块72,具体用于在检测到第一视频的视频画面中包含目标对象的情况下,若目标对象在第一视频的视频画面中的显示占比大于第一阈值,则显示调整控件;或者,在检测到第一视频的视频画面中包含目标对象的情况下,若第一视频的视频画面中包含的第一对象的数量小于第二阈值,则显示调整控件。
在一种可能的实现方式中,上述显示模块72,还用于在显示调整控件之前,显示目标标识,目标标识用于指示目标对象;显示模块72,具体用于接收用户对目标标识 的第三输入;并响应于第三输入,显示调整控件;其中,目标标识的显示面积小于调整控件的显示面积。
在一种可能的实现方式中,本申请实施例提供的视频播放装置还包括:处理模块。接收模块71,还用于显示目标标识之后,接收对目标标识的第三输入。处理模块,用于响应于第三输入,对目标对象进行目标操作,目标操作包括以下至少一项:更新目标对象、取消选中目标对象。
在一种可能的实现方式中,播放模块73,具体用于在第二输入的输入过程中,调整第一视频中包含目标对象的第一视频片段对应的播放参数;并在第二输入的结束时刻,按照调整后的播放参数,播放第一视频。
本申请实施例提供一种视频播放装置,本方案中,由于视频播放装置可以记录用户选定的目标对象,并通过对目标对象单独的播放参数调整,对第一视频中包含目标对象的第一视频片段进行调整,如此,提升了电子设备在播放视频过程中对应播放调整的灵活性。
本申请实施例中的视频播放装置可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的视频播放装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的视频播放装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图3所示,本申请实施例还提供一种电子设备90,包括处理器91和存储器92,存储器92上存储有可在所述处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述视频播放方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图4为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元107,用于接收用户对第一视频中的目标对象的第一输入。显示单元106,用于响应于第一输入,在检测到第一视频的视频画面中包含目标对象的情况下,显示调整控件。用户输入单元107,还用于接收用户对调整控件的第二输入。处理器110,用于响应于第二输入,根据第二输入的输入参数,调整第一视频中包含目标对象的第一视频片段对应的播放参数,并按照调整后的播放参数,播放第一视频。
本申请实施例提供一种视频播放方法,由于电子设备可以记录用户选定的目标对象,并通过对目标对象单独的播放参数调整,对第一视频中包含目标对象的第一视频片段进行调整,如此,提升了电子设备在播放视频过程中对应播放调整的灵活性。
可选地,本申请实施例中,显示单元106,具体用于在检测到第一视频的视频画面中包含目标对象的情况下,若目标对象在第一视频的视频画面中的显示占比大于第一阈值,则显示调整控件;或者,在检测到第一视频的视频画面中包含目标对象的情 况下,若第一视频的视频画面中包含的第一对象的数量小于第二阈值,则显示调整控件。
可选地,本申请实施例中,显示单元106,还用于在显示调整控件之前,显示目标标识,目标标识用于指示目标对象。显示单元106,具体用于接收用户对目标标识的第三输入;并响应于第三输入,显示调整控件;其中,目标标识的显示面积小于调整控件的显示面积。
可选地,本申请实施例中,用户输入单元107,还用于在显示目标标识之后,接收对目标标识的第四输入。处理器110,还用于响应于第四输入,对目标对象进行目标操作,目标操作包括以下至少一项:更新目标对象、取消选中目标对象。
可选地,本申请实施例中,处理器110,具体用于在第二输入的输入过程中,调整第一视频中包含目标对象的第一视频片段对应的播放参数;并在第二输入的结束时刻,按照调整后的播放参数,播放第一视频。
本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此 外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种视频播放方法,所述方法包括:
    接收用户对第一视频中的目标对象的第一输入;
    响应于所述第一输入,在检测到所述第一视频的视频画面中包含所述目标对象的情况下,显示调整控件;
    接收用户对所述调整控件的第二输入;
    响应于所述第二输入,根据所述第二输入的输入参数,调整所述第一视频中包含所述目标对象的第一视频片段对应的播放参数,并按照调整后的所述播放参数,播放所述第一视频。
  2. 根据权利要求1所述的方法,其中,所述在检测到所述第一视频的视频画面中包含所述目标对象的情况下,显示调整控件,包括:
    在检测到所述第一视频的视频画面中包含所述目标对象的情况下,若所述目标对象在所述第一视频的视频画面中的显示占比大于第一阈值,则显示调整控件;
    或者,在检测到所述第一视频的视频画面中包含所述目标对象的情况下,若所述第一视频的视频画面中包含的第一对象的数量小于第二阈值,则显示调整控件。
  3. 根据权利要求1或2所述的方法,其中,所述显示调整控件之前,所述方法还包括:
    显示目标标识,所述目标标识用于指示所述目标对象;
    所述显示调整控件,包括:
    接收用户对所述目标标识的第三输入;
    响应于所述第三输入,显示调整控件;
    其中,所述目标标识的显示面积小于所述调整控件的显示面积。
  4. 根据权利要求3所述的方法,其中,所述显示目标标识之后,所述方法还包括:
    接收对所述目标标识的第四输入;
    响应于所述第四输入,对所述目标对象进行目标操作,所述目标操作包括以下至少一项:更新所述目标对象、取消选中所述目标对象。
  5. 根据权利要求1所述的方法,其中,所述响应于所述第二输入,根据所述第二 输入的输入参数,调整所述第一视频中包含所述目标对象的第一视频片段对应的播放参数,并按照调整后的所述播放参数,播放所述第一视频,包括:
    在所述第二输入的输入过程中,调整所述第一视频中包含所述目标对象的第一视频片段对应的播放参数;
    在所述第二输入的结束时刻,按照调整后的所述播放参数,播放所述第一视频。
  6. 一种视频播放装置,所述视频播放装置包括:接收模块、显示模块和播放模块;
    所述接收模块,用于接收用户对第一视频中的目标对象的第一输入;
    所述显示模块,用于响应于所述第一输入,在检测到所述第一视频的视频画面中包含所述目标对象的情况下,显示调整控件;
    所述接收模块,还用于接收用户对所述调整控件的第二输入;
    所述播放模块,用于响应于所述第二输入,根据所述第二输入的输入参数,调整所述第一视频中包含所述目标对象的第一视频片段对应的播放参数,并按照调整后的所述播放参数,播放所述第一视频。
  7. 根据权利要求6所述的装置,其中,所述显示模块,具体用于在检测到所述第一视频的视频画面中包含所述目标对象的情况下,若所述目标对象在所述第一视频的视频画面中的显示占比大于第一阈值,则显示调整控件;或者,在检测到所述第一视频的视频画面中包含所述目标对象的情况下,若所述第一视频的视频画面中包含的第一对象的数量小于第二阈值,则显示调整控件。
  8. 根据权利要求6或7所述的装置,其中,所述显示模块,还用于所述显示调整控件之前,显示目标标识,所述目标标识用于指示所述目标对象;
    所述显示模块,具体用于接收用户对所述目标标识的第三输入;响应于所述第三输入,显示调整控件;
    其中,所述目标标识的显示面积小于所述调整控件的显示面积。
  9. 根据权利要求8所述的装置,其中,所述视频播放装置还包括:处理模块;
    所述接收模块,还用于所述显示目标标识之后,接收对所述目标标识的第三输入;
    所述处理模块,用于响应于所述第三输入,对所述目标对象进行目标操作,所述目标操作包括以下至少一项:更新所述目标对象、取消选中所述目标对象。
  10. 根据权利要求6所述的装置,其中,所述播放模块,具体用于在所述第二输入的输入过程中,调整所述第一视频中包含所述目标对象的第一视频片段对应的播放参数;并在所述第二输入的结束时刻,按照调整后的所述播放参数,播放所述第一视频。
  11. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的视频播放方法的步骤。
  12. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的视频播放方法的步骤。
  13. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的视频播放方法。
  14. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至5中任一项所述的视频播放方法。
PCT/CN2023/120135 2022-09-23 2023-09-20 视频播放方法和装置 WO2024061285A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211165881.3 2022-09-23
CN202211165881.3A CN115543137A (zh) 2022-09-23 2022-09-23 视频播放方法和装置

Publications (1)

Publication Number Publication Date
WO2024061285A1 true WO2024061285A1 (zh) 2024-03-28

Family

ID=84729562

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/120135 WO2024061285A1 (zh) 2022-09-23 2023-09-20 视频播放方法和装置

Country Status (2)

Country Link
CN (1) CN115543137A (zh)
WO (1) WO2024061285A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543137A (zh) * 2022-09-23 2022-12-30 维沃移动通信有限公司 视频播放方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110475148A (zh) * 2019-08-13 2019-11-19 北京奇艺世纪科技有限公司 视频播放方法、装置及电子设备
CN112004117A (zh) * 2020-09-02 2020-11-27 维沃移动通信有限公司 视频播放方法及装置
CN113475092A (zh) * 2019-02-27 2021-10-01 华为技术有限公司 一种视频处理方法和移动设备
CN115543137A (zh) * 2022-09-23 2022-12-30 维沃移动通信有限公司 视频播放方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113475092A (zh) * 2019-02-27 2021-10-01 华为技术有限公司 一种视频处理方法和移动设备
CN110475148A (zh) * 2019-08-13 2019-11-19 北京奇艺世纪科技有限公司 视频播放方法、装置及电子设备
CN112004117A (zh) * 2020-09-02 2020-11-27 维沃移动通信有限公司 视频播放方法及装置
CN115543137A (zh) * 2022-09-23 2022-12-30 维沃移动通信有限公司 视频播放方法和装置

Also Published As

Publication number Publication date
CN115543137A (zh) 2022-12-30

Similar Documents

Publication Publication Date Title
CN112135181B (zh) 视频预览方法、装置及电子设备
WO2024061285A1 (zh) 视频播放方法和装置
WO2023155885A1 (zh) 图标整理方法、装置和电子设备
US20240031317A1 (en) Image Sharing Method and Electronic Device
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
US20230244363A1 (en) Screen capture method and apparatus, and electronic device
WO2023103949A1 (zh) 视频处理方法、装置、电子设备及介质
WO2022257916A1 (zh) 推荐方法及装置
CN112911147A (zh) 显示控制方法、显示控制装置及电子设备
CN111857510A (zh) 参数调节方法、装置及电子设备
CN115065874A (zh) 视频播放方法、装置、电子设备和可读存储介质
WO2024046266A1 (zh) 视频管理方法、装置、电子设备及可读存储介质
WO2024114571A1 (zh) 信息显示方法、装置、电子设备和存储介质
WO2024012416A1 (zh) 显示方法和装置
WO2024078552A1 (zh) 后台应用的管理方法、装置、电子设备及介质
WO2024037419A1 (zh) 显示控制方法、装置、电子设备及可读存储介质
WO2023241563A1 (zh) 数据处理方法和电子设备
WO2023151659A1 (zh) 应用图标显示方法、装置
WO2023169361A1 (zh) 信息推荐方法、装置和电子设备
WO2023179539A1 (zh) 视频编辑方法、装置及电子设备
WO2022143337A1 (zh) 显示控制方法、装置、电子设备和存储介质
CN115437736A (zh) 一种笔记记录方法和装置
CN115756707A (zh) 内容分享方法、装置、电子设备和可读存储介质
CN113923392A (zh) 视频录制方法、视频录制装置和电子设备
CN115002551A (zh) 视频播放方法、装置、电子设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23867571

Country of ref document: EP

Kind code of ref document: A1