WO2021143882A1 - 视频播放方法及装置 - Google Patents

视频播放方法及装置 Download PDF

Info

Publication number
WO2021143882A1
WO2021143882A1 PCT/CN2021/072282 CN2021072282W WO2021143882A1 WO 2021143882 A1 WO2021143882 A1 WO 2021143882A1 CN 2021072282 W CN2021072282 W CN 2021072282W WO 2021143882 A1 WO2021143882 A1 WO 2021143882A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio information
target video
audio
target
file
Prior art date
Application number
PCT/CN2021/072282
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 WO2021143882A1 publication Critical patent/WO2021143882A1/zh
Priority to US17/728,393 priority Critical patent/US20220248083A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43072Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of multiple content streams on the same device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Definitions

  • the present disclosure relates to the field of audio and video technology, and in particular to video playback methods and devices.
  • the present disclosure provides a video playback method and device.
  • the technical solutions of the present disclosure are as follows:
  • a video playback method including: acquiring a target video file and a target audio file associated with the target video; determining the first audio information, the second audio information, and the target video file included in the target video file.
  • Image information wherein the first audio information is audio information associated with the image information; the target video is played according to the first audio information, the image information, and the target audio file.
  • a video playback device including: an acquiring unit configured to execute acquiring a target video file and a target audio file associated with the target video; and a determining unit configured to execute determining the target
  • the video file includes first audio information, second audio information, and image information, where the first audio information is audio information associated with the image information; the playback unit is configured to perform Information, image information, and target audio file to play the target video.
  • an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to achieve the following step:
  • a storage medium is provided.
  • the electronic device can execute the following steps:
  • Fig. 1 is a diagram showing an application environment of a video playing method according to an exemplary embodiment.
  • Fig. 2 is a flow chart showing a method for playing a video according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram showing a first target video in a specific scene according to an exemplary embodiment.
  • Fig. 4 is a flowchart showing detailed steps of step S23 according to an exemplary embodiment.
  • Fig. 5 is a block diagram showing a video playing device according to an exemplary embodiment.
  • Fig. 6 is an internal structure diagram of an electronic device according to an exemplary embodiment.
  • the video playback method provided by the present disclosure can be applied to the application environment as shown in FIG. 1.
  • the terminal 110 interacts with the server 120 through the network.
  • the terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 120 may be implemented as an independent server or a server cluster composed of multiple servers.
  • the terminal 110 obtains the target video file and the target audio file associated with the target video from the server or locally (ie, the terminal 110).
  • the terminal 110 determines the first audio information, second audio information, and image information included in the target video file.
  • the first audio information is audio information associated with the image information.
  • the first audio information may be a moving object in the image. (Human, animal, etc.) sound
  • the second audio information can be background music that is not closely related to the image, etc.
  • the target video is played according to the first audio information, image information and target audio file, realizing dynamic replacement according to demand The background music (second audio information) and other sound effects.
  • Fig. 2 is a flow chart showing a method for playing a video according to an exemplary embodiment. As shown in Fig. 2, the method for playing a video is applied to the terminal 110 in Fig. 1 and includes the following steps:
  • step S21 a target video file and a target audio file associated with the target video are acquired.
  • the APP interface includes several video information components.
  • the video information component is an interface component that displays video-related information.
  • the content displayed by the component includes one or more video-related information, such as video-related information.
  • Video-related information such as video-related information.
  • XXX1", "XXX2", "XXX3", etc. are all video information components.
  • Clicking on a target video information component the terminal responds to the click operation to obtain The target video file and the target audio file associated with the target video.
  • the target audio file is a preset background music associated with the target video file.
  • the association relationship between the video and the audio file is preset on the server, in response to obtaining the target video file. At the same time, the target audio file associated with the target video file will be obtained according to the association relationship.
  • step S22 the first audio information, the second audio information, and the image information included in the target video file are determined, where the first audio information is audio information associated with the image information.
  • the first audio information is audio information associated with the image information.
  • the first audio information may be the sound made by a moving object (human, animal, etc.) in the image, and the mouth movement of the object is required. If it matches the audio information, if the object's mouth movement does not match the audio, the sound and image are prone to inconsistencies, such as mismatched mouth shapes.
  • the second audio information may be background music that is not closely related to the image.
  • step S22 includes: decoding the target video file to obtain first audio information of the first channel, second audio information and image information of the second channel.
  • the terminal performs separation processing on the target video file to obtain image information and a two-channel audio file, and then decodes the two-channel audio file to obtain the first audio information of the first channel and the second audio file.
  • the second audio information of the channel is the first audio information of the first channel and the second audio file.
  • dual-channel means that there are two sound channels, for example, the first channel and the second channel (for users, it can also be called the left channel or the used channel).
  • the dual-channel The channel audio file includes the first audio information and the second audio information.
  • the first audio information is played in one channel, and the second audio information is played in another channel.
  • step S23 the target video is played according to the first audio information, the image information and the target audio file.
  • the target video is played according to the first audio information, image information, and target audio file, so that the second audio information does not appear when the target video is played, and the relevant background music (No. 2. Audio information) and other sound effects.
  • the above video playback method obtains a target video file and a target audio file associated with the target video (the target audio file is not an audio file in the target video file), and determines the first audio information, the second audio information, and the first audio information included in the target video file.
  • Image information where the first audio information is audio information associated with the image information, for example, the first audio information may be the sound of a moving object (human, animal, etc.) in the image, and the second audio information may It is background music that is not closely related to the image.
  • the target video is played according to the first audio information, image information and target audio file, which realizes the effect of dynamically replacing related background music (second audio information) and other sounds according to the demand .
  • Fig. 4 is a flowchart showing the detailed steps of step S23 according to an exemplary embodiment, including:
  • step S231 the first audio information and image information are played by the first player.
  • step S232 the target audio file is played by the second player.
  • the terminal is provided with two players, namely a first player and a second player.
  • the two players play different files, and the first player plays the first audio information in the target video file. And image information, the second player plays the target audio file.
  • it further includes: filling the first audio information into the second channel to replace the second audio information;
  • Step S231 includes: playing the first audio information and image information of the first channel and the second channel through the first player.
  • the first audio information is filled into the second channel to replace the second audio information.
  • the first audio information and the second audio information may be processed according to the Audio Filter algorithm, and the first audio information is filled into the second channel to replace the second audio information.
  • the first audio information is not filled into the second channel, but the second audio information is directly deleted, in response to using the first player to play, it will cause only one earphone hole to come out after wearing the earphones. Voice.
  • the first audio information is filled into the second channel to replace the second audio information. Only when the first player is used to play, the user's voice can be heard by both earphones.
  • the first player in response to playing the first audio information at the same time, the first player will also play the image information at the same time, and the second player will also play the target audio file at the same time, realizing the dynamic replacement of related background music according to the demand (the second audio information ) And other sound effects.
  • the method before acquiring the target video file and the target audio file associated with the target video, the method further includes:
  • the target video file and the target audio file associated with the target video are obtained;
  • the first player is started to play the target video.
  • the preset page can be an event page in a specific scene (it can be but not limited to scenes such as festivals), and the preset time is a specific time (it can be but not limited to festivals and other times), as shown in Figure 3.
  • the preset page will be entered, and clicking the video information component "XXX3" will enter the non-preset page.
  • clicking on a certain video information component will enter the preset page.
  • the video associated with the preset page or/and the preset moment needs to execute the solution, that is, obtain the target video file and the target audio file associated with the target video (the target audio file is not the audio in the target video file).
  • File) to determine the first audio information, second audio information, and image information included in the target video file, where the first audio information is audio information associated with the image information.
  • the first audio information may be the meeting in the image.
  • the second audio information can be background music that is not closely related to the image, etc.
  • the target video is played according to the first audio information, image information and target audio file to achieve The effect of dynamically replacing related background music (second audio information) and other sounds according to demand.
  • the first player is started to play the target video.
  • the terminal sends an address to the first player to store the file, the first player can obtain the target video file according to the received address, and decode and render the target video file to play.
  • the target video file performs processing such as filling and replacing the background sound, so as to realize the normal playback of the non-preset page or/and the video associated with the preset time.
  • the terminal is provided with two players, namely the first player and the second player.
  • it can first determine whether the target video is a preset page or/ The video associated with the preset time, based on the target video being the preset page or/and the video associated with the preset time, automatically call the first player and the second player, and send them to the two players respectively.
  • the first player can obtain the target video file according to the received address
  • the second player can obtain the target audio file according to the received address.
  • the terminal separates the target video file to obtain image information and a two-channel audio file, and then decodes the two-channel audio file to obtain the first audio information of the first channel and the second audio of the second channel Information, in which, when decoding, the obtained file will be automatically loaded to the first channel and the second channel, and the first audio information is filled into the second channel to replace the second audio information.
  • the first audio information, image information, and target audio file are sent to the rendering module of the terminal for rendering, so that the rendered first audio information and image information of the first channel and the second channel are played through the first player , Play the target audio file through the second player. Realize the effect of dynamically replacing related background music (second audio information) and other sounds according to demand.
  • Fig. 5 is a block diagram showing a video playing device according to an exemplary embodiment. 5, the device includes an acquiring unit 51, a determining unit 52, and a playing unit 53.
  • the acquiring unit 51 is configured to execute acquiring a target video file and a target audio file associated with the target video.
  • the determining unit 52 is configured to determine the first audio information, the second audio information, and the image information included in the target video file, where the first audio information is audio information associated with the image information.
  • the playback unit 53 is configured to perform playback of the target video according to the first audio information, image information, and target audio file.
  • the determining unit 52 may also be configured to execute:
  • the playing unit 53 may also be configured to execute:
  • the above-mentioned video playback device may further include a filling unit configured to perform filling of the first audio information into the second channel to replace the second audio information;
  • the playing unit 53 may also be configured to execute:
  • the first audio information and image information of the first channel and the second channel are played through the first player.
  • the foregoing video playback device may further include a detection unit configured to perform:
  • the target video file and the target audio file associated with the target video are obtained;
  • the first player is started to play the target video.
  • an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement implementations as in the present disclosure
  • the video playback method in the example including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement implementations as in the present disclosure The video playback method in the example.
  • a storage medium is also provided.
  • the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the video playback method in the embodiment of the present disclosure.
  • a computer program product containing instructions is also provided, which when run on a computer, causes the computer to execute the video playback method in the embodiments of the present disclosure.
  • Fig. 6 is a block diagram showing an electronic device Z00 according to an exemplary embodiment.
  • the electronic device Z00 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the electronic device Z00 may include one or more of the following components: processing component Z02, memory Z04, power component Z06, multimedia component Z08, audio component Z10, input/output (I/O) interface Z12, sensor component Z14 And communication component Z16.
  • the processing component Z02 generally controls the overall operations of the electronic device Z00, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component Z02 may include one or more processors Z20 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component Z02 may include one or more modules to facilitate the interaction between the processing component Z02 and other components.
  • the processing component Z02 may include a multimedia module to facilitate the interaction between the multimedia component Z08 and the processing component Z02.
  • the memory Z04 is configured to store various types of data to support operations in the electronic device Z00. Examples of these data include instructions for any application or method operating on the electronic device Z00, contact data, phone book data, messages, pictures, videos, etc.
  • the memory Z04 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable read only memory
  • PROM programmable read only memory
  • ROM read only memory
  • magnetic memory flash memory
  • flash memory magnetic or optical disk.
  • the power supply component Z06 provides power for various components of the electronic device Z00.
  • the power supply component Z06 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device Z00.
  • the multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component Z08 includes a front camera and/or a rear camera. When the electronic device Z00 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component Z10 is configured to output and/or input audio signals.
  • the audio component Z10 includes a microphone (MIC), and when the electronic device Z00 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal can be further stored in the memory Z04 or sent via the communication component Z16.
  • the audio component Z10 further includes a speaker for outputting audio signals.
  • the I/O interface Z12 provides an interface between the processing component Z02 and the peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and so on. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component Z14 includes one or more sensors, which are used to provide the electronic device Z00 with various status assessments.
  • the sensor component Z14 can detect the on/off status of the electronic device Z00 and the relative positioning of the components.
  • the component is the display and keypad of the electronic device Z00, and the sensor component Z14 can also detect the electronic device Z00 or the electronic device Z00.
  • the position of the component changes, the presence or absence of contact between the user and the electronic device Z00, the orientation or acceleration/deceleration of the electronic device Z00, and the temperature change of the electronic device Z00.
  • the sensor assembly Z14 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component Z16 is configured to facilitate wired or wireless communication between the electronic device Z00 and other devices.
  • the electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof.
  • the communication component Z16 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component Z16 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device Z00 may be used by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field-available A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本公开关于一种视频播放方法及装置。其中,该方法包括:获取目标视频文件和与目标视频关联的目标音频文件;确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,第一音频信息为与图像信息相关联的音频信息;根据第一音频信息、图像信息和目标音频文件播放目标视频。该方法实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。

