CN103503486B - A video publishing method and system, and a video playing method and system - Google Patents

A video publishing method and system, and a video playing method and system Download PDF

Info

Publication number
CN103503486B
CN103503486B CN201180003109.5A CN201180003109A CN103503486B CN 103503486 B CN103503486 B CN 103503486B CN 201180003109 A CN201180003109 A CN 201180003109A CN 103503486 B CN103503486 B CN 103503486B
Authority
CN
China
Prior art keywords
video
information
url
provider
source
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.)
Active
Application number
CN201180003109.5A
Other languages
Chinese (zh)
Other versions
CN103503486A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103503486A publication Critical patent/CN103503486A/en
Application granted granted Critical
Publication of CN103503486B publication Critical patent/CN103503486B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • H04N21/2323Content retrieval operation locally within server, e.g. reading video streams from disk arrays using file mapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A video publishing method and system, the said method includes receiving the video publishing request that the video provider sends, the video publishing request includes the identifier of the video; searching video provider information and source video information from a video storage server according to a video publishing request; generating a video URL according to the video provider information, the source video information and the video name, establishing a mapping relation from the URL to an actual storage address of the video, and storing the mapping relation to a video storage server; and sending information of successful video distribution to the video providing end. Based on the scheme disclosed by the method and the system, the invention also provides a video playing method and a video playing system. By the method and the system, the purposes of ensuring the safety of video release and reducing the video analysis overhead during flow statistics are achieved.

Description

一种视频发布方法及系统、视频播放方法及系统A video publishing method and system, and a video playing method and system

技术领域 technical field

本发明涉及通信技术领域,具体涉及一种视频发布方法及系统、视频播放方法及系统、视频管理系统。The present invention relates to the field of communication technology, and in particular to a video publishing method and system, a video playing method and system, and a video management system.

背景技术 Background technique

目前,现有的视频管理系统可以实现对源视频的注入、存储、编辑、发布和流量统计等全生命周期的管理。视频发布者常常会将注入的源视频转换成不同的格式、或者不同码率的发布视频,然后再通过不同的渠道(例如网站、手机、电视机)将输出视频发布出去,这时候就需要为每个发布视频建立一个可供访问的URL(Uniform/Universal Resource Locator,统一资源定位符,也被称为网页地址,是因特网上标准的资源的地址),用户就可以通过URL访问相应地发布视频,如果视频取消发布,用户则无法再继续通过URL访问该发布视频。At present, the existing video management system can realize the management of the whole life cycle of source video injection, storage, editing, publishing and traffic statistics. Video publishers often convert the injected source video into different formats or different bit rates, and then publish the output video through different channels (such as websites, mobile phones, and TV sets). Each published video establishes an accessible URL (Uniform/Universal Resource Locator, Uniform Resource Locator, also known as a web page address, which is the address of a standard resource on the Internet), and users can access the corresponding published video through the URL , if the video is unpublished, users can no longer access the published video through the URL.

在视频发布后,视频管理系统需要统计视频播放时的流量信息,从而准确的分析用户来源(用户地理位置、用户IP地址、用户访问视频所利用的播放客户端等)、用户关注的视频热点、通过CDN(Content Delivery Network,内容分发网络)分发所产生的流量等方面信息。这样,视频提供者就可以及时掌握发布视频的被访问情况,同时还方便视频管理系统对视频流量进行控制和计费。After the video is released, the video management system needs to count the traffic information when the video is played, so as to accurately analyze the source of the user (user geographic location, user IP address, playback client used by the user to access the video, etc.), the video hotspots that the user cares about, The generated traffic and other information are distributed through a CDN (Content Delivery Network, content distribution network). In this way, the video provider can grasp the access situation of the released video in time, and at the same time, it is convenient for the video management system to control and charge the video traffic.

如图1所示,视频提供者、源视频、发布视频采用层次关系存储在视频管理系统中,也就是说,视频管理系统管理着多个视频提供者的信息,而每个视频提供者又可以注入多个源视频文件,每个源视频文件又可被转码成多个发布视频。因此,若想获得比较全面的视频流量统计信息,视频播放器在根据URL访问并播放视频信息时,至少需要获取视频提供者信息、源视频信息和发布视频信息,以方便视频管理系统统计视频播放流量信息。As shown in Figure 1, the video provider, source video, and released video are stored in the video management system in a hierarchical relationship, that is, the video management system manages the information of multiple video providers, and each video provider can Inject multiple source video files, each of which can be transcoded into multiple release videos. Therefore, if you want to obtain more comprehensive video traffic statistics, when the video player accesses and plays the video information according to the URL, it needs to at least obtain the video provider information, source video information and release video information, so as to facilitate the video management system to count video playback traffic information.

现有技术中,提供了一种可以获取视频提供者信息、源视频信息和发布视频信息的实现方式:采用URL映射的方式将时间戳映射为视频的实际存储地址,将视频提供者信息和源视频信息放入到视频文件头部,由视频播放器在进行视频播放时解析,此时,视频播放器获取的URL类似于:In the prior art, there is provided an implementation method that can obtain video provider information, source video information, and release video information: use URL mapping to map the timestamp to the actual storage address of the video, and map the video provider information and source video information The video information is put into the header of the video file and analyzed by the video player when playing the video. At this time, the URL obtained by the video player is similar to:

http://www.huawei.com/xwBb1f5;其中,xwBb1f5为时间戳。http://www.huawei.com/xwBb1f5; where xwBb1f5 is the timestamp.

上述技术方案的好处是实现了视频转码和发布过程的分离,在视频转码时,将视频提供者信息和源视频信息放入视频文件头部,这样就能保证任何读取到该视频(包括本地读取)的程序均可利用这两方面信息;在视频发布时,仅依赖时间戳生成URL就可以减少系统开销。此外,本技术方案还隐藏了视频的实际存储地址,提高了视频发布的安全性。但是,因为本技术方案将视频提供者信息和源视频信息放入到视频文件头部,视频播放器需要在进行视频播放前自视频流中读取相关信息,解析出视频提供者信息和源视频信息,这就加大了视频播放器的解析开销,延长了解析时间。The advantage of the above technical solution is that it realizes the separation of video transcoding and publishing process. During video transcoding, the video provider information and source video information are put into the header of the video file, so as to ensure that any read video ( Programs including local reading) can use both information; when the video is released, only relying on the timestamp to generate the URL can reduce system overhead. In addition, the technical solution also hides the actual storage address of the video, thereby improving the security of video distribution. However, because this technical solution puts the video provider information and source video information into the header of the video file, the video player needs to read relevant information from the video stream before playing the video, and parse out the video provider information and source video information. information, which increases the parsing overhead of the video player and prolongs the parsing time.

发明内容 Contents of the invention

本发明实施例提供一种视频发布方法及系统、视频播放方法及系统、视频管理系统,以实现进行视频流量统计时,在保证视频发布安全性的同时,还要降低视频解析开销的目的。Embodiments of the present invention provide a video publishing method and system, a video playing method and system, and a video management system, so as to achieve the purpose of reducing video analysis overhead while ensuring the security of video publishing when performing video traffic statistics.

为了解决以上技术问题,本发明实施例采取的技术方案是:In order to solve the above technical problems, the technical solution adopted by the embodiment of the present invention is:

一种视频发布方法,所述方法包括:A video publishing method, the method comprising:

接收视频提供端发送的视频发布请求,所述视频发布请求中包括视频的标识符;receiving a video release request sent by a video provider, where the video release request includes an identifier of the video;

