[go: up one dir, main page]

CN106375782A - Video playback method and device - Google Patents

Video playback method and device Download PDF

Info

Publication number
CN106375782A
CN106375782A CN201610792528.6A CN201610792528A CN106375782A CN 106375782 A CN106375782 A CN 106375782A CN 201610792528 A CN201610792528 A CN 201610792528A CN 106375782 A CN106375782 A CN 106375782A
Authority
CN
China
Prior art keywords
video
background music
music
audio
title
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610792528.6A
Other languages
Chinese (zh)
Other versions
CN106375782B (en
Inventor
祁连山
骆艳飞
刘健全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610792528.6A priority Critical patent/CN106375782B/en
Publication of CN106375782A publication Critical patent/CN106375782A/en
Application granted granted Critical
Publication of CN106375782B publication Critical patent/CN106375782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开是关于一种视频播放方法及装置,属于视频处理技术领域。所述方法包括:在视频播放过程中,检测所述视频中是否附加有背景音乐;当所述视频中附加有背景音乐,获取所述背景音乐的名称;显示所述背景音乐的名称。本公开解决了网页或视频播放器播放视频时播放功能单一,灵活性较低的问题。本公开实现了丰富视频播放的功能,提高视频播放的灵活性的有益效果。本公开用于视频播放。

The present disclosure relates to a video playing method and device, and belongs to the technical field of video processing. The method includes: during the video playing process, detecting whether there is background music added to the video; when there is background music added to the video, obtaining the name of the background music; and displaying the name of the background music. The disclosure solves the problem of single playback function and low flexibility when a webpage or video player plays video. The disclosure realizes the beneficial effect of enriching the functions of video playing and improving the flexibility of video playing. This disclosure is for video playback.

Description

视频播放方法及装置Video playback method and device

技术领域technical field

本发明涉及视频处理技术领域,特别涉及一种视频播放方法及装置。The present invention relates to the technical field of video processing, in particular to a video playing method and device.

背景技术Background technique

随着视频处理技术的快速发展,各类视频在网上随处可见,越来越多的人通过网页或视频播放器观看视频。With the rapid development of video processing technology, various videos can be seen everywhere on the Internet, and more and more people watch videos through web pages or video players.

相关技术中,网页或视频播放器在播放视频时,用户可以通过点击进度条等操作调整视频播放的进度,也可以通过屏幕上的弹幕实时发表评论或与人聊天。In related technologies, when a webpage or a video player is playing a video, the user can adjust the progress of the video playback by clicking a progress bar or other operations, and can also post comments or chat with people in real time through the barrage on the screen.

发明内容Contents of the invention

为了解决现有技术中网页或视频播放器播放视频时播放功能单一,灵活性较低的问题,本公开实施例提供了一种视频播放方法及装置。所述技术方案如下:In order to solve the problem of single playback function and low flexibility when a webpage or video player plays a video in the prior art, embodiments of the present disclosure provide a video playback method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供一种视频播放方法,包括:According to a first aspect of an embodiment of the present disclosure, a video playback method is provided, including:

在视频播放过程中,检测所述视频中是否附加有背景音乐;During video playback, detect whether there is background music attached to the video;

当所述视频中附加有背景音乐,获取所述背景音乐的名称;When background music is attached to the video, obtain the name of the background music;

显示所述背景音乐的名称。Displays the name of the background music in question.

可选的,所述显示所述背景音乐的名称,包括:Optionally, the displaying the name of the background music includes:

以弹幕的形式显示所述背景音乐的名称。The name of the background music is displayed in the form of barrage.

可选的,所述以弹幕的形式显示所述背景音乐的名称,包括:Optionally, the displaying the name of the background music in the form of barrage includes:

在所述背景音乐播放过程中,以弹幕的形式显示所述背景音乐的名称至少一次。During the playing of the background music, the name of the background music is displayed at least once in the form of barrage.

可选的,所述当所述视频中附加有背景音乐,获取所述背景音乐的名称,包括:Optionally, when there is background music attached to the video, obtaining the name of the background music includes:

当所述视频中附加有背景音乐,获取所述背景音乐的音频信息;When background music is attached to the video, audio information of the background music is obtained;

将所述音频信息发送至音乐服务器;sending the audio information to a music server;

接收所述音乐服务器发送的所述背景音乐的名称,所述背景音乐的名称为所述音乐服务器在音乐数据库中确定的与所述音频信息匹配的音乐名称。The name of the background music sent by the music server is received, and the name of the background music is a music name determined by the music server in a music database and matched with the audio information.

可选的,所述音频信息包括:音乐指纹,所述音乐数据库为音乐指纹库,所述获取所述背景音乐的音频信息,包括:Optionally, the audio information includes: music fingerprints, the music database is a music fingerprint library, and the acquisition of the audio information of the background music includes:

截取所述背景音乐的一段音频;intercepting a piece of audio of the background music;

确定所述一段音频的音乐指纹。A musical fingerprint of the piece of audio is determined.

可选的,所述当所述视频中附加有背景音乐,获取所述背景音乐的名称,包括:Optionally, when there is background music attached to the video, obtaining the name of the background music includes:

当所述视频中附加有背景音乐,从视频服务器获取所述视频的附加信息,所述附加信息为所述视频上传至所述视频服务器时,由所述视频服务器对所述视频的内容进行识别后生成的,所述附加信息包括:所述背景音乐的名称;When background music is attached to the video, the additional information of the video is obtained from the video server, and the additional information is when the video is uploaded to the video server, the content of the video is identified by the video server generated later, the additional information includes: the name of the background music;

在所述附加信息中提取所述背景音乐的名称。The name of the background music is extracted from the additional information.

可选的,所述方法还包括:Optionally, the method also includes:

接收用户通过对所述弹幕进行指定操作所触发的下载指令;receiving a download instruction triggered by the user performing a specified operation on the barrage;

根据所述下载指令向音乐服务器发送下载请求,所述下载请求包括所述背景音乐的名称;sending a download request to the music server according to the download instruction, the download request including the name of the background music;

接收所述音乐服务器发送的所述背景音乐的名称对应的完整音频。receiving the complete audio corresponding to the name of the background music sent by the music server.

可选的,所述在视频播放过程中,检测所述视频中是否附加有背景音乐,包括:Optionally, during the video playing process, detecting whether there is background music attached to the video includes:

在所述视频播放过程中,监测弹幕功能是否开启,During the playback of the video, monitor whether the barrage function is enabled,

在所述弹幕功能开启后,检测所述视频中是否附加有背景音乐;After the barrage function is turned on, detect whether there is background music attached to the video;

或者,在所述视频播放过程中,监测音乐提示功能是否开启,Or, during the playing of the video, monitor whether the music prompt function is turned on,

在所述音乐提示功能开启后,检测所述视频中是否附加有背景音乐。After the music prompt function is turned on, it is detected whether there is background music attached to the video.

根据本公开实施例的第二方面,提供一种视频播放方法,包括:According to a second aspect of an embodiment of the present disclosure, a video playback method is provided, including:

当视频上传至视频服务器时,对所述视频的内容进行识别;When the video is uploaded to the video server, identify the content of the video;

当所述视频的内容包括背景音乐,生成附加信息,所述附加信息包括:所述背景音乐的名称;When the content of the video includes background music, additional information is generated, and the additional information includes: the name of the background music;

向播放所述视频的终端提供所述视频的附加信息。The additional information of the video is provided to the terminal playing the video.

可选的,所述当所述视频的内容包括背景音乐,生成附加信息,包括:Optionally, when the content of the video includes background music, additional information is generated, including:

当所述视频的内容包括背景音乐,获取所述背景音乐的音频信息;When the content of the video includes background music, acquiring audio information of the background music;

将所述音频信息发送至音乐服务器;sending the audio information to a music server;

接收所述音乐服务器发送的所述背景音乐的名称,所述背景音乐的名称为所述音乐服务器在音乐数据库中确定的与所述音频信息匹配的音乐名称;receiving the name of the background music sent by the music server, where the name of the background music is the music name matched with the audio information determined by the music server in the music database;

根据所述音频信息生成所述附加信息。The additional information is generated based on the audio information.

根据本公开实施例的第三方面,提供一种视频播放装置,包括:According to a third aspect of an embodiment of the present disclosure, a video playback device is provided, including:

检测模块,被配置为在视频播放过程中,检测所述视频中是否附加有背景音乐;The detection module is configured to detect whether background music is attached to the video during the video playing process;

获取模块,被配置为当所述视频中附加有背景音乐,获取所述背景音乐的名称;The obtaining module is configured to obtain the name of the background music when the video is appended with background music;

显示模块,被配置为显示所述背景音乐的名称。A display module configured to display the name of the background music.

可选的,所述显示模块,包括:Optionally, the display module includes:

显示子模块,被配置为以弹幕的形式显示所述背景音乐的名称。The display submodule is configured to display the name of the background music in the form of barrage.

可选的,所述显示子模块被配置为在所述背景音乐播放过程中,以弹幕的形式显示所述背景音乐的名称至少一次。Optionally, the display submodule is configured to display the name of the background music at least once in the form of barrage during the playing of the background music.

可选的,所述获取模块,包括:Optionally, the acquisition module includes:

第一获取子模块,被配置为当所述视频中附加有背景音乐,获取所述背景音乐的音频信息;The first acquiring submodule is configured to acquire the audio information of the background music when the video is appended with background music;

发送子模块,被配置为将所述音频信息发送至音乐服务器;a sending submodule configured to send the audio information to a music server;

接收子模块,被配置为接收所述音乐服务器发送的所述背景音乐的名称,所述背景音乐的名称为所述音乐服务器在音乐数据库中确定的与所述音频信息匹配的音乐名称。The receiving submodule is configured to receive the name of the background music sent by the music server, and the name of the background music is a music name determined by the music server in a music database and matched with the audio information.

可选的,所述音频信息包括:音乐指纹,所述音乐数据库为音乐指纹库,所述第一获取子模块,包括:Optionally, the audio information includes: music fingerprints, the music database is a music fingerprint library, and the first acquisition submodule includes:

截取子模块,被配置为截取所述背景音乐的一段音频;The intercepting submodule is configured to intercept a section of audio of the background music;

确定子模块,被配置为确定所述一段音频的音乐指纹。The determining submodule is configured to determine the music fingerprint of the piece of audio.

可选的,所述获取模块,包括:Optionally, the acquisition module includes:

第二获取子模块,被配置为当所述视频中附加有背景音乐,从视频服务器获取所述视频的附加信息,所述附加信息为所述视频上传至所述视频服务器时,由所述视频服务器对所述视频的内容进行识别后生成的,所述附加信息包括:所述背景音乐的名称;The second obtaining submodule is configured to obtain additional information of the video from the video server when background music is attached to the video, and the additional information is uploaded to the video server by the video Generated after the server identifies the content of the video, the additional information includes: the name of the background music;

提取子模块,被配置为在所述附加信息中提取所述背景音乐的名称。The extracting submodule is configured to extract the name of the background music from the additional information.

可选的,所述装置还包括:Optionally, the device also includes:

第一接收模块,被配置为接收用户通过对所述弹幕进行指定操作所触发的下载指令;The first receiving module is configured to receive a download instruction triggered by a user performing a specified operation on the barrage;

发送模块,被配置为根据所述下载指令向音乐服务器发送下载请求,所述下载请求包括所述背景音乐的名称;A sending module, configured to send a download request to a music server according to the download instruction, the download request including the name of the background music;

第二接收模块,被配置为接收所述音乐服务器发送的所述背景音乐的名称对应的完整音频。The second receiving module is configured to receive the complete audio corresponding to the name of the background music sent by the music server.

可选的,所述检测模块,被配置为:Optionally, the detection module is configured to:

在所述视频播放过程中,监测弹幕功能是否开启,During the playback of the video, monitor whether the barrage function is enabled,

在所述弹幕功能开启后,检测所述视频中是否附加有背景音乐;After the barrage function is turned on, detect whether there is background music attached to the video;

或者,在所述视频播放过程中,监测音乐提示功能是否开启,Or, during the playing of the video, monitor whether the music prompt function is turned on,

在所述音乐提示功能开启后,检测所述视频中是否附加有背景音乐。After the music prompt function is turned on, it is detected whether there is background music attached to the video.

根据本公开实施例的第四方面,提供一种视频播放装置,包括:According to a fourth aspect of an embodiment of the present disclosure, a video playback device is provided, including:

识别模块,被配置为当视频上传至视频服务器时,对所述视频的内容进行识别;An identification module configured to identify the content of the video when the video is uploaded to the video server;

生成模块,被配置为当所述视频的内容包括背景音乐,生成附加信息,所述附加信息包括:所述背景音乐的名称;The generation module is configured to generate additional information when the content of the video includes background music, and the additional information includes: the name of the background music;

提供模块,被配置为向播放所述视频的终端提供所述视频的附加信息。The providing module is configured to provide the additional information of the video to the terminal playing the video.

可选的,所述生成模块,包括:Optionally, the generating module includes:

获取子模块,被配置为当所述视频的内容包括背景音乐,获取所述背景音乐的音频信息;The obtaining submodule is configured to obtain the audio information of the background music when the content of the video includes background music;

发送子模块,被配置为将所述音频信息发送至音乐服务器;a sending submodule configured to send the audio information to a music server;

接收子模块,被配置为接收所述音乐服务器发送的所述背景音乐的名称,所述背景音乐的名称为所述音乐服务器在音乐数据库中确定的与所述音频信息匹配的音乐名称;The receiving submodule is configured to receive the name of the background music sent by the music server, the name of the background music is the music name determined by the music server in the music database and matches the audio information;

生成子模块,被配置为根据所述音频信息生成所述附加信息。A generating submodule configured to generate the additional information according to the audio information.

根据本公开实施例的第五方面,提供一种视频播放装置,所述装置包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided a video playback device, the device comprising:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;

其中,所述处理器被配置为:Wherein, the processor is configured as:

在视频播放过程中,检测所述视频中是否附加有背景音乐;During video playback, detect whether there is background music attached to the video;

当所述视频中附加有背景音乐,获取所述背景音乐的名称;When background music is attached to the video, obtain the name of the background music;

显示所述背景音乐的名称。Displays the name of the background music in question.

根据本公开实施例的第六方面,提供一种视频播放装置,所述装置包括:According to a sixth aspect of an embodiment of the present disclosure, there is provided a video playback device, the device comprising:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当视频上传至视频服务器时,对所述视频的内容进行识别;When the video is uploaded to the video server, identify the content of the video;

当所述视频的内容包括背景音乐,生成附加信息,所述附加信息包括:所述背景音乐的名称;When the content of the video includes background music, additional information is generated, and the additional information includes: the name of the background music;

向播放所述视频的终端提供所述视频的附加信息。The additional information of the video is provided to the terminal playing the video.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开实施例提供的视频播放方法及装置,在视频播放时,终端可以检测视频中的背景音乐,获取背景音乐的名称并在终端播放视频的界面上显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。The video playback method and device provided by the embodiments of the present disclosure, when the video is playing, the terminal can detect the background music in the video, obtain the name of the background music and display it on the interface of the terminal playing the video, which satisfies the user's desire to know when watching the video The wish of the name of the background music in the video enriches the functions of video playback and improves the flexibility of video playback.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.

附图说明Description of drawings

为了更清楚地说明本公开的实施例,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present disclosure more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1是根据一示例性实施例示出的一种视频播放方法所涉及的实施环境的示意图。Fig. 1 is a schematic diagram of an implementation environment involved in a video playing method according to an exemplary embodiment.

图2是根据一示例性实施例提供的一种视频播放方法的流程图。Fig. 2 is a flow chart of a video playing method according to an exemplary embodiment.

图3是根据一示意例性实施例提供的一种视频播放方法的流程图。Fig. 3 is a flowchart of a video playing method according to an exemplary embodiment.

图4-1是根据一示例性实施例提供的一种视频播放方法的流程图。Fig. 4-1 is a flowchart of a video playing method according to an exemplary embodiment.

图4-2是根据一示例性实施例提供的一种视频播放方法所涉及的实施环境的示意图。Fig. 4-2 is a schematic diagram of an implementation environment involved in a video playing method according to an exemplary embodiment.

图4-3是根据一示例性实施例示出的一种获取背景音乐名称的方法流程图。Fig. 4-3 is a flow chart of a method for acquiring a name of background music according to an exemplary embodiment.

图4-4是根据一示例性实施例示出的另一种获取背景音乐名称的方法流程图。Fig. 4-4 is a flow chart of another method for obtaining the name of background music according to an exemplary embodiment.

图4-5是根据一示例性实施例示出的又一种获取背景音乐名称的方法流程图。4-5 are flowcharts of another method for obtaining the name of background music according to an exemplary embodiment.

图5-1是根据一示例性实施例示出的一种视频播放装置的框图。Fig. 5-1 is a block diagram of a video playback device according to an exemplary embodiment.

图5-2是根据一示例性实施例示出的一种显示模块的框图。Fig. 5-2 is a block diagram of a display module according to an exemplary embodiment.

图5-3是根据一示例性实施例示出的一种获取模块的框图。Fig. 5-3 is a block diagram of an acquisition module according to an exemplary embodiment.

图5-4是根据一示例性实施例示出的一种第一获取子模块的框图。Fig. 5-4 is a block diagram showing a first acquiring submodule according to an exemplary embodiment.

图5-5是根据一示例性实施例示出的另一种获取模块的框图。Fig. 5-5 is a block diagram showing another acquisition module according to an exemplary embodiment.

图5-6是根据一示例性实施例示出的一种视频播放装置的框图。5-6 are block diagrams of a video playing device according to an exemplary embodiment.

图6-1是根据一示例性实施例示出的一种视频播放装置的框图。Fig. 6-1 is a block diagram of a video playing device according to an exemplary embodiment.

图6-2是根据一示例性实施例示出的一种生成模块的框图。Fig. 6-2 is a block diagram of a generating module according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种视频播放装置的框图。Fig. 7 is a block diagram of a video playing device according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种视频播放装置的框图。Fig. 8 is a block diagram of a video playing device according to an exemplary embodiment.

具体实施方式detailed description

为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,显然,所描述的实施例仅仅是本公开一部份实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all of them. . Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.

请参见图1,其示出了本公开部分实施例中提供的视频播放方法所涉及的实施环境的示意图。该实施环境可以包括:视频服务器110和至少一个终端120。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment involved in the video playing method provided in some embodiments of the present disclosure. The implementation environment may include: a video server 110 and at least one terminal 120 .

视频服务器110可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。终端120可以为智能手机、电脑、多媒体播放器、电子阅读器、可穿戴式设备等。The video server 110 can be a server, or a server cluster composed of several servers, or a cloud computing service center. The terminal 120 may be a smart phone, a computer, a multimedia player, an e-reader, a wearable device, and the like.

视频服务器110和终端120之间可以通过有线网络或无线网络建立连接,视频服务器中可以存储有视频数据库,终端120可以从视频服务器110中获取视频并播放。A connection can be established between the video server 110 and the terminal 120 through a wired network or a wireless network. A video database can be stored in the video server, and the terminal 120 can obtain and play videos from the video server 110 .

相关技术中,终端通过网页或视频播放器播放视频时,用户可以通过点击进度条等操作调整视频播放的进度,也可以通过屏幕上的弹幕实时发表评论或与人聊天,但是网页或视频播放器播放视频时播放功能单一,灵活性较低。In related technologies, when a terminal plays a video through a web page or a video player, the user can adjust the progress of the video playback by clicking the progress bar, etc., or post comments or chat with people in real time through the barrage on the screen, but the web page or video playback When the player plays video, the playback function is single, and the flexibility is low.

图2是本公开一示意性实施例提供的一种视频播放方法的流程图,可以应用于图1所示的实施环境中的终端,该方法包括:Fig. 2 is a flow chart of a video playing method provided by an exemplary embodiment of the present disclosure, which can be applied to the terminal in the implementation environment shown in Fig. 1, and the method includes:

步骤201、在视频播放过程中,检测该视频中是否附加有背景音乐。Step 201, during the video playing process, detect whether there is background music attached to the video.

步骤202、当视频中附加有背景音乐,获取该背景音乐的名称。Step 202, when background music is attached to the video, obtain the name of the background music.

步骤203、显示该背景音乐的名称。Step 203, display the name of the background music.

在本公开实施例中,可以以弹幕的形式显示背景音乐的名称,也可以以弹窗的形式显示背景音乐的名称,还可以在用户的个人中心显示背景音乐的名称,本公开实施例对显示背景音乐的名称的方式不做限定。In this embodiment of the disclosure, the name of the background music can be displayed in the form of a barrage, or the name of the background music can be displayed in the form of a pop-up window, and the name of the background music can also be displayed in the user's personal center. The manner of displaying the name of the background music is not limited.

综上所述,本公开实施例提供的视频播放方法,在视频播放时,终端可以检测视频中的背景音乐,获取背景音乐的名称并在终端播放视频的界面上显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback method provided by the embodiments of the present disclosure, when the video is playing, the terminal can detect the background music in the video, obtain the name of the background music and display it on the interface of the terminal playing the video, which satisfies the need for the user to watch the video. The willingness to know the name of the background music in the video enriches the function of video playback and improves the flexibility of video playback.

图3是本公开一示意性实施例提供的一种视频播放方法的流程图,可以应用于图1所示的实施环境中的视频服务器,该方法包括:Fig. 3 is a flowchart of a video playing method provided by an exemplary embodiment of the present disclosure, which can be applied to the video server in the implementation environment shown in Fig. 1, and the method includes:

步骤301、当视频上传至视频服务器时,对该视频的内容进行识别。Step 301, when the video is uploaded to the video server, identify the content of the video.

步骤302、当该视频的内容包括背景音乐,生成附加信息。其中,附加信息包括该背景音乐的名称。Step 302, when the content of the video includes background music, generate additional information. Wherein, the additional information includes the name of the background music.

步骤303、向播放该视频的终端提供该视频的附加信息。Step 303, providing additional information of the video to the terminal playing the video.

综上所述,本公开实施例提供的视频播放方法,当视频上传至视频服务器时,视频服务器对该视频的内容进行识别,当该视频的内容包括背景音乐时,视频服务器向播放该视频的终端提供该附加信息,终端接收到的附加信息中包括背景音乐的名称,可以将该背景音乐的名称进行显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playing method provided by the embodiment of the present disclosure, when the video is uploaded to the video server, the video server will identify the content of the video, and when the content of the video includes background music, the video server will send the video to the video playing method. The terminal provides this additional information, and the additional information received by the terminal includes the name of the background music, which can be displayed, which satisfies the desire of the user to know the name of the background music in the video when watching a video, and enriches the The function of video playback improves the flexibility of video playback.

图4-1是本公开一示意性实施例提供的一种视频播放方法的流程图,该方法能够应用于图1所示的实施环境中,该方法包括:Fig. 4-1 is a flow chart of a video playback method provided by an exemplary embodiment of the present disclosure. The method can be applied to the implementation environment shown in Fig. 1, and the method includes:

步骤401、在视频播放过程中,终端检测该视频中是否附加有背景音乐。当该视频中附加有背景音乐,执行步骤402。当该视频中未附加有背景音乐,重复执行步骤401,直至视频播放完毕。Step 401. During the video playing process, the terminal detects whether there is background music attached to the video. When background music is attached to the video, step 402 is performed. When there is no background music attached to the video, repeat step 401 until the video is played completely.

需要说明的是,在检测该视频中是否附加有背景音乐之前,终端需要判断是否有必要执行该检测动作,示例的,终端可以执行如下判断过程:It should be noted that before detecting whether background music is attached to the video, the terminal needs to determine whether it is necessary to perform the detection action. For example, the terminal may perform the following determination process:

一方面,假设本公开实施例以弹幕的形式显示背景音乐的名称,则在视频播放过程中,监测弹幕功能是否开启,在弹幕功能开启后,检测该视频中是否附加有背景音乐。On the one hand, assuming that the embodiment of the present disclosure displays the name of the background music in the form of a barrage, then during video playback, monitor whether the barrage function is enabled, and after the barrage function is enabled, detect whether there is background music attached to the video.

弹幕功能可以通过按钮触发,在视频播放过程中,在播放视频的界面上显示一个弹幕功能开启按钮,提示用户是否需要开启弹幕功能,如果用户点击该按钮,终端则确定该弹幕功能开启,开始检测视频中是否附加有背景音乐,如果用户不点击该按钮或在该弹幕功能开启后再次点击该按钮,终端则确定该弹幕功能关闭,用户不能使用弹幕对视频进行评论,同时终端也不需要检测视频中是否附加有背景音乐。The barrage function can be triggered by a button. During video playback, a barrage function enable button is displayed on the video playing interface to prompt the user whether to enable the barrage function. If the user clicks the button, the terminal will confirm the barrage function Enable to detect whether there is background music attached to the video. If the user does not click the button or clicks the button again after the bullet chat function is enabled, the terminal will determine that the bullet chat function is disabled, and the user cannot use the bullet chat to comment on the video. At the same time, the terminal does not need to detect whether there is background music attached to the video.

另一方面,假设本公开实施例对显示背景音乐的名称的方式不作限定,则在视频播放过程中,监测音乐提示功能是否开启,在音乐提示功能开启后,检测该视频中是否附加有背景音乐。On the other hand, assuming that the embodiment of the present disclosure does not limit the method of displaying the name of the background music, then during the video playback process, monitor whether the music prompt function is turned on, and after the music prompt function is turned on, detect whether there is background music attached to the video .

示例的,终端监测音乐提示功能是否开启可以包括以下两种可实现方式:For example, the terminal monitoring whether the music prompt function is enabled may include the following two implementation methods:

第一种可实现方式,音乐提示功能可以通过按钮触发,在视频播放过程中,在播放视频的界面上显示一个音乐提示开启按钮,提示用户是否需要获取该视频中的背景音乐,如果用户点击该按钮,终端则确定该音乐提示功能开启,开始检测视频中是否附加有背景音乐,如果用户不点击该按钮,终端则确定该音乐提示功能关闭,不需要检测视频中是否附加有背景音乐。需要说明的是,当用户音乐提示功能开启后,若用户再次点击该按钮,终端则确定该音乐提示功能关闭,停止检测视频中是否附加有背景音乐。In the first possible implementation mode, the music reminder function can be triggered by a button. During the video playback process, a music reminder enable button is displayed on the video playback interface to prompt the user whether to obtain the background music in the video. If the user clicks the button, the terminal determines that the music reminder function is enabled, and starts to detect whether there is background music attached to the video. If the user does not click the button, the terminal determines that the music reminder function is disabled, and does not need to detect whether there is background music attached to the video. It should be noted that after the user's music reminder function is turned on, if the user clicks the button again, the terminal will determine that the music reminder function is off, and stop detecting whether there is background music attached to the video.

第二种可实现方式,音乐提示功能还可以通过语音触发,在视频播放器的后台插入一个语音识别软件,识别用户的语音,当用户的语音中包含预设词语时,确定该音乐提示功能开启,例如,该预设词语为“开启音乐识别”。In the second possible way, the music reminder function can also be triggered by voice. A voice recognition software is inserted in the background of the video player to recognize the user's voice. When the user's voice contains preset words, it is determined that the music reminder function is turned on. , for example, the preset word is "turn on music recognition".

本公开实施例中,在视频播放过程中,对检测该视频中是否附加有背景音乐的方法有多种,本公开实施例以以下两种检测方式为例进行说明:In the embodiment of the present disclosure, during the video playing process, there are many methods for detecting whether background music is attached to the video, and the embodiment of the present disclosure takes the following two detection methods as examples for illustration:

第一种检测方式,终端可以预先在视频服务器中获取当前播放的视频的附加信息,该附加信息中通常可以携带有该视频中背景音乐的名称及其播放时间,如果该视频中附加有背景音乐,则终端在视频播放过程中,检测该附加信息,当附加信息中存在背景音乐的名称时,说明该视频中附加有背景音乐,当附加信息中不存在背景音乐的名称时,说明该视频中没有背景音乐,从而达到检测该视频中是否附加有背景音乐的目的。In the first detection method, the terminal can obtain the additional information of the currently playing video from the video server in advance. The additional information can usually carry the name of the background music in the video and its playing time. If the video is accompanied by background music , then the terminal detects the additional information during video playback. If there is a name of background music in the additional information, it means that the video has background music attached to it. When there is no name of background music in the additional information, it means that there is There is no background music, so as to achieve the purpose of detecting whether there is background music attached to the video.

第二种检测方式,在视频播放器的后台插入语音识别软件,通过检测视频播放过程中声音的波形变化,判断视频中是否出现背景音乐;示例的,视频对话中声音的波形一般都是杂乱无章的,而音乐一般都是有固定节奏的,因而背景音乐出现时,视频播放过程中声音的波形变化会呈现一定的规律性,当语音识别软件检测到视频播放过程中声音的波形呈一定的规律变化时,就可以判断该视频中开始播放背景音乐,也即是,终端检测到该视频中附加有背景音乐,当语音识别软件检测到视频播放过程中声音的波形不再呈一定的规律变化时,就可以判断该视频中背景音乐播放结束。当语音识别软件检测到视频播放过程中声音的波形不存在规律变化时,则终端检测到该视频中没有背景音乐。The second detection method is to insert speech recognition software in the background of the video player, and judge whether there is background music in the video by detecting the waveform change of the sound during the video playback process; for example, the waveform of the sound in the video conversation is generally disorderly. , and music generally has a fixed rhythm, so when the background music appears, the waveform of the sound during the video playback will show a certain regularity. , it can be judged that the background music starts to play in the video, that is, the terminal detects that the video is accompanied by background music, and when the voice recognition software detects that the sound waveform no longer changes regularly during video playback, It can be judged that the playing of the background music in the video is finished. When the voice recognition software detects that there is no regular change in the sound waveform during video playback, the terminal detects that there is no background music in the video.

步骤402、终端获取该背景音乐的名称。Step 402, the terminal acquires the name of the background music.

在本公开实施例中,视频播放系统可以有多种架构,相应的,终端可以通过多种可实现方式获取背景音乐的名称,本公开实施例以以下三方面为例进行说明:In the embodiment of the present disclosure, the video playback system may have multiple architectures. Correspondingly, the terminal may obtain the name of the background music in various implementable ways. The embodiment of the present disclosure takes the following three aspects as examples for illustration:

一方面,图4-2是本公开一示意性实施例提供的一种视频播放系统的环境示意图,请参见图4-2,其示出了本公开实施例中提供的视频播放方法所涉及的实施环境的示意图。该实施环境可以包括:视频服务器110、音乐服务器130和至少一个终端120。On the one hand, FIG. 4-2 is a schematic diagram of the environment of a video playing system provided by an exemplary embodiment of the present disclosure. Please refer to FIG. 4-2, which shows the video playing method involved in the embodiment of the present disclosure. A schematic diagram of the implementation environment. The implementation environment may include: a video server 110 , a music server 130 and at least one terminal 120 .

视频服务器110可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。音乐服务器130可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。终端120可以为智能手机、电脑、多媒体播放器、电子阅读器、可穿戴式设备等。The video server 110 can be a server, or a server cluster composed of several servers, or a cloud computing service center. The music server 130 can be a server, or a server cluster composed of several servers, or a cloud computing service center. The terminal 120 may be a smart phone, a computer, a multimedia player, an e-reader, a wearable device, and the like.

视频服务器110、音乐服务器130和终端120两两之间可以通过有线网络或无线网络建立连接。音乐服务器中可以存储有音乐数据库,音乐服务器130能够向终端110或视频服务器120提供音频。The video server 110, the music server 130, and the terminal 120 can be connected through a wired network or a wireless network. A music database may be stored in the music server, and the music server 130 can provide audio to the terminal 110 or the video server 120 .

如图4-3所示,在图4-2所示的实施环境中,当视频中附加有背景音乐,获取该背景音乐的名称的过程,可以包括:As shown in Figure 4-3, in the implementation environment shown in Figure 4-2, when background music is attached to the video, the process of obtaining the name of the background music may include:

步骤4021a、当视频中附加有背景音乐,终端获取该背景音乐的音频信息。Step 4021a, when background music is attached to the video, the terminal acquires the audio information of the background music.

其中,音频信息可以包括音乐指纹。音乐指纹类似于人的指纹,用于区分音频,音乐指纹可以看做一首音频的哈希值,相同的音频有相同的指纹,不同的音频有不同的指纹。通常,音乐指纹由三部分组成,包括:两个特征点的频率和时间差,每个音乐指纹都有一个对应的时间,也就是频率对应的时间,表示该音乐指纹出现的时刻。Wherein, the audio information may include music fingerprints. Music fingerprints are similar to human fingerprints and are used to distinguish audio. Music fingerprints can be regarded as the hash value of an audio. The same audio has the same fingerprint, and different audio has different fingerprints. Usually, a music fingerprint is composed of three parts, including: the frequency and time difference of two feature points. Each music fingerprint has a corresponding time, that is, the time corresponding to the frequency, indicating the moment when the music fingerprint appears.

示例的,获取背景音乐的音频信息的方法可以是,截取背景音乐的一段音频,再确定该段音频的音乐指纹,本公开实施例对该方法不做限定。For example, the method for acquiring the audio information of the background music may be to intercept a piece of audio of the background music, and then determine the music fingerprint of the piece of audio, which is not limited in this embodiment of the present disclosure.

步骤4022a、终端将该音频信息发送至音乐服务器。Step 4022a, the terminal sends the audio information to the music server.

步骤4023a、音乐服务器在音乐数据库中确定与该音频信息匹配的音乐名称,并将所述音乐名称作为所述背景音乐的名称。Step 4023a, the music server determines the music name matching the audio information in the music database, and uses the music name as the name of the background music.

音乐数据库可以包括音乐指纹库,该音乐指纹库中可以存储有音乐指纹和音乐名称的对应关系,音乐服务器可以根据终端发送的音乐指纹进行匹配,将与该终端发送的音乐指纹匹配的音乐指纹所对应的音乐名称确定为视频中背景音乐的名称。The music database may include a music fingerprint library, which may store the correspondence between music fingerprints and music names, and the music server may perform matching according to the music fingerprints sent by the terminal, and store the music fingerprints matched with the music fingerprints sent by the terminal. The corresponding music name is determined as the name of the background music in the video.

步骤4024a、音乐服务器向终端发送背景音乐的名称。Step 4024a, the music server sends the name of the background music to the terminal.

另一方面,如图4-4所示,在如图4-2所示的实施环境中,当视频中附加有背景音乐,获取该背景音乐的名称的过程,可以包括:On the other hand, as shown in Figure 4-4, in the implementation environment shown in Figure 4-2, when background music is attached to the video, the process of obtaining the name of the background music may include:

步骤4021b、当视频上传至视频服务器时,视频服务器对视频的内容进行识别。Step 4021b, when the video is uploaded to the video server, the video server identifies the content of the video.

示例的,在视频服务器通过预设的软件来识别视频中的内容,或者人工识别该视频的内容后,在上传该视频时,将指示该视频内容的指示信息同时上传至视频服务器,视频服务器根据该指示信息来识别视频的内容。For example, after the video server identifies the content of the video through preset software, or manually identifies the content of the video, when uploading the video, it uploads the instruction information indicating the content of the video to the video server at the same time, and the video server according to This indicator identifies the content of the video.

步骤4022b、当该视频的内容包括背景音乐,视频服务器生成附加信息,附加信息包括该背景音乐的名称。Step 4022b, when the content of the video includes background music, the video server generates additional information, and the additional information includes the name of the background music.

需要说明的是,当视频的内容包括背景音乐时,视频服务器可以获取该背景音乐的音频信息,将音频信息发送至音乐服务器,音乐服务器将该音频信息在音乐数据库中进行匹配,然后将与该音频信息相匹配的音乐名称作为背景音乐的名称,发送至视频服务器,视频服务器接收并生成附加信息。It should be noted that when the content of the video includes background music, the video server can obtain the audio information of the background music, and send the audio information to the music server, and the music server will match the audio information in the music database, and then match the audio information with the The music name matched with the audio information is sent to the video server as the name of the background music, and the video server receives and generates additional information.

步骤4023b、视频服务器向播放该视频的终端提供该视频的附加信息。Step 4023b, the video server provides additional information of the video to the terminal playing the video.

可选的,终端可以在检测到视频中附加有背景音乐时,从视频服务器中实时获取该视频的附加信息;也可以提前将视频和附加信息下载至终端,然后在检测到该视频中附加有背景音乐时,直接获取本地预先下载好的视频的附加信息。Optionally, the terminal can obtain the additional information of the video from the video server in real time when it detects that there is background music attached to the video; it can also download the video and additional information to the terminal in advance, and then detect that the video is attached When playing background music, directly obtain the additional information of the local pre-downloaded video.

步骤4024b、终端在附加信息中提取该背景音乐的名称。Step 4024b, the terminal extracts the name of the background music from the additional information.

又一方面,如图4-5所示,在如图1所示的实施环境中,视频播放系统所涉及的实施环境可以包括:视频服务器110和至少一个终端120。当视频中附加有背景音乐,获取该背景音乐的名称的过程,可以包括:In another aspect, as shown in FIGS. 4-5 , in the implementation environment shown in FIG. 1 , the implementation environment involved in the video playing system may include: a video server 110 and at least one terminal 120 . When background music is attached to the video, the process of obtaining the name of the background music may include:

步骤4021c、视频服务器接收上传至视频服务器的视频和指示信息。Step 4021c, the video server receives the video and instruction information uploaded to the video server.

可选的,在人工识别视频的内容后,可以在上传视频时,将指示该视频内容的指示信息同时上传,视频服务器根据该指示信息来识别视频的内容。该指示信息可以包括:背景音乐的名称和视频中背景音乐的播放时间等,该播放时间可以为播放开始时刻和播放结束时刻。Optionally, after manually identifying the content of the video, when uploading the video, the indication information indicating the content of the video may be uploaded at the same time, and the video server identifies the content of the video according to the indication information. The indication information may include: the name of the background music and the playing time of the background music in the video, etc., and the playing time may be the playing start time and the playing end time.

步骤4022c、视频服务器根据该指示信息生成附加信息,该附加信息包括背景音乐的名称。Step 4022c, the video server generates additional information according to the indication information, and the additional information includes the name of the background music.

步骤4023c、视频服务器向播放该视频的终端提供该视频的附加信息。Step 4023c, the video server provides additional information of the video to the terminal playing the video.

需要说明的是,终端可以在检测到该视频中附加有背景音乐时,从视频服务器中实时获取该视频的附加信息;也可以提前将视频和附加信息下载至终端,然后在检测到该视频中附加有背景音乐时,直接获取本地预先下载好的视频的附加信息。It should be noted that the terminal can obtain the additional information of the video from the video server in real time when it detects that there is background music attached to the video; it can also download the video and additional information to the terminal in advance, and then detect When there is background music attached, the additional information of the local pre-downloaded video can be obtained directly.

步骤4024c、终端在附加信息中提取所述背景音乐的名称。Step 4024c, the terminal extracts the name of the background music from the additional information.

步骤403、终端显示该背景音乐的名称。Step 403, the terminal displays the name of the background music.

实际应用中,在背景音乐播放过程中,可以显示该背景音乐的名称至少一次。可选的,可以显示该背景音乐的名称三次,例如,在背景音乐开始播放时,第一次显示该背景音乐的名称,在背景音乐播放过程中的某一时刻,第二次显示该背景音乐的名称,在背景音乐结束播放时,第三次显示背景音乐的名称;本公开实施例对背景音乐的名称的显示次数以及显示时间不做限定。In practical applications, during the playing of the background music, the name of the background music may be displayed at least once. Optionally, the name of the background music can be displayed three times, for example, when the background music starts playing, the name of the background music is displayed for the first time, and at a certain moment during the playing of the background music, the background music is displayed for the second time When the background music finishes playing, the name of the background music is displayed for the third time; the embodiment of the present disclosure does not limit the number of times and display time of the name of the background music.

在本公开实施例中,可以以弹幕的形式显示背景音乐的名称,也可以以弹窗的形式显示背景音乐的名称,还可以在用户的个人中心显示背景音乐的名称,本公开实施例对显示背景音乐的名称的方式不做限定。In the embodiment of the present disclosure, the name of the background music can be displayed in the form of a barrage, the name of the background music can also be displayed in the form of a pop-up window, and the name of the background music can also be displayed in the user's personal center. The manner of displaying the name of the background music is not limited.

进一步的,用户在确定了背景音乐的名称之后可以下载该背景音乐对应的完整音频,实际应用中,终端可以通过音乐服务器下载音频,此时,本公开实施例中提供的视频播放系统所涉及的实施环境如图4-2所示,终端可以执行下述动作。Further, the user can download the complete audio corresponding to the background music after determining the name of the background music. In practical applications, the terminal can download the audio through the music server. At this time, the video playback system provided in the embodiments of the present disclosure involves The implementation environment is shown in Figure 4-2, and the terminal can perform the following actions.

步骤404、终端接收用户通过对用于显示该背景音乐的名称的弹幕进行指定操作所触发的下载指令。Step 404, the terminal receives a download instruction triggered by the user's designated operation on the barrage used to display the name of the background music.

示例的,当用户通过对用于显示该背景音乐的名称的弹幕进行单击或双击,左滑或右滑等操作中的任一操作时,终端接收到用户触发的下载指令。For example, when the user clicks or double-clicks, slides left or right on the barrage displaying the name of the background music, the terminal receives a download instruction triggered by the user.

需要说明的是,当视频中开始出现背景音乐时,终端上用于显示该背景音乐的名称的弹幕可以根据亮度的变化给用户做一些提示。示例的,当视频中开始出现背景音乐时,终端上用于显示该背景音乐的名称的弹幕可以通过提高亮度来提示用户是否需要下载该背景音乐,也可以通过忽暗忽亮闪烁来提示用户是否需要下载该背景音乐。It should be noted that when the background music starts to appear in the video, the barrage used to display the name of the background music on the terminal can give some prompts to the user according to the brightness change. For example, when the background music starts to appear in the video, the barrage used to display the name of the background music on the terminal can prompt the user whether to download the background music by increasing the brightness, or prompt the user by flickering on and off Whether to download the background music.

可选的,在视频播放过程中,当语音识别软件检测到当前视频开始播放背景音乐,也可以在播放视频的界面上显示一个弹窗,提示用户是否需要开启背景音乐下载服务,用户点击开启下载的选项时,终端接收到下载指令。Optionally, during video playback, when the voice recognition software detects that the current video starts to play background music, a pop-up window can also be displayed on the video playback interface, prompting the user whether to enable the background music download service, and the user clicks to start the download When the option is selected, the terminal receives the download command.

步骤405、终端根据下载指令向音乐服务器发送下载请求,下载请求包括背景音乐的名称。Step 405, the terminal sends a download request to the music server according to the download instruction, and the download request includes the name of the background music.

步骤406、终端接收音乐服务器发送的与该背景音乐的名称对应的完整音频。Step 406, the terminal receives the complete audio corresponding to the name of the background music sent by the music server.

音乐服务器可以根据该背景音乐的名称在音频数据库中获取该名称对应的完整音频,并将该完整音频发送至终端。该完整音频指的是从一曲音乐开始至结束对应的音频。The music server can obtain the complete audio corresponding to the name from the audio database according to the name of the background music, and send the complete audio to the terminal. The complete audio refers to the corresponding audio from the beginning to the end of a piece of music.

需要说明的是,终端也可以通过视频服务器向音乐服务器转发下载请求,音乐服务器通过视频服务器向终端转发背景音乐的名称对应的完整音频。It should be noted that the terminal may also forward the download request to the music server through the video server, and the music server forwards the complete audio corresponding to the name of the background music to the terminal through the video server.

实际应用中,步骤405中的下载请求也可以不包括背景音乐的名称,终端可以截取背景音乐的一段音频,确定该段音频的音乐指纹,将该音乐指纹作为音频信息携带在该下载请求中发送至音乐服务器,音乐服务器的音乐指纹库中可以存储有音乐指纹和音乐名称的对应关系,音乐服务器可以根据终端发送的音乐指纹在对应关系中进行匹配,将与该终端发送的音乐指纹匹配的音乐指纹所对应的音乐名称确定为视频中背景音乐的名称,并根据该背景音乐的名称在音乐数据库中获取该名称对应的完整音频,并将该完整音频发送至终端。In practical applications, the download request in step 405 may not include the name of the background music, and the terminal may intercept a piece of audio of the background music, determine the music fingerprint of the piece of audio, and send the music fingerprint as audio information in the download request. To the music server, the music fingerprint library of the music server can store the corresponding relationship between the music fingerprint and the music name, the music server can match the music fingerprint sent by the terminal in the corresponding relationship, and match the music fingerprint sent by the terminal. The music name corresponding to the fingerprint is determined as the name of the background music in the video, and the complete audio corresponding to the name is obtained in the music database according to the name of the background music, and the complete audio is sent to the terminal.

需要说明的是,本公开实施例提供的音频界面显示方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本公开的保护范围之内,因此不再赘述。It should be noted that the sequence of the steps of the audio interface display method provided by the embodiments of the present disclosure can be appropriately adjusted, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field is within the technical scope of the present disclosure , methods that can be easily conceived of changes should be covered within the scope of protection of the present disclosure, and thus will not be repeated here.

综上所述,本公开实施例提供的视频播放方法,在视频播放时,终端可以检测视频中的背景音乐,获取背景音乐的名称并在终端播放视频的界面上显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,并且,终端可以以弹幕的形式显示所述背景音乐的名称,用户对该弹幕进行指定操作后,终端可以下载该背景音乐,方便了用户获取背景音乐,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback method provided by the embodiments of the present disclosure, when the video is playing, the terminal can detect the background music in the video, obtain the name of the background music and display it on the interface of the terminal playing the video, which satisfies the need for the user to watch the video. If you want to know the name of the background music in the video, and the terminal can display the name of the background music in the form of a barrage, after the user performs a specified operation on the barrage, the terminal can download the background music, which is convenient for the user Obtaining background music enriches the functions of video playback and improves the flexibility of video playback.

图5-1是根据一示例性实施例示出的一种视频播放装置的框图,可以用于如图1所示的终端120,如图5-1所示,包括:Fig. 5-1 is a block diagram of a video playback device according to an exemplary embodiment, which can be used for the terminal 120 shown in Fig. 1, as shown in Fig. 5-1, including:

检测模块501,被配置为在视频播放过程中,检测该视频中是否附加有背景音乐。The detection module 501 is configured to detect whether there is background music added to the video during the video playing process.

获取模块502,被配置为当所述视频中附加有背景音乐,获取该背景音乐的名称。The obtaining module 502 is configured to obtain the name of the background music when the video is appended with background music.

显示模块503,被配置为显示该背景音乐的名称。The display module 503 is configured to display the name of the background music.

综上所述,本公开实施例提供的视频播放装置,在视频播放时,检测模块可以检测视频中的背景音乐,获取模块可以获取背景音乐的名称并由显示模块在终端播放视频的界面上显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback device provided by the embodiments of the present disclosure, when the video is playing, the detection module can detect the background music in the video, and the acquisition module can obtain the name of the background music and display it on the interface of the terminal playing the video by the display module , which satisfies the desire of the user to know the name of the background music in the video when watching the video, enriches the functions of video playback, and improves the flexibility of video playback.

图5-2是根据一示例性实施例示出的一种显示模块503的框图,如图5-2所示,该显示模块503,包括:Fig. 5-2 is a block diagram of a display module 503 according to an exemplary embodiment. As shown in Fig. 5-2, the display module 503 includes:

显示子模块5031,被配置为以弹幕的形式显示该背景音乐的名称。The display submodule 5031 is configured to display the name of the background music in the form of bullet chatting.

可选的,该显示子模块被配置为在背景音乐播放过程中,以弹幕的形式显示该背景音乐的名称至少一次。Optionally, the display submodule is configured to display the name of the background music at least once in the form of barrage during the playing of the background music.

一方面,图5-3是根据一示例性实施例示出的一种获取模块502的框图,如图5-3所示,该获取模块502,包括:On the one hand, FIG. 5-3 is a block diagram of an acquisition module 502 according to an exemplary embodiment. As shown in FIG. 5-3, the acquisition module 502 includes:

第一获取子模块5021,被配置为当视频中附加有背景音乐,终端获取该背景音乐的音频信息。The first acquiring sub-module 5021 is configured to, when background music is added to the video, the terminal acquires the audio information of the background music.

发送子模块5022,被配置为将该音频信息发送至音乐服务器。The sending submodule 5022 is configured to send the audio information to the music server.

接收子模块5023,被配置为接收音乐服务器发送的背景音乐的名称,该背景音乐的名称为音乐服务器在音乐数据库中确定的与该音频信息匹配的音乐名称。The receiving sub-module 5023 is configured to receive the name of the background music sent by the music server, and the name of the background music is the music name matched with the audio information determined by the music server in the music database.

该音频信息可以包括:音乐指纹,该音乐数据库可以为音乐指纹库,图5-4是根据一示例性实施例示出的一种第一获取子模块5021的框图,如图5-4所示,该第一获取子模块5021,包括:The audio information may include: music fingerprints, and the music database may be a music fingerprint library. FIG. 5-4 is a block diagram of a first acquisition submodule 5021 according to an exemplary embodiment, as shown in FIG. 5-4 , The first acquisition submodule 5021 includes:

截取子模块5021a,被配置为截取背景音乐的一段音频。The intercepting sub-module 5021a is configured to intercept a piece of audio of the background music.

确定子模块5021b,被配置为确定该段音频的音乐指纹。The determination sub-module 5021b is configured to determine the music fingerprint of the segment of audio.

另一方面,图5-5是根据一示例性实施例示出的一种获取模块502的框图,如图5-5所示,该获取模块502,包括:On the other hand, FIG. 5-5 is a block diagram showing an acquisition module 502 according to an exemplary embodiment. As shown in FIG. 5-5, the acquisition module 502 includes:

第二获取子模块5024,被配置为当视频中附加有背景音乐,从视频服务器获取该视频的附加信息,该附加信息为该视频上传至视频服务器时,由视频服务器对该视频的内容进行识别后生成的,该附加信息包括:该背景音乐的名称。The second obtaining sub-module 5024 is configured to obtain additional information of the video from the video server when background music is attached to the video, and the additional information is to identify the content of the video by the video server when the video is uploaded to the video server Generated later, the additional information includes: the name of the background music.

提取子模块5025,被配置为在该附加信息中提取该背景音乐的名称。The extracting submodule 5025 is configured to extract the name of the background music from the additional information.

图5-6是根据一示例性实施例示出的一种视频播放装置的框图,可以用于如图4-2所示的终端120,如图5-6所示,该装置还包括:Fig. 5-6 is a block diagram of a video playback device according to an exemplary embodiment, which can be used for the terminal 120 shown in Fig. 4-2. As shown in Fig. 5-6, the device also includes:

第一接收模块504,被配置为接收用户通过对弹幕进行指定操作所触发的下载指令。The first receiving module 504 is configured to receive a download instruction triggered by the user performing a specified operation on the barrage.

发送模块505,被配置为根据下载指令向音乐服务器发送下载请求,所述下载请求包括该背景音乐的名称。The sending module 505 is configured to send a download request to the music server according to the download instruction, and the download request includes the name of the background music.

第二接收模块506,被配置为接收音乐服务器发送的该背景音乐的名称对应的完整音频。The second receiving module 506 is configured to receive the complete audio corresponding to the name of the background music sent by the music server.

检测模块501,被配置为:The detection module 501 is configured to:

在视频播放过程中,监测弹幕功能是否开启,在弹幕功能开启后,检测该视频中是否附加有背景音乐。During video playback, monitor whether the barrage function is enabled, and check whether there is background music attached to the video after the barrage function is enabled.

或者,在视频播放过程中,监测音乐提示功能是否开启,在音乐提示功能开启后,检测该视频中是否附加有背景音乐。Alternatively, during the video playing process, it is monitored whether the music prompt function is turned on, and after the music prompt function is turned on, it is detected whether there is background music attached to the video.

综上所述,本公开实施例提供的视频播放装置,在视频播放时,检测模块可以检测视频中的背景音乐,获取模块可以获取背景音乐的名称并由显示模块在终端播放视频的界面上显示,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback device provided by the embodiments of the present disclosure, when the video is playing, the detection module can detect the background music in the video, and the acquisition module can obtain the name of the background music and display it on the interface of the terminal playing the video by the display module , which satisfies the desire of the user to know the name of the background music in the video when watching the video, enriches the functions of video playback, and improves the flexibility of video playback.

图6-1是根据一示例性实施例示出的一种视频播放装置的框图,可以用于如图1所示的视频服务器110,该装置包括:Fig. 6-1 is a block diagram of a video playback device shown according to an exemplary embodiment, which can be used for the video server 110 shown in Fig. 1, and the device includes:

识别模块601,被配置为当视频上传至视频服务器时,对该视频的内容进行识别。The identification module 601 is configured to identify the content of the video when the video is uploaded to the video server.

生成模块602,被配置为当该视频的内容包括背景音乐,生成附加信息,该附加信息包括:该背景音乐的名称。The generating module 602 is configured to generate additional information when the content of the video includes background music, and the additional information includes: the name of the background music.

提供模块603,被配置为向播放该视频的终端提供该视频的附加信息。The providing module 603 is configured to provide the additional information of the video to the terminal playing the video.

综上所述,本公开实施例提供的视频播放装置,当视频上传至视频服务器时,视频服务器对该视频的内容进行识别,当该视频的内容包括背景音乐时,视频服务器向播放该视频的终端提供附加信息,终端接收到的附加信息中包括背景音乐的名称,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback device provided by the embodiment of the present disclosure, when the video is uploaded to the video server, the video server will identify the content of the video, and when the content of the video includes background music, the video server will send the video to the video playing device. The terminal provides additional information, and the additional information received by the terminal includes the name of the background music, which satisfies the desire of the user to know the name of the background music in the video when watching a video, enriches the function of video playback, and improves the flexibility of video playback sex.

图6-2是根据一示例性实施例示出的一种生成模块602的框图,如图6-2所示,,该生成模块602,包括:Fig. 6-2 is a block diagram of a generating module 602 according to an exemplary embodiment. As shown in Fig. 6-2, the generating module 602 includes:

获取子模块6021,被配置为当该视频的内容包括背景音乐,视频服务器110获取该背景音乐的音频信息。The obtaining sub-module 6021 is configured such that when the content of the video includes background music, the video server 110 obtains the audio information of the background music.

发送子模块6022,被配置为将该音频信息发送至音乐服务器。The sending submodule 6022 is configured to send the audio information to the music server.

接收子模块6023,被配置为接收音乐服务器发送的该背景音乐的名称,该背景音乐的名称为音乐服务器在音乐数据库中确定的与该音频信息匹配的音乐名称。The receiving sub-module 6023 is configured to receive the name of the background music sent by the music server. The name of the background music is the music name determined by the music server in the music database and matches the audio information.

生成子模块6024,被配置为根据该音频信息生成附加信息。The generating submodule 6024 is configured to generate additional information according to the audio information.

综上所述,本公开实施例提供的视频播放装置,当视频上传至视频服务器时,视频服务器对该视频的内容进行识别,当该视频的内容包括背景音乐时,视频服务器向播放该视频的终端提供附加信息,终端接收到的附加信息中包括背景音乐的名称,满足了用户在观看视频时想获知该视频中背景音乐的名称的意愿,丰富了视频播放的功能,提高了视频播放的灵活性。To sum up, in the video playback device provided by the embodiment of the present disclosure, when the video is uploaded to the video server, the video server will identify the content of the video, and when the content of the video includes background music, the video server will send the video to the video playing device. The terminal provides additional information, and the additional information received by the terminal includes the name of the background music, which satisfies the desire of the user to know the name of the background music in the video when watching a video, enriches the function of video playback, and improves the flexibility of video playback sex.

本公开实施例提供一种视频播放装置,可以用于图1所示的终端,所述装置包括:An embodiment of the present disclosure provides a video playback device, which can be used for the terminal shown in FIG. 1, and the device includes:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;

其中,所述处理器被配置为:Wherein, the processor is configured as:

在视频播放过程中,检测所述视频中是否附加有背景音乐;During video playback, detect whether there is background music attached to the video;

当所述视频中附加有背景音乐,获取所述背景音乐的名称;When background music is attached to the video, obtain the name of the background music;

显示所述背景音乐的名称。Displays the name of the background music in question.

本公开实施例提供一种视频播放装置,可以用于图1所示的视频服务器,所述装置包括:An embodiment of the present disclosure provides a video playback device, which can be used in the video server shown in FIG. 1, and the device includes:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当视频上传至视频服务器时,对所述视频的内容进行识别;When the video is uploaded to the video server, identify the content of the video;

当所述视频的内容包括背景音乐,生成附加信息,所述附加信息包括:所述背景音乐的名称;When the content of the video includes background music, additional information is generated, and the additional information includes: the name of the background music;

向播放所述视频的终端提供所述视频的附加信息。The additional information of the video is provided to the terminal playing the video.

图7是根据一示例性实施例示出的一种用于视频播放装置700的框图。可以用于图1所示的终端,例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a video playing device 700 according to an exemplary embodiment. The terminal shown in FIG. 1 can be used, for example, the apparatus 700 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .

处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .

存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be realized 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.

电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 706 provides power to various components of the device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700 .

多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 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 capability.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC) configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor component 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the device 700 orientation or acceleration/deceleration and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 720 of the device 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置700的处理器执行时,使得装置700能够执行本公开实施例提供的一种视频播放方法,所述方法包括:A non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the device 700, the device 700 can execute a video playback method provided by an embodiment of the present disclosure. The method includes:

在视频播放过程中,检测所述视频中是否附加有背景音乐;During video playback, detect whether there is background music attached to the video;

当所述视频中附加有背景音乐,获取所述背景音乐的名称;When background music is attached to the video, obtain the name of the background music;

显示所述背景音乐的名称。Displays the name of the background music in question.

图8是根据一示例性实施例示出的一种用于视频播放装置800的框图。可以用于图1中的视频服务器,例如,装置800可以被提供为一服务器。参照图8,装置800包括处理组件822,其进一步包括一个或多个处理器,以及由存储器832所代表的存储器资源,用于存储可由处理部件822执行的指令,例如应用程序。存储器832中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件822被配置为执行指令,以执行上述视频播放方法。Fig. 8 is a block diagram of a video playing device 800 according to an exemplary embodiment. Can be used for the video server in Fig. 1, for example, the apparatus 800 can be provided as a server. Referring to FIG. 8 , apparatus 800 includes processing component 822 , which further includes one or more processors, and a memory resource, represented by memory 832 , for storing instructions executable by processing component 822 , such as application programs. The application program stored in memory 832 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute instructions to perform the above video playing method.

装置800还可以包括一个电源组件826被配置为执行装置800的电源管理,一个有线或无线网络接口850被配置为将装置800连接到网络,和一个输入输出(I/O)接口858。装置800可以操作基于存储在存储器832的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 800 may also include a power component 826 configured to perform power management of device 800 , a wired or wireless network interface 850 configured to connect device 800 to a network, and an input-output (I/O) interface 858 . The apparatus 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置800的处理器执行时,使得装置800能够执行本公开实施例提供的一种视频播放方法,所述方法包括:A non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the device 800, the device 800 can execute a video playback method provided by an embodiment of the present disclosure. The method includes:

当视频上传至视频服务器时,对所述视频的内容进行识别;When the video is uploaded to the video server, identify the content of the video;

当所述视频的内容包括背景音乐,生成附加信息,所述附加信息包括:所述背景音乐的名称;When the content of the video includes background music, additional information is generated, and the additional information includes: the name of the background music;

向播放所述视频的终端提供所述视频的附加信息。The additional information of the video is provided to the terminal playing the video.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and module can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. a kind of video broadcasting method is it is characterised in that methods described includes:
In video display process, detect in described video whether be attached with background music;
When being attached with background music in described video, obtain the title of described background music;
Show the title of described background music.
2. method according to claim 1 is it is characterised in that the title of the described background music of described display, comprising:
The title of described background music is shown in the form of barrage.
3. method according to claim 2 it is characterised in that described in the form of barrage show described background music name Claim, comprising:
In described background music playing process, show the title of described background music in the form of barrage at least one times.
4. method according to claim 1 it is characterised in that described when being attached with background music in described video, obtain The title of described background music, comprising:
When being attached with background music in described video, obtain the audio-frequency information of described background music;
Described audio-frequency information is sent to music servers;
Receive the title of the described background music that described music servers send, the entitled described music garment of described background music The musical designation mating with described audio-frequency information that business device determines in musical database.
5. method according to claim 4 is it is characterised in that described audio-frequency information includes: music fingerprint, described music number It is music fingerprint base according to storehouse, the audio-frequency information of the described background music of described acquisition, comprising:
Intercept a section audio of described background music;
Determine the music fingerprint of a described section audio.
6. method according to claim 1 it is characterised in that described when being attached with background music in described video, obtain The title of described background music, comprising:
When being attached with background music in described video, obtain the additional information of described video, described additional letter from video server Cease when being uploaded to described video server for described video, after the content of described video being identified by described video server Generate, described additional information includes: the title of described background music;
The title of described background music is extracted in described additional information.
7. according to the method in claim 2 or 3 it is characterised in that methods described also includes:
Receive user is by carrying out, to described barrage, the download instruction that assigned operation is triggered;
Download request is sent to music servers according to described download instruction, described download request includes the name of described background music Claim;
Receive the corresponding complete audio of title of the described background music that described music servers send.
8. according to the method in claim 2 or 3 it is characterised in that described in video display process, detect described video In whether be attached with background music, comprising:
In described video display process, whether monitoring barrage function opens,
After described barrage function is opened, detect in described video whether be attached with background music;
Or, in described video display process, whether monitoring music prompting function is opened,
After described music prompting function is opened, detect in described video whether be attached with background music.
9. a kind of video broadcasting method is it is characterised in that include:
When video is uploaded to video server, the content of described video is identified;
When the content of described video includes background music, generate additional information, described additional information includes: described background music Title;
The additional information of described video is provided to the terminal playing described video.
10. method according to claim 9 is it is characterised in that the described content when described video includes background music, raw Become additional information, comprising:
When the content of described video includes background music, obtain the audio-frequency information of described background music;
Described audio-frequency information is sent to music servers;
Receive the title of the described background music that described music servers send, the entitled described music garment of described background music The musical designation mating with described audio-frequency information that business device determines in musical database;
Described additional information is generated according to described audio-frequency information.
A kind of 11. video play devices are it is characterised in that described device includes:
Detection module, is configured in video display process, detects in described video whether be attached with background music;
Acquisition module, is configured as in described video being attached with background music, obtains the title of described background music;
Display module, is display configured to the title of described background music.
12. devices according to claim 11 are it is characterised in that described display module, comprising:
Display sub-module, is configured to show the title of described background music in the form of barrage.
13. devices according to claim 12 are it is characterised in that described display sub-module is configured to:
In described background music playing process, show the title of described background music in the form of barrage at least one times.
14. devices according to claim 11 are it is characterised in that described acquisition module, comprising:
First acquisition submodule, is configured as in described video being attached with background music, obtains the audio frequency of described background music Information;
Sending submodule, is configured to send described audio-frequency information to music servers;
Receiving submodule, is configured to receive the title of the described background music that described music servers send, described background sound The musical designation mating with described audio-frequency information that happy entitled described music servers determine in musical database.
15. devices according to claim 14 are it is characterised in that described audio-frequency information includes: music fingerprint, described music Data base is music fingerprint base, described first acquisition submodule, comprising:
Intercept submodule, be configured to intercept a section audio of described background music;
Determination sub-module, is configured to determine that the music fingerprint of a described section audio.
16. devices according to claim 11 are it is characterised in that described acquisition module, comprising:
Second acquisition submodule, is configured as being attached with background music in described video, from video server obtain described in regard The additional information of frequency, when described additional information is uploaded to described video server for described video, by described video server pair The content of described video generates after being identified, and described additional information includes: the title of described background music;
Extracting sub-module, is configured to extract the title of described background music in described additional information.
17. devices according to claim 12 or 13 are it is characterised in that described device also includes:
First receiver module, is configured to receive user by carrying out, to described barrage, the download instruction that assigned operation is triggered;
Sending module, is configured to send download request, described download request bag according to described download instruction to music servers Include the title of described background music;
Second receiver module, the title being configured to receive the described background music that described music servers send is corresponding complete Audio frequency.
18. devices according to claim 12 or 13, it is characterised in that described detection module, are configured to:
In described video display process, whether monitoring barrage function opens,
After described barrage function is opened, detect in described video whether be attached with background music;
Or, in described video display process, whether monitoring music prompting function is opened,
After described music prompting function is opened, detect in described video whether be attached with background music.
A kind of 19. video play devices are it is characterised in that include:
Identification module, when being configured as video and being uploaded to video server, is identified to the content of described video;
Generation module, the content being configured as described video includes background music, generates additional information, described additional information bag Include: the title of described background music;
Module is provided, is configured to provide the additional information of described video to the terminal playing described video.
20. devices according to claim 19 are it is characterised in that described generation module, comprising:
Acquisition submodule, the content being configured as described video includes background music, obtains the audio frequency letter of described background music Breath;
Sending submodule, is configured to send described audio-frequency information to music servers;
Receiving submodule, is configured to receive the title of the described background music that described music servers send, described background sound The musical designation mating with described audio-frequency information that happy entitled described music servers determine in musical database;
Generate submodule, be configured to generate described additional information according to described audio-frequency information.
A kind of 21. video play devices are it is characterised in that described device includes:
Processor;
For storing the memorizer of the executable instruction of described processor;
Wherein, described processor is configured to:
In video display process, detect in described video whether be attached with background music;
When being attached with background music in described video, obtain the title of described background music;
Show the title of described background music.
A kind of 22. video play devices are it is characterised in that described device includes:
Processor;
For storing the memorizer of the executable instruction of described processor;
Wherein, described processor is configured to:
When video is uploaded to video server, the content of described video is identified;
When the content of described video includes background music, generate additional information, described additional information includes: described background music Title;
The additional information of described video is provided to the terminal playing described video.
CN201610792528.6A 2016-08-31 2016-08-31 Video playback method and device Active CN106375782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610792528.6A CN106375782B (en) 2016-08-31 2016-08-31 Video playback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610792528.6A CN106375782B (en) 2016-08-31 2016-08-31 Video playback method and device