Description

视频播放方法及装置
相关申请的交叉引用
本公开要求于2020年01月17日提交的、申请名称为“视频播放方法、装置、电子设备及存储介质”的、中国专利申请号“202010054986.6”的优先权。
技术领域
本公开涉及音视频技术领域,尤其涉及视频播放方法及装置。
背景技术
现有技术中,为了视频播放效果的呈现,视频中除了图像、与图像紧密关联的声音信息外,大多添加有背景音乐等各种声音信息,视频播放的时候会同时呈现所有的信息,无法根据需求动态替换相关的背景音乐等声音。
发明内容
本公开提供一种视频播放方法及装置。本公开的技术方案如下:
根据本公开的一些实施例,提供了一种视频播放方法,包括:获取目标视频文件和与目标视频关联的目标音频文件;确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
根据本公开的一些实施例,提供了一种视频播放装置,包括:获取单元,被配置为执行获取目标视频文件和与目标视频关联的目标音频文件;确定单元,被配置为执行确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;播放单元,被配置为执行根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
根据本公开的一些实施例,提供了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
获取目标视频文件和与目标视频关联的目标音频文件;
确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
根据本公开的一些实施例,提供了一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
获取目标视频文件和与目标视频关联的目标音频文件;
确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例示出的一种视频播放方法的应用环境图。
图2是根据一示例性实施例示出的一种视频播放方法的流程图。
图3是根据一示例性实施例示出的特定场景下的第一目标视频的示意图。
图4是根据一示例性实施例示出的步骤S23的细化步骤的流程图。
图5是根据一示例性实施例示出的一种视频播放装置的框图。
图6是根据一示例性实施例示出的一种电子设备的内部结构图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。需要说明的是,本公开的所有实施例均可以单独被执行,也可以与其他实施例相结合共同被执行,本公开对此不做限制。
本公开所提供的视频播放方法,可以应用于如图1所示的应用环境中。其中,终端110通过网络与服务器120进行交互。其中,终端110可以是但不限于各种个人计算机、笔记 本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
其中,终端110从服务器或本地(即终端110)获取目标视频文件和与目标视频关联的目标音频文件。终端110确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,第一音频信息为与图像信息相关联的音频信息,例如,第一音频信息可以是图像中的会动的对象(人、动物等等)发出的声音,第二音频信息可以是与图像无紧密关联的背景音乐等,根据第一音频信息、图像信息和目标音频文件播放目标视频,实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
图2是根据一示例性实施例示出的一种视频播放方法的流程图,如图2所示,视频播放方法应用于图1的终端110中,包括以下步骤:
在步骤S21中,获取目标视频文件和与目标视频关联的目标音频文件。
在本公开实施例中,在APP的界面上包括若干视频信息组件,视频信息组件是展示视频相关信息的界面组件,该组件展示的内容包括一个或多个与视频相关的信息,比如,视频相关的文字、超链接、图片、概览小视频、按钮、图标等。为了便于理解,此处举例说明,如图3方框图中所示中的“XXX1”、“XXX2”、“XXX3”等均为视频信息组件,点击某目标视频信息组件,终端响应于点击操作,获取目标视频文件和与目标视频关联的目标音频文件。其中,目标音频文件是预设的与目标视频文件关联的背景音乐,在一些实施例中,对于每一个视频,服务器上预设有该视频和音频文件的关联关系,响应于获取目标视频文件的同时,会根据关联关系获取到与目标视频文件关联的目标音频文件。
在步骤S22中,确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,第一音频信息为与图像信息相关联的音频信息。
其中,第一音频信息为与图像信息相关联的音频信息,例如,第一音频信息可以是图像中的会动的对象(人、动物等等)发出的声音,该对象的嘴部动作是需要和音频信息匹配的,如果该对象的嘴部动作和音频不匹配,则容易出现声音和图像不一致,例如口型不对等各种问题。
其中,第二音频信息可以是与图像无紧密关联的背景音乐等。
在一些实施例中,步骤S22包括:对目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息和图像信息。
在本公开实施例中,终端对目标视频文件进行分离处理,得到图像信息和双声道音频文件,之后对双声道音频文件进行解码,得到第一声道的第一音频信息,第二声道的第二音频信息。
其中,双声道就是有两个声音通道,例如,第一声道和第二声道(针对用户也可以称 之为左声道或用声道),如上述步骤中所述的,双声道音频文件包括第一音频信息和第二音频信息,通常情况下,利用双声道播放时,第一音频信息用一个声道进行播放,第二音频信息用另一个声道进行播放。
在步骤S23中,根据第一音频信息、图像信息和目标音频文件播放目标视频。
在本公开实施例中,根据第一音频信息、图像信息和目标音频文件播放目标视频,使得在播放目标视频的时候不会出现第二音频信息,实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
上述视频播放方法,获取目标视频文件和与目标视频关联的目标音频文件(该目标音频文件不为目标视频文件中的音频文件),确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,第一音频信息为与图像信息相关联的音频信息,例如,第一音频信息可以是图像中的会动的对象(人、动物等等)发出的声音,第二音频信息可以是与图像无紧密关联的背景音乐等,之后,根据第一音频信息、图像信息和目标音频文件播放目标视频,即实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
图4是根据一示例性实施例示出的步骤S23的细化步骤的流程图,包括:
在步骤S231中,通过第一播放器播放第一音频信息和图像信息。
在步骤S232中,通过第二播放器播放目标音频文件。
在本公开实施例中,终端设置有两个播放器,分别为第一播放器和第二播放器,两个播放器播放不同的文件,第一播放器播放目标视频文件中的第一音频信息和图像信息,第二播放器播放目标音频文件。
在一些实施例中,还包括:将第一音频信息填充到第二声道以替换第二音频信息;
步骤S231包括:通过第一播放器播放第一声道、第二声道的第一音频信息和图像信息。
在本公开实施例中,将第一音频信息填充到第二声道以替换第二音频信息。
在一些实施例中,可以根据音效定位算法(Audio Filter算法)对第一音频信息和第二音频信息进行处理,将第一音频信息填充到第二声道以替换第二音频信息。其中,在不将第一音频信息填充到第二声道,而是直接将第二音频信息删除的情况下,响应于利用第一播放器播放,会导致戴上耳机后,只有一个耳机孔出声。将第一音频信息填充到第二声道以替换第二音频信息,在利用第一播放器播放的情况下,才能两个耳机都能听到该用户语音。其中,响应于播放第一音频信息的同时,第一播放器还会同时播放图像信息,第二播放器还会同时播放目标音频文件,实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
在一些实施例中,在获取目标视频文件和与目标视频关联的目标音频文件之前,还包括:
检测目标视频是否为预设页面或/和预设时刻关联的视频;
基于目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与目标视频关联的目标音频文件;
基于目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
其中,预设页面可以为在特定场景(可以为但不限制为节日等场景)下的活动页面,预设时刻为特定时刻(可以为但不限制为节日等时间),如图3所示,响应于点击视频信息组件“XXX1”或视频信息组件“XXX2”会进入预设页面,点击视频信息组件“XXX3”会进入非预设页面。或者,响应于预设时刻(假设为春节),点击某视频信息组件,会进入预设页面。其中,和该预设页面或/和预设时刻关联的视频都需要执行所述方案,即获取目标视频文件和与目标视频关联的目标音频文件(该目标音频文件不为目标视频文件中的音频文件),确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,第一音频信息为与图像信息相关联的音频信息,例如,第一音频信息可以是图像中的会动的对象(人、动物等等)发出的声音,第二音频信息可以是与图像无紧密关联的背景音乐等,之后,根据第一音频信息、图像信息和目标音频文件播放目标视频,即实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
基于目标视频为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
在一些实施例中,可先判断目标视频是否为预设页面或/和预设时刻关联的视频,基于目标视频不为预设页面或/和预设时刻关联的视频,自动调用第一播放器,不对第二播放器执行任何操作,终端发送给第一播放器一个存储文件的地址,第一播放器根据接收到的地址可以获取到目标视频文件,并解码渲染播放该目标视频文件,而不对该目标视频文件进行填充替换背景声等处理,从而实现了对非预设页面或/和预设时刻关联的视频的正常播放。
在本公开实施例中,终端设置有两个播放器,分别为第一播放器和第二播放器,响应于检测到对目标视频的播放请求,可以先判断目标视频是否为预设页面或/和预设时刻关联的视频,基于目标视频为预设页面或/和预设时刻关联的视频,自动调用第一播放器和第二播放器,并分别发送给两个播放器两个存储文件的地址,第一播放器根据接收到的地址可以获取到目标视频文件,第二播放器根据接收到的地址可以获取到目标音频文件。之后,终端对目标视频文件进行分离处理,得到图像信息和双声道音频文件,之后对双声道音频文件进行解码,得到第一声道的第一音频信息,第二声道的第二音频信息,其中,进行解码时,得到的文件会自动加载到第一声道和第二声道,将第一音频信息填充到第二声道以替换第二音频信息。之后,将第一音频信息、图像信息和目标音频文件发送给终端的渲染 模块进行渲染,从而通过第一播放器播放渲染后的第一声道、第二声道的第一音频信息和图像信息,通过第二播放器播放目标音频文件。实现了根据需求动态替换相关的背景音乐(第二音频信息)等声音的效果。
应该理解的是,虽然图2和图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2和图4中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
图5是根据一示例性实施例示出的一种视频播放装置框图。参照图5,该装置包括获取单元51、确定单元52和播放单元53。
该获取单元51,被配置为执行获取目标视频文件和与目标视频关联的目标音频文件。
该确定单元52,被配置为执行确定目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,第一音频信息为与图像信息相关联的音频信息。
该播放单元53,被配置为执行根据第一音频信息、图像信息和目标音频文件播放目标视频。
在一示例性实施例中,该确定单元52还可以被配置为执行:
对目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息和图像信息。
在一示例性实施例中,该播放单元53还可以被配置为执行:
通过第一播放器播放第一音频信息和图像信息;
通过第二播放器播放目标音频文件。
在一示例性实施例中,上述视频播放装置还可以包括填充单元,被配置为执行将第一音频信息填充到第二声道以替换第二音频信息;
该播放单元53还可以被配置为执行:
通过第一播放器播放第一声道、第二声道的第一音频信息和图像信息。
在一示例性实施例中,上述视频播放装置还可以包括检测单元,被配置为执行:
检测目标视频是否为预设页面或/和预设时刻关联的视频;
基于目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与目标视频关联的目标音频文件;
基于目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视 频。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
在示例性实施例中,还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如本公开实施例中的视频播放方法。
在示例性实施例中,还提供了一种存储介质,当该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的视频播放方法。
在示例性实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本公开实施例中的视频播放方法。
图6是根据一示例性实施例示出的一种电子设备Z00的框图。例如,电子设备Z00可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图6,电子设备Z00可以包括以下一个或多个组件:处理组件Z02、存储器Z04、电力组件Z06、多媒体组件Z08、音频组件Z10、输入/输出(I/O)的接口Z12、传感器组件Z14以及通信组件Z16。
处理组件Z02通常控制电子设备Z00的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件Z02可以包括一个或多个处理器Z20来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件Z02可以包括一个或多个模块,便于处理组件Z02和其他组件之间的交互。例如,处理组件Z02可以包括多媒体模块,以方便多媒体组件Z08和处理组件Z02之间的交互。
存储器Z04被配置为存储各种类型的数据以支持在电子设备Z00的操作。这些数据的示例包括用于在电子设备Z00上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器Z04可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件Z06为电子设备Z00的各种组件提供电力。电源组件Z06可以包括电源管理系统,一个或多个电源,及其他与为电子设备Z00生成、管理和分配电力相关联的组件。
多媒体组件Z08包括在所述电子设备Z00和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面 板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件Z08包括一个前置摄像头和/或后置摄像头。当电子设备Z00处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件Z10被配置为输出和/或输入音频信号。例如,音频组件Z10包括一个麦克风(MIC),当电子设备Z00处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器Z04或经由通信组件Z16发送。在一些实施例中,音频组件Z10还包括一个扬声器,用于输出音频信号。
I/O接口Z12为处理组件Z02和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件Z14包括一个或多个传感器,用于为电子设备Z00提供各个方面的状态评估。例如,传感器组件Z14可以检测到电子设备Z00的打开/关闭状态,组件的相对定位,例如所述组件为电子设备Z00的显示器和小键盘,传感器组件Z14还可以检测电子设备Z00或电子设备Z00一个组件的位置改变,用户与电子设备Z00接触的存在或不存在,电子设备Z00方位或加速/减速和电子设备Z00的温度变化。传感器组件Z14可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件Z14还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件Z14还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件Z16被配置为便于电子设备Z00和其他设备之间有线或无线方式的通信。电子设备Z00可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件Z16经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件Z16还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备Z00可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编 程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种视频播放方法,包括:
    获取目标视频文件和与目标视频关联的目标音频文件;
    确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
    根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
  2. 根据权利要求1所述的方法,其中,所述确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,包括:
    对所述目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息和所述图像信息。
  3. 根据权利要求1或2所述的方法,其中,所述根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频,包括:
    通过第一播放器播放所述第一音频信息和所述图像信息;
    通过第二播放器播放所述目标音频文件。
  4. 根据权利要求3所述的方法,其中还包括:
    将所述第一音频信息填充到所述第二声道以替换所述第二音频信息;
    通过所述第一播放器播放第一声道、第二声道的第一音频信息和所述图像信息。
  5. 根据权利要求1-4任一项所述的方法,其中,还包括:
    检测所述目标视频是否为预设页面或/和预设时刻关联的视频;
    基于所述目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与所述目标视频关联的目标音频文件;
    基于所述目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
  6. 一种视频播放装置,包括:
    获取单元,被配置为执行获取目标视频文件和与目标视频关联的目标音频文件;
    确定单元,被配置为执行确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
    播放单元,被配置为执行根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
  7. 根据权利要求6所述的装置,其中,所述确定单元还被配置为执行:
    对所述目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息 和所述图像信息。
  8. 根据权利要求6或7所述的装置,其中,所述播放单元还被配置为执行:
    通过第一播放器播放所述第一音频信息和所述图像信息;
    通过第二播放器播放所述目标音频文件。
  9. 根据权利要求8所述的装置,其中还包括填充单元,被配置为执行将所述第一音频信息填充到所述第二声道以替换所述第二音频信息;
    所述播放单元还被配置为执行:
    通过所述第一播放器播放第一声道、第二声道的第一音频信息和所述图像信息。
  10. 根据权利要求6-9任一项所述的装置,其中还包括检测单元,被配置为执行:
    检测所述目标视频是否为预设页面或/和预设时刻关联的视频;
    基于所述目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与所述目标视频关联的目标音频文件;
    基于所述目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
  11. 一种电子设备,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取目标视频文件和与目标视频关联的目标音频文件;
    确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
    根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
  12. 根据权利要求11所述的电子设备,其中,所述处理器被配置为执行所述指令时还实现以下步骤:
    对所述目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息和所述图像信息。
  13. 根据权利要求11或12所述的电子设备,其中,所述处理器被配置为执行所述指令时还实现以下步骤:
    通过第一播放器播放所述第一音频信息和所述图像信息;
    通过第二播放器播放所述目标音频文件。
  14. 根据权利要求13所述的电子设备,其中,所述处理器被配置为执行所述指令时还实现以下步骤:
    将所述第一音频信息填充到所述第二声道以替换所述第二音频信息;
    通过所述第一播放器播放第一声道、第二声道的第一音频信息和所述图像信息。
  15. 根据权利要求11-14任一项所述的电子设备,其中,所述处理器被配置为执行所述指令时还实现以下步骤:
    检测所述目标视频是否为预设页面或/和预设时刻关联的视频;
    基于所述目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与所述目标视频关联的目标音频文件;
    基于所述目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
  16. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
    获取目标视频文件和与目标视频关联的目标音频文件;
    确定所述目标视频文件包括的第一音频信息、第二音频信息和图像信息,其中,所述第一音频信息为与所述图像信息相关联的音频信息;
    根据所述第一音频信息、图像信息和目标音频文件播放所述目标视频。
  17. 根据权利要求16所述的存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行以下步骤:
    对所述目标视频文件解码,获取第一声道的第一音频信息,第二声道的第二音频信息和所述图像信息。
  18. 根据权利要求16或17所述的存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行以下步骤:
    通过第一播放器播放所述第一音频信息和所述图像信息;
    通过第二播放器播放所述目标音频文件。
  19. 根据权利要求18所述的存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行以下步骤:
    将所述第一音频信息填充到所述第二声道以替换所述第二音频信息;
    通过所述第一播放器播放第一声道、第二声道的第一音频信息和所述图像信息。
  20. 根据权利要求16-19任一项所述的存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行以下步骤:
    检测所述目标视频是否为预设页面或/和预设时刻关联的视频;
    基于所述目标视频是为预设页面或/和预设时刻关联的视频,获取目标视频文件和与所述目标视频关联的目标音频文件;
    基于所述目标视频不为预设页面或/和预设时刻关联的视频,启动第一播放器播放目标视频。
PCT/CN2021/072282 2020-01-17 2021-01-15 视频播放方法及装置 WO2021143882A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/728,393 US20220248083A1 (en) 2020-01-17 2022-04-25 Method and apparatus for video playing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010054986.6A CN111246283B (zh) 2020-01-17 2020-01-17 视频播放方法、装置、电子设备及存储介质
CN202010054986.6 2020-01-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/728,393 Continuation US20220248083A1 (en) 2020-01-17 2022-04-25 Method and apparatus for video playing

Publications (1)

Publication Number Publication Date
WO2021143882A1 true WO2021143882A1 (zh) 2021-07-22

Family

ID=70872786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072282 WO2021143882A1 (zh) 2020-01-17 2021-01-15 视频播放方法及装置

Country Status (3)

Country Link
US (1) US20220248083A1 (zh)
CN (1) CN111246283B (zh)
WO (1) WO2021143882A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709548A (zh) * 2021-08-09 2021-11-26 北京达佳互联信息技术有限公司 基于图像的多媒体数据合成方法、装置、设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246283B (zh) * 2020-01-17 2022-09-30 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质
CN112188115B (zh) * 2020-09-29 2023-10-17 咪咕文化科技有限公司 一种图像处理方法、电子设备及存储介质
CN114598898A (zh) * 2022-03-14 2022-06-07 北京高途云集教育科技有限公司 视频处理方法、装置、电子设备及存储介质
WO2023230782A1 (zh) * 2022-05-30 2023-12-07 北京小米移动软件有限公司 一种音效控制方法、装置及存储介质
CN115103222A (zh) * 2022-06-24 2022-09-23 湖南快乐阳光互动娱乐传媒有限公司 一种视频音轨处理方法及相关设备
CN115334357A (zh) * 2022-08-12 2022-11-11 海宁奕斯伟集成电路设计有限公司 音频控制装置及方法

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03254468A (ja) * 1990-03-05 1991-11-13 Sharp Corp 音声信号記録装置
JPH05244520A (ja) * 1991-11-27 1993-09-21 Nec Corp テレビジョン受像機
US20090171995A1 (en) * 2007-12-31 2009-07-02 Kelan Silvester Associating and presenting alternate media with a media file
CN103916692A (zh) * 2014-03-25 2014-07-09 小米科技有限责任公司 视频播放方法、装置及播放终端
CN103997657A (zh) * 2014-06-06 2014-08-20 福建天晴数码有限公司 一种视频中音频的变换方法及装置
CN108521603A (zh) * 2018-04-20 2018-09-11 深圳市零度智控科技有限公司 数字电视及其播放方法,和计算机可读存储介质
CN108900902A (zh) * 2018-07-06 2018-11-27 北京微播视界科技有限公司 确定视频背景音乐的方法、装置、终端设备及存储介质
CN109618223A (zh) * 2019-01-28 2019-04-12 北京易捷胜科技有限公司 一种声音替换方法
CN110266973A (zh) * 2019-07-19 2019-09-20 腾讯科技(深圳)有限公司 视频处理方法、装置、计算机可读存储介质和计算机设备
CN111246283A (zh) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7663045B2 (en) * 2005-09-20 2010-02-16 Microsoft Corporation Music replacement in a gaming system
CN101540947B (zh) * 2009-04-03 2011-12-07 中兴通讯股份有限公司 移动流媒体模拟直播方法及其使用的内容切换方法
US20110113335A1 (en) * 2009-11-06 2011-05-12 Tandberg Television, Inc. Systems and Methods for Replacing Audio Segments in an Audio Track for a Video Asset
CN102984626B (zh) * 2012-11-22 2015-04-01 福州瑞芯微电子有限公司 一种对音频系统输入数字信号检测校正的方法及装置
CN104598502A (zh) * 2014-04-22 2015-05-06 腾讯科技(北京)有限公司 获取播放视频中背景音乐信息的方法、装置及系统
EP3029676A1 (en) * 2014-12-02 2016-06-08 Bellevue Investments GmbH & Co. KGaA System and method for theme based video creation with real-time effects
CN104916295A (zh) * 2015-05-30 2015-09-16 广东欧珀移动通信有限公司 一种播放控制的方法及终端
CN105872749A (zh) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 视频处理的方法及装置
US9838737B2 (en) * 2016-05-05 2017-12-05 Google Inc. Filtering wind noises in video content
CN106792013A (zh) * 2016-11-29 2017-05-31 青岛海尔多媒体有限公司 一种用于电视节目声音互动的方法、电视
CN106648107B (zh) * 2016-12-30 2020-05-15 包磊 一种vr场景的控制方法和装置
US10661175B2 (en) * 2017-09-26 2020-05-26 Sony Interactive Entertainment Inc. Intelligent user-based game soundtrack
CN109257655A (zh) * 2018-09-29 2019-01-22 视联动力信息技术股份有限公司 一种节目切换时的音频处理方法和装置

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03254468A (ja) * 1990-03-05 1991-11-13 Sharp Corp 音声信号記録装置
JPH05244520A (ja) * 1991-11-27 1993-09-21 Nec Corp テレビジョン受像機
US20090171995A1 (en) * 2007-12-31 2009-07-02 Kelan Silvester Associating and presenting alternate media with a media file
CN103916692A (zh) * 2014-03-25 2014-07-09 小米科技有限责任公司 视频播放方法、装置及播放终端
CN103997657A (zh) * 2014-06-06 2014-08-20 福建天晴数码有限公司 一种视频中音频的变换方法及装置
CN108521603A (zh) * 2018-04-20 2018-09-11 深圳市零度智控科技有限公司 数字电视及其播放方法,和计算机可读存储介质
CN108900902A (zh) * 2018-07-06 2018-11-27 北京微播视界科技有限公司 确定视频背景音乐的方法、装置、终端设备及存储介质
CN109618223A (zh) * 2019-01-28 2019-04-12 北京易捷胜科技有限公司 一种声音替换方法
CN110266973A (zh) * 2019-07-19 2019-09-20 腾讯科技(深圳)有限公司 视频处理方法、装置、计算机可读存储介质和计算机设备
CN111246283A (zh) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709548A (zh) * 2021-08-09 2021-11-26 北京达佳互联信息技术有限公司 基于图像的多媒体数据合成方法、装置、设备及存储介质
CN113709548B (zh) * 2021-08-09 2023-08-25 北京达佳互联信息技术有限公司 基于图像的多媒体数据合成方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN111246283A (zh) 2020-06-05
US20220248083A1 (en) 2022-08-04
CN111246283B (zh) 2022-09-30

Similar Documents

Publication Publication Date Title
WO2021143882A1 (zh) 视频播放方法及装置
JP6385459B2 (ja) オーディオの再生のための制御方法及び装置
CN105845124B (zh) 音频处理方法及装置
JP6186518B2 (ja) 音声通話プロンプト方法、装置、プログラム及び記録媒体
CN106559712B (zh) 视频播放处理方法、装置及终端设备
CN109348239B (zh) 直播片段处理方法、装置、电子设备及存储介质
WO2017181551A1 (zh) 视频处理方法及装置
CN106792173B (zh) 视频播放方法、装置及非临时性计算机可读存储介质
WO2017016109A1 (zh) 事件提醒方法及装置
RU2666626C1 (ru) Способ и устройство для управления состоянием воспроизведения
TW201837751A (zh) 搜索結果顯示方法及裝置
US20180007420A1 (en) Method, device and system for recording television program
EP4093040A1 (en) Video playback method and apparatus
CN108769769B (zh) 视频的播放方法、装置及计算机可读存储介质
CN105049763A (zh) 触发投影的方法及装置
CN108984098B (zh) 基于社交软件的信息显示的控制方法及装置
US20210335390A1 (en) Method and device for generating dynamic image
WO2017016145A1 (zh) 状态通知方法及装置
CN111246303B (zh) 视频播放方法、装置、电子设备及存储介质
CN106447747B (zh) 图像处理方法及装置
CN106791897A (zh) 基于视频播放平台的直播互动方法及装置
CN113709538B (zh) 一种多媒体数据播放方法、装置、电子设备及存储介质
WO2022142254A1 (zh) 歌曲录制方法及存储介质
WO2021103742A1 (zh) 一种资源管理方法、装置及电子设备
CN108491180B (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: 21740663

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21740663

Country of ref document: EP

Kind code of ref document: A1