根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息;Find video provider information and source video information from the video storage server according to the video publishing request;

根据所述视频提供者信息、所述源视频信息和视频的名称生成视频的统一资源定位符URL,并建立所述视频的URL到所述视频的实际存储地址的映射关系,将所述映射关系保存到所述视频存储服务器中;Generate the Uniform Resource Locator URL of the video according to the title of the video provider information, the source video information and the video, and set up the mapping relationship from the URL of the video to the actual storage address of the video, and convert the mapping relationship Save to the video storage server;

向所述视频提供端发送视频发布成功的信息。Sending information that the video is released successfully to the video provider.

一种视频播放方法,所述方法包括:A video playback method, the method comprising:

视频播放器向视频存储服务器发送视频播放请求,所述视频播放请求中包括视频的统一资源定位符URL,以使所述视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找所述视频的URL对应的视频的实际存储地址,并向所述视频播放器返回所述视频的视频流;The video player sends a video play request to the video storage server, and the video play request includes the uniform resource locator URL of the video, so that the video storage server according to the mapping relationship between the saved video URL and the actual storage address of the video, Find the actual storage address of the video corresponding to the URL of the video, and return the video stream of the video to the video player;

所述视频播放器接收所述视频流,并统计所述视频的流量信息;The video player receives the video stream, and counts the traffic information of the video;

所述视频播放器将所述流量信息、以及所述视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统。The video player sends the traffic information, as well as the video provider information, source video information and video name included in the video URL to the video management system.

一种视频发布系统,所述系统包括:A video publishing system, the system comprising:

第一接收单元,用于接收视频提供端发送的视频发布请求,所述视频发布请求中包括视频的标识符;A first receiving unit, configured to receive a video release request sent by a video provider, where the video release request includes an identifier of the video;

查找单元,用于根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息;A search unit, configured to search for video provider information and source video information from a video storage server according to the video release request;

映射单元,用于根据所述视频提供者信息、所述源视频信息和视频的名称生成视频的统一资源定位符URL,并建立所述视频的URL到所述视频的实际存储地址的映射关系,将所述映射关系保存到所述视频存储服务器中;A mapping unit, configured to generate a video Uniform Resource Locator URL according to the video provider information, the source video information, and the title of the video, and establish a mapping relationship from the URL of the video to the actual storage address of the video, saving the mapping relationship in the video storage server;

第一发送单元,用于向所述视频提供端发送视频发布成功的信息。The first sending unit is configured to send information that the video is released successfully to the video provider.

一种视频播放系统,所述系统包括:A video playback system, the system comprising:

第三发送单元,用于向视频存储服务器发送视频播放请求,所述视频播放请求中包括视频的统一资源定位符URL,以使所述视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找所述视频的URL对应的视频的实际存储地址,并向所述视频播放器返回所述视频的视频流;The third sending unit is used to send a video play request to the video storage server, and the video play request includes the uniform resource locator URL of the video, so that the video storage server can store the video according to the URL of the saved video and the actual storage address of the video. Mapping relation, search the actual storage address of the video corresponding to the URL of the video, and return the video stream of the video to the video player;

统计单元,用于接收所述视频流,并统计所述视频的流量信息;A statistical unit, configured to receive the video stream, and count the traffic information of the video;

第四发送单元,用于将所述流量信息、以及所述视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统。The fourth sending unit is configured to send the traffic information, video provider information, source video information and video name included in the video URL to a video management system.

一种视频管理系统,所述视频管理系统与上述视频播放系统进行通信,具体包括:A video management system, where the video management system communicates with the above-mentioned video playback system, specifically including:

第三接收单元,用于接收所述视频播放系统发送的流量信息、视频提供者信息、源视频信息和视频的名称;The third receiving unit is used to receive the traffic information, video provider information, source video information and video name sent by the video playing system;

第一记录单元,用于将所述第三接收单元接收到的流量信息记录到所述视频的名称对应的视频数据库;a first recording unit, configured to record the traffic information received by the third receiving unit into a video database corresponding to the name of the video;

第二记录单元,用于将所述第三接收单元接收到的流量信息记录到所述源视频信息对应的源视频数据库;The second recording unit is configured to record the flow information received by the third receiving unit into the source video database corresponding to the source video information;

第三记录单元,用于将所述第三接收单元接收到的流量信息记录到所述视频提供者信息对应的视频提供者数据库。The third recording unit is configured to record the traffic information received by the third receiving unit into the video provider database corresponding to the video provider information.

本发明实施例提供的视频发布方法及系统,利用视频提供者信息、源视频信息和视频的名称生成视频的URL,并建立URL到视频实际存储地址的映射,以实现进行流量统计时,既能保证视频发布的安全性,又能降低视频解析开销的目的。基于上述视频发布方法公开的技术方案,本发明实施例还提供一种视频播放方法及系统、一种视频管理系统,视频播放器在播放视频时,就可以直接利用URL向视频管理系统上报流量信息。The video release method and system provided by the embodiments of the present invention use the video provider information, source video information, and video name to generate a video URL, and establish a mapping from the URL to the actual storage address of the video, so as to realize traffic statistics. The purpose of ensuring the security of video publishing and reducing the overhead of video parsing. Based on the technical solution disclosed by the above-mentioned video release method, the embodiment of the present invention also provides a video playback method and system, and a video management system. When the video player is playing a video, it can directly use the URL to report traffic information to the video management system. .

附图说明 Description of drawings

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

图1是视频提供者、源视频和发布视频在视频管理系统中的存储结构示意图;Fig. 1 is a schematic diagram of the storage structure of video provider, source video and release video in the video management system;

图2是本发明实施例视频发布方法的流程示意图;Fig. 2 is a schematic flow chart of a video publishing method according to an embodiment of the present invention;

图3是本发明实施例视频发布方法中视频取消发布的流程示意图;Fig. 3 is a schematic flow chart of canceling release of video in the video release method of the embodiment of the present invention;

图4是本发明实施例视频发布系统的一种结构示意图;FIG. 4 is a schematic structural diagram of a video distribution system according to an embodiment of the present invention;

图5是本发明实施例视频发布系统的另一种结构示意图;FIG. 5 is another schematic structural diagram of a video distribution system according to an embodiment of the present invention;

图6是本发明实施例视频播放方法的流程示意图;FIG. 6 is a schematic flow chart of a video playback method according to an embodiment of the present invention;

图7是本发明实施例视频播放系统的结构示意图;7 is a schematic structural diagram of a video playback system according to an embodiment of the present invention;

图8是本发明实施例视频管理系统的结构示意图。Fig. 8 is a schematic structural diagram of a video management system according to an embodiment of the present invention.

具体实施方式 detailed description

为了使本技术领域的人员更好地理解本发明实施例的方案,下面结合附图和实施方式对本发明实施例作进一步的详细说明。In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and implementations.

本发明实施例视频发布方法及系统,利用视频提供者信息、源视频信息和视频的名称生成视频的URL,并建立URL到视频实际存储地址的映射,以实现进行流量统计时,在保证视频发布安全性的同时,还降低视频解析开销的目的。The video release method and system in the embodiment of the present invention utilizes the video provider information, source video information, and the name of the video to generate a video URL, and establishes a mapping from the URL to the actual storage address of the video, so as to ensure that the video is released when performing traffic statistics. While improving security, it also reduces video parsing overhead.

如图2所示,是本发明实施例提供的视频发布方法的流程图,包括:As shown in Figure 2, it is a flow chart of the video publishing method provided by the embodiment of the present invention, including:

步骤101,接收视频提供端发送的视频发布请求。Step 101, receiving a video release request sent by a video provider.

视频提供者利用视频提供端(例如计算机)向视频管理系统发送视频发布请求,该视频发布请求中至少要包括视频的标识符,即视频ID。The video provider sends a video release request to the video management system by using a video provider terminal (such as a computer), and the video release request must at least include a video identifier, ie, a video ID.

步骤102,根据视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息。Step 102, searching the video provider information and source video information from the video storage server according to the video release request.

步骤103,根据视频提供者信息、源视频信息和视频的名称生成视频的统一资源定位符URL,并建立视频的URL到视频的实际存储地址的映射关系,将映射关系保存到视频存储服务器中。Step 103, generate video Uniform Resource Locator URL according to video provider information, source video information and title of video, and establish the mapping relation of URL of video to the actual storage address of video, save mapping relation in the video storage server.

在视频管理系统根据视频发布请求中的视频ID从视频存储服务器中查找出与请求相对应的视频提供者信息和源视频信息之后,根据视频提供者信息、源视频信息、以及视频的名称这三方面信息生成视频的URL,这样,在进行视频播放时,视频播放器就可以在获取到视频的URL后直接根据上述三方面信息向视频管理系统上报视频流量信息,而无需通过解析视频文件头部的方法获取视频提供者信息和源视频信息,这就大大降低了视频的解析开销,缩短了解析时间。After the video management system finds out the video provider information and source video information corresponding to the request from the video storage server according to the video ID in the video publishing request, according to the video provider information, the source video information, and the name of the video Aspect information generates the URL of the video, so that when the video is played, the video player can directly report the video traffic information to the video management system based on the above three aspects of information after obtaining the video URL, without parsing the header of the video file The method obtains video provider information and source video information, which greatly reduces video parsing overhead and shortens parsing time.

为了保证视频发布的安全性,在生成视频的URL之后,视频管理系统还需要建立视频的URL与视频实际存储地址间的映射关系,以隐藏视频的实际存储路径,防止非法用户恶意扫描视频地址。作为本发明实施例中建立映射关系的一种实现方式,可采用Apache服务器的Alias指令:Alias/key/var/web,将key/introduction.mp4映射到/var/web/introduction.mp4。当然,上述实现方式仅是一种示例,在实际应用中,还可以采用其他方法完成视频的URL与视频实际存储地址间映射关系的建立,本发明实施例对此不做限定。In order to ensure the security of video publishing, after the video URL is generated, the video management system needs to establish a mapping relationship between the video URL and the actual video storage address to hide the actual video storage path and prevent illegal users from maliciously scanning the video address. As an implementation of establishing the mapping relationship in the embodiment of the present invention, the Alias command of the Apache server: Alias/key/var/web can be used to map key/introduction.mp4 to /var/web/introduction.mp4. Of course, the above implementation is only an example. In practical applications, other methods can be used to complete the establishment of the mapping relationship between the URL of the video and the actual storage address of the video, which is not limited in this embodiment of the present invention.

步骤104,向视频提供端发送视频发布成功的信息。Step 104, sending information that the video is released successfully to the video provider.

视频管理系统在完成了生成包含视频提供者信息、源视频信息和视频名称的URL、并建立URL到视频实际存储地址的映射关系这两个操作步骤之后,则向视频提供者返回视频发布成功的信息,至此,就完成了本发明实施例视频发布的全过程。After the video management system completes the two steps of generating a URL containing video provider information, source video information, and video name, and establishing a mapping relationship between the URL and the actual storage address of the video, it returns to the video provider a message that the video has been released successfully. Information, so far, the whole process of video distribution in the embodiment of the present invention has been completed.

为了进一步提高视频发布的安全性,本发明实施例提供的视频发布方法还包括:In order to further improve the security of video distribution, the video distribution method provided in the embodiment of the present invention also includes:

在生成视频的URL之前,对查找到的视频提供者信息和/或源视频信息进行编码转换;则步骤102中生成视频的URL包括:URL中具体包括经过编码转换的视频提供者信息和/或经过编码转换的源视频信息。Before generating the URL of the video, code conversion is performed on the video provider information and/or source video information found; then generating the URL of the video in step 102 includes: specifically including the video provider information and/or code conversion in the URL Transcoded source video information.

在执行步骤103之前,视频管理系统先对步骤102查找到的视频提供者信息和/或源视频信息进行编码转换,隐藏视频提供者信息和/或源视频信息在视频存储服务器内的真实存储数据,以达到进一步提高视频发布安全性的目的。具体可采用Base62编码或者哈希运算来完成编码转换。下面以Base62编码为例,对视频提供者信息和源视频信息进行编码转换的过程进行简单介绍。Before executing step 103, the video management system first performs code conversion on the video provider information and/or source video information found in step 102, and hides the real storage data of the video provider information and/or source video information in the video storage server , in order to further improve the security of video release. Specifically, Base62 encoding or hash operation may be used to complete the encoding conversion. The following takes Base62 encoding as an example to briefly introduce the process of encoding conversion between the video provider information and the source video information.

(1)视频管理系统根据视频发布请求从视频存储服务器内获取视频提供者的存储序列号(即视频提供者信息),将视频提供者的存储序列号进行Base62编码转换,形成具有固定位长的视频提供者ID。(1) The video management system obtains the video provider's storage serial number (ie, video provider information) from the video storage server according to the video release request, and converts the video provider's storage serial number to Base62 to form a fixed bit length Video provider ID.

(2)视频管理系统根据视频发布请求从视频存储服务器内获取源视频的存储序列号(即源视频信息),将源视频的存储序列号进行Base62编码转换,形成具有固定位长的源视频ID;(2) The video management system obtains the storage serial number (namely source video information) of the source video from the video storage server according to the video release request, and performs Base62 encoding conversion on the storage serial number of the source video to form a source video ID with a fixed bit length ;

(3)利用视频提供者ID、源视频ID和视频的名称这三方面信息生成视频的URL。利用视频提供者ID代替视频提供者的存储序列号、源视频ID代替源视频的存储序列号,就可以隐藏序列号在视频存储服务器内的真实存储。(3) Utilize the video provider ID, the source video ID and the title of the video to generate the URL of the video. Using the video provider ID to replace the storage serial number of the video provider, and the source video ID to replace the storage serial number of the source video, the real storage of the serial number in the video storage server can be hidden.

为了方便视频提供者对其发布的视频进行管理,本发明实施例提供的视频发布方法还包括:In order to make it easier for the video provider to manage the video it publishes, the video publishing method provided in the embodiment of the present invention also includes:

在生成视频的URL之前,获取时间戳信息;则步骤103中生成视频的URL包括:URL中还包括时间戳信息。也就是说,此时的URL包括视频提供者信息、源视频信息、视频的名称和时间戳信息这四方面信息。因为每次视频发布的时间戳信息都不相同,因此即使在视频提供者信息、源视频信息和视频的名称均相同的情况下,也能够保证生成的URL不同,视频提供者就可以利用时间戳信息设置用户权限,并对其发布的视频进行管理。Before generating the URL of the video, time stamp information is acquired; then generating the URL of the video in step 103 includes: the time stamp information is also included in the URL. That is to say, the URL at this time includes four aspects of information: video provider information, source video information, video name and time stamp information. Because the timestamp information of each video release is different, even if the video provider information, source video information, and video name are all the same, it can be guaranteed that the generated URLs are different, and the video provider can use the timestamp Information sets user permissions and manages the videos they publish.

例如,视频提供者A发布了某一视频,并将生成的URL-1提供给朋友B(即B具有通过URL-1访问发布视频的权限),将生成的URL-2提供给朋友C(即C具有通过URL-2访问发布视频的权限),其中,URL-1与URL-2中包含的时间戳信息不同。如果视频提供者A取消发布URL-1对应的视频,则朋友B不能再继续通过URL-1访问该视频,但是朋友C仍可继续通过URL-2访问A发布的视频,方便A对其发布的视频进行管控。For example, video provider A publishes a certain video, and provides the generated URL-1 to friend B (that is, B has the authority to access and publish the video through URL-1), and provides the generated URL-2 to friend C (that is, C has the authority to access the published video through URL-2), wherein the time stamp information contained in URL-1 and URL-2 is different. If video provider A cancels the release of the video corresponding to URL-1, friend B can no longer continue to access the video through URL-1, but friend C can still continue to access the video published by A through URL-2, which is convenient for A. Video is controlled.

同样地,为了提高视频发布的安全性,本发明实施例视频发布方法还包括:在获取时间戳信息之后,对时间戳信息进行编码转换,则步骤103中生成视频的URL包括:URL中具体包括经过编码转换的时间戳信息。对时间戳信息的编码转换同样也可以采用Base62编码或者哈希运算来完成。Similarly, in order to improve the security of video publishing, the video publishing method of the embodiment of the present invention further includes: after acquiring the timestamp information, performing encoding conversion on the timestamp information, then generating the URL of the video in step 103 includes: the URL specifically includes The encoded timestamp information. The encoding conversion of the timestamp information can also be completed by using Base62 encoding or hash operation.

在本发明实施例提供的视频发布方法中,建立视频的URL到视频的实际存储地址的映射关系可以采用以下四种映射规则,其中blRZA6为视频提供者信息、kUKYPr为源视频信息、introduction.mp4为视频的名称、xwBb1f5为时间戳信息:In the video release method provided by the embodiment of the present invention, the following four mapping rules can be used to establish the mapping relationship between the URL of the video and the actual storage address of the video, wherein blRZA6 is the video provider information, kUKYPr is the source video information, introduction.mp4 is the name of the video, and xwBb1f5 is the timestamp information:

(1)将视频提供者信息、源视频信息、时间戳信息作为URL的同一路径进行映射,例如:(1) Map the video provider information, source video information, and timestamp information as the same path of the URL, for example:

http://www.huawei.com/blRZA6-kUKYPr-xwBb1f5/introduction.mp4。http://www.huawei.com/blRZA6-kUKYPr-xwBb1f5/introduction.mp4.

(2)将视频提供者信息、源视频信息、时间戳信息作为URL的不同路径进行映射,例如:(2) Map video provider information, source video information, and timestamp information as different paths of URLs, for example:

http://www.huawei.com/blRZA6/kUKYPr/xwBb1f5/introduction.mp4。http://www.huawei.com/blRZA6/kUKYPr/xwBb1f5/introduction.mp4.

(3)将视频提供者信息、源视频信息作为URL的同一路径进行映射,时间戳信息作为URL参数,例如:(3) Map the video provider information and source video information as the same path of the URL, and use the timestamp information as the URL parameter, for example:

http://www.huawei.com/blRZA6-kUKYPr/introduction.mp4?timestamp=xwBb1f5。http://www.huawei.com/blRZA6-kUKYPr/introduction.mp4? timestamp=xwBb1f5.

(4)将视频提供者信息、源视频信息作为URL的不同路径进行映射,时间戳信息作为URL参数,例如:(4) Map video provider information and source video information as different paths of URLs, and timestamp information as URL parameters, for example:

http://www.huawei.com/blRZA6/kUKYPr/introduction.mp4?timestamp=xwBb1f5。http://www.huawei.com/blRZA6/kUKYPr/introduction.mp4? timestamp=xwBb1f5.

进一步地,在执行步骤104之后,视频提供者还可以根据视频的实际播放情况,取消视频发布。如图3所示,是本发明实施例提供的视频发布方法中取消视频发布的流程示意图。Further, after step 104 is performed, the video provider may also cancel the release of the video according to the actual playing situation of the video. As shown in FIG. 3 , it is a schematic flow chart of canceling video publishing in the video publishing method provided by the embodiment of the present invention.

步骤201,接收视频提供端发送的取消发布请求,取消发布请求中包括视频的URL。Step 201, receiving a release request sent by a video provider, where the release request includes a URL of the video.

步骤202,删除视频的URL到视频的实际存储地址的映射;Step 202, delete the mapping from the URL of the video to the actual storage address of the video;

步骤203,向视频提供端发送取消发布成功的信息。Step 203, sending the message that the release is canceled successfully to the video provider.

如果视频提供者欲取消发布某一视频,则首先需要向视频管理系统提交取消发布请求,该取消发布请求中至少应包含视频的URL,以便视频管理系统可以根据视频的URL从视频存储服务器中查找并删除该URL到视频实际存储地址的映射。在视频管理系统删除URL到视频实际存储地址间的映射关系后,向视频提供者返回取消发布成功的信息,此时,如果视频播放器向视频存储服务器请求播放该URL对应的视频,则视频存储服务器向视频播放器返回请求错误的信息,也就是说用户不能继续通过原URL继续访问该视频。本发明实施例在视频发布时建立URL到实际存储地址的映射,在取消发布时删除URL到实际存储地址的映射,减少了发布开销,在大并发访问量下有比较好的性能表现,也就是说,在CPU和内存系统等硬件条件相同的情况下,视频管理系统能够同时处理更多的视频发布请求和取消发布请求。If a video provider wants to unpublish a certain video, it first needs to submit an unpublish request to the video management system, which should at least contain the URL of the video, so that the video management system can search the video from the video storage server according to the URL of the video. And delete the mapping from the URL to the actual storage address of the video. After the video management system deletes the mapping relationship between the URL and the actual storage address of the video, it returns to the video provider the information that the release is canceled successfully. At this time, if the video player requests the video storage server to play the video corresponding to the URL, the video storage The server returns request error information to the video player, that is to say, the user cannot continue to access the video through the original URL. The embodiment of the present invention establishes the mapping from the URL to the actual storage address when publishing the video, deletes the mapping from the URL to the actual storage address when canceling the release, reduces the publishing overhead, and has better performance under a large number of concurrent visits, that is, That is to say, in the case of the same hardware conditions such as CPU and memory system, the video management system can simultaneously handle more video release requests and cancel release requests.

相应地,本发明实施例还提供一种视频发布系统,如图4所示,是视频发布系统的一种结构示意图,包括:Correspondingly, the embodiment of the present invention also provides a video distribution system, as shown in FIG. 4 , which is a schematic structural diagram of the video distribution system, including:

第一接收单元301,用于接收视频提供端发送的视频发布请求,所述视频发布请求中包括视频的标识符;The first receiving unit 301 is configured to receive a video release request sent by a video provider, where the video release request includes an identifier of the video;

查找单元302,用于根据视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息;A search unit 302, configured to search for video provider information and source video information from the video storage server according to the video publishing request;

映射单元303,用于根据视频提供者信息、源视频信息和视频的名称生成视频的URL,并建立视频的URL到视频的实际存储地址的映射关系,将映射关系保存到视频存储服务器中;The mapping unit 303 is used to generate the URL of the video according to the name of the video provider information, source video information and video, and establishes the mapping relationship between the URL of the video and the actual storage address of the video, and saves the mapping relationship in the video storage server;

第一发送单元304,用于向视频提供端发送视频发布成功的信息。The first sending unit 304 is configured to send information that the video is released successfully to the video provider.

为了提高视频发布的安全性,参见图5,本发明实施例提供的视频发布系统还包括:In order to improve the security of video distribution, referring to Fig. 5, the video distribution system provided by the embodiment of the present invention also includes:

第一编码转换单元305,用于在映射单元生成视频的URL之前,对视频提供者信息和/或源视频信息进行编码转换;然后通知映射单元生成视频的URL,视频的URL中具体包括经过编码转换的视频提供者信息和/或经过编码转换的源视频信息。The first encoding conversion unit 305 is used to perform encoding conversion on the video provider information and/or source video information before the mapping unit generates the URL of the video; Converted video provider information and/or transcoded source video information.

为了方便视频提供者对其发布的视频进行管理,参见图5,本发明实施例提供的视频发布系统还包括:In order to make it easier for the video provider to manage the video it publishes, referring to Figure 5, the video publishing system provided by the embodiment of the present invention also includes:

获取单元306,用于在映射单元生成视频的URL之前,获取时间戳信息;然后通知映射单元生成视频的URL,视频的URL中还包括时间戳信息。The obtaining unit 306 is configured to obtain time stamp information before the mapping unit generates the URL of the video; and then notify the mapping unit to generate the URL of the video, and the URL of the video also includes time stamp information.

为了进一步提高系统发布视频的安全性,参见图5,本发明实施例提供的视频发布系统还包括:In order to further improve the security of the video released by the system, referring to Fig. 5, the video distribution system provided by the embodiment of the present invention also includes:

第二编码转换单元307,用于在获取单元获取到时间戳信息后,对时间戳信息进行编码转换;然后通知映射单元生成视频的URL,视频的URL中具体包括经过编码转换的时间戳信息。The second encoding conversion unit 307 is configured to perform encoding conversion on the timestamp information after the acquiring unit acquires the timestamp information; and then notify the mapping unit to generate a video URL, which specifically includes the encoded timestamp information.

在视频发布成功后,视频提供者还可以根据视频的实际播放情况,取消视频发布。如图5所示,本发明实施例提供的视频发布系统还包括:After the video is released successfully, the video provider can also cancel the video release according to the actual playing situation of the video. As shown in Figure 5, the video distribution system provided by the embodiment of the present invention also includes:

第二接收单元308,用于在第一发送单元向视频提供端发送视频发布成功的信息后,接收视频提供端发送的取消发布请求,取消发布请求中包括视频的URL;The second receiving unit 308 is used to receive the release request sent by the video provider after the first sending unit sends the information that the video release is successful to the video provider, and the release request includes the URL of the video;

删除单元309,用于删除视频的URL到视频的实际存储地址的映射;Deletion unit 309, for deleting the mapping of the URL of the video to the actual storage address of the video;

第二发送单元310,用于在删除单元删除视频的URL到视频的实际存储地址的映射后,向视频提供端发送取消发布成功的信息。The second sending unit 310 is configured to send information that the release of the video is canceled successfully to the video provider after the deleting unit deletes the mapping from the URL of the video to the actual storage address of the video.

本发明实施例提供的视频发布方法及系统,利用视频提供者信息、源视频信息和视频的名称生成视频的URL,并建立URL到视频实际存储地址的映射,以实现进行流量统计时,既能保证视频发布的安全性,又能降低视频解析开销的目的。The video release method and system provided by the embodiments of the present invention use the video provider information, source video information, and video name to generate a video URL, and establish a mapping from the URL to the actual storage address of the video, so as to realize traffic statistics. The purpose of ensuring the security of video publishing and reducing the overhead of video parsing.

基于上述视频发布方法及系统的技术方案,本发明实施例还提供一种视频播放方法,如图6所示,是本发明实施例视频播放方法的流程图,包括:Based on the technical solution of the above-mentioned video publishing method and system, the embodiment of the present invention also provides a video playing method, as shown in FIG. 6 , which is a flow chart of the video playing method in the embodiment of the present invention, including:

步骤401,视频播放器向视频存储服务器发送视频播放请求,视频播放请求包括视频的统一资源定位符URL,以使视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找视频的URL对应的视频的实际存储地址,并向视频播放器返回视频的视频流。Step 401, the video player sends a video play request to the video storage server, and the video play request includes the URL of the video, so that the video storage server searches for the video according to the mapping relationship between the URL of the saved video and the actual storage address of the video. The actual storage address of the video corresponding to the URL of , and return the video stream of the video to the video player.

步骤402,视频播放器接收视频流,并统计视频的流量信息。In step 402, the video player receives the video stream, and collects statistics on video traffic information.

步骤403,视频播放器将流量信息、以及视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统。Step 403, the video player sends the traffic information, as well as the video provider information included in the video URL, the source video information and the name of the video to the video management system.

此处需要说明的是,本发明实施例提供的视频播放方法中的URL即上述视频发布方法中生成的URL,可主要包括以下两种形式:It should be noted here that the URL in the video playing method provided by the embodiment of the present invention is the URL generated in the above-mentioned video publishing method, which can mainly include the following two forms:

(1)URL中包括视频提供者信息、源视频信息、视频的名称三方面信息;(1) The URL includes three aspects: video provider information, source video information, and video name;

(2)URL中包括视频提供者信息、源视频信息、视频的名称、时间戳信息四方面信息。(2) The URL includes four aspects: video provider information, source video information, video name, and time stamp information.

当然,为了提高视频发布的安全性,视频管理系统可以对上述两种形式中的视频提供者信息和/或源视频信息和/或时间戳信息进行编码转换,如果采用编码转换的方案,则视频的URL中包含的信息为经过编码转换的信息,此处不再一一列举说明。Of course, in order to improve the security of video distribution, the video management system can perform code conversion on the video provider information and/or source video information and/or time stamp information in the above two forms. If the code conversion scheme is adopted, the video The information contained in the URL is the information that has been encoded and converted, and will not be listed here.

进一步地,在执行步骤403之后,本发明实施例提供的视频播放方法还包括:Further, after step 403 is performed, the video playback method provided by the embodiment of the present invention further includes:

视频管理系统接收视频播放器发送的流量信息、视频提供者信息、源视频信息和视频的名称,并将流量信息分别记录到视频提供者信息对应的视频提供者数据库、源视频信息对应的源视频数据库、视频的名称对应的视频数据库。以便于视频管理系统针对视频的名称、源视频、视频发布者这三方面信息进行流量统计汇总。The video management system receives the traffic information, video provider information, source video information and video name sent by the video player, and records the traffic information in the video provider database corresponding to the video provider information, and the source video information corresponding to the source video information. Database, the video database corresponding to the name of the video. It is convenient for the video management system to conduct traffic statistics and summary for the video name, source video, and video publisher.

也就是说,视频管理系统在接收到播放器统计的发布视频的流量信息后,首先可以将流量信息记录到视频的名称对应的发布视频的数据库中,汇总该发布视频的流量信息;然后还可以将流量信息记录到发布视频对应的源视频数据库中,汇总由源视频转码成的多个发布视频的流量信息;最后还可以将流量信息记录到源视频对应的视频提供者数据库中,汇总该视频提供者提供的多个源视频的流量信息。That is to say, after the video management system receives the traffic information of the released video counted by the player, it can first record the traffic information in the database of the video released corresponding to the name of the video, and summarize the traffic information of the released video; then it can also Record the traffic information in the source video database corresponding to the released video, and summarize the traffic information of multiple released videos transcoded from the source video; finally, record the traffic information in the video provider database corresponding to the source video, and summarize the Traffic information for multiple source videos provided by video providers.

进一步地,如果视频管理系统接收到的视频提供者信息为经过编码转换的视频提供者信息,则视频管理系统先将经过编码转换的视频提供者信息进行反转换,再将流量信息记录到反转换后的视频提供者信息对应的视频提供者数据库。Further, if the video provider information received by the video management system is code-converted video provider information, the video management system first reverse-converts the code-transformed video provider information, and then records the traffic information in the reverse-conversion The following video provider information corresponds to the video provider database.

进一步地,如果视频管理系统接收到的源视频信息为经过编码转换的源视频信息,则视频管理系统先将经过编码转换的源视频信息进行反转换,再将流量信息记录到反转换后的源视频信息对应的源视频数据库。Further, if the source video information received by the video management system is code-converted source video information, the video management system first inversely converts the code-converted source video information, and then records the traffic information in the deconverted source video information. The source video database corresponding to the video information.

相应地,本发明实施例还提供一种视频播放系统(也就是视频播放器20),如图7所示,为视频播放系统的一种结构示意图,包括:Correspondingly, the embodiment of the present invention also provides a video playback system (that is, a video player 20), as shown in FIG. 7 , which is a schematic structural diagram of a video playback system, including:

第三发送单元501,用于向视频存储服务器30发送视频播放请求,视频播放请求中包括视频的统一资源定位符URL,以使视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找视频的URL对应的视频的实际存储地址,并向视频播放器返回视频的视频流;The third sending unit 501 is used to send a video play request to the video storage server 30, the video play request includes the uniform resource locator URL of the video, so that the video storage server according to the mapping between the URL of the saved video and the actual storage address of the video relationship, find the actual storage address of the video corresponding to the URL of the video, and return the video stream of the video to the video player;

统计单元502,用于接收视频流,并统计视频的流量信息;A statistical unit 502, configured to receive video streams, and count video traffic information;

第四发送单元503,用于将流量信息、以及视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统10。The fourth sending unit 503 is configured to send the traffic information, as well as video provider information, source video information and video name included in the video URL to the video management system 10 .

进一步地,视频播放器通过第四发送单元将流量信息、视频提供者信息、源视频信息和视频的名称发送至视频管理系统后,视频管理系统要对流量信息进行统计汇总。相应地,本发明实施例还提供一种视频管理系统,参见图8,是视频管理系统的一种结构示意图,具体包括:Further, after the video player sends the traffic information, video provider information, source video information and video name to the video management system through the fourth sending unit, the video management system needs to collect statistics on the traffic information. Correspondingly, an embodiment of the present invention also provides a video management system, see FIG. 8 , which is a schematic structural diagram of a video management system, specifically including:

第三接收单元601,用于接收视频播放系统发送的流量信息、视频提供者信息、源视频信息和视频的名称;The third receiving unit 601 is configured to receive traffic information, video provider information, source video information and video name sent by the video playing system;

第一记录单元602,用于将第三接收单元接收到的流量信息记录到视频的名称对应的视频数据库;The first recording unit 602 is configured to record the traffic information received by the third receiving unit into a video database corresponding to the name of the video;

第二记录单元603,用于将第三接收单元接收到的流量信息记录到源视频信息对应的源视频数据库;The second recording unit 603 is configured to record the flow information received by the third receiving unit into the source video database corresponding to the source video information;

第三记录单元604,用于将第三接收单元接收到的流量信息记录到视频提供者信息对应的视频提供者数据库。The third recording unit 604 is configured to record the traffic information received by the third receiving unit into the video provider database corresponding to the video provider information.

进一步地,如果第三接收单元接收到的源视频信息为经过编码转换的源视频信息,参见图8,视频管理系统还包括:Further, if the source video information received by the third receiving unit is code-converted source video information, see FIG. 8, the video management system further includes:

第一反转换单元605,用于对经过编码转换的源视频信息进行反转换,然后通知第二记录单元将流量信息记录到反转换后的源视频信息对应的源视频数据库。The first inverse conversion unit 605 is configured to inversely convert the code-transformed source video information, and then notify the second recording unit to record the traffic information in the source video database corresponding to the inversely converted source video information.

进一步地,如果第三接收单元接收到的视频提供者信息为经过编码转换的视频提供者信息,如图8所示,视频管理系统还包括:Further, if the video provider information received by the third receiving unit is coded video provider information, as shown in Figure 8, the video management system further includes:

第二反转换单元606,用于对视频提供者信息进行反转换,然后通知第三记录单元将流量信息记录到反转换后的视频提供者信息对应的视频提供者数据库。The second inverse conversion unit 606 is configured to inversely convert the video provider information, and then notify the third recording unit to record the flow information in the video provider database corresponding to the inversely converted video provider information.

基于上述视频发布方法公开的技术方案,本发明实施例提供的视频播放方法及系统,使视频播放器在播放视频时,可以直接利用URL向视频管理系统上报流量信息,而无需通过解析视频文件头部的方法获取视频提供者信息和源视频信息,大大降低了视频的解析开销,缩短了解析时间。Based on the technical solution disclosed by the above-mentioned video publishing method, the video playing method and system provided by the embodiments of the present invention enable the video player to directly use the URL to report traffic information to the video management system when playing the video, without having to parse the video file header. The internal method obtains the video provider information and the source video information, which greatly reduces the video parsing overhead and shortens the parsing time.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。It can be known from the above description of the implementation manners that those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备及系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. place. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiments. The device and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (20)

1.一种视频发布方法,其特征在于,所述方法包括:1. A video release method, characterized in that the method comprises: 接收视频提供端发送的视频发布请求,所述视频发布请求中包括视频的标识符;receiving a video release request sent by a video provider, where the video release request includes an identifier of the video; 根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息;Find video provider information and source video information from the video storage server according to the video publishing request; 根据所述视频提供者信息、所述源视频信息和视频的名称生成视频的统一资源定位符URL,并建立所述视频的URL到所述视频的实际存储地址的映射关系,将所述映射关系保存到所述视频存储服务器中;Generate the Uniform Resource Locator URL of the video according to the title of the video provider information, the source video information and the video, and set up the mapping relationship from the URL of the video to the actual storage address of the video, and convert the mapping relationship Save to the video storage server; 向所述视频提供端发送视频发布成功的信息。Sending information that the video is released successfully to the video provider. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 在生成视频的URL之前,对查找到的视频提供者信息和/或源视频信息进行编码转换;Before generating the URL of the video, perform code conversion on the found video provider information and/or source video information; 则,所述视频的URL中具体包括经过编码转换的视频提供者信息和/或经过编码转换的源视频信息。Then, the URL of the video specifically includes coded video provider information and/or coded source video information. 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, characterized in that the method further comprises: 在生成视频的URL之前,获取时间戳信息;Before generating the URL of the video, get the timestamp information; 则,所述视频的URL中包括所述时间戳信息。Then, the URL of the video includes the timestamp information. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises: 在获取所述时间戳信息之后,对所述时间戳信息进行编码转换,After acquiring the timestamp information, performing code conversion on the timestamp information, 则,所述视频的URL中具体包括经过编码转换的时间戳信息。Then, the URL of the video specifically includes encoded and converted time stamp information. 5.根据权利要求2所述的方法,其特征在于,所述编码转换具体包括:5. The method according to claim 2, wherein the encoding conversion specifically comprises: 采用Base62编码或者哈希运算进行编码转换。Use Base62 encoding or hash operation for encoding conversion. 6.根据权利要求1、2或5所述的方法,其特征在于,所述方法还包括:在所述向所述视频提供端发送视频发布成功的信息之后,6. The method according to claim 1, 2 or 5, characterized in that the method further comprises: after sending the information that the video is published successfully to the video provider, 接收所述视频提供端发送的取消发布请求,所述取消发布请求中包括所述视频的URL;receiving the unpublishing request sent by the video provider, the unpublishing request including the URL of the video; 删除所述视频的URL到所述视频的实际存储地址的映射;Delete the mapping from the URL of the video to the actual storage address of the video; 向所述视频提供端发送取消发布成功的信息。Send the message that the release is canceled successfully to the video provider. 7.一种视频播放方法,其特征在于,所述方法包括:7. A video playback method, characterized in that the method comprises: 视频播放器向视频存储服务器发送视频播放请求,所述视频播放请求中包括视频的统一资源定位符URL,以使所述视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找所述视频的URL对应的视频的实际存储地址,并向所述视频播放器返回所述视频的视频流;The video player sends a video play request to the video storage server, and the video play request includes the uniform resource locator URL of the video, so that the video storage server according to the mapping relationship between the saved video URL and the actual storage address of the video, Find the actual storage address of the video corresponding to the URL of the video, and return the video stream of the video to the video player; 所述视频播放器接收所述视频流,并统计所述视频的流量信息;The video player receives the video stream, and counts the traffic information of the video; 所述视频播放器将所述流量信息、以及所述视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统。The video player sends the traffic information, as well as the video provider information, source video information and video name included in the video URL to the video management system. 8.根据权利要求7所述的方法,其特征在于,所述视频的URL中还包括时间戳信息。8. The method according to claim 7, wherein the URL of the video further includes timestamp information. 9.根据权利要求7所述的方法,其特征在于,所述方法还包括:9. The method according to claim 7, further comprising: 所述视频管理系统接收到所述视频播放器发送的流量信息、视频提供者信息、源视频信息和视频的名称之后,将所述流量信息分别记录到所述视频提供者信息对应的视频提供者数据库、所述源视频信息对应的源视频数据库、所述视频的名称对应的视频数据库。After the video management system receives the traffic information, video provider information, source video information and video name sent by the video player, record the traffic information to the video provider corresponding to the video provider information A database, a source video database corresponding to the source video information, and a video database corresponding to the name of the video. 10.根据权利要求9所述的方法,其特征在于,所述方法还包括:10. The method according to claim 9, further comprising: 如果所述视频管理系统接收到的视频提供者信息为经过编码转换的视频提供者信息,则所述视频管理系统先将所述经过编码转换的视频提供者信息进行反转换,再将所述流量信息记录到反转换后的视频提供者信息对应的视频提供者数据库。If the video provider information received by the video management system is code-converted video provider information, the video management system first reverse-converts the code-converted video provider information, and then converts the traffic The information is recorded in the video provider database corresponding to the reverse-transformed video provider information. 11.根据权利要求9或10所述的方法,其特征在于,所述方法还包括:11. The method according to claim 9 or 10, further comprising: 如果所述视频管理系统接收到的源视频信息为经过编码转换的源视频信息,则所述视频管理系统先将所述经过编码转换的源视频信息进行反转换,再将所述流量信息记录到反转换后的源视频信息对应的源视频数据库。If the source video information received by the video management system is code-converted source video information, the video management system first reverse-converts the code-converted source video information, and then records the traffic information in A source video database corresponding to the deconverted source video information. 12.一种视频发布系统,其特征在于,所述系统包括:12. A video distribution system, characterized in that the system comprises: 第一接收单元,用于接收视频提供端发送的视频发布请求,所述视频发布请求中包括视频的标识符;A first receiving unit, configured to receive a video release request sent by a video provider, where the video release request includes an identifier of the video; 查找单元,用于根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视频信息;A search unit, configured to search for video provider information and source video information from a video storage server according to the video release request; 映射单元,用于根据所述视频提供者信息、所述源视频信息和视频的名称生成视频的统一资源定位符URL,并建立所述视频的URL到所述视频的实际存储地址的映射关系,将所述映射关系保存到所述视频存储服务器中;A mapping unit, configured to generate a video Uniform Resource Locator URL according to the video provider information, the source video information, and the title of the video, and establish a mapping relationship from the URL of the video to the actual storage address of the video, saving the mapping relationship in the video storage server; 第一发送单元,用于向所述视频提供端发送视频发布成功的信息。The first sending unit is configured to send information that the video is released successfully to the video provider. 13.根据权利要求12所述的系统,其特征在于,所述系统还包括:13. The system according to claim 12, further comprising: 第一编码转换单元,用于在所述映射单元生成视频的URL之前,对所述视频提供者信息和/或所述源视频信息进行编码转换;然后通知所述映射单元生成视频的URL,所述视频的URL中具体包括经过编码转换的视频提供者信息和/或经过编码转换的源视频信息。The first encoding conversion unit is used to perform encoding conversion on the video provider information and/or the source video information before the mapping unit generates the URL of the video; then notify the mapping unit to generate the URL of the video, so The URL of the above video specifically includes coded video provider information and/or coded source video information. 14.根据权利要求12或13所述的系统,其特征在于,所述系统还包括:14. The system according to claim 12 or 13, wherein the system further comprises: 获取单元,用于在所述映射单元生成视频的URL之前,获取时间戳信息;然后通知所述映射单元生成视频的URL,所述视频的URL中包括所述时间戳信息。The obtaining unit is configured to obtain time stamp information before the mapping unit generates the URL of the video; and then notify the mapping unit to generate the URL of the video, and the URL of the video includes the time stamp information. 15.根据权利要求14所述的系统,其特征在于,所述系统还包括:15. The system according to claim 14, further comprising: 第二编码转换单元,用于在所述获取单元获取到所述时间戳信息后,对所述时间戳信息进行编码转换;然后通知所述映射单元生成视频的URL,所述视频的URL中具体包括经过编码转换的时间戳信息。The second encoding conversion unit is configured to perform encoding conversion on the timestamp information after the acquiring unit acquires the timestamp information; then notify the mapping unit to generate a video URL, specifically in the video URL Contains transcoded timestamp information. 16.根据权利要求12或13所述的系统,其特征在于,所述系统还包括:16. The system according to claim 12 or 13, further comprising: 第二接收单元,用于在所述第一发送单元向视频提供端发送视频发布成功的信息后,接收所述视频提供端发送的取消发布请求,所述取消发布请求中包括所述视频的URL;The second receiving unit is configured to receive the unpublishing request sent by the video provider after the first sending unit sends the information that the video is published successfully to the video provider, and the unpublishing request includes the URL of the video ; 删除单元,用于删除所述视频的URL到所述视频的实际存储地址的映射;A deletion unit, configured to delete the mapping from the URL of the video to the actual storage address of the video; 第二发送单元,用于在所述删除单元删除视频的URL到视频的实际存储地址的映射后,向所述视频提供端发送取消发布成功的信息。The second sending unit is configured to send information that the release of the video is canceled successfully to the video provider after the deleting unit deletes the mapping from the URL of the video to the actual storage address of the video. 17.一种视频播放系统,其特征在于,所述系统包括:17. A video playback system, characterized in that the system comprises: 第三发送单元,用于向视频存储服务器发送视频播放请求,所述视频播放请求中包括视频的统一资源定位符URL,以使所述视频存储服务器根据保存的视频的URL与视频实际存储地址间的映射关系,查找所述视频的URL对应的视频的实际存储地址,并向所述视频播放器返回所述视频的视频流;The third sending unit is used to send a video play request to the video storage server, and the video play request includes the uniform resource locator URL of the video, so that the video storage server can store the video according to the URL of the saved video and the actual storage address of the video. Mapping relation, search the actual storage address of the video corresponding to the URL of the video, and return the video stream of the video to the video player; 统计单元,用于接收所述视频流,并统计所述视频的流量信息;A statistical unit, configured to receive the video stream, and count the traffic information of the video; 第四发送单元,用于将所述流量信息、以及所述视频的URL中包括的视频提供者信息、源视频信息和视频的名称发送至视频管理系统。The fourth sending unit is configured to send the traffic information, video provider information, source video information and video name included in the video URL to a video management system. 18.一种视频管理系统,其特征在于,所述视频管理系统与权利要求17所述的视频播放系统进行通信,具体包括:18. A video management system, characterized in that the video management system communicates with the video playback system according to claim 17, specifically comprising: 第三接收单元,用于接收所述视频播放系统发送的流量信息、视频提供者信息、源视频信息和视频的名称;The third receiving unit is used to receive the traffic information, video provider information, source video information and video name sent by the video playing system; 第一记录单元,用于将所述第三接收单元接收到的流量信息记录到所述视频的名称对应的视频数据库;a first recording unit, configured to record the traffic information received by the third receiving unit into a video database corresponding to the name of the video; 第二记录单元,用于将所述第三接收单元接收到的流量信息记录到所述源视频信息对应的源视频数据库;The second recording unit is configured to record the flow information received by the third receiving unit into the source video database corresponding to the source video information; 第三记录单元,用于将所述第三接收单元接收到的流量信息记录到所述视频提供者信息对应的视频提供者数据库。The third recording unit is configured to record the traffic information received by the third receiving unit into the video provider database corresponding to the video provider information. 19.根据权利要求18所述的系统,其特征在于,19. The system of claim 18, wherein: 如果所述第三接收单元接收到的源视频信息为经过编码转换的源视频信息,则所述视频管理系统还包括:If the source video information received by the third receiving unit is code-converted source video information, the video management system further includes: 第一反转换单元,用于对所述经过编码转换的源视频信息进行反转换,然后通知所述第二记录单元将所述流量信息记录到反转换后的源视频信息对应的源视频数据库。The first inverse conversion unit is configured to inversely convert the code-converted source video information, and then notify the second recording unit to record the flow information in a source video database corresponding to the inversely converted source video information. 20.根据权利要求18或19所述的系统,其特征在于,20. A system according to claim 18 or 19, wherein 如果所述第三接收单元接收到的视频提供者信息为经过编码转换的视频提供者信息,则所述视频管理系统还包括:If the video provider information received by the third receiving unit is coded video provider information, the video management system further includes: 第二反转换单元,用于对所述视频提供者信息进行反转换,然后通知所述第三记录单元将所述流量信息记录到反转换后的视频提供者信息对应的视频提供者数据库。The second inverse conversion unit is configured to inversely convert the video provider information, and then notify the third recording unit to record the flow information in a video provider database corresponding to the inversely converted video provider information.
CN201180003109.5A 2011-12-27 2011-12-27 A video publishing method and system, and a video playing method and system Active CN103503486B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/084735 WO2013097091A1 (en) 2011-12-27 2011-12-27 Video distribution method and system and video playing method and system