Publications (2)

Publication Number Publication Date
CN106375782A true CN106375782A (en) 2017-02-01
CN106375782B CN106375782B (en) 2020-12-18

Family

ID=57899887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610792528.6A Active CN106375782B (en) 2016-08-31 2016-08-31 Video playback method and device

Country Status (1)

Country Link
CN (1) CN106375782B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135419A (en) * 2017-06-14 2017-09-05 北京奇虎科技有限公司 A kind of method and apparatus for editing video
CN108600825A (en) * 2018-07-12 2018-09-28 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
CN108668164A (en) * 2018-07-12 2018-10-16 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
CN108848411A (en) * 2018-08-01 2018-11-20 夏颖 The system and method for defining program boundaries and advertisement boundary based on audio signal waveform
CN109068160A (en) * 2018-09-20 2018-12-21 广州酷狗计算机科技有限公司 The methods, devices and systems of inking video
CN109547847A (en) * 2018-11-22 2019-03-29 广州酷狗计算机科技有限公司 Add the method, apparatus and computer readable storage medium of video information
CN110335625A (en) * 2019-07-08 2019-10-15 百度在线网络技术(北京)有限公司 The prompt and recognition methods of background music, device, equipment and medium
CN111583972A (en) * 2020-05-28 2020-08-25 北京达佳互联信息技术有限公司 Singing work generation method and device and electronic equipment
CN111629247A (en) * 2020-05-26 2020-09-04 北京达佳互联信息技术有限公司 Information display method and device and electronic equipment
WO2022042157A1 (en) * 2020-08-31 2022-03-03 百果园技术(新加坡)有限公司 Method and apparatus for manufacturing video data, and computer device and storage medium
WO2023045917A1 (en) * 2021-09-27 2023-03-30 华为技术有限公司 Method for identifying multimedia information and electronic device
WO2023072251A1 (en) * 2021-10-28 2023-05-04 北京字跳网络技术有限公司 Interaction method, interaction apparatus, electronic device, and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003383A (en) * 2008-06-23 2010-01-07 Victor Co Of Japan Ltd Broadcast program recording and reproducing device
CN104065979A (en) * 2013-03-22 2014-09-24 北京中传数广技术有限公司 Method for dynamically displaying information related with video content and system thereof
CN104113768A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Associated information generation method and device
CN104113785A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Information acquisition method and device
CN104199885A (en) * 2014-08-22 2014-12-10 广州三星通信技术研究有限公司 Device and method for acquiring relevant content of video files
CN104598502A (en) * 2014-04-22 2015-05-06 腾讯科技(北京)有限公司 Method, device and system for obtaining background music information in played video
CN105898364A (en) * 2016-05-26 2016-08-24 北京小米移动软件有限公司 Video playing processing method, device, terminal and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003383A (en) * 2008-06-23 2010-01-07 Victor Co Of Japan Ltd Broadcast program recording and reproducing device
CN104065979A (en) * 2013-03-22 2014-09-24 北京中传数广技术有限公司 Method for dynamically displaying information related with video content and system thereof
CN104598502A (en) * 2014-04-22 2015-05-06 腾讯科技(北京)有限公司 Method, device and system for obtaining background music information in played video
CN104113768A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Associated information generation method and device
CN104113785A (en) * 2014-06-26 2014-10-22 小米科技有限责任公司 Information acquisition method and device
CN104199885A (en) * 2014-08-22 2014-12-10 广州三星通信技术研究有限公司 Device and method for acquiring relevant content of video files
CN105898364A (en) * 2016-05-26 2016-08-24 北京小米移动软件有限公司 Video playing processing method, device, terminal and system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135419A (en) * 2017-06-14 2017-09-05 北京奇虎科技有限公司 A kind of method and apparatus for editing video
WO2020010815A1 (en) * 2018-07-12 2020-01-16 北京微播视界科技有限公司 Method for selecting background music and capturing video, device, terminal apparatus, and medium
CN108668164A (en) * 2018-07-12 2018-10-16 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
CN108600825A (en) * 2018-07-12 2018-09-28 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
GB2589506B (en) * 2018-07-12 2023-05-31 Beijing Microlive Vision Tech Co Ltd Method and apparatus for selecting background music for video capture, terminal device, and medium
CN108600825B (en) * 2018-07-12 2019-10-25 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
WO2020010814A1 (en) * 2018-07-12 2020-01-16 北京微播视界科技有限公司 Method and apparatus for selecting background music for video capture, terminal device, and medium
GB2589506A (en) * 2018-07-12 2021-06-02 Beijing Microlive Vision Tech Co Ltd Method and apparatus for selecting background music for video capture, terminal device, and medium
US11206448B2 (en) 2018-07-12 2021-12-21 Beijing Microlive Vision Technology Co., Ltd. Method and apparatus for selecting background music for video shooting, terminal device and medium
US11030987B2 (en) 2018-07-12 2021-06-08 Beijing Microlive Vision Technology Co., Ltd. Method for selecting background music and capturing video, device, terminal apparatus, and medium
CN108848411A (en) * 2018-08-01 2018-11-20 夏颖 The system and method for defining program boundaries and advertisement boundary based on audio signal waveform
CN108848411B (en) * 2018-08-01 2020-09-25 夏颖 System and method for defining program boundaries and advertisement boundaries based on audio signal waveforms
CN109068160A (en) * 2018-09-20 2018-12-21 广州酷狗计算机科技有限公司 The methods, devices and systems of inking video
CN109068160B (en) * 2018-09-20 2021-05-07 广州酷狗计算机科技有限公司 Method, device and system for linking videos
CN109547847A (en) * 2018-11-22 2019-03-29 广州酷狗计算机科技有限公司 Add the method, apparatus and computer readable storage medium of video information
CN110335625A (en) * 2019-07-08 2019-10-15 百度在线网络技术(北京)有限公司 The prompt and recognition methods of background music, device, equipment and medium
CN111629247A (en) * 2020-05-26 2020-09-04 北京达佳互联信息技术有限公司 Information display method and device and electronic equipment
CN111583972A (en) * 2020-05-28 2020-08-25 北京达佳互联信息技术有限公司 Singing work generation method and device and electronic equipment
WO2022042157A1 (en) * 2020-08-31 2022-03-03 百果园技术(新加坡)有限公司 Method and apparatus for manufacturing video data, and computer device and storage medium
WO2023045917A1 (en) * 2021-09-27 2023-03-30 华为技术有限公司 Method for identifying multimedia information and electronic device
WO2023072251A1 (en) * 2021-10-28 2023-05-04 北京字跳网络技术有限公司 Interaction method, interaction apparatus, electronic device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN106375782B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN106375782B (en) Video playback method and device
CN106464939B (en) Method and device for playing sound effects
CN106791893B (en) Video live broadcast method and device
CN107145800A (en) Privacy information protection method and device, terminal and storage medium
CN106024009A (en) Audio processing method and device
CN107105314A (en) Video broadcasting method and device
CN106128478B (en) Voice broadcast method and device
WO2018036392A1 (en) Voice-based information sharing method, device, and mobile terminal
CN107666536B (en) Method and device for searching terminal
CN105893493A (en) Searching method and device
CN106777016B (en) Method and device for information recommendation based on instant messaging
CN106550252A (en) The method for pushing of information, device and equipment
CN105892810A (en) Message display method and device
WO2019153925A1 (en) Searching method and related device
CN106412712A (en) Video playing method and apparatus
CN106790043A (en) The method and device of message is sent in live application
CN106162211A (en) Live method and device is carried out based on live application
CN106782625B (en) Audio-frequency processing method and device
CN106331328B (en) Information prompting method and device
CN106547850A (en) Expression annotation method and device
CN107247794B (en) Topic guidance method in live broadcast, live broadcast device and terminal device
CN106341712A (en) Processing method and apparatus of multimedia data
CN114422854A (en) A data processing method, device, electronic device and storage medium
CN108600625A (en) Image acquiring method and device
CN107330016B (en) Method, device and storage medium for setting user information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant