WO2013097091A1 - Video distribution method and system and video playing method and system - Google Patents

Video distribution method and system and video playing method and system Download PDF

Info

Publication number
WO2013097091A1
WO2013097091A1 PCT/CN2011/084735 CN2011084735W WO2013097091A1 WO 2013097091 A1 WO2013097091 A1 WO 2013097091A1 CN 2011084735 W CN2011084735 W CN 2011084735W WO 2013097091 A1 WO2013097091 A1 WO 2013097091A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
information
url
source
provider
Prior art date
Application number
PCT/CN2011/084735
Other languages
French (fr)
Chinese (zh)
Inventor
孙斗
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180003109.5A priority Critical patent/CN103503486B/en
Priority to PCT/CN2011/084735 priority patent/WO2013097091A1/en
Publication of WO2013097091A1 publication Critical patent/WO2013097091A1/en

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]

Definitions

  • Video publishing method and system video playing method and system
  • the present invention relates to the field of communications technologies, and in particular, to a video publishing method and system, a video playing method and system, and a video management system.
  • the existing video management system can realize the life cycle management of source video injection, storage, editing, distribution and traffic statistics.
  • Video publishers often convert the injected source video into a different format, or a different rate of release video, and then publish the output video through different channels (such as websites, mobile phones, TVs), this time
  • Each published video establishes a URL that can be accessed (Uniform/Universal Resource Locator, also known as a web address, which is the address of a standard resource on the Internet), and the user can publish the video accordingly through the URL access. If the video is unpublished, the user can no longer continue to access the published video via the URL.
  • Uniform/Universal Resource Locator also known as a web address, which is the address of a standard resource on the Internet
  • the video management system needs to collect the traffic information during video playback, so as to accurately analyze the user source (user geographic location, user IP address, playback client used by the user to access the video, etc.), video hotspots that the user pays attention to, Distribute information such as traffic generated by the CDN (Content Delivery Network).
  • CDN Content Delivery Network
  • the video provider, the source video, and the released video are stored in a video management system in a hierarchical relationship, that is, the video management system manages information of multiple video providers, and each video provider can Multiple source video files are injected, and each source video file can be transcoded into multiple published videos. Therefore, if you want to obtain more comprehensive video traffic statistics, the video player needs to obtain at least video provider information, source video information, and video information when accessing and playing video information according to the URL, so as to facilitate the video management system to play video statistics. Traffic information.
  • an implementation manner of acquiring video provider information, source video information, and publishing video information is provided: mapping a time stamp to an actual storage address of a video by using a URL mapping method, and providing video provider information and a source
  • the video information is placed in the head of the video file and parsed by the video player during video playback.
  • the URL obtained by the video player is similar to: Htt : //www.huawei.com/xwBb lf5; where xwBb 1 f5 is the timestamp.
  • the video provider information and the source video information are placed in the video file header, so that any video can be read ( Programs that include local reads can take advantage of both of these information; when a video is published, relying on timestamps to generate URLs can reduce system overhead.
  • the technical solution also hides the actual storage address of the video, and improves the security of video distribution.
  • the technical solution puts the video provider information and the source video information into the video file header, the video player needs to read related information from the video stream before the video is played, and parse out the video provider information and the source video. Information, which increases the resolution overhead of the video player and extends the parsing time.
  • the embodiment of the invention provides a video publishing method and system, a video playing method and system, and a video management system, so as to ensure video publishing security while reducing video resolution overhead.
  • the technical solution adopted by the embodiment of the present invention is:
  • a video publishing method comprising:
  • a video playing method comprising:
  • the video player sends a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server according to the mapping relationship between the URL of the saved video and the actual storage address of the video. Finding an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player;
  • the video player receives, by the video player, the video stream, and collecting traffic information of the video;
  • the video player transmits the traffic information, and the names of the video provider information, the source video information, and the video included in the URL of the video to the video management system.
  • a video distribution system comprising:
  • a first receiving unit configured to receive a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video
  • a searching unit configured to search for video provider information and source video information from the video storage server according to the video publishing request
  • mapping unit configured to generate a uniform resource locator URL of the video according to the video provider information, the source video information, and the name of the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, Saving the mapping relationship to the video storage server;
  • the first sending unit is configured to send information that the video is successfully posted to the video providing end.
  • a video playing system comprising:
  • a third sending unit configured to send a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server is configured according to the URL of the saved video and the actual storage address of the video. a mapping relationship, searching for an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player; a statistical unit, configured to receive the video stream, and count the video
  • the fourth sending unit is configured to send the traffic information, and the names of the video provider information, the source video information, and the video included in the URL of the video to the video management system.
  • a video management system where the video management system communicates with the video playback system, specifically:
  • a third receiving unit configured to receive, by the video playing system, traffic information, video provider information, source video information, and a name of the video;
  • a first recording unit configured to record the traffic information received by the third receiving unit to a video database corresponding to the name of the video
  • a second recording unit configured to record the traffic information received by the third receiving unit to a source video database corresponding to the source video information
  • a third recording unit configured to record the traffic information received by the third receiving unit to a video provider database corresponding to the video provider information.
  • the video publishing method and system provided by the embodiment of the present invention generate a video URL by using the name of the video provider, the source video information, and the video, and establish a mapping of the URL to the actual storage address of the video, so as to implement traffic statistics. Guarantee the security of video distribution, and reduce the video resolution overhead.
  • the embodiment of the present invention further provides a video playing method and system, and a video management system. When playing a video, the video player can directly report the traffic information to the video management system by using the URL. .
  • FIG. 1 is a schematic diagram of a storage structure of a video provider, a source video, and a distribution video in a video management system;
  • FIG. 2 is a schematic flowchart of a video distribution method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a process for releasing a video in a video distribution method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a video distribution system according to an embodiment of the present invention
  • FIG. 5 is another schematic structural diagram of a video distribution system according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a video playing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a video playing system according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a video management system according to an embodiment of the present invention.
  • the video distribution method and system of the embodiment of the present invention generates a video URL by using the name of the video provider, the source video information, and the video, and establishes a mapping of the URL to the actual storage address of the video, so as to ensure that the video is released when performing traffic statistics. Security also reduces the video resolution overhead.
  • Step 101 Receive a video publishing request sent by a video providing end.
  • the video provider sends a video distribution request to the video management system by using a video provider (for example, a computer), and the video distribution request includes at least an identifier of the video, that is, a video ID.
  • Step 102 Search for video provider information and source video information from the video storage server according to the video publishing request.
  • Step 103 Generate a uniform resource locator URL of the video according to the name of the video provider, the source video information, and the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, and save the mapping relationship to the video storage server.
  • the video management system finds the video provider information and the source video information corresponding to the request from the video storage server according to the video ID in the video distribution request, according to the video provider information, the source video information, and the name of the video.
  • the aspect information generates a 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 according to the above three aspects after obtaining the URL of the video, without parsing the video file header.
  • the method obtains video provider information and source video information, which greatly reduces the resolution cost of the video and shortens the parsing time.
  • the video management system needs to establish a mapping relationship between the URL of the video and the actual storage address of the video to hide the actual storage path of the video and prevent the illegal user from scanning the video address maliciously.
  • an Alias command of the Apache server may be used: Alias/key/var/web, key/introduction. mp4 is mapped to /var/web/introduction.mp4.
  • the mapping between the URL of the video and the actual storage address of the video is established by using other methods, which is not limited in this embodiment of the present invention.
  • Step 104 Send information that the video is successfully posted to the video provider.
  • the video management system After the video management system completes the two steps of generating a URL including the video provider information, the source video information, and the video name, and establishing a mapping relationship between the URL and the actual storage address of the video, the video provider returns a successful video distribution. Information, at this point, the entire process of video distribution of the embodiment of the present invention is completed.
  • the video distribution method provided by the embodiment of the present invention further includes:
  • the video management system Before performing step 103, the video management system first encodes and converts the video provider information and/or the source video information found in step 102, and hides the real storage data of the video provider information and/or the source video information in the video storage server. In order to further improve the security of video distribution. Specifically, Base62 encoding or hashing can be used to complete the encoding conversion. The following is a brief introduction to the process of encoding and converting video provider information and source video information by taking Base62 encoding as an example.
  • the video management system acquires the video Provider's storage serial number (ie, video provider information) from the video storage server according to the video distribution request, and performs the video Provider's storage serial number.
  • video Provider's storage serial number ie, video provider information
  • the Base 62 code converts to form a video provider ID with a fixed bit length.
  • the video management system obtains the storage sequence number (ie, source video information) of the source video from the video storage server according to the video distribution request, and performs Base62 encoding conversion on the storage sequence number of the source video to form a source video ID having a fixed bit length. ;
  • the video publishing method provided by the embodiment of the present invention further includes:
  • the URL includes:
  • the URL also includes timestamp information. That is to say, the URL at this time includes four aspects of video provider information, source video information, video name and time stamp information. Since the timestamp information of each video release is different, even if the names of the video provider information, the source video information, and the video are the same, it is guaranteed that the generated URL is different, and the video provider can utilize the timestamp. Information sets user permissions and manages the videos it publishes.
  • video provider A publishes a video and provides the generated URL-1 to friend B (ie, B has the right to publish the video through URL-1 access), and provides the generated URL-2 to friend C (ie C has the right to publish the video through URL-2, where URL-1 is different from the timestamp information contained in URL-2. If video provider A cancels the video corresponding to URL-1, then Friend B can no longer access the video through URL-1, but friend C can still continue to access the video released by A through URL-2, which is convenient for A to control the video it publishes.
  • the video distribution method of the embodiment of the present invention further includes: after the timestamp information is obtained, the timestamp information is encoded and converted, and the URL of the generated video in step 103 includes: Time-stamped information that has been encoded and converted.
  • the encoding conversion of the timestamp information can also be done using Base62 encoding or hashing.
  • mapping relationship between the URL of the video and the actual storage address of the video can be established by using the following four mapping rules, where WRZA6 is the video provider information, kUKYPr is the source video information, and introduction.mp4 For the name of the video, xwBblf5 is the timestamp information:
  • 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- xwBblf5/introduction.mp4.
  • the video provider information and the source video information are mapped as different paths of the URL, and the time stamp information is used as a URL parameter, for example: xwBblf5.
  • the video provider can also cancel the video distribution according to the actual playing condition of the video.
  • FIG. 3 it is a schematic flowchart of canceling video distribution in the video publishing method provided by the embodiment of the present invention.
  • Step 201 Receive a cancel release request sent by the video provider, and cancel the URL including the video in the release request.
  • Step 202 Delete a mapping of the URL of the video to the actual storage address of the video.
  • Step 203 Send information to the video providing end that the unpublishing is successful.
  • the video provider wants to cancel the release of a certain video, it first needs to submit a cancellation request to the video management system, and the cancellation request should at least include the URL of the video, so that the video management system can search from the video storage server according to the URL of the video. And delete the mapping of 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, the information about the unpublished success is returned to the video provider. 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 a request for error information to the video player, that is, the user cannot continue to access the video through the original URL.
  • the mapping between the URL and the actual storage address is established when the video is released, and the mapping of the URL to the actual storage address is deleted when the publication is cancelled, which reduces the publishing overhead, and has better performance under the large concurrent access volume, that is, Said that the video management system can handle more video publishing requests and unpublishing requests at the same time under the same hardware conditions such as CPU and memory system.
  • FIG. 4 is a schematic structural diagram of a video distribution system, including:
  • the first receiving unit 301 is configured to receive a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video;
  • the searching unit 302 is configured to search for video provider information and source video information from the video storage server according to the video publishing request.
  • the mapping unit 303 is configured to generate a URL of the video according to the name of the video provider, the source video information, and the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, and save the mapping relationship to the video storage server.
  • the first sending unit 304 is configured to send information that the video is successfully posted to the video providing end.
  • the video distribution system provided by the embodiment of the present invention further includes:
  • the first transcoding unit 305 is configured to: before the mapping unit generates the URL of the video, encode and convert the video provider information and/or the source video information; and then notify the mapping unit to generate a URL of the video, where the URL of the video specifically includes the encoding Converted video provider information and/or encoded source video information.
  • the video distribution system provided by the embodiment of the present invention further includes:
  • the obtaining unit 306 is configured to obtain timestamp information before the mapping unit generates the URL of the video, and then notify the mapping unit to generate a URL of the video, where the URL of the video further includes timestamp information.
  • the video distribution system provided by the embodiment of the present invention further includes:
  • the second transcoding unit 307 is configured to: after the obtaining unit obtains the timestamp information, encode and convert the timestamp information; and then notify the mapping unit to generate a URL of the video, where the URL of the video specifically includes the encoded timestamp information.
  • the video provider can also cancel the video release according to the actual playback of the video.
  • the video distribution system provided by the embodiment of the present invention further includes:
  • the second receiving unit 308 is configured to: after the first sending unit sends the video publishing success information to the video providing end, receive the unpublishing request sent by the video providing end, and cancel the publishing request including the URL of the video;
  • the deleting unit 309 is configured to delete the mapping of the URL of the video to the actual storage address of the video.
  • the second sending unit 310 is configured to send the cancellation to the video providing end after the deleting unit deletes the mapping of the URL of the video to the actual storage address of the video. Post successful information.
  • the video publishing method and system provided by the embodiment of the present invention generate a video URL by using the name of the video provider, the source video information, and the video, and establish a mapping of the URL to the actual storage address of the video, so as to implement traffic statistics. Guarantee the security of video distribution, and reduce the video resolution overhead.
  • the embodiment of the present invention further provides a video playing method, as shown in FIG. 6 , which is a flowchart of a video playing method according to an embodiment of the present invention, including: Step 401, a video player
  • the video storage server sends a video play request, and the video play request includes a uniform resource locator URL of the video, so that the video storage server searches for the actual video corresponding to the video URL according to the mapping relationship between the URL of the saved video and the actual storage address of the video. Store the address and return the video stream of the video to the video player.
  • Step 402 The video player receives the video stream and collects the traffic information of the video.
  • Step 403 the video player provides the flow information, and the video included in the URL of the video.
  • the name of the person information, source video information and video is sent to the video management system.
  • the URL in the video playing method provided by the embodiment of the present invention may include the following two forms:
  • the URL includes three aspects: video provider information, source video information, and video name; (2) The URL includes video provider information, source video information, video name, and timestamp information.
  • the video management system may encode and convert the video provider information and/or the source video information and/or the time stamp information in the above two forms. If the scheme of the code conversion is adopted, the video The information contained in the URL is encoded and converted, and is no longer here - an explanation.
  • the video playing method provided by the embodiment of the present invention further includes:
  • the video management system receives the traffic information, the video provider information, the source video information, and the video name sent by the video player, and records the traffic information to the video provider database corresponding to the video provider information, and the source video corresponding to the source video information.
  • the video database corresponding to the name of the database.
  • the video management system may first record the traffic information in the database of the published video corresponding to the name of the video, and summarize the traffic information of the published video;
  • the traffic information is recorded in the source video database corresponding to the published video, and the traffic information of the plurality of posted videos transcoded by the source video is summarized.
  • the traffic information may be recorded in the video provider database corresponding to the source video, and the information is summarized. Traffic information for multiple source videos provided by the video provider.
  • the video management system first inversely converts the encoded video provider information, and then records the traffic information to the inverse conversion.
  • the video provider database corresponding to the subsequent video provider information.
  • the video management system first inversely converts the encoded source video information, and then The traffic information is recorded to the source video database corresponding to the inverse converted source video information.
  • the embodiment of the present invention further provides a video playing system (that is, the video player 20), as shown in FIG. 7, which is a structural schematic diagram of a video playing system, including:
  • the third sending unit 501 is configured to send a video play request to the video storage server 30, where the video play request includes a uniform resource locator URL of the video, so that the video storage server maps the URL of the saved video according to 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;
  • a statistical unit 502 configured to receive a video stream, and collect traffic information of the video
  • the fourth sending unit 503 is configured to send the traffic information, and the name of the video provider information, the source video information, and the video included in the URL of the video to the video management system 10.
  • an embodiment of the present invention further provides a video management system, which is shown in the figure.
  • FIG. 8 is a structural schematic diagram of the video management system, specifically including:
  • the third receiving unit 601 is configured to receive the traffic information, the video provider information, the source video information, and the name of the video sent by the video playing system.
  • the first recording unit 602 is configured to record the traffic information received by the third receiving unit to a video database corresponding to the name of the video;
  • the second recording unit 603 is configured to record the traffic information received by the third receiving unit to the source video database corresponding to the source video information;
  • the third recording unit 604 is configured to record the traffic information received by the third receiving unit to the video provider database corresponding to the video provider information.
  • the video management system further includes:
  • the first inverse conversion unit 605 is configured to perform inverse conversion on the encoded converted source video information, and then notify the second recording unit to record the flow information to the source video database corresponding to the inverse converted source video information.
  • the video management system further includes:
  • the second inverse conversion unit 606 is configured to perform inverse conversion on the video provider information, and then notify the third recording unit to record the traffic information to the video provider database corresponding to the inverse-converted video provider information.
  • the video playback method and system provided by the embodiment of the present invention enable the video player to directly report the traffic information to the video management system by using the URL without playing through the parsing of the video file header.
  • the method of the department obtains video provider information and source video information, which greatly reduces the resolution cost of the video and shortens the parsing time.

Abstract

A video distribution method and system. The method comprises: receiving a video distribution request sent by a video supplying end, the video distribution request including an identifier of the video; searching for video supplier information and source video information from a video storage server according to the video distribution request; generating a URL of the video according to the video supplier information, the source video information and the title of the video, establishing a mapping relationship of the URL to the real storage address of the video, and saving the mapping relationship in the video storage server; and sending information about successful video distribution to the video supplying end. Based on the solution disclosed by the above-mentioned method and system, also provided are a video playing method and system. Through the methods and systems provided by the present invention, not only the security of video distribution can be ensured but also the overhead of video resolution can be reduced in traffic statistics.

Description

一种视频发布方法及系统、 视频播放方法及系统  Video publishing method and system, video playing method and system
技术领域 Technical field
本发明涉及通信技术领域, 具体涉及一种视频发布方法及系统、 视频播 放方法及系统、 视频管理系统。  The present invention relates to the field of communications technologies, 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 life cycle management of source video injection, storage, editing, distribution and traffic statistics. Video publishers often convert the injected source video into a different format, or a different rate of release video, and then publish the output video through different channels (such as websites, mobile phones, TVs), this time Each published video establishes a URL that can be accessed (Uniform/Universal Resource Locator, also known as a web address, which is the address of a standard resource on the Internet), and the user can publish the video accordingly through the URL access. If the video is unpublished, the user can no longer continue to access the published video via the URL.
在视频发布后, 视频管理系统需要统计视频播放时的流量信息, 从而准 确的分析用户来源(用户地理位置、 用户 IP地址、 用户访问视频所利用的播 放客户端等)、 用户关注的视频热点、 通过 CDN ( Content Delivery Network , 内容分发网络)分发所产生的流量等方面信息。 这样, 视频提供者就可以及 时掌握发布视频的被访问情况, 同时还方便视频管理系统对视频流量进行控 制和计费。  After the video is released, the video management system needs to collect the traffic information during video playback, so as to accurately analyze the user source (user geographic location, user IP address, playback client used by the user to access the video, etc.), video hotspots that the user pays attention to, Distribute information such as traffic generated by the CDN (Content Delivery Network). In this way, the video provider can grasp the access situation of the published video at the same time, and also facilitate the video management system to control and charge the video traffic.
如图 1所示, 视频提供者、 源视频、 发布视频采用层次关系存储在视频 管理系统中, 也就是说, 视频管理系统管理着多个视频提供者的信息, 而每 个视频提供者又可以注入多个源视频文件, 每个源视频文件又可被转码成多 个发布视频。 因此, 若想获得比较全面的视频流量统计信息, 视频播放器在 根据 URL访问并播放视频信息时, 至少需要获取视频提供者信息、 源视频信 息和发布视频信息, 以方便视频管理系统统计视频播放流量信息。  As shown in FIG. 1, the video provider, the source video, and the released video are stored in a video management system in a hierarchical relationship, that is, the video management system manages information of multiple video providers, and each video provider can Multiple source video files are injected, and each source video file can be transcoded into multiple published videos. Therefore, if you want to obtain more comprehensive video traffic statistics, the video player needs to obtain at least video provider information, source video information, and video information when accessing and playing video information according to the URL, so as to facilitate the video management system to play video statistics. Traffic information.
现有技术中, 提供了一种可以获取视频提供者信息、 源视频信息和发布 视频信息的实现方式:采用 URL映射的方式将时间戳映射为视频的实际存储 地址, 将视频提供者信息和源视频信息放入到视频文件头部, 由视频播放器 在进行视频播放时解析, 此时, 视频播放器获取的 URL类似于: htt : //www.huawei.com/xwBb lf5; 其中, xwBb 1 f5为时间戳。 上述技术方案的好处是实现了视频转码和发布过程的分离, 在视频转码 时, 将视频提供者信息和源视频信息放入视频文件头部, 这样就能保证任何 读取到该视频 (包括本地读取) 的程序均可利用这两方面信息; 在视频发布 时, 仅依赖时间戳生成 URL就可以减少系统开销。 此外, 本技术方案还隐藏 了视频的实际存储地址, 提高了视频发布的安全性。 但是, 因为本技术方案 将视频提供者信息和源视频信息放入到视频文件头部, 视频播放器需要在进 行视频播放前自视频流中读取相关信息, 解析出视频提供者信息和源视频信 息, 这就加大了视频播放器的解析开销, 延长了解析时间。 In the prior art, an implementation manner of acquiring video provider information, source video information, and publishing video information is provided: mapping a time stamp to an actual storage address of a video by using a URL mapping method, and providing video provider information and a source The video information is placed in the head of the video file and parsed by the video player during video playback. At this point, the URL obtained by the video player is similar to: Htt : //www.huawei.com/xwBb lf5; where xwBb 1 f5 is the timestamp. The advantage of the above technical solution is to realize the separation of the video transcoding and publishing process. When the video is transcoded, the video provider information and the source video information are placed in the video file header, so that any video can be read ( Programs that include local reads can take advantage of both of these information; when a video is published, relying on timestamps to generate URLs can reduce system overhead. In addition, the technical solution also hides the actual storage address of the video, and improves the security of video distribution. However, because the technical solution puts the video provider information and the source video information into the video file header, the video player needs to read related information from the video stream before the video is played, and parse out the video provider information and the source video. Information, which increases the resolution overhead of the video player and extends the parsing time.
发明内容 Summary of the invention
本发明实施例提供一种视频发布方法及系统、 视频播放方法及系统、 视 频管理系统, 以实现进行视频流量统计时, 在保证视频发布安全性的同时, 还要降低视频解析开销的目的。  The embodiment of the invention provides a video publishing method and system, a video playing method and system, and a video management system, so as to ensure video publishing security while reducing video resolution overhead.
为了解决以上技术问题, 本发明实施例采取的技术方案是:  In order to solve the above technical problem, the technical solution adopted by the embodiment of the present invention is:
一种视频发布方法, 所述方法包括:  A video publishing method, the method comprising:
接收视频提供端发送的视频发布请求, 所述视频发布请求中包括视频的 标识符;  Receiving a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video;
根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视 频信息;  Finding video provider information and source video information from the video storage server according to the video distribution request;
根据所述视频提供者信息、 所述源视频信息和视频的名称生成视频的统 一资源定位符 URL, 并建立所述视频的 URL到所述视频的实际存储地址的 映射关系, 将所述映射关系保存到所述视频存储服务器中;  Generating a uniform resource locator URL of the video according to the video provider information, the source video information, and the name of the video, and establishing a mapping relationship between the URL of the video and the actual storage address of the video, and the mapping relationship is Saved to the video storage server;
向所述视频提供端发送视频发布成功的信息。  Sending information to the video provider that the video is successfully posted.
一种视频播放方法, 所述方法包括:  A video playing method, the method comprising:
视频播放器向视频存储服务器发送视频播放请求, 所述视频播放请求中 包括视频的统一资源定位符 URL, 以使所述视频存储服务器根据保存的视频 的 URL与视频实际存储地址间的映射关系, 查找所述视频的 URL对应的视 频的实际存储地址, 并向所述视频播放器返回所述视频的视频流;  The video player sends a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server according to the mapping relationship between the URL of the saved video and the actual storage address of the video. Finding an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player;
所述视频播放器接收所述视频流, 并统计所述视频的流量信息; 所述视频播放器将所述流量信息、以及所述视频的 URL中包括的视频提 供者信息、 源视频信息和视频的名称发送至视频管理系统。 Receiving, by the video player, the video stream, and collecting traffic information of the video; The video player transmits the traffic information, and the names of the video provider information, the source video information, and the video included in the URL of the video to the video management system.
一种视频发布系统, 所述系统包括:  A video distribution system, the system comprising:
第一接收单元, 用于接收视频提供端发送的视频发布请求, 所述视频发 布请求中包括视频的标识符;  a first receiving unit, configured to receive a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video;
查找单元, 用于根据所述视频发布请求从视频存储服务器中查找视频提 供者信息和源视频信息;  a searching unit, configured to search for video provider information and source video information from the video storage server according to the video publishing request;
映射单元, 用于根据所述视频提供者信息、 所述源视频信息和视频的名 称生成视频的统一资源定位符 URL, 并建立所述视频的 URL到所述视频的 实际存储地址的映射关系, 将所述映射关系保存到所述视频存储服务器中; 第一发送单元, 用于向所述视频提供端发送视频发布成功的信息。  a mapping unit, configured to generate a uniform resource locator URL of the video according to the video provider information, the source video information, and the name of the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, Saving the mapping relationship to the video storage server; the first sending unit is configured to send information that the video is successfully posted to the video providing end.
一种视频播放系统, 所述系统包括:  A video playing system, the system comprising:
第三发送单元, 用于向视频存储服务器发送视频播放请求, 所述视频播 放请求中包括视频的统一资源定位符 URL, 以使所述视频存储服务器根据保 存的视频的 URL与视频实际存储地址间的映射关系, 查找所述视频的 URL 对应的视频的实际存储地址, 并向所述视频播放器返回所述视频的视频流; 统计单元, 用于接收所述视频流, 并统计所述视频的流量信息; 第四发送单元, 用于将所述流量信息、 以及所述视频的 URL中包括的视 频提供者信息、 源视频信息和视频的名称发送至视频管理系统。  a third sending unit, configured to send a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server is configured according to the URL of the saved video and the actual storage address of the video. a mapping relationship, searching for an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player; a statistical unit, configured to receive the video stream, and count the video The fourth sending unit is configured to send the traffic information, and the names of the video provider information, the source video information, and the video included in the URL of the video to the video management system.
一种视频管理系统, 所述视频管理系统与上述视频播放系统进行通信, 具体包括:  A video management system, where the video management system communicates with the video playback system, specifically:
第三接收单元, 用于接收所述视频播放系统发送的流量信息、 视频提供 者信息、 源视频信息和视频的名称;  a third receiving unit, configured to receive, by the video playing system, traffic information, video provider information, source video information, and a name of the video;
第一记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 视频的名称对应的视频数据库;  a first recording unit, configured to record the traffic information received by the third receiving unit to a video database corresponding to the name of the video;
第二记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 源视频信息对应的源视频数据库;  a second recording unit, configured to record the traffic information received by the third receiving unit to a source video database corresponding to the source video information;
第三记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 视频提供者信息对应的视频提供者数据库。 本发明实施例提供的视频发布方法及系统, 利用视频提供者信息、 源视 频信息和视频的名称生成视频的 URL, 并建立 URL到视频实际存储地址的 映射, 以实现进行流量统计时, 既能保证视频发布的安全性, 又能降低视频 解析开销的目的。 基于上述视频发布方法公开的技术方案, 本发明实施例还 提供一种视频播放方法及系统、 一种视频管理系统, 视频播放器在播放视频 时, 就可以直接利用 URL向视频管理系统上报流量信息。 And a third recording unit, configured to record the traffic information received by the third receiving unit to a video provider database corresponding to the video provider information. The video publishing method and system provided by the embodiment of the present invention generate a video URL by using the name of the video provider, the source video information, and the video, and establish a mapping of the URL to the actual storage address of the video, so as to implement traffic statistics. Guarantee the security of video distribution, and reduce the video resolution overhead. Based on the technical solution disclosed in the video distribution method, the embodiment of the present invention further provides a video playing method and system, and a video management system. When playing a video, the video player can directly report the traffic information to the video management system by using the URL. .
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1是视频提供者、 源视频和发布视频在视频管理系统中的存储结构示 意图;  1 is a schematic diagram of a storage structure of a video provider, a source video, and a distribution video in a video management system;
图 2是本发明实施例视频发布方法的流程示意图;  2 is a schematic flowchart of a video distribution method according to an embodiment of the present invention;
图 3是本发明实施例视频发布方法中视频取消发布的流程示意图; 图 4是本发明实施例视频发布系统的一种结构示意图;  3 is a schematic diagram of a process for releasing a video in a video distribution method according to an embodiment of the present invention; 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; FIG.
图 6是本发明实施例视频播放方法的流程示意图;  6 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
图 7是本发明实施例视频播放系统的结构示意图;  7 is a schematic structural diagram of a video playing 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
为了使本技术领域的人员更好地理解本发明实施例的方案, 下面结合附 图和实施方式对本发明实施例作进一步的详细说明。  The embodiments of the present invention are further described in detail below in conjunction with the drawings and embodiments.
本发明实施例视频发布方法及系统, 利用视频提供者信息、 源视频信息 和视频的名称生成视频的 URL, 并建立 URL到视频实际存储地址的映射, 以实现进行流量统计时, 在保证视频发布安全性的同时, 还降低视频解析开 销的目的。  The video distribution method and system of the embodiment of the present invention generates a video URL by using the name of the video provider, the source video information, and the video, and establishes a mapping of the URL to the actual storage address of the video, so as to ensure that the video is released when performing traffic statistics. Security also reduces the video resolution overhead.
如图 2所示, 是本发明实施例提供的视频发布方法的流程图, 包括: 步骤 101 , 接收视频提供端发送的视频发布请求。 视频提供者利用视频提供端 (例如计算机) 向视频管理系统发送视频发 布请求, 该视频发布请求中至少要包括视频的标识符, 即视频 ID。 As shown in FIG. 2, it is a flowchart of a video publishing method according to an embodiment of the present invention, including: Step 101: Receive a video publishing request sent by a video providing end. The video provider sends a video distribution request to the video management system by using a video provider (for example, a computer), and the video distribution request includes at least an identifier of the video, that is, a video ID.
步骤 102, 根据视频发布请求从视频存储服务器中查找视频提供者信息 和源视频信息。  Step 102: Search for video provider information and source video information from the video storage server according to the video publishing request.
步骤 103 , 根据视频提供者信息、 源视频信息和视频的名称生成视频的 统一资源定位符 URL, 并建立视频的 URL到视频的实际存储地址的映射关 系, 将映射关系保存到视频存储服务器中。  Step 103: Generate a uniform resource locator URL of the video according to the name of the video provider, the source video information, and the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, and save the mapping relationship to the video storage server.
在视频管理系统根据视频发布请求中的视频 ID从视频存储服务器中查 找出与请求相对应的视频提供者信息和源视频信息之后, 根据视频提供者信 息、 源视频信息、 以及视频的名称这三方面信息生成视频的 URL, 这样, 在 进行视频播放时,视频播放器就可以在获取到视频的 URL后直接根据上述三 方面信息向视频管理系统上报视频流量信息, 而无需通过解析视频文件头部 的方法获取视频提供者信息和源视频信息,这就大大降低了视频的解析开销, 缩短了解析时间。  After the video management system finds the video provider information and the source video information corresponding to the request from the video storage server according to the video ID in the video distribution request, according to the video provider information, the source video information, and the name of the video. The aspect information generates a 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 according to the above three aspects after obtaining the URL of the video, without parsing the video file header. The method obtains video provider information and source video information, which greatly reduces the resolution cost of the video and shortens the parsing time.
为了保证视频发布的安全性, 在生成视频的 URL之后, 视频管理系统还 需要建立视频的 URL与视频实际存储地址间的映射关系,以隐藏视频的实际 存储路径, 防止非法用户恶意扫描视频地址。 作为本发明实施例中建立映射 关系的一种实现方式,可采用 Apache服务器的 Alias指令: Alias/key/var/web , 夺 key/introduction. mp4映射到 /var/web/ introduction.mp4。 当然, 上述实现方 式仅是一种示例, 在实际应用中, 还可以采用其他方法完成视频的 URL与视 频实际存储地址间映射关系的建立, 本发明实施例对此不做限定。  To ensure the security of video distribution, after the URL of the video is generated, the video management system needs to establish a mapping relationship between the URL of the video and the actual storage address of the video to hide the actual storage path of the video and prevent the illegal user from scanning the video address maliciously. As an implementation manner of establishing a mapping relationship in the embodiment of the present invention, an Alias command of the Apache server may be used: Alias/key/var/web, key/introduction. mp4 is mapped to /var/web/introduction.mp4. Of course, the foregoing implementation manner is only an example. In an actual application, the mapping between the URL of the video and the actual storage address of the video is established by using other methods, which is not limited in this embodiment of the present invention.
步骤 104, 向视频提供端发送视频发布成功的信息。  Step 104: Send information that the video is successfully posted to the video provider.
视频管理系统在完成了生成包含视频提供者信息、 源视频信息和视频名 称的 URL、 并建立 URL到视频实际存储地址的映射关系这两个操作步骤之 后, 则向视频提供者返回视频发布成功的信息, 至此, 就完成了本发明实施 例视频发布的全过程。  After the video management system completes the two steps of generating a URL including the video provider information, the source video information, and the video name, and establishing a mapping relationship between the URL and the actual storage address of the video, the video provider returns a successful video distribution. Information, at this point, the entire process of video distribution of the embodiment of the present invention is completed.
为了进一步提高视频发布的安全性, 本发明实施例提供的视频发布方法 还包括:  In order to further improve the security of the video distribution, the video distribution method provided by the embodiment of the present invention further includes:
在生成视频的 URL之前, 对查找到的视频提供者信息和 /或源视频信息 进行编码转换; 则步骤 102中生成视频的 URL包括: URL中具体包括经过 编码转换的视频提供者信息和 /或经过编码转换的源视频信息。 Finding video provider information and/or source video information before generating the URL of the video Performing code conversion; then generating the URL of the video in step 102 includes: the URL specifically includes the encoded video provider information and/or the encoded source video information.
在执行步骤 103之前, 视频管理系统先对步骤 102查找到的视频提供者 信息和 /或源视频信息进行编码转换,隐藏视频提供者信息和 /或源视频信息在 视频存储服务器内的真实存储数据, 以达到进一步提高视频发布安全性的目 的。 具体可采用 Base62编码或者哈希运算来完成编码转换。 下面以 Base62 编码为例, 对视频提供者信息和源视频信息进行编码转换的过程进行简单介 绍。  Before performing step 103, the video management system first encodes and converts the video provider information and/or the source video information found in step 102, and hides the real storage data of the video provider information and/or the source video information in the video storage server. In order to further improve the security of video distribution. Specifically, Base62 encoding or hashing can be used to complete the encoding conversion. The following is a brief introduction to the process of encoding and converting video provider information and source video information by taking Base62 encoding as an example.
(1) 视频管理系统根据视频发布请求从视频存储服务器内获取视频提供 者的存储序列号 (即视频提供者信息), 将视频提供者的存储序列号进行 (1) The video management system acquires the video Provider's storage serial number (ie, video provider information) from the video storage server according to the video distribution request, and performs the video Provider's storage serial number.
Base62编码转换, 形成具有固定位长的视频提供者 ID。 The Base 62 code converts to form a video provider ID with a fixed bit length.
(2) 视频管理系统根据视频发布请求从视频存储服务器内获取源视频的 存储序列号 (即源视频信息), 将源视频的存储序列号进行 Base62编码转换, 形成具有固定位长的源视频 ID;  (2) The video management system obtains the storage sequence number (ie, source video information) of the source video from the video storage server according to the video distribution request, and performs Base62 encoding conversion on the storage sequence number of the source video to form a source video ID having a fixed bit length. ;
(3) 利用视频提供者 ID、源视频 ID和视频的名称这三方面信息生成视频 的 URL。 利用视频提供者 ID代替视频提供者的存储序列号、 源视频 ID代替 源视频的存储序列号, 就可以隐藏序列号在视频存储服务器内的真实存储。  (3) Generate the URL of the video by using the three aspects of the video provider ID, the source video ID, and the name of the video. By using the video provider ID instead of the video provider's storage serial number, source video ID instead of the source video's storage serial number, the real storage of the serial number in the video storage server can be hidden.
为了方便视频提供者对其发布的视频进行管理, 本发明实施例提供的视 频发布方法还包括:  In order to facilitate the video provider to manage the video that is distributed by the video provider, the video publishing method provided by the embodiment of the present invention further includes:
在生成视频的 URL之前, 获取时间戳信息; 则步骤 103 中生成视频的 Obtaining timestamp information before generating the URL of the video; then generating the video in step 103
URL包括: URL中还包括时间戳信息。 也就是说, 此时的 URL包括视频提 供者信息、 源视频信息、 视频的名称和时间戳信息这四方面信息。 因为每次 视频发布的时间戳信息都不相同, 因此即使在视频提供者信息、 源视频信息 和视频的名称均相同的情况下, 也能够保证生成的 URL不同, 视频提供者就 可以利用时间戳信息设置用户权限, 并对其发布的视频进行管理。 The URL includes: The URL also includes timestamp information. That is to say, the URL at this time includes four aspects of video provider information, source video information, video name and time stamp information. Since the timestamp information of each video release is different, even if the names of the video provider information, the source video information, and the video are the same, it is guaranteed that the generated URL is different, and the video provider can utilize the timestamp. Information sets user permissions and manages the videos it publishes.
例如, 视频提供者 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 video and provides the generated URL-1 to friend B (ie, B has the right to publish the video through URL-1 access), and provides the generated URL-2 to friend C (ie C has the right to publish the video through URL-2, where URL-1 is different from the timestamp information contained in URL-2. If video provider A cancels the video corresponding to URL-1, then Friend B can no longer access the video through URL-1, but friend C can still continue to access the video released by A through URL-2, which is convenient for A to control the video it publishes.
同样地, 为了提高视频发布的安全性, 本发明实施例视频发布方法还包 括: 在获取时间戳信息之后, 对时间戳信息进行编码转换, 则步骤 103 中生 成视频的 URL 包括: URL 中具体包括经过编码转换的时间戳信息。 对时间 戳信息的编码转换同样也可以采用 Base62编码或者哈希运算来完成。  In the same manner, in order to improve the security of the video distribution, the video distribution method of the embodiment of the present invention further includes: after the timestamp information is obtained, the timestamp information is encoded and converted, and the URL of the generated video in step 103 includes: Time-stamped information that has been encoded and converted. The encoding conversion of the timestamp information can also be done using Base62 encoding or hashing.
在本发明实施例提供的视频发布方法中,建立视频的 URL到视频的实际 存储地址的映射关系可以采用以下四种映射规则, 其中 WRZA6 为视频提供 者信息、 kUKYPr 为源视频信息、 introduction.mp4 为视频的名称、 xwBblf5 为时间戳信息:  In the video distribution method provided by the embodiment of the present invention, the mapping relationship between the URL of the video and the actual storage address of the video can be established by using the following four mapping rules, where WRZA6 is the video provider information, kUKYPr is the source video information, and introduction.mp4 For the name of the video, xwBblf5 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- xwBblf5/introduction.mp4。 Http: //www.huawei.com/blRZA6-kUKYPr- xwBblf5/introduction.mp4.
(2) 将视频提供者信息、 源视频信息、 时间戳信息作为 URL的不同路径 进行映射, 例如: (2) Map the video provider information, source video information, and timestamp information as different paths of the URL, for example:
(3) 将视频提供者信息、 源视频信息作为 URL的同一路径进行映射, 时 间戳信息作为 URL参数, 例如: (3) The video provider information and the source video information are mapped as the same path of the URL, and the time stamp information is used as a URL parameter, for example:
http : //www.huawei om/blRZA6-kUKYPr/introduction.mp4?timestamp= xwBblf5。  Http : //www.huawei om/blRZA6-kUKYPr/introduction.mp4?timestamp= xwBblf5.
(4) 将视频提供者信息、 源视频信息作为 URL的不同路径进行映射, 时 间戳信息作为 URL参数, 例如: xwBblf5。  (4) The video provider information and the source video information are mapped as different paths of the URL, and the time stamp information is used as a URL parameter, for example: xwBblf5.
进一步地, 在执行步骤 104之后, 视频提供者还可以根据视频的实际播 放情况, 取消视频发布。 如图 3所示, 是本发明实施例提供的视频发布方法 中取消视频发布的流程示意图。  Further, after performing step 104, the video provider can also cancel the video distribution according to the actual playing condition of the video. As shown in FIG. 3, it is a schematic flowchart of canceling video distribution in the video publishing method provided by the embodiment of the present invention.
步骤 201 , 接收视频提供端发送的取消发布请求, 取消发布请求中包括 视频的 URL。 步骤 202, 删除视频的 URL到视频的实际存储地址的映射; 步骤 203 , 向视频提供端发送取消发布成功的信息。 Step 201: Receive a cancel release request sent by the video provider, and cancel the URL including the video in the release request. Step 202: Delete a mapping of the URL of the video to the actual storage address of the video. Step 203: Send information to the video providing end that the unpublishing is successful.
如果视频提供者欲取消发布某一视频, 则首先需要向视频管理系统提交 取消发布请求, 该取消发布请求中至少应包含视频的 URL, 以便视频管理系 统可以根据视频的 URL从视频存储服务器中查找并删除该 URL到视频实际 存储地址的映射。在视频管理系统删除 URL到视频实际存储地址间的映射关 系后, 向视频提供者返回取消发布成功的信息, 此时, 如果视频播放器向视 频存储服务器请求播放该 URL对应的视频,则视频存储服务器向视频播放器 返回请求错误的信息, 也就是说用户不能继续通过原 URL继续访问该视频。 本发明实施例在视频发布时建立 URL到实际存储地址的映射,在取消发布时 删除 URL到实际存储地址的映射, 减少了发布开销, 在大并发访问量下有比 较好的性能表现, 也就是说, 在 CPU和内存系统等硬件条件相同的情况下, 视频管理系统能够同时处理更多的视频发布请求和取消发布请求。  If the video provider wants to cancel the release of a certain video, it first needs to submit a cancellation request to the video management system, and the cancellation request should at least include the URL of the video, so that the video management system can search from the video storage server according to the URL of the video. And delete the mapping of 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, the information about the unpublished success is returned to the video provider. 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 a request for error information to the video player, that is, the user cannot continue to access the video through the original URL. In the embodiment of the present invention, the mapping between the URL and the actual storage address is established when the video is released, and the mapping of the URL to the actual storage address is deleted when the publication is cancelled, which reduces the publishing overhead, and has better performance under the large concurrent access volume, that is, Said that the video management system can handle more video publishing requests and unpublishing requests at the same time under the same hardware conditions such as CPU and memory system.
相应地, 本发明实施例还提供一种视频发布系统, 如图 4所示, 是视频 发布系统的一种结构示意图, 包括:  Correspondingly, the embodiment of the present invention further provides a video distribution system, as shown in FIG. 4, which is a schematic structural diagram of a video distribution system, including:
第一接收单元 301 , 用于接收视频提供端发送的视频发布请求, 所述视 频发布请求中包括视频的标识符;  The first receiving unit 301 is configured to receive a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video;
查找单元 302, 用于根据视频发布请求从视频存储服务器中查找视频提 供者信息和源视频信息;  The searching unit 302 is 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 configured to generate a URL of the video according to the name of the video provider, the source video information, and the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, and save the mapping relationship to the video storage server.
第一发送单元 304, 用于向视频提供端发送视频发布成功的信息。  The first sending unit 304 is configured to send information that the video is successfully posted to the video providing end.
为了提高视频发布的安全性, 参见图 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 further includes:
第一编码转换单元 305 , 用于在映射单元生成视频的 URL之前, 对视频 提供者信息和 /或源视频信息进行编码转换; 然后通知映射单元生成视频的 URL, 视频的 URL 中具体包括经过编码转换的视频提供者信息和 /或经过编 码转换的源视频信息。 为了方便视频提供者对其发布的视频进行管理, 参见图 5, 本发明实施 例提供的视频发布系统还包括: The first transcoding unit 305 is configured to: before the mapping unit generates the URL of the video, encode and convert the video provider information and/or the source video information; and then notify the mapping unit to generate a URL of the video, where the URL of the video specifically includes the encoding Converted video provider information and/or encoded source video information. In order to facilitate the video provider to manage the video that is distributed by the video provider, referring to FIG. 5, the video distribution system provided by the embodiment of the present invention further includes:
获取单元 306,用于在映射单元生成视频的 URL之前,获取时间戳信息; 然后通知映射单元生成视频的 URL, 视频的 URL中还包括时间戳信息。  The obtaining unit 306 is configured to obtain timestamp information before the mapping unit generates the URL of the video, and then notify the mapping unit to generate a URL of the video, where the URL of the video further includes timestamp information.
为了进一步提高系统发布视频的安全性, 参见图 5 , 本发明实施例提供 的视频发布系统还包括:  In order to further improve the security of the system-published video, referring to FIG. 5, the video distribution system provided by the embodiment of the present invention further includes:
第二编码转换单元 307, 用于在获取单元获取到时间戳信息后, 对时间 戳信息进行编码转换; 然后通知映射单元生成视频的 URL, 视频的 URL 中 具体包括经过编码转换的时间戳信息。  The second transcoding unit 307 is configured to: after the obtaining unit obtains the timestamp information, encode and convert the timestamp information; and then notify the mapping unit to generate a URL of the video, where the URL of the video specifically includes the encoded timestamp information.
在视频发布成功后, 视频提供者还可以根据视频的实际播放情况, 取消 视频发布。 如图 5所示, 本发明实施例提供的视频发布系统还包括:  After the video is successfully released, the video provider can also cancel the video release according to the actual playback of the video. As shown in FIG. 5, the video distribution system provided by the embodiment of the present invention further includes:
第二接收单元 308, 用于在第一发送单元向视频提供端发送视频发布成 功的信息后, 接收视频提供端发送的取消发布请求, 取消发布请求中包括视 频的 URL;  The second receiving unit 308 is configured to: after the first sending unit sends the video publishing success information to the video providing end, receive the unpublishing request sent by the video providing end, and cancel the publishing request including the URL of the video;
删除单元 309, 用于删除视频的 URL到视频的实际存储地址的映射; 第二发送单元 310, 用于在删除单元删除视频的 URL到视频的实际存储 地址的映射后, 向视频提供端发送取消发布成功的信息。  The deleting unit 309 is configured to delete the mapping of the URL of the video to the actual storage address of the video. The second sending unit 310 is configured to send the cancellation to the video providing end after the deleting unit deletes the mapping of the URL of the video to the actual storage address of the video. Post successful information.
本发明实施例提供的视频发布方法及系统, 利用视频提供者信息、 源视 频信息和视频的名称生成视频的 URL, 并建立 URL到视频实际存储地址的 映射, 以实现进行流量统计时, 既能保证视频发布的安全性, 又能降低视频 解析开销的目的。  The video publishing method and system provided by the embodiment of the present invention generate a video URL by using the name of the video provider, the source video information, and the video, and establish a mapping of the URL to the actual storage address of the video, so as to implement traffic statistics. Guarantee the security of video distribution, and reduce the video resolution overhead.
基于上述视频发布方法及系统的技术方案, 本发明实施例还提供一种视 频播放方法, 如图 6所示, 是本发明实施例视频播放方法的流程图, 包括: 步骤 401 , 视频播放器向视频存储服务器发送视频播放请求, 视频播放 请求包括视频的统一资源定位符 URL, 以使视频存储服务器根据保存的视频 的 URL与视频实际存储地址间的映射关系, 查找视频的 URL对应的视频的 实际存储地址, 并向视频播放器返回视频的视频流。  The embodiment of the present invention further provides a video playing method, as shown in FIG. 6 , which is a flowchart of a video playing method according to an embodiment of the present invention, including: Step 401, a video player The video storage server sends a video play request, and the video play request includes a uniform resource locator URL of the video, so that the video storage server searches for the actual video corresponding to the video URL according to the mapping relationship between the URL of the saved video and the actual storage address of the video. Store the address and return the video stream of the video to the video player.
步骤 402, 视频播放器接收视频流, 并统计视频的流量信息。  Step 402: The video player receives the video stream and collects the traffic information of the video.
步骤 403 , 视频播放器将流量信息、 以及视频的 URL中包括的视频提供 者信息、 源视频信息和视频的名称发送至视频管理系统。 Step 403, the video player provides the flow information, and the video included in the URL of the video. The name of the person information, source video information and video is sent to the video management system.
此处需要说明的是,本发明实施例提供的视频播放方法中的 URL即上述 视频发布方法中生成的 URL, 可主要包括以下两种形式:  It should be noted that the URL in the video playing method provided by the embodiment of the present invention, that is, the URL generated in the video publishing method, may include the following two forms:
(l) URL中包括视频提供者信息、 源视频信息、 视频的名称三方面信息; (2) URL中包括视频提供者信息、 源视频信息、视频的名称、 时间戳信息 四方面信息。  (l) The URL includes three aspects: video provider information, source video information, and video name; (2) The URL includes video provider information, source video information, video name, and timestamp information.
当然, 为了提高视频发布的安全性, 视频管理系统可以对上述两种形式 中的视频提供者信息和 /或源视频信息和 /或时间戳信息进行编码转换,如果采 用编码转换的方案, 则视频的 URL中包含的信息为经过编码转换的信息, 此 处不再——列举说明。  Of course, in order to improve the security of the video distribution, the video management system may encode and convert the video provider information and/or the source video information and/or the time stamp information in the above two forms. If the scheme of the code conversion is adopted, the video The information contained in the URL is encoded and converted, and is no longer here - an explanation.
进一步地, 在执行步骤 403之后, 本发明实施例提供的视频播放方法还 包括:  Further, after the step 403 is performed, the video playing method provided by the embodiment of the present invention further includes:
视频管理系统接收视频播放器发送的流量信息、 视频提供者信息、 源视 频信息和视频的名称, 并将流量信息分别记录到视频提供者信息对应的视频 提供者数据库、 源视频信息对应的源视频数据库、 视频的名称对应的视频数 据库。 以便于视频管理系统针对视频的名称、 源视频、 视频发布者这三方面 信息进行流量统计汇总。  The video management system receives the traffic information, the video provider information, the source video information, and the video name sent by the video player, and records the traffic information to the video provider database corresponding to the video provider information, and the source video corresponding to the source video information. The video database corresponding to the name of the database. In order to facilitate the video management system to summarize traffic statistics for the video name, source video, and video publisher.
也就是说,视频管理系统在接收到播放器统计的发布视频的流量信息后, 首先可以将流量信息记录到视频的名称对应的发布视频的数据库中, 汇总该 发布视频的流量信息; 然后还可以将流量信息记录到发布视频对应的源视频 数据库中, 汇总由源视频转码成的多个发布视频的流量信息; 最后还可以将 流量信息记录到源视频对应的视频提供者数据库中, 汇总该视频提供者提供 的多个源视频的流量信息。  That is to say, after receiving the traffic information of the posted video that is counted by the player, the video management system may first record the traffic information in the database of the published video corresponding to the name of the video, and summarize the traffic information of the published video; The traffic information is recorded in the source video database corresponding to the published video, and the traffic information of the plurality of posted videos transcoded by the source video is summarized. Finally, the traffic information may be recorded in the video provider database corresponding to the source video, and the information is summarized. Traffic information for multiple source videos provided by the video provider.
进一步地, 如果视频管理系统接收到的视频提供者信息为经过编码转换 的视频提供者信息, 则视频管理系统先将经过编码转换的视频提供者信息进 行反转换, 再将流量信息记录到反转换后的视频提供者信息对应的视频提供 者数据库。  Further, if the video provider information received by the video management system is the encoded video provider information, the video management system first inversely converts the encoded video provider information, and then records the traffic information to the inverse conversion. The video provider database corresponding to the subsequent video provider information.
进一步地, 如果视频管理系统接收到的源视频信息为经过编码转换的源 视频信息, 则视频管理系统先将经过编码转换的源视频信息进行反转换, 再 将流量信息记录到反转换后的源视频信息对应的源视频数据库。 Further, if the source video information received by the video management system is encoded and converted source video information, the video management system first inversely converts the encoded source video information, and then The traffic information is recorded to the source video database corresponding to the inverse converted source video information.
相应地,本发明实施例还提供一种视频播放系统(也就是视频播放器 20 ), 如图 7所示, 为视频播放系统的一种结构示意图, 包括:  Correspondingly, the embodiment of the present invention further provides a video playing system (that is, the video player 20), as shown in FIG. 7, which is a structural schematic diagram of a video playing system, including:
第三发送单元 501 , 用于向视频存储服务器 30发送视频播放请求, 视频 播放请求中包括视频的统一资源定位符 URL, 以使视频存储服务器根据保存 的视频的 URL与视频实际存储地址间的映射关系, 查找视频的 URL对应的 视频的实际存储地址, 并向视频播放器返回视频的视频流;  The third sending unit 501 is configured to send a video play request to the video storage server 30, where the video play request includes a uniform resource locator URL of the video, so that the video storage server maps the URL of the saved video according to 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 a video stream, and collect traffic information of the video;
第四发送单元 503 , 用于将流量信息、 以及视频的 URL中包括的视频提 供者信息、 源视频信息和视频的名称发送至视频管理系统 10。  The fourth sending unit 503 is configured to send the traffic information, and the name of the video provider information, the source video information, and the video included in the URL of the video to the video management system 10.
进一步地, 视频播放器通过第四发送单元将流量信息、视频提供者信息、 源视频信息和视频的名称发送至视频管理系统后, 视频管理系统要对流量信 息进行统计汇总。 相应地, 本发明实施例还提供一种视频管理系统, 参见图 Further, after the video player sends the traffic information, the video provider information, the source video information, and the video name to the video management system through the fourth sending unit, the video management system performs statistical summarization on the traffic information. Correspondingly, an embodiment of the present invention further provides a video management system, which is shown in the figure.
8, 是视频管理系统的一种结构示意图, 具体包括: 8, is a structural schematic diagram of the video management system, specifically including:
第三接收单元 601 , 用于接收视频播放系统发送的流量信息、 视频提供 者信息、 源视频信息和视频的名称;  The third receiving unit 601 is configured to receive the traffic information, the video provider information, the source video information, and the name of the video 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 to a video database corresponding to the name of the video;
第二记录单元 603 , 用于将第三接收单元接收到的流量信息记录到源视 频信息对应的源视频数据库;  The second recording unit 603 is configured to record the traffic information received by the third receiving unit to 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 to the video provider database corresponding to the video provider information.
进一步地, 如果第三接收单元接收到的源视频信息为经过编码转换的源 视频信息, 参见图 8, 视频管理系统还包括:  Further, if the source video information received by the third receiving unit is encoded and converted source video information, referring to FIG. 8, the video management system further includes:
第一反转换单元 605 , 用于对经过编码转换的源视频信息进行反转换, 然后通知第二记录单元将流量信息记录到反转换后的源视频信息对应的源视 频数据库。  The first inverse conversion unit 605 is configured to perform inverse conversion on the encoded converted source video information, and then notify the second recording unit to record the flow information to the source video database corresponding to the inverse converted source video information.
进一步地, 如果第三接收单元接收到的视频提供者信息为经过编码转换 的视频提供者信息, 如图 8所示, 视频管理系统还包括: 第二反转换单元 606, 用于对视频提供者信息进行反转换, 然后通知第 三记录单元将流量信息记录到反转换后的视频提供者信息对应的视频提供者 数据库。 Further, if the video provider information received by the third receiving unit is the encoded video provider information, as shown in FIG. 8, the video management system further includes: The second inverse conversion unit 606 is configured to perform inverse conversion on the video provider information, and then notify the third recording unit to record the traffic information to the video provider database corresponding to the inverse-converted video provider information.
基于上述视频发布方法公开的技术方案, 本发明实施例提供的视频播放 方法及系统, 使视频播放器在播放视频时, 可以直接利用 URL向视频管理系 统上报流量信息, 而无需通过解析视频文件头部的方法获取视频提供者信息 和源视频信息, 大大降低了视频的解析开销, 缩短了解析时间。  The video playback method and system provided by the embodiment of the present invention enable the video player to directly report the traffic information to the video management system by using the URL without playing through the parsing of the video file header. The method of the department obtains video provider information and source video information, which greatly reduces the resolution cost of the video and shortens the parsing time.
通过以上的实施方式的描述可知, 本领域的技术人员可以清楚地了解到 上述实施例方法中的全部或部分步骤可借助软件加必需的通用硬件平台的方 式来实现。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做 出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品可以存储 在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各 个实施例或者实施例的某些部分所述的方法。  It will be apparent to those skilled in the art from the above description of the embodiments that all or part of the steps of the above embodiments may be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
需要说明的是, 本说明书中的各个实施例均采用递进的方式描述, 各个 实施例之间相同相似的部分互相参见即可, 每个实施例重点说明的都是与其 他实施例的不同之处。 尤其, 对于设备及系统实施例而言, 由于其基本相似 于方法实施例, 所以描述得比较简单, 相关之处参见方法实施例的部分说明 即可。 以上所描述的设备及系统实施例仅仅是示意性的, 其中作为分离部件 说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以 是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个 网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现本实 施例方案的目的。 本领域普通技术人员在不付出创造性劳动的情况下, 即可 以理解并实施。  It is to be noted that the various embodiments in the present specification are described in a progressive manner, and the same similar parts between the various embodiments may be referred to each other, and each embodiment focuses on different embodiments from other embodiments. At the office. In particular, for the device and system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The apparatus and system embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the embodiments of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内所作的任何修改、 等同替换、 改进等, 均 包含在本发明的保护范围内。  The above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种视频发布方法, 其特征在于, 所述方法包括: A video distribution method, the method comprising:
接收视频提供端发送的视频发布请求, 所述视频发布请求中包括视频的 标识符  Receiving a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video
根据所述视频发布请求从视频存储服务器中查找视频提供者信息和源视 频信息;  Finding video provider information and source video information from the video storage server according to the video distribution request;
根据所述视频提供者信息、 所述源视频信息和视频的名称生成视频的统 一资源定位符 URL, 并建立所述视频的 URL到所述视频的实际存储地址的 映射关系, 将所述映射关系保存到所述视频存储服务器中;  Generating a uniform resource locator URL of the video according to the video provider information, the source video information, and the name of the video, and establishing a mapping relationship between the URL of the video and the actual storage address of the video, and the mapping relationship is Saved to the video storage server;
向所述视频提供端发送视频发布成功的信息。  Sending information to the video provider that the video is successfully posted.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 在生成视频的 URL之前, 对查找到的视频提供者信息和 /或源视频信息 进行编码转换;  The method according to claim 1, wherein the method further comprises: encoding and converting the found video provider information and/or the source video information before generating the URL of the video;
则, 所述视频的 URL 中具体包括经过编码转换的视频提供者信息和 /或 经过编码转换的源视频信息。  Then, the URL of the video specifically includes the encoded video provider information and/or the encoded source video information.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 在生成视频的 URL之前, 获取时间戳信息;  The method according to claim 1 or 2, wherein the method further comprises: acquiring timestamp information before generating a URL of the video;
则, 所述视频的 URL中包括所述时间戳信息。  Then, the timestamp information is included in the URL of the video.
4、 根据权利要求 3所述的方法, 其特征在于, 所述方法还包括: 在获取所述时间戳信息之后, 对所述时间戳信息进行编码转换, 则, 所述视频的 URL中具体包括经过编码转换的时间戳信息。  The method according to claim 3, wherein the method further comprises: after the obtaining the timestamp information, encoding and converting the timestamp information, where the URL of the video specifically includes Time-stamped information that has been encoded and converted.
5、 根据权利要求 2-4任一项所述的方法, 其特征在于, 所述编码转换具 体包括:  The method according to any one of claims 2 to 4, wherein the code conversion body comprises:
采用 Base62编码或者哈希运算进行编码转换。  Encoding conversion is performed using Base62 encoding or hashing.
6、根据权利要求 1-5任一项所述的方法,其特征在于, 所述方法还包括: 在所述向所述视频提供端发送视频发布成功的信息之后,  The method according to any one of claims 1-5, wherein the method further comprises: after the sending the information that the video is successfully posted to the video providing end,
接收所述视频提供端发送的取消发布请求, 所述取消发布请求中包括所 述视频的 URL; 删除所述视频的 URL到所述视频的实际存储地址的映射; Receiving a cancellation request sent by the video provider, where the cancellation request includes a URL of the video; Deleting a mapping of a URL of the video to an actual storage address of the video;
向所述视频提供端发送取消发布成功的信息。  Sending information to the video provider that the unpublishing is successful.
7、 一种视频播放方法, 其特征在于, 所述方法包括:  7. A video playing method, the method comprising:
视频播放器向视频存储服务器发送视频播放请求, 所述视频播放请求中 包括视频的统一资源定位符 URL, 以使所述视频存储服务器根据保存的视频 的 URL与视频实际存储地址间的映射关系, 查找所述视频的 URL对应的视 频的实际存储地址, 并向所述视频播放器返回所述视频的视频流;  The video player sends a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server according to the mapping relationship between the URL of the saved video and the actual storage address of the video. Finding an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player;
所述视频播放器接收所述视频流, 并统计所述视频的流量信息; 所述视频播放器将所述流量信息、以及所述视频的 URL中包括的视频提 供者信息、 源视频信息和视频的名称发送至视频管理系统。  Receiving, by the video player, the video stream, and collecting traffic information of the video; the video player, the video information, and video provider information, source video information, and video included in a URL of the video The name is sent to the video management system.
8、 根据权利要求 7所述的方法, 其特征在于, 所述视频的 URL中还包 括时间戳信息。  The method according to claim 7, wherein the URL of the video further includes timestamp information.
9、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括: 所述视频管理系统接收到所述视频播放器发送的流量信息、 视频提供者 信息、 源视频信息和视频的名称之后, 将所述流量信息分别记录到所述视频 提供者信息对应的视频提供者数据库、所述源视频信息对应的源视频数据库、 所述视频的名称对应的视频数据库。  The method according to claim 7, wherein the method further comprises: the video management system receiving the flow information, the video provider information, the source video information, and the name of the video sent by the video player. Then, the traffic information is separately recorded to a video provider database corresponding to the video provider information, a source video database corresponding to the source video information, and a video database corresponding to the name of the video.
10、 根据权利要求 9所述的方法, 其特征在于, 所述方法还包括: 如果所述视频管理系统接收到的视频提供者信息为经过编码转换的视频 提供者信息, 则所述视频管理系统先将所述经过编码转换的视频提供者信息 进行反转换, 再将所述流量信息记录到反转换后的视频提供者信息对应的视 频提供者数据库。  The method according to claim 9, wherein the method further comprises: if the video provider information received by the video management system is encoded and converted video provider information, the video management system The encoded video provider information is inversely converted, and the traffic information is recorded to a video provider database corresponding to the inverse converted video provider information.
11、 根据权利要求 9或 10所述的方法, 其特征在于, 所述方法还包括: 如果所述视频管理系统接收到的源视频信息为经过编码转换的源视频信 息, 则所述视频管理系统先将所述经过编码转换的源视频信息进行反转换, 再将所述流量信息记录到反转换后的源视频信息对应的源视频数据库。  The method according to claim 9 or 10, wherein the method further comprises: if the source video information received by the video management system is encoded and converted source video information, the video management system The encoded video signal is inversely converted, and the traffic information is recorded to the source video database corresponding to the inverse converted source video information.
12、 一种视频发布系统, 其特征在于, 所述系统包括:  12. A video distribution system, the system comprising:
第一接收单元, 用于接收视频提供端发送的视频发布请求, 所述视频发 布请求中包括视频的标识符; 查找单元, 用于根据所述视频发布请求从视频存储服务器中查找视频提 供者信息和源视频信息; a first receiving unit, configured to receive a video publishing request sent by the video providing end, where the video publishing request includes an identifier of the video; a searching unit, configured to search for video provider information and source video information from the video storage server according to the video publishing request;
映射单元, 用于根据所述视频提供者信息、 所述源视频信息和视频的名 称生成视频的统一资源定位符 URL, 并建立所述视频的 URL到所述视频的 实际存储地址的映射关系, 将所述映射关系保存到所述视频存储服务器中; 第一发送单元, 用于向所述视频提供端发送视频发布成功的信息。  a mapping unit, configured to generate a uniform resource locator URL of the video according to the video provider information, the source video information, and the name of the video, and establish a mapping relationship between the URL of the video and the actual storage address of the video, Saving the mapping relationship to the video storage server; the first sending unit is configured to send information that the video is successfully posted to the video providing end.
13、 根据权利要求 12所述的系统, 其特征在于, 所述系统还包括: 第一编码转换单元, 用于在所述映射单元生成视频的 URL之前, 对所述 视频提供者信息和 /或所述源视频信息进行编码转换; 然后通知所述映射单元 生成视频的 URL, 所述视频的 URL 中具体包括经过编码转换的视频提供者 信息和 /或经过编码转换的源视频信息。  The system according to claim 12, wherein the system further comprises: a first code conversion unit, configured to: before the mapping unit generates a URL of the video, the video provider information and/or The source video information is encoded and converted; then the mapping unit is notified to generate a URL of the video, and the URL of the video specifically includes the encoded video provider information and/or the encoded converted source video information.
14、 根据权利要求 12或 13所述的系统, 其特征在于, 所述系统还包括: 获取单元,用于在所述映射单元生成视频的 URL之前,获取时间戳信息; 然后通知所述映射单元生成视频的 URL, 所述视频的 URL 中包括所述时间 戳信息。  The system according to claim 12 or 13, wherein the system further comprises: an obtaining unit, configured to acquire timestamp information before the mapping unit generates a URL of the video; and then notify the mapping unit The URL of the video is generated, and the timestamp information is included in the URL of the video.
15、 根据权利要求 14所述的系统, 其特征在于, 所述系统还包括: 第二编码转换单元, 用于在所述获取单元获取到所述时间戳信息后, 对 所述时间戳信息进行编码转换; 然后通知所述映射单元生成视频的 URL, 所 述视频的 URL中具体包括经过编码转换的时间戳信息。  The system according to claim 14, wherein the system further comprises: a second code conversion unit, configured to perform the timestamp information after the acquiring unit acquires the timestamp information Transcoding, and then notifying the mapping unit to generate a URL of the video, where the URL of the video specifically includes the encoded time-stamp information.
16、 根据权利要求 12-15任一项所述的系统, 其特征在于, 所述系统还 包括:  The system according to any one of claims 12-15, wherein the system further comprises:
第二接收单元, 用于在所述第一发送单元向视频提供端发送视频发布成 功的信息后, 接收所述视频提供端发送的取消发布请求, 所述取消发布请求 中包括所述视频的 URL;  a second receiving unit, configured to receive, after the first sending unit sends the information that the video is successfully posted to the video providing end, the unpublishing request sent by the video providing end, where the unpublishing request includes the URL of the video ;
删除单元, 用于删除所述视频的 URL 到所述视频的实际存储地址的映 射;  a deleting unit, configured to delete a mapping of a URL of the video to an actual storage address of the video;
第二发送单元,用于在所述删除单元删除视频的 URL到视频的实际存储 地址的映射后, 向所述视频提供端发送取消发布成功的信息。  And a second sending unit, configured to send, after the deleting unit deletes the mapping of the URL of the video to the actual storage address of the video, sending the information that the publishing is successful to the video providing end.
17、 一种视频播放系统, 其特征在于, 所述系统包括: 第三发送单元, 用于向视频存储服务器发送视频播放请求, 所述视频播 放请求中包括视频的统一资源定位符 URL, 以使所述视频存储服务器根据保 存的视频的 URL与视频实际存储地址间的映射关系, 查找所述视频的 URL 对应的视频的实际存储地址, 并向所述视频播放器返回所述视频的视频流; 统计单元, 用于接收所述视频流, 并统计所述视频的流量信息; 第四发送单元, 用于将所述流量信息、 以及所述视频的 URL中包括的视 频提供者信息、 源视频信息和视频的名称发送至视频管理系统。 17. A video playback system, the system comprising: a third sending unit, configured to send a video play request to the video storage server, where the video play request includes a uniform resource locator URL of the video, so that the video storage server is configured according to the URL of the saved video and the actual storage address of the video. a mapping relationship, searching for an actual storage address of the video corresponding to the URL of the video, and returning a video stream of the video to the video player; a statistical unit, configured to receive the video stream, and count the video The fourth sending unit is configured to send the traffic information, and the names of the video provider information, the source video information, and the video included in the URL of the video to the video management system.
18、 一种视频管理系统, 其特征在于, 所述视频管理系统与权利要求 17 所述的视频播放系统进行通信, 具体包括:  A video management system, wherein the video management system communicates with the video playing system of claim 17, specifically:
第三接收单元, 用于接收所述视频播放系统发送的流量信息、 视频提供 者信息、 源视频信息和视频的名称;  a third receiving unit, configured to receive, by the video playing system, traffic information, video provider information, source video information, and a name of the video;
第一记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 视频的名称对应的视频数据库;  a first recording unit, configured to record the traffic information received by the third receiving unit to a video database corresponding to the name of the video;
第二记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 源视频信息对应的源视频数据库;  a second recording unit, configured to record the traffic information received by the third receiving unit to a source video database corresponding to the source video information;
第三记录单元, 用于将所述第三接收单元接收到的流量信息记录到所述 视频提供者信息对应的视频提供者数据库。  And a third recording unit, configured to record the traffic information received by the third receiving unit to a 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 encoded and converted source video information, the video management system further includes:
第一反转换单元, 用于对所述经过编码转换的源视频信息进行反转换, 然后通知所述第二记录单元将所述流量信息记录到反转换后的源视频信息对 应的源视频数据库。  And a first inverse conversion unit, configured to perform inverse conversion on the encoded converted source video information, and then notify the second recording unit to record the flow information to a source video database corresponding to the inverse converted source video information.
20、 根据权利要求 18或 19所述的系统, 其特征在于,  20. A system according to claim 18 or 19, characterized in that
如果所述第三接收单元接收到的视频提供者信息为经过编码转换的视频 提供者信息, 则所述视频管理系统还包括:  If the video provider information received by the third receiving unit is the encoded video provider information, the video management system further includes:
第二反转换单元, 用于对所述视频提供者信息进行反转换, 然后通知所 述第三记录单元将所述流量信息记录到反转换后的视频提供者信息对应的视 频提供者数据库。  And a second inverse conversion unit, configured to perform inverse conversion on the video provider information, and then notify the third recording unit to record the traffic information to a video provider database corresponding to the inverse-converted video provider information.
PCT/CN2011/084735 2011-12-27 2011-12-27 Video distribution method and system and video playing method and system WO2013097091A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180003109.5A CN103503486B (en) 2011-12-27 2011-12-27 A kind of video distribution method and system, video broadcasting method and system
PCT/CN2011/084735 WO2013097091A1 (en) 2011-12-27 2011-12-27 Video distribution method and system and video playing method and system

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 (1)

Publication Number Publication Date
WO2013097091A1 true WO2013097091A1 (en) 2013-07-04

Family

ID=48696184

Family Applications (1)

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

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763577A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for playing media file
CN109151526A (en) * 2018-09-30 2019-01-04 深圳市元征科技股份有限公司 A kind of video transmission method, system, equipment and computer readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763577A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for playing media file
CN109151526A (en) * 2018-09-30 2019-01-04 深圳市元征科技股份有限公司 A kind of video transmission method, system, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN103503486A (en) 2014-01-08
CN103503486B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
KR101361021B1 (en) Method, system and network equipment for implementing http-based streaming media service
US10511646B2 (en) System and method for delivering content
WO2018076952A1 (en) Method and apparatus for storage and playback positioning of video file
US9794240B2 (en) System and method for signaling and verifying URL signatures for both URL authentication and URL-based content access authorization in adaptive streaming
CN101933039B (en) Method for providing a content-sharing service, and a device therefor
US8886896B2 (en) Storage format for media streams
JP6966542B2 (en) Live video transmission methods and systems and equipment
JP5557897B2 (en) Digital media content protection system and method
RU2008104861A (en) REMOTE ACCESS TO PROTECTED FILES THROUGH STREAMED DATA TRANSFER
WO2014114086A1 (en) Hypertext transfer protocol living streaming content distribution method, system and device
WO2014169828A1 (en) Method, device, and system for playing surveillance video
CN104506493A (en) HLS content source returning and caching realization method
CN105657440B (en) A kind of method and system of net cast
WO2015109847A1 (en) Method for rapidly delivering segmented programs, server and client
WO2013097091A1 (en) Video distribution method and system and video playing method and system
CN105812831B (en) Network program recording method, device and system and playing method and device
US9705836B2 (en) Method, server and SNS system for message interaction
CN101984619A (en) Implementation method and system of streaming media service
KR20130093810A (en) Device and method for performing stream converting, and streaming server for transmitting stream to the device
WO2012041039A1 (en) Method, correlative equipment and system for digital tv terminal accessing internet video
CN111565168A (en) Object storage method, system, storage medium and electronic equipment
WO2012163177A1 (en) Method for processing multimedia file and network side device in communication system
CN107872716A (en) A kind of stream data analytic method, device and the electronic equipment of rearmounted encapsulation
CN101917328B (en) Method for locally storing and searching streaming media and network player
KR102272853B1 (en) Apparatus and method for providing streaming contents

Legal Events

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

Ref document number: 11878505

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11878505

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 11878505

Country of ref document: EP

Kind code of ref document: A1