Publications (2)

Publication Number Publication Date
CN103503486A CN103503486A (en) 2014-01-08
CN103503486B true CN103503486B (en) 2016-09-28

Family

ID=48696184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180003109.5A Active CN103503486B (en) 2011-12-27 2011-12-27 A video publishing method and system, and a video playing method and system

Country Status (2)

Country Link
CN (1) CN103503486B (en)
WO (1) WO2013097091A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763577B (en) * 2013-12-31 2017-06-27 华为技术有限公司 The player method of media file, apparatus and system
CN109151526A (en) * 2018-09-30 2019-01-04 深圳市元征科技股份有限公司 A kind of video transmission method, system, equipment and computer readable storage medium
CN111324586B (en) * 2018-12-14 2024-04-09 中移(杭州)信息技术有限公司 Picture display method and device based on cache, electronic equipment and medium
CN114339456B (en) * 2022-03-16 2022-05-27 飞狐信息技术(天津)有限公司 Video publishing method and device
CN116017005B (en) * 2023-01-03 2025-01-21 北京有竹居网络技术有限公司 Video material transmission method and related equipment
CN116610823B (en) * 2023-04-28 2024-05-07 江苏传智播客教育科技股份有限公司 Method and system for uniformly accessing multimedia resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625701A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Video sharing method and video sharing system
CN102075795A (en) * 2010-12-21 2011-05-25 深圳市同洲电子股份有限公司 Method and system for releasing focus television programs
CN102129632A (en) * 2010-01-13 2011-07-20 阿里巴巴集团控股有限公司 Method, device and system for capturing webpage information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625701A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Video sharing method and video sharing system
CN102129632A (en) * 2010-01-13 2011-07-20 阿里巴巴集团控股有限公司 Method, device and system for capturing webpage information
CN102075795A (en) * 2010-12-21 2011-05-25 深圳市同洲电子股份有限公司 Method and system for releasing focus television programs

Also Published As

Publication number Publication date
CN103503486A (en) 2014-01-08
WO2013097091A1 (en) 2013-07-04

Similar Documents

Publication Publication Date Title
JP6316781B2 (en) Network streaming of video data using byte range requests
CN103503486B (en) A video publishing method and system, and a video playing method and system
US8886896B2 (en) Storage format for media streams
US9794240B2 (en) System and method for signaling and verifying URL signatures for both URL authentication and URL-based content access authorization in adaptive streaming
CN106506668B (en) A method of object storage is realized based on distributed storage
US8875310B2 (en) System and method of protecting digital media contents
CN109791557B (en) Computer-implemented method for managing asset storage and storage system
KR101678540B1 (en) Method and device for transmitting streaming media
CN102291256B (en) A kind of querying method of monitor data and equipment
JP2006521038A (en) System for distributing multimedia content
CN104506493A (en) HLS content source returning and caching realization method
CN104320679B (en) A kind of user information acquisition method and server based on HLS protocol
WO2013078620A1 (en) Method, device and system for delivering live telecast content
CN112261444A (en) Media stream encryption method based on high-performance virtual gateway
CN105812831B (en) Recording method, device, system, and playback method and device of network program
US9705836B2 (en) Method, server and SNS system for message interaction
CN101984619A (en) Implementation method and system of streaming media service
CN111565168B (en) Object storage method, system, storage medium and electronic equipment
CN104378325B (en) Network electronic data acquisition solidification, verification and reduction method and system
CN114925222B (en) A method for constructing a multi-platform video sample library
WO2012163177A1 (en) Method for processing multimedia file and network side device in communication system
KR101272876B1 (en) Media Streaming Server and Method for Managing Media Data in the Server
KR100954687B1 (en) Multimedia Contents Service System and Method in Wireless Network
KR100682974B1 (en) Apparatus for integrating a data broadcast service and a data broadcast service method using the same
CN105871980A (en) Method and device for increasing cache hit ratio

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.