Movatterモバイル変換


[0]ホーム

URL:


CN101420452A - Video file publishing method and device - Google Patents

Video file publishing method and device
Download PDF

Info

Publication number
CN101420452A
CN101420452ACNA2008101789300ACN200810178930ACN101420452ACN 101420452 ACN101420452 ACN 101420452ACN A2008101789300 ACNA2008101789300 ACN A2008101789300ACN 200810178930 ACN200810178930 ACN 200810178930ACN 101420452 ACN101420452 ACN 101420452A
Authority
CN
China
Prior art keywords
video file
video
address
file
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008101789300A
Other languages
Chinese (zh)
Inventor
陈鼎钟
陈伟伟
蒋明
刘子枫
林浩
彭英钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xunlei Networking Technologies Co Ltd
Original Assignee
Shenzhen Xunlei Networking Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xunlei Networking Technologies Co LtdfiledCriticalShenzhen Xunlei Networking Technologies Co Ltd
Priority to CNA2008101789300ApriorityCriticalpatent/CN101420452A/en
Publication of CN101420452ApublicationCriticalpatent/CN101420452A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明公开了一种视频文件的发布方法及装置。该方法中发布装置获取视频文件的存放地址,并根据该存放地址获取所述视频文件;将所述视频文件转换为目标码率和/或目标格式;将转换为目标码率和/或目标格式的视频文件上传到服务器进行发布。如本发明提出的方案,自动发布视频文件有效地提高了视频文件的发布效率。

The invention discloses a method and device for distributing video files. In the method, the distribution device obtains the storage address of the video file, and obtains the video file according to the storage address; converts the video file into the target code rate and/or target format; converts the video file into the target code rate and/or target format The video file uploaded to the server for distribution. As proposed by the present invention, the automatic distribution of video files effectively improves the distribution efficiency of video files.

Description

Translated fromChinese
一种视频文件的发布方法及装置Method and device for distributing video files

技术领域technical field

本发明涉及互联网技术领域,尤其涉及一种视频文件的发布方法及装置。The invention relates to the technical field of the Internet, in particular to a method and device for distributing video files.

背景技术Background technique

随着互联网技术的不断发展,及网络带宽的不断增加,出现了许多提供在线视频点播服务的网站,此类网站提供各类视频文件,用户可根据视频点播服务的网站页面中有关视频资源的内容介绍,通过客户端点播自己需要观看的视频内容,从而可以实现在线观看视频。With the continuous development of Internet technology and the continuous increase of network bandwidth, many websites that provide online video-on-demand services have emerged. Such websites provide various video files. Introduction, through the client to order the video content you need to watch, you can watch videos online.

而传统的视频点播服务提供商在获取视频资源后,一般不对其进行处理即发送到点播服务器上供用户点播,而由于获取视频资源的渠道不同,以致视频资源的质量大不一样,例如有的视频资源可能是高清版本,其码率很高,文件体积也很大,这样的视频资源要用于在线视频点播服务,则需要占用相当大的网络带宽资源才能确保视频的流畅播放。同时,视频点播服务提供商在提供视频点播服务前的前期准备工作,例如下载视频资源、进行发布等都需要人工手动来完成,其效率十分低下。However, traditional video-on-demand service providers usually send video resources to the video-on-demand server for users to order without processing them after obtaining video resources. However, the quality of video resources varies greatly due to different channels for obtaining video resources. For example, some The video resource may be a high-definition version with a high bit rate and a large file size. If such a video resource is used for online video-on-demand services, it needs to occupy a considerable amount of network bandwidth resources to ensure smooth video playback. At the same time, the preparatory work before the video-on-demand service provider provides the video-on-demand service, such as downloading video resources and publishing, all need to be done manually, which is very inefficient.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种视频文件的发布方法及装置,解决现有技术中视频文件发布手工操作效率低的问题。In view of this, the embodiments of the present invention provide a video file distribution method and device to solve the problem of low manual operation efficiency of video file distribution in the prior art.

本发明实施例提供的一种视频文件的发布方法,包括:A method for distributing a video file provided in an embodiment of the present invention, comprising:

发布装置获取视频文件的存放地址,并根据该存放地址获取所述视频文件;The publishing device obtains the storage address of the video file, and obtains the video file according to the storage address;

发布装置将所述视频文件转换为目标码率和/或目标格式;The distribution device converts the video file into a target code rate and/or a target format;

发布装置将转换为目标码率和/或目标格式的视频文件进行发布。The distributing device converts the video files into the target code rate and/or target format for distributing.

本发明实施例提供的一种视频文件的发布装置,包括:A device for distributing video files provided by an embodiment of the present invention includes:

搜索下载模块,用于获取视频文件的存放地址,并根据该存放地址获取所述视频文件;A search and download module is used to obtain the storage address of the video file, and obtain the video file according to the storage address;

转码模块,用于将所述视频文件转换为目标码率和/或目标格式;A transcoding module, configured to convert the video file into a target code rate and/or a target format;

发布模块,用于将进行码率和/或格式转换后的视频文件进行发布。The publishing module is used for publishing the video files after bit rate and/or format conversion.

本发明实施例提供的视频文件的发布方法和装置,发布装置获取到视频文件的存放地址后,根据该存放地址获取视频文件,并将该视频文件转换为目标码率和/或目标格式,将转换后的视频文件进行发布,采用本发明实施例提供的视频文件的自动发布方法,也可以有效的提高视频文件的发布效率。In the video file distribution method and device provided by the embodiments of the present invention, after the distribution device obtains the storage address of the video file, it obtains the video file according to the storage address, and converts the video file into a target code rate and/or target format, and The converted video files are released, and the video file distribution efficiency can also be effectively improved by adopting the video file automatic publishing method provided by the embodiment of the present invention.

附图说明Description of drawings

图1为本发明实施例提供的视频文件的发布方法流程图;Fig. 1 is the flow chart of the publishing method of the video file that the embodiment of the present invention provides;

图2为本发明实施例提供的视频文件搜索采集的方法流程图;Fig. 2 is the method flowchart of the video file search collection that the embodiment of the present invention provides;

图3为本发明实施例提供的视频文件上传方法流程图;Fig. 3 is the flow chart of the video file uploading method provided by the embodiment of the present invention;

图4为本发明实施例提供的视频文件的发布装置结构图。Fig. 4 is a structural diagram of a device for distributing video files provided by an embodiment of the present invention.

具体实施方式Detailed ways

如图1所示,本发明实施例提供了一种自动发布视频文件的方法,该视频文件的发布方法具体包括以下步骤:As shown in Figure 1, the embodiment of the present invention provides a kind of method for automatically distributing video file, and the distributing method of this video file specifically comprises the following steps:

S101:发布装置获取视频文件的存放地址,并根据该存放地址获取所述视频文件。S101: The publishing device acquires a storage address of a video file, and acquires the video file according to the storage address.

所述存放地址可以是发布装置中的本地存放地址,也可以是发布装置所在局域网中的存储设备中的存放地址,还可以是在互联网中的其他提供视频文件的服务器或终端的地址,具体的地址形式可为IP地址或URL(统一资源定位符)等。较佳地,发布装置根据设定的网页地址获取视频文件的存放地址。可预先设定一个获取视频文件的范围,例如设定一组网页地址,发布装置仅从该组设定的网页地址中获取视频文件的存放地址。通常可设定一些较大较权威的视频资源整合网站,从这些网站中可获取大多数视频文件资源。The storage address may be a local storage address in the distribution device, or a storage address in a storage device in the local area network where the distribution device is located, or an address of other servers or terminals that provide video files in the Internet, specifically The form of the address may be an IP address or a URL (Uniform Resource Locator), etc. Preferably, the publishing device obtains the storage address of the video file according to the set web page address. A range for obtaining video files can be set in advance, for example, a set of webpage addresses is set, and the publishing device only obtains the storage address of the video file from the set set webpage addresses. Usually, some larger and more authoritative video resource integration websites can be set up, and most video file resources can be obtained from these websites.

较佳地,发布装置判断网页页面中的各链接对应的地址所存放的文件为视频文件时,提取该链接对应的地址作为该视频文件的存放地址。可通过网络资源获取程序,例如网络蜘蛛(spider),对所述网页页面中的各链接进行链接,并判断各链接对应的地址所存放的文件的后缀名,当后缀名为视频文件的后缀名时,例如rmvb、avi等后缀名,则确定该链接对应的地址所存放文件为视频文件。当链接地址对应的文件为文件包,例如RAR或ZIP等文件包时,则可获取文件包的文件列表信息,以判断所获取的文件列表中是否包含有视频文件,如果文件列表中包含了视频文件,则可确定所述链接地址对应的文件为视频文件。Preferably, when the distribution device judges that the file stored in the address corresponding to each link in the web page is a video file, it extracts the address corresponding to the link as the storage address of the video file. The network resource acquisition program, such as a web spider (spider), can link each link in the web page, and determine the suffix name of the file stored in the address corresponding to each link, when the suffix name is the suffix name of the video file , such as rmvb, avi and other suffix names, then it is determined that the file stored in the address corresponding to the link is a video file. When the file corresponding to the link address is a file package, such as a file package such as RAR or ZIP, the file list information of the file package can be obtained to determine whether there is a video file in the obtained file list. file, it can be determined that the file corresponding to the link address is a video file.

在获取一个视频文件的存放地址后,可先判断该存放地址是否是符合要求的存放地址。则较佳地,所述根据该存放地址获取所述视频文件可包括:After obtaining the storage address of a video file, it may first be judged whether the storage address meets the requirements. Then preferably, said obtaining the video file according to the storage address may include:

从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件对应的描述信息;将所述对应的描述信息与预先设置的限制信息进行匹配;当匹配成功时,则根据所述视频文件的存放地址获取所述视频文件。From the webpage where the hyperlink corresponding to the storage address of the video file is located, obtain the corresponding descriptive information of the video file; match the corresponding descriptive information with the preset restriction information; when the matching is successful, then according to The storage address of the video file obtains the video file.

所述从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件对应的描述信息,通常是通过资源抓取程序,例如spider,获取,资源抓取程序通常采用为网站配置网页模板或通过程序智能分析的方式从网页中获取视频资源的标题、文件格式、导演、演员以及下载链接等相关信息。例如某视频资源网站的视频资源介绍页面中,文本“影片名:”后面的文本为视频资源的名称,文本“导演:”后面的文本为该影片的导演名称等,则可根据该规律配置网页模板,资源抓取程序根据该模板将所述某视频资源网站的视频资源介绍页面中的视频资源相关信息抓取并保存。The description information corresponding to the video file is obtained from the webpage where the hyperlink corresponding to the storage address of the video file is located, usually through a resource grabbing program, such as a spider, and the resource grabbing program is usually used as a website Configure web page templates or obtain relevant information such as the title, file format, director, actors, and download links of video resources from the web page through intelligent analysis of the program. For example, on the video resource introduction page of a video resource website, the text after the text "movie name:" is the name of the video resource, and the text after the text "director:" is the name of the director of the movie, etc., then the webpage can be configured according to this rule A template, according to which the resource grabbing program grabs and saves the video resource-related information in the video resource introduction page of the certain video resource website.

所述预先设置的限制信息可为视频文件的名称、码率、导演和演员、类型、拍摄时间等,而需要获取的描述信息可与所述限制信息对应,获取需要与所述限制信息进行匹配的描述信息。例如,当所预先设置的限制信息中包括“拍摄时间为2006年1月1日之后”,则当获取一个视频文件存放地址后,同时从该存放地址对应的超级链接所在的网页中,获取所述视频文件对应的拍摄时间,如果所获取的拍摄时间在2006年1月1日之前,则表明所获取的视频文件不满足预先设置的限制信息条件,则放弃该获取的视频文件的存放地址。The preset restriction information may be the name of the video file, bit rate, director and actor, type, shooting time, etc., and the description information to be obtained may correspond to the restriction information, and the acquisition needs to be matched with the restriction information description information. For example, when the pre-set restriction information includes "shooting time is after January 1, 2006", then after obtaining a video file storage address, at the same time, from the webpage where the hyperlink corresponding to the storage address is located, obtain the described For the shooting time corresponding to the video file, if the obtained shooting time is before January 1, 2006, it indicates that the obtained video file does not meet the preset restriction information conditions, and the storage address of the obtained video file is discarded.

S102:发布装置将获取的所述视频文件转换为目标码率和/或目标格式。S102: The publishing device converts the acquired video file into a target bit rate and/or a target format.

因为从网络中所获取的视频文件的码率、格式可能不一样,而进行视频文件发布时需要统一的格式和/或码率。比如为了适应网络数据传输速率的需要,在线点播的视频文件的码率不能过高,所以需要转换为目标码率和/或目标格式。例如所获取的视频文件的码率为1000bps(比特/秒),文件格式为AVI,而预先设定的目标格式为RMVB,目标码率为800×600,则需要将所获取的视频文件转换为RMVB格式,并将其码率转化为800×600。Because the bit rate and format of the video files obtained from the network may be different, and a uniform format and/or bit rate is required when the video file is released. For example, in order to meet the needs of the network data transmission rate, the bit rate of the online on-demand video file cannot be too high, so it needs to be converted to the target bit rate and/or target format. For example, the code rate of the obtained video file is 1000bps (bit/second), the file format is AVI, and the preset target format is RMVB, and the target code rate is 800×600, then the obtained video file needs to be converted into RMVB format, and convert its code rate to 800×600.

还可为不同类型的影片设置不同的目标格式和/或目标码率,在获取视频文件后,先判断视频文件的类型,再根据该类型选择相应的目标格式及/目标码率。所述视频文件的类型可为预定好的影片类型,比如动作片、爱情片、剧情片、侦探片、武侠片、动画片、纪录片等。对各种类型的影片分别设置目标码率及/或目标格式等,比如动作片采取较高码率700-1200bps,而对爱情片采取较低码率400bps等。Different target formats and/or target bit rates can also be set for different types of movies. After obtaining the video file, first determine the type of the video file, and then select the corresponding target format and/or target bit rate according to the type. The type of the video file may be a predetermined movie type, such as action movies, romance movies, drama movies, detective movies, martial arts movies, cartoons, documentaries, and the like. Set the target bit rate and/or target format for various types of movies, for example, a higher bit rate of 700-1200bps is used for action movies, and a lower bit rate of 400bps is used for romance movies.

则较佳地,所述将获取的所述视频文件转换为目标码率和/或目标格式包括:根据获取的所述视频文件的类型信息,按照设置的视频文件的类型信息和目标码率和/或目标格式的对应关系,确定获取的所述视频文件对应的目标码率和/或目标格式,根据所述对应的目标码率和/或目标格式对所述视频文件转换为目标码率和/或目标格式。Then preferably, converting the acquired video file into a target bit rate and/or target format includes: according to the acquired type information of the video file, according to the set video file type information and target bit rate and /or the corresponding relationship of the target format, determine the target code rate and/or target format corresponding to the obtained video file, and convert the video file into a target code rate and/or target format according to the corresponding target code rate and/or target format / or target format.

有的视频文件的长度较长,在网络中过大的文件不便于存储及传输,所以常将过大的视频文件分割成为多个较小的片段视频文件,在进行在线点播时,可分别将多个较小的片段视频文件发送给用户。切割视频文件可在将视频文件转换为目标码率和/或目标格式之前进行,也可在码率和/或格式的转换之后对完成转换的视频文件进行。则较佳地,所述方法还可包括:当视频文件的播放时长或文件大小超过阈值时,将进行了码率和/或格式转换的视频文件切割为多个片段视频文件;或将获取的所述视频文件切割为多个片段视频文件。Some video files are long in length, and overly large files are not convenient for storage and transmission in the network. Therefore, overly large video files are often divided into multiple smaller segment video files. Multiple smaller segmented video files are sent to the user. Cutting the video file can be performed before the video file is converted to the target bit rate and/or target format, and can also be performed on the converted video file after the bit rate and/or format conversion. Then preferably, the method may also include: when the playing duration or file size of the video file exceeds a threshold, cutting the video file that has undergone code rate and/or format conversion into a plurality of fragment video files; The video file is cut into multiple segment video files.

切割文件可选择不同的参数进行,例如根据视频文件的大小或播放时长等,可将视频文件按照文件大小切割为大小相同的等份,也可按照播放时长切割为播放时长相同的等份,还可根据预先设定的片段视频的大小或播放时长进行切割,例如预先设定的片段视频的播放时长为30分钟,一部总时长为1小时45分的视频文件,将被切割为三个30分钟及一个15分钟的片段视频文件,当最后一个片段视频文件播放时长不到30分钟,被单独切割为一个片段视频文件。Different parameters can be selected for cutting files. For example, according to the size of the video file or the playing time, the video file can be cut into equal parts of the same size according to the file size, or can be cut into equal parts of the same playing time according to the playing time. It can be cut according to the size or playing time of the pre-set segment video. For example, the playback time of the pre-set segment video is 30 minutes, and a video file with a total duration of 1 hour and 45 minutes will be cut into three 30-minute segments. minutes and a 15-minute segment video file, when the last segment video file is played for less than 30 minutes, it is cut into a segment video file separately.

当采用预先设定的片段视频的大小或播放时长进行切割时,可能会出现最后一个片段视频文件的大小过小或播放时长过短的情形,可通过预先判断的方式来避免此情形的发生,从而选择合适的切割参数切割视频文件,例如,预先设定的切割参数为片段视频的播放时长为30分钟,而预先设定了切割片段长度阈值为不小于5分钟,待切割的视频文件的播放时长为1小时31分,此时可判断切割后将生成一个播放时长为1分钟的片段视频文件,其小于所述片段长度阈值,此时可重新选择切割参数,并再次采用前述方式进行判断,例如选择片段视频的播放时长为40分钟,或者也可将播放时长小于所述片段长度阈值的片段视频文件并入前一个片段视频文件,则此时切割得到的片段视频文件为两个时长为30分钟及一个时长为31分钟的片段视频文件。When using the pre-set segment video size or playback duration for cutting, the size of the last segment video file may be too small or the playback duration may be too short, which can be avoided by pre-judging. Thereby select suitable cutting parameter to cut video file, for example, preset cutting parameter is that the playing duration of clip video is 30 minutes, and preset cutting segment length threshold is not less than 5 minutes, the playback of the video file to be cut The duration is 1 hour and 31 minutes. At this time, it can be judged that a fragment video file with a playback duration of 1 minute will be generated after cutting, which is less than the fragment length threshold. At this time, the cutting parameters can be re-selected, and the above-mentioned method can be used for judgment again. For example, the playback duration of the selected segment video is 40 minutes, or the segment video file whose playback duration is less than the segment length threshold can also be merged into the previous segment video file, then the segment video files obtained by cutting at this time are two and the duration is 30 minutes. minutes and a segmented video file with a duration of 31 minutes.

则较佳地,在进行视频文件的切割时,包括:选择切割参数,判断采用该切割参数切割该视频文件或该进行了码率及/或格式转换的视频文件时,所产生的最后一个切割片段的长度或大小是否小于设定的阈值;当该最后一个切割片段的长度或大小不小于设定的阈值时,则采用该切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件;否则重新选择切割参数,或将该最后一个切割片段的内容并入其前一个切割片段。Then preferably, when cutting a video file, it includes: selecting a cutting parameter, and judging that the last cutting generated when the video file or the video file that has undergone code rate and/or format conversion is cut using the cutting parameter Whether the length or size of the segment is less than the set threshold; when the length or size of the last cut segment is not less than the set threshold, the video file is cut using the cutting parameters or the bit rate and/or format conversion is performed Otherwise, re-select the cutting parameters, or merge the content of the last cutting segment into its previous cutting segment.

所述视频文件的类型信息和目标码率和/或目标格式的对应关系可通过人工进行设置,例如设置文艺类视频对应的目标码率为400bps,目标格式为rmvb。所述视频文件的类型信息可从所述视频文件的存放地址对应的超级链接所在的网页中获取,具体可通过网络蜘蛛spider获取。The corresponding relationship between the type information of the video file and the target bit rate and/or target format can be set manually, for example, the target bit rate corresponding to the literary and artistic video is set to 400bps, and the target format is rmvb. The type information of the video file can be obtained from the webpage where the hyperlink corresponding to the storage address of the video file is located, specifically, it can be obtained through a web spider.

S103:发布装置将转换为目标码率和/或目标格式的视频文件进行发布。S103: The distributing device publishes the video file converted into the target bit rate and/or target format.

视频文件进行发布后,用户可以通过客户端浏览视频点播页面或下载网站中有关的该视频文件的点播页面,点击播放该视频文件的链接,客户端将会把该视频文件的点播地址发送至点播服务器,点播服务器通过该点播地址获取该视频文件在点播服务器中的本地存放地址,以获取相应的视频文件数据传至客户端,客户端则可进行播放。After the video file is published, the user can browse the video-on-demand page through the client or download the video-on-demand page related to the video file in the website, click the link to play the video file, and the client will send the video-on-demand address of the video file to the on-demand The server, the on-demand server obtains the local storage address of the video file in the on-demand server through the on-demand address, so as to obtain the corresponding video file data and transmit it to the client, and the client can play it.

较佳地,所述进行发布可包括:确定所述视频文件的点播地址;根据所述点播地址,修改相应视频点播页面的代码,在所述视频点播页面中将所述点播地址添加到对应的链接地址中。Preferably, the publishing may include: determining the on-demand address of the video file; modifying the code of the corresponding video-on-demand page according to the on-demand address, and adding the on-demand address to the corresponding in the link address.

其中,确定视频文件的点播地址可有多种方法,只要能生成可识别该视频文件的链接地址即可。较佳地,确定视频文件的点播地址可包括:确定所述视频文件的文件标识,根据所述文件标识及发布该视频文件网站的域名,确定所述视频文件的点播地址。Among them, there are many ways to determine the on-demand address of the video file, as long as a link address that can identify the video file can be generated. Preferably, determining the on-demand address of the video file may include: determining the file identifier of the video file, and determining the on-demand address of the video file according to the file identifier and the domain name of the website that publishes the video file.

所述发布装置与所述点播服务器物理上可以是在一个实体中,例如在同一个服务器中。如果所述发布装置与所述点播服务器物理上不是同一实体(例如不是在同一个服务器中),则在发布时,发布装置还需将进行了码率和/或格式转换的视频文件上传至所述点播服务器,则所述进行发布还可包括:将进行了码率和/或格式转换的视频文件上传至点播服务器。The publishing device and the VOD server may be physically in one entity, for example, in the same server. If the distribution device and the on-demand server are not physically the same entity (for example, not in the same server), then when publishing, the distribution device also needs to upload the video file that has undergone code rate and/or format conversion to the server. If the VOD server is used, the publishing may also include: uploading the video file with code rate and/or format conversion to the VOD server.

上传时,需判断上传过程是否完成,则较佳地,所述将进行了码率和/或格式转换的视频文件上传至点播服务器还包括:将视频文件的文件列表发送给所述点播服务器,所述点播服务器根据所述文件列表中需上传的视频文件的大小信息及已经接收的所述视频文件的大小,确定是否成功接收所需上传的视频文件,当没有成功接收时,则点播服务器通知发布装置重新上传所述视频文件。When uploading, it is necessary to judge whether the uploading process is completed, then preferably, uploading the video file that has undergone code rate and/or format conversion to the on-demand server also includes: sending the file list of the video file to the on-demand server, Described on-demand server determines whether to successfully receive the video file to be uploaded according to the size information of the video file to be uploaded in the file list and the size of the received video file, and when not successfully received, the on-demand server notifies The publishing device re-uploads the video file.

所述根据该存放地址获取所述视频文件之后,所述方法还包括:获取所述视频文件的描述信息;将所述视频文件的描述信息上传到所述服务器进行发布。获取所述视频文件的描述信息通常是通过资源抓取程序,例如spider获取。After the video file is acquired according to the storage address, the method further includes: acquiring description information of the video file; uploading the description information of the video file to the server for publishing. Obtaining the description information of the video file is usually obtained through a resource grabbing program, such as a spider.

下面结合说明书附图,对本发明实施例进行详细说明。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

在本发明实施例中视频文件的发布主要包括对视频文件的搜索,对搜索到的视频文件的采集,将采集到的视频文件转换为目标码率和/或目标格式,继而将转换后的视频文件进行发布,并添加该视频文件的描述信息。下面通过具体的实施例说明本发明实施例自动发布视频文件的过程,该自动发布视频文件的过程可以通过一个单独的装置视频文件发布装置执行,该装置可以位于网络侧,也可以位于终端侧,当然也可以将该装置置于其他装置内部来实现自动发布视频文件的功能。In the embodiment of the present invention, the publishing of video files mainly includes searching for video files, collecting video files found by searching, converting the video files collected into target code rate and/or target format, and then converting the converted video files into target code rate and/or target format. file, and add the description information of the video file. The following describes the process of automatically publishing video files in the embodiment of the present invention through specific embodiments. The process of automatically publishing video files can be performed by a separate device video file publishing device. This device can be located on the network side or on the terminal side. Of course, the device can also be placed inside other devices to realize the function of automatically distributing video files.

如图2所示,为本发明实施例提供的视频文件搜索、采集的方法,具体包括以下步骤:As shown in Figure 2, the method for the video file search, acquisition that the embodiment of the present invention provides, specifically comprises the following steps:

S201:根据设置的限制信息,进行视频文件的搜集。S201: Collect video files according to the set restriction information.

在预先设定一个获取视频文件的范围,例如设定一组网页地址中,当该网页中,对应的地址所存放的文件为视频文件。In presetting a range for obtaining video files, for example, setting a group of webpage addresses, when the webpage, the files stored in the corresponding addresses are video files.

其中,设置的限制信息包括但不限于:搜索范围,包括保存的网页域名集,视频文件的名称,视频文件的更新日期,视频文件的片长,视频文件的格式或视频文件的内容中涉及信息(如演员、导演信息)等中的一个或者几个。当然限制信息越多,搜索到的视频文件越精确。Among them, the restricted information set includes but is not limited to: search scope, including the domain name set of saved webpages, the name of the video file, the update date of the video file, the length of the video file, the format of the video file or the information involved in the content of the video file (such as actor, director information), etc. one or several. Of course, the more restricted information, the more accurate the searched video files.

例如设置的限制信息为某网页域名,视频文件的名称,如《集结号》;或设置的视频文件的限制信息为视频文件的搜网范围,即视频文件的搜索网站的域名,和视频文件的格式例如为RMVB、RM、WMV、WAV、AVI或MP4格式中的一个,以及视频文件的演员信息。当然,当包含视频文件的文件为RAR文件时,可以索引出该RAR文件中视频文件的扩展名信息。For example, the restricted information set is the domain name of a certain webpage, the name of the video file, such as "Assembly Number"; The format is, for example, one of RMVB, RM, WMV, WAV, AVI or MP4 formats, and actor information of the video file. Of course, when the file containing the video file is a RAR file, the extension information of the video file in the RAR file can be indexed.

当然该限制信息还包括很多种,可以描述视频文件属性的信息,都可以作为视频文件的限制信息。Of course, the restriction information also includes many kinds of information that can describe the attributes of the video file, and all of them can be used as the restriction information of the video file.

S202:按照设置的限制信息与搜集的视频文件的信息的匹配程度,获得满足搜索条件的视频文件。S202: Obtain a video file satisfying the search condition according to the degree of matching between the set restriction information and the information of the collected video file.

具体包括:获取该地址对应的视频文件的描述信息,将该描述信息与设置的限制信息进行匹配,根据匹配的程度,判断该地址对应的视频文件是否为满足搜索条件的视频文件。It specifically includes: obtaining the description information of the video file corresponding to the address, matching the description information with the set restriction information, and judging whether the video file corresponding to the address is a video file satisfying the search condition according to the degree of matching.

根据设置的限制信息,在互联网上抓取超文本链接标记语言(HypertextMarkup Language,HTML)页面或者其他页面,例如扩展标记语言(ExtensibleMarkup Language,XML)页面等,分析每个页面中的文本信息,提取其中为二进制格式的视频文件的超级链接,将该视频文件作为匹配对象,按照设置的限制信息抓取该视频文件中,与设置的限制信息属性相同的信息,例如设置的限制信息为片名:集结号和导演:某某,当找到匹配对象时,进行信息抓取,当抓取到片名和导演时,提取片名和导演后的信息,根据提取的该信息与设置的限制信息进行匹配,选取其中匹配程度最高的匹配对象为满足搜索条件的视频文件。According to the set limit information, grab Hypertext Markup Language (HypertextMarkup Language, HTML) pages or other pages on the Internet, such as Extensible Markup Language (ExtensibleMarkup Language, XML) pages, etc., analyze the text information in each page, extract Among them is the hyperlink of the video file in binary format, the video file is used as the matching object, and the information in the video file that is the same as the set restriction information attribute is captured according to the set restriction information, for example, the set restriction information is the film name: Assembly number and director: so-and-so, when a matching object is found, information capture is performed, when the title and director are captured, the information after the title and director is extracted, and the extracted information is matched with the set limit information , select the matching object with the highest matching degree as the video file that meets the search criteria.

当抓取对该视频文件描述的信息时包括:当一个html页面包含了所要搜索的视频文件可下载的统一资源定位符(Uniform Resource Locator,URL)时,由于在整个html页面中比较多的内容或者与邻近视频文件的链接地址的位置,会包含对该视频文件的描述信息,根据设置的限制信息,抓取其中属性相同的信息,将设置的信息与抓取的信息的每个关键字进行匹配,当匹配程度满足设置的条件时,确定该URL对应的视频文件为搜索到的满足条件的视频文件。When grabbing the information described by the video file, it includes: when an html page contains a downloadable Uniform Resource Locator (Uniform Resource Locator, URL) for the video file to be searched, because there are more contents in the entire html page Or the location of the link address with the adjacent video file will contain the description information of the video file, according to the set limit information, capture the information with the same attribute, and compare the set information with each keyword of the captured information Matching, when the matching degree satisfies the set condition, determine that the video file corresponding to the URL is the searched video file meeting the condition.

S203:根据搜索到的视频文件,获取该视频文件的描述信息。S203: Obtain description information of the video file according to the searched video file.

在对视频文件进行搜索时,按照设置的描述信息条件,获取搜索到的视频文件的描述信息。例如当确定某视频文件为发布所需视频文件时,根据设置的视频文件的描述信息条件,例如为导演信息、片长信息、演员信息和剧情信息,获取搜索到的视频文件的描述信息,其中该描述信息也可能包含在整个html页面中比较多的内容或者与临近视频文件的链接地址的位置。When searching for a video file, the description information of the searched video file is acquired according to the set description information condition. For example, when it is determined that a video file is a required video file for publishing, according to the description information conditions of the video file set, such as director information, length information, actor information and plot information, obtain the description information of the video file searched, wherein The descriptive information may also include a relatively large amount of content in the entire html page or a location of a link address to an adjacent video file.

S204:根据搜索到的视频文件对应的超级链接,进行视频文件的采集下载。S204: Collect and download the video file according to the hyperlink corresponding to the searched video file.

其中,由于互联网资源丰富,因此满足搜索条件的视频文件可能存在多个链接地址,或者根据获得到的满足搜索条件的视频文件,计算该视频文件的内容签名(Content Identity,CID),获取该CID对应的多个超级链接,因此,可以根据获得的多个超级链接进行采集。所述CID可以是根据预定算法对视频文件进行计算后获得的标识信息,所述预定算法为对不同的视频文件的内容数据进行处理得到不同的处理结果的算法,例如哈希(hash)算法,哈希算法可以采用信息-摘要算法(Message-Digest Algorithm 5,MD5),MD4,安全散列算法(Secure Hash Algorithm,SHA),安全散列算法(Secure Hash Standard,SHS)等算法作为公式。CID的计算方式包括但不限于以下两种方法:第一种,提取文件的部分数据,将提取的部分数据进行hash运算,将运算结果作为该文件的CID码的值。比如,可以提取视频文件的前面32k字节、中间32k字节和尾部32k字节的数据,将提取的数据通过哈希运算,如md5计算出一个值,将该值作为视频文件的CID;第二种,将文件的全部数据进行哈希运算,将运算结果作为该视频文件的CID。Among them, due to the abundance of Internet resources, there may be multiple link addresses for video files that meet the search conditions, or calculate the content signature (Content Identity, CID) of the video file according to the obtained video files that meet the search conditions, and obtain the CID The corresponding multiple hyperlinks, therefore, can be collected according to the obtained multiple hyperlinks. The CID can be the identification information obtained after calculating the video file according to a predetermined algorithm, and the predetermined algorithm is an algorithm for processing content data of different video files to obtain different processing results, such as a hash (hash) algorithm, The hash algorithm can use Message-Digest Algorithm 5 (MD5), MD4, Secure Hash Algorithm (SHA), Secure Hash Standard (SHS) and other algorithms as formulas. CID calculation methods include but are not limited to the following two methods: first, extract part of the data of the file, perform hash operation on the extracted part of the data, and use the operation result as the value of the CID code of the file. For example, the first 32k bytes, the middle 32k bytes, and the tail 32k bytes of data can be extracted from the video file, and the extracted data can be hashed, such as md5, to calculate a value, and use this value as the CID of the video file; The second method is to perform a hash operation on all the data of the file, and use the operation result as the CID of the video file.

在本发明实施例中,可以预先保存一些网页,其中,在该网页中保存有视频文件的存放地址,在具体的获取视频文件的存放地址时,可以在判断保存的网页页面中的链接对应的地址所存放文件为视频文件时,提取该链接对应的地址,将该地址作为视频文件的存放地址。在根据该存放地址获取视频文件时包括:从视频文件文房地址对应的超级链接所在的网页中,获取视频文件对应的描述信息,将该对应的描述信息与预先设置的限制信息进行匹配,当匹配成功时,则根据该视频文件的存放地址获取该视频文件。In the embodiment of the present invention, some webpages can be saved in advance, wherein, the storage address of the video file is stored in the webpage, and when the storage address of the video file is specifically obtained, it is possible to determine the link corresponding to the saved webpage. When the file stored in the address is a video file, the address corresponding to the link is extracted, and the address is used as the storage address of the video file. Obtaining the video file according to the storage address includes: obtaining the description information corresponding to the video file from the webpage where the hyperlink corresponding to the video file station address is located, and matching the corresponding description information with the preset restriction information. When the matching is successful, the video file is obtained according to the storage address of the video file.

本实施例中,可以根据该视频文件是否受用户关注,确定下载过程中下载重试次数与下载时间长短。例如当下载一个更新时间为距今1年的视频文件时,下载失败重试次数和下载时间,可能分别设定为10次和几分钟;而对于一个更新时间距离现在的下载时间只有几天的视频文件,设定其下载失败的次数就会很多,并且下载时间也会较长。In this embodiment, the number of download retries and the length of the downloading time during the downloading process may be determined according to whether the video file is concerned by the user. For example, when downloading a video file whose update time is 1 year ago, the number of download failure retries and the download time may be set to 10 times and a few minutes respectively; and for a video file whose update time is only a few days away from the current download time For video files, the number of download failures will be many, and the download time will be longer.

在本发明实施例下载视频文件的过程中,还可以根据设置的下载视频资源的优先级,在有多个视频资源需要下载时,按照每个视频文件的优先级采取下载策略。In the process of downloading video files in the embodiment of the present invention, according to the set priority of downloading video resources, when there are multiple video resources to be downloaded, a download strategy is adopted according to the priority of each video file.

由于按照限制信息搜集视频文件,根据设置的描述信息,获取匹配成功的视频文件的描述信息,避免了由于该描述信息的琐碎性在人工手动录入时的错误,从而提高了视频文件的发布质量。Because the video files are collected according to the limited information, and the description information of the successfully matched video files is obtained according to the set description information, errors during manual entry due to the triviality of the description information are avoided, thereby improving the release quality of the video files.

采用多元下载的方式几乎不会遇到搜索到的下载URL无法下载的情况,并可以保证资源完整下载,不会影响视频文件发布的后续处理过程,从而提高视频文件自动发布的效率。The multiple download method will hardly encounter the situation that the searched download URL cannot be downloaded, and can ensure that the resources are completely downloaded, and will not affect the subsequent processing of the video file release, thereby improving the efficiency of the automatic release of the video file.

当搜集并采集到视频文件及该视频文件的描述信息后,由于采集到的视频文件的大小、码率、格式以及分辨率不同,需要将采集到的视频文件转换为目标码率和/或目标格式,从而满足一定码率和/或格式的要求。在本发明实施例中根据视频文件的类型,可以设置对应每种类型的视频文件的目标码率、格式、画面质量等参数。After the video file and the description information of the video file are collected and collected, due to the different sizes, bit rates, formats and resolutions of the collected video files, it is necessary to convert the collected video files to the target bit rate and/or target format, so as to meet the requirements of a certain bit rate and/or format. According to the type of the video file in the embodiment of the present invention, parameters such as the target bit rate, format, and picture quality corresponding to each type of video file can be set.

在本发明实施例中按照视频文件的内容类型,例如该视频文件为动作片、武侠片、爱情片、剧情片、动画片、侦探片、纪录片等类型,设置对应不同内容类型的目标码率和/或目标格式等。例如该视频文件为动作片,由于动作片一般打斗场面比较激烈,所以需要比较高的码率,因此该视频文件的转换的目标码率就应该被设置在一个适合动作片的阶层,为从700到1200比特/秒(bps),可以将其目标格式设置为RMVB,当该视频文件为爱情片时,该视频文件的码率将被设置成一个比较低的阶层,例如为400bps,目标格式为MV等。According to the content type of video file in the embodiment of the present invention, for example this video file is action film, martial arts film, romance film, drama film, cartoon, detective film, documentaries etc., set the target code rate and corresponding different content types /or target format etc. For example, if the video file is an action movie, since action movies generally have intense fighting scenes, a relatively high bit rate is required, so the conversion target bit rate of the video file should be set at a level suitable for action movies, from 700 to 1200 bits per second (bps), its target format can be set to RMVB, when the video file is a romance film, the bit rate of the video file will be set to a relatively low level, such as 400bps, the target format is MV et al.

在本发明实施例中根据视频文件的类型将视频文件进行目标分类,针对每个分类设置不同的满足显示要求的码率和/或格式及其他调节参数,可以使转码后的视频文件不跳帧,同时画面质量也符合流媒体影片的要求。In the embodiment of the present invention, the video files are classified according to the type of the video files, and different code rates and/or formats and other adjustment parameters that meet the display requirements are set for each classification, so that the transcoded video files do not skip frame, and the picture quality also meets the requirements of streaming media movies.

同时在视频文件转码的过程中,通过对不同类型的视频文件设置不同的码率,从而使转码的参数符合装置条件,几乎不会因为转码参数设置的不合适而出现转码失败或转码异常的情况。At the same time, in the process of video file transcoding, by setting different code rates for different types of video files, so that the transcoding parameters meet the device conditions, there will be almost no transcoding failure or failure due to inappropriate transcoding parameter settings. Transcoding exceptions.

转码后得到满足一定码率和/或目标格式的视频文件,当视频文件的长度较长时,需要将该视频文件进行切片切割成符合要求的几个片段。在本发明实施例中对视频文件进行切片的方法,具体包括:After transcoding, a video file that satisfies a certain bit rate and/or target format is obtained. When the length of the video file is long, the video file needs to be sliced into several segments that meet the requirements. In the embodiment of the present invention, the method for slicing a video file specifically includes:

首先,按照设置的切割参数,选择第一切割参数。First, select the first cutting parameter according to the set cutting parameters.

然后,判断如果按照第一切割参数切割视频文件时,切割后最后一个片段的长度或大小是否小于设定的阈值,当判断结果为否时,说明切割后每个片段的长度或大小满足切割长度的条件,则采用该第一切割参数切割该视频文件;当判断结果为是时,将该最后一个切割片段的内容并入其前一个切割片段,或重现选择第二切割参数,判断该第二切割参数是否可以用来切割该视频文件。Then, if the video file is cut according to the first cutting parameter, whether the length or size of the last segment after cutting is less than the set threshold, when the judgment result is no, it means that the length or size of each segment after cutting meets the cutting length condition, then use the first cutting parameter to cut the video file; when the judgment result is yes, merge the content of the last cutting segment into the previous cutting segment, or reselect the second cutting parameter, and judge the first 2 Whether the cutting parameters can be used to cut the video file.

由于每个视频文件的大小不同,例如可能为1小时的影片,也可能为一个半小时的影片,或者2个小时、3个小时的影片,当然当视频文件的长度较短或大小较小时,例如20分钟短片,则可以不用切割该视频文件。在本发明实施例中为了向用户提供尽量少的切割片段,根据统计的视频文件的大小或长度信息,设置多个切割参数,当对一个视频文件进行切割时,按照设置的切割参数对该视频文件进行切割。例如一个视频文件为1小时的影片,当选择的切割参数为20时,即每20分钟对该视频文件切割一次,则可将该视频文件切割为5个片段,最后一个片段的长度为20分钟,较设置的片段长度阈值15分钟大,则将切割后的片段保存;当一个视频文件为1个半小时的影片时,当选择切割参数为20时,对该视频文件切割后最后一个片段的长度为10分钟,当设置的片段长度阈值为15分钟时,则选择该切割参数对该视频文件进行切割不满足条件,则重现选择切割参数,例如选择该切割参数为30时,即每30分钟对该视频文件切割一次,则该视频文件被切割为5段,最后一个片段的长度为30分钟,较设置的片段长度阈值15分钟大,则将切割后的片段保存。当然设置的片段长度阈值可以根据用户在观看视频文件时的体验合理设置该长度阈值的大小。Since the size of each video file is different, for example, it may be a 1-hour movie, or a one-and-a-half-hour movie, or a 2-hour or 3-hour movie. Of course, when the video file is shorter or smaller in size, For example, for a 20-minute short film, it is not necessary to cut the video file. In the embodiment of the present invention, in order to provide the user with as few cutting segments as possible, according to the size or length information of the video file, a plurality of cutting parameters are set. When a video file is cut, the video is cut according to the set cutting parameters. The file is cut. For example, if a video file is a 1-hour movie, when the selected cutting parameter is 20, that is, the video file is cut every 20 minutes, the video file can be cut into 5 segments, and the length of the last segment is 20 minutes , which is greater than the set segment length threshold of 15 minutes, the segment after cutting will be saved; when a video file is a movie of 1.5 hours, when the cutting parameter is selected as 20, the last segment of the video file after cutting The length is 10 minutes, when the set segment length threshold is 15 minutes, then select the cutting parameter to cut the video file does not meet the conditions, then reproduce and select the cutting parameter, for example, when the cutting parameter is selected as 30, that is, every 30 If the video file is cut once every minute, the video file is cut into 5 segments, and the length of the last segment is 30 minutes, which is larger than the set segment length threshold of 15 minutes, and the segment after cutting is saved. Of course, the set segment length threshold can be reasonably set according to the user's experience when watching the video file.

在本发明实施例中可以按照切割长度参数的使用频率进行排序,当对一个视频文件进行切割时,首先选择切割长度参数的使用频率最高的。In the embodiment of the present invention, sorting can be performed according to the frequency of use of the cutting length parameters. When cutting a video file, the most frequently used cutting length parameter is selected first.

在本发明实施例视频文件自动发布过程中,自动检测对视频文件进行切片过程中,由于每个视频文件的大小不同,可能导致切片后最后一个片段的长度过小导致切片错误的问题,可以实现根据最后一个片段的长度是否满足条件合理选择切割参数,使切片后每个视频文件的长度平均。In the process of automatically publishing video files in the embodiment of the present invention, in the process of automatically detecting and slicing video files, since the size of each video file is different, it may cause the problem that the length of the last segment after slicing is too small to cause slicing errors, which can be realized According to whether the length of the last segment satisfies the conditions, the cutting parameters are reasonably selected, so that the length of each video file after slicing is averaged.

将视频文件切割为多个片段后,需要将每个片段进行发布,同时还需要将获得的该视频文件的描述信息添加到该视频文件的发布页面中进行发布。如图3所示,为本发明实施例中进行视频文件上传的方法,具体包括以下步骤:After the video file is cut into multiple segments, each segment needs to be published, and at the same time, the obtained description information of the video file needs to be added to the release page of the video file for publishing. As shown in Figure 3, it is the method for carrying out video file upload in the embodiment of the present invention, specifically comprises the following steps:

S301:将此次上传的视频文件的文件列表提供给文件服务器。S301: Provide the file server with the file list of the video files uploaded this time.

其中,该视频文件的文件按列表中记录的内容包括:该视频文件的大小,或文件的长短,文件的名称、文件的上传日期等信息。Wherein, the content recorded in the file list of the video file includes: the size of the video file, or the length of the file, the name of the file, the upload date of the file and other information.

S302:装置根据该视频列表中描述的文件的属性信息,例如文件的大小,或文件的长短,及网络的带宽计算上传该视频文件所需要的时间;文件服务器接收到该列表后采用pull方式,即文件服务器拉取数据,或者该视频文件发布装置采用push方式,即发布装置推送数据,传输该视频文件。S302: The device calculates the time required to upload the video file according to the attribute information of the file described in the video list, such as the size of the file, or the length of the file, and the bandwidth of the network; the file server adopts the pull method after receiving the list, That is, the file server pulls data, or the video file distribution device adopts a push method, that is, the distribution device pushes data to transmit the video file.

S303:上传视频文件的过程中判断是否产生上传中断,如果是,进行S304;否则,进行S305。S303: During the process of uploading the video file, it is determined whether an upload interruption occurs, and if so, proceed to S304; otherwise, proceed to S305.

其中,该上传过程中产生上传中断,可能是因为网络问题引起的,也可能是其他原因引起的。Wherein, the upload interruption during the upload process may be caused by network problems or other reasons.

S304:按照设置的时间间隔将上传失败的视频文件进行断点续传或者重新上传。S304: Resuming or re-uploading video files that failed to be uploaded according to the set time interval.

S305:根据是否在计算的上传该视频文件所需时间内接收到服务器发送的发布成功消息,判断该视频文件是否上传成功。S305: Determine whether the upload of the video file is successful according to whether the release success message sent by the server is received within the calculated time required for uploading the video file.

当服务器根据接收到的视频文件列表中文件的属性信息,判断没有接收到完整的视频文件时,服务器通知发布装置重新进行视频文件的上传。When the server judges that no complete video file has been received according to the attribute information of the files in the received video file list, the server notifies the publishing device to upload the video file again.

在实现的过程中,发布装置也可以在上传视频文件成功时,向服务器发送上传成功的通知信息。During the implementation process, the publishing device may also send notification information of successful upload to the server when uploading the video file is successful.

在本发明实施例上传视频文件的过程中,视频文件的发布装置监测是否由于本地或者远程机器的问题或者网络的问题发生上传中断,当发现上传中断时,将根据中断点续传该视频文件或重新上传该视频文件,避免了文件上传失败或者文件上传中断不在上传的问题。In the process of uploading a video file in the embodiment of the present invention, the publishing device of the video file monitors whether the upload is interrupted due to a problem with a local or remote machine or a problem with the network. Re-upload the video file to avoid the problem that the file upload fails or the file upload is interrupted and not uploaded.

在将视频文件进行上传时,需要确定视频文件在点播服务器中的点播地址,其中确定视频文件在点播服务器中的点播地址时,可以根据该视频文件的相关属性信息,例如该视频文件的名称,演员,片长,码率以及在服务器中的存放地址等信息,进行处理生成该视频文件的标识,在生成该视频文件的标识时,可以将用二进制表示的该视频文件的相关信息连接起来,转换为十六进制的数值,将该十六进制的数值作为该视频文件的文件标识,根据该视频文件的文件标识,及该视频文件需要加入网站的网站域名,确定该视频文件的点播地址。为了便于在点播视频文件的过程中根据该视频文件的点播地址对该点播过程的解释,例如获取该视频文件在服务器中的存放地址,可以在确定该视频文件在点播服务器中的点播地址的过程中采用一定的规则。例如可以规定在该视频文件的点播地址中的文件标识部分,前2位是视频文件的名称,第4和第5位是该视频文件在服务器中的存放地址。比如,当该视频文件所加入网站的网站域名为www.abc.com,生成的该视频文件的十六进制的文件标识为“07D8A23F”,则确定的该视频文件的点播地址为www.abc.com/07D8A23F.html,第4和第5位“8A”则代表该视频文件在服务器中的存放地址。When the video file is uploaded, it is necessary to determine the on-demand address of the video file in the on-demand server, wherein when determining the on-demand address of the video file in the on-demand server, according to the relevant attribute information of the video file, such as the name of the video file, Information such as actors, film length, bit rate and storage address in the server are processed to generate the identification of the video file. When generating the identification of the video file, the relevant information of the video file expressed in binary can be connected. Convert to a hexadecimal value, use the hexadecimal value as the file ID of the video file, and determine the on-demand of the video file according to the file ID of the video file and the domain name of the website where the video file needs to be added address. In order to facilitate the explanation of the on-demand process according to the on-demand address of the video file in the process of ordering video files, such as obtaining the storage address of the video file in the server, the process of determining the on-demand address of the video file in the on-demand server adopt certain rules. For example, it can be stipulated that in the file identification part in the on-demand address of the video file, the first 2 digits are the title of the video file, and the 4th and 5th digits are the storage address of the video file in the server. For example, when the domain name of the website to which the video file is added is www.abc.com, and the generated hexadecimal file identifier of the video file is "07D8A23F", the determined on-demand address of the video file is www.abc .com/07D8A23F.html, the 4th and 5th digits "8A" represent the storage address of the video file in the server.

或者,在确定视频文件在点播服务器中的点播地址时,也可以根据视频文件在服务器中的存放地址确定该视频文件的文件标识,根据该视频文件的文件标识,及发布该视频文件的网站域名,确定该视频文件在点播服务器中的点播地址。Or, when determining the on-demand address of the video file in the on-demand server, the file identification of the video file can also be determined according to the storage address of the video file in the server, according to the file identification of the video file, and the website domain name of the video file issued , to determine the on-demand address of the video file in the on-demand server.

根据确定的视频文件在点播服务器中的点播地址,修改该视频点播页面的代码,在视频点播页面中将该视频文件的点播地址增加到对应的链接处。例如,当计算出了视频文件A的点播地址时,则服务器在保存的视频点播网页代码中,查找用于存放该视频文件A的介绍的视频点播网页的代码,确定该代码对应的视频点播页面,在该视频点播页面中增加该视频文件A的点播地址,以供用户点击播放视频文件A。Modify the code of the video-on-demand page according to the determined on-demand address of the video file in the on-demand server, and add the on-demand address of the video file to the corresponding link in the video on-demand page. For example, when the on-demand address of video file A has been calculated, then the server searches for the code of the video-on-demand webpage used to store the introduction of this video file A in the saved video-on-demand webpage code, and determines the corresponding video-on-demand page of the code , add the video-on-demand address of the video file A on the video-on-demand page, so that the user can click to play the video file A.

如图4所示,本发明实施例提供了一种视频文件的发布装置,包括:As shown in Figure 4, an embodiment of the present invention provides a device for distributing video files, including:

搜索下载模块40,用于获取视频文件的存放地址,并根据该存放地址获取所述视频文件;Thesearch download module 40 is used to obtain the storage address of the video file, and obtains the video file according to the storage address;

转码模块41,用于将所述视频文件转换为目标码率和/或目标格式;Transcoding module 41, for converting the video file into target code rate and/or target format;

发布模块43,用于将进行码率和/或格式转换后的视频文件进行发布。Thedistribution module 43 is configured to distribute the video file after the code rate and/or format conversion.

所述搜索下载模块40包括:Thesearch download module 40 includes:

搜索单元400,用于根据设定的网页地址获取视频文件的存放地址。Thesearch unit 400 is configured to obtain the storage address of the video file according to the set web page address.

搜索单元400包括:Thesearch unit 400 includes:

判断子单元,用于判断所述网页地址对应的网页页面中的链接对应的地址所存放文件是否为视频文件;A judging subunit, configured to judge whether the file stored at the address corresponding to the link in the web page corresponding to the web page address is a video file;

提取子模块,用于当所述网页地址对应的网页页面中的链接对应的地址所存放文件为视频文件时,提取该链接对应的地址作为视频文件的存放地址。The extracting submodule is used to extract the address corresponding to the link as the storage address of the video file when the file stored at the address corresponding to the link in the web page corresponding to the web page address is a video file.

搜索下载模块40包括:Thesearch download module 40 includes:

下载单元401,用于从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件。The downloadingunit 401 is configured to obtain the video file from the webpage where the hyperlink corresponding to the storage address of the video file is located.

所述下载单元401包括:Thedownload unit 401 includes:

第一下载子单元,用于从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件对应的描述信息;The first downloading subunit is used to obtain the description information corresponding to the video file from the webpage where the hyperlink corresponding to the storage address of the video file is located;

匹配子单元,用于将所述对应的描述信息与预先设置的限制信息进行匹配;a matching subunit, configured to match the corresponding description information with preset restriction information;

第二下载子单元,用于当匹配成功时,则根据所述视频文件的存放地址获取所述视频文件。The second downloading subunit is configured to obtain the video file according to the storage address of the video file when the matching is successful.

所述装置还包括:The device also includes:

描述信息发布模块42,用于获取所述视频文件的描述信息;将所述视频文件的描述信息上传到所述服务器进行发布。The descriptiveinformation publishing module 42 is configured to acquire the descriptive information of the video file; upload the descriptive information of the video file to the server for publishing.

所述转码模块41包括:Describedtranscoding module 41 comprises:

存储单元410,用于保存视频文件的类型信息和目标码率和/或目标格式的对应关系;Thestorage unit 410 is used to save the correspondence between the type information of the video file and the target code rate and/or the target format;

转码单元411,用于根据获取的所述视频文件的类型信息,根据保存的视频文件的类型信息和目标码率和/或目标格式的对应关系,确定获取的所述视频文件对应的目标码率和/或目标格式,根据所述对应的目标码率和/或目标格式对所述视频文件转码。Thetranscoding unit 411 is configured to determine the target code corresponding to the acquired video file according to the acquired type information of the video file, and according to the corresponding relationship between the stored video file type information and the target code rate and/or target format rate and/or target format, and transcode the video file according to the corresponding target bit rate and/or target format.

所述装置还包括:The device also includes:

切片模块44,用于当视频文件或进行了码率和/或格式转换的视频文件的播放时长或文件大小超过阈值时,将所述视频文件或进行了码率和/或格式转换的视频文件切割为多个片段视频文件。Theslicing module 44 is used for when the playback duration or the file size of the video file or the video file that has undergone code rate and/or format conversion exceeds a threshold, the video file or the video file that has undergone code rate and/or format conversion Cut video files into multiple segments.

所述切片模块44包括:Theslicing module 44 includes:

判断单元440,用于判断采用选择的切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件时,所产生的最后一个切割片段的长度或大小是否小于设定的阈值;Judgingunit 440, used to judge whether the length or size of the last cut segment generated is less than a set threshold when cutting the video file or the video file with code rate and/or format conversion using the selected cutting parameters;

切割单元441,用于当所述最后一个切割片段的长度或大小不小于设定的阈值时,则采用该切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件;Acutting unit 441, configured to use the cutting parameter to cut the video file or the video file with code rate and/or format conversion when the length or size of the last cut segment is not less than a set threshold;

选择单元442,用于当所述最后一个切割片段的长度或大小小于设定的阈值时,重新选择切割参数,或将该最后一个切割片段的内容并入其前一个切割片段。Theselection unit 442 is configured to reselect cutting parameters when the length or size of the last cut segment is smaller than a set threshold, or merge the content of the last cut segment into its previous cut segment.

所述发布模块43包括:Thepublishing module 43 includes:

地址确定单元430,用于确定所述视频文件在点播服务器中的点播地址;Theaddress determining unit 430 is used to determine the on-demand address of the video file in the on-demand server;

地址发布单元431,用于根据所述点播地址,修改相应视频点播页面的代码,在所述视频点播页面中将所述点播地址添加到对应的链接地址中。Theaddress publishing unit 431 is configured to modify the code of the corresponding video-on-demand page according to the video-on-demand address, and add the video-on-demand address to the corresponding link address in the video-on-demand page.

所述地址确定单元430包括:Theaddress determining unit 430 includes:

标识确定子单元,用于确定所述视频文件的文件标识;an identification determining subunit, configured to determine the file identification of the video file;

地址确定子单元,用于根据所述文件标识及发布所述视频文件网站的域名,确定所述视频文件的点播地址。The address determination subunit is used to determine the on-demand address of the video file according to the file identifier and the domain name of the website that publishes the video file.

其中,所述发布装置及所述服务器在物理上可为一体,也可是分开的,例如分别在一个计算装置(如服务器)中。Wherein, the publishing device and the server can be physically integrated or separated, for example, they are respectively in a computing device (such as a server).

所述发布模块43还包括:Thepublishing module 43 also includes:

上传单元,用于将进行了码率和/或格式转换的视频文件上传至点播服务器。The uploading unit is used for uploading the video file with bit rate and/or format conversion to the VOD server.

所述上传单元包括:The upload unit includes:

确认子单元,用于将需上传的视频文件的文件列表发送给所述点播服务器;A confirmation subunit is used to send a file list of video files to be uploaded to the on-demand server;

接收子单元,用于接收点播服务器下发的重新上传通知。The receiving subunit is used to receive the re-upload notification issued by the on-demand server.

所述发布模块43还用于:Thepublishing module 43 is also used for:

判断是否需要重传所述视频文件,当需要重新上传时,重传该视频文件。It is judged whether the video file needs to be retransmitted, and when reuploading is required, the video file is retransmitted.

视频点播服务提供商可通过所述发布装置采集视频文件,转换为目标码率和/或目标格式并发布,此时,点播服务器中则存储了经码率和/或格式的转换后的视频文件(点播服务器可包括多个物理上相互独立的存储服务器用于存储视频文件),用户则可通过客户端进行视频文件的点播,点播服务器则根据用户的点播请求,返回相应的视频文件数据给用户,用户端则可进行播放。The VOD service provider can collect video files through the publishing device, convert them into target code rate and/or target format and distribute them, and at this time, the converted video files through code rate and/or format are stored in the VOD server (VOD server can include a plurality of physically independent storage servers for storing video files), and the user can request video files through the client, and the VOD server returns corresponding video file data to the user according to the user's VOD request. , and the client can play it.

本发明实施例提供的视频文件的发布方法和装置,发布装置获取到视频文件的存放地址后,根据该存放地址获取视频文件,并将该视频文件转换为目标码率和/或目标格式,将转换后的视频文件进行发布,采用本发明实施例提供的视频文件的自动发布方法,可在视频发布之前将所获取的视频文件转换为目标码率和/或目标格式,也可以有效的提高视频文件的发布效率。In the video file distribution method and device provided by the embodiments of the present invention, after the distribution device obtains the storage address of the video file, it obtains the video file according to the storage address, and converts the video file into a target code rate and/or target format, and The converted video file is released, and the video file obtained can be converted into a target code rate and/or target format before the video is released by adopting the automatic publishing method of the video file provided by the embodiment of the present invention, and the video file can also be effectively improved. Documentation efficiency.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (26)

Translated fromChinese
1、一种视频文件的发布方法,其特征在于,包括:1. A method for publishing a video file, comprising:发布装置获取视频文件的存放地址,并根据该存放地址获取所述视频文件;The publishing device obtains the storage address of the video file, and obtains the video file according to the storage address;发布装置将所述视频文件转换为目标码率和/或目标格式;The distribution device converts the video file into a target code rate and/or a target format;发布装置将转换为目标码率和/或目标格式的视频文件进行发布。The distributing device converts the video files into the target code rate and/or target format for distributing.2、如权利要求1所述的方法,其特征在于,所述获取视频文件的存放地址包括:2. The method according to claim 1, wherein said obtaining the storage address of the video file comprises:根据设定的网页地址获取视频文件的存放地址。Obtain the storage address of the video file according to the set web page address.3、如权利要求2所述的方法,其特征在于,所述根据设定的网页地址获取视频文件的存放地址包括:3. The method according to claim 2, wherein said obtaining the storage address of the video file according to the set webpage address comprises:判断所述网页地址对应的网页页面中的链接对应的地址所存放文件为视频文件时,提取该链接对应的地址作为视频文件的存放地址。When judging that the file stored in the address corresponding to the link in the web page corresponding to the web page address is a video file, extract the address corresponding to the link as the storage address of the video file.4、如权利要求1所述的方法,其特征在于,所述根据该存放地址获取所述视频文件包括:4. The method according to claim 1, wherein said obtaining said video file according to said storage address comprises:从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件对应的描述信息;Obtain the description information corresponding to the video file from the webpage where the hyperlink corresponding to the storage address of the video file is located;将所述对应的描述信息与预先设置的限制信息进行匹配;matching the corresponding description information with preset restriction information;当匹配成功时,则根据所述视频文件的存放地址获取所述视频文件。When the matching is successful, the video file is acquired according to the storage address of the video file.5、如权利要求1所述的方法,其特征在于,所述根据该存放地址获取所述视频文件之后,所述方法还包括:5. The method according to claim 1, characterized in that, after the video file is acquired according to the storage address, the method further comprises:获取所述视频文件的描述信息;Obtain the description information of the video file;将所述视频文件的描述信息上传到所述服务器进行发布。Upload the description information of the video file to the server for publishing.6、如权利要求1所述的方法,其特征在于,所述将视频文件转换为目标码率和/或目标格式包括:6. The method according to claim 1, wherein said converting the video file into a target bit rate and/or a target format comprises:根据获取的所述视频文件的类型信息,按照设置的视频文件的类型信息和目标码率和/或目标格式的对应关系,确定获取的所述视频文件对应的目标码率和/或目标格式,根据所述对应的目标码率和/或目标格式将所述视频文件转换为目标码率和/或目标格式。According to the obtained type information of the video file, according to the corresponding relationship between the set type information of the video file and the target code rate and/or target format, determine the target code rate and/or target format corresponding to the acquired video file, The video file is converted into a target bit rate and/or target format according to the corresponding target bit rate and/or target format.7、如权利要求1所述的方法,其特征在于,将所述视频文件转换为目标码率和/或目标格式之前所述方法进一步包括:7. The method according to claim 1, wherein the method further comprises:当视频文件的播放时长或文件大小超过阈值时,将所述视频文件切割为多个片段视频文件。When the playing duration or file size of the video file exceeds a threshold, the video file is cut into multiple segment video files.8、如权利要求1所述的方法,其特征在于,所述将转换为目标码率和/或目标格式后的视频文件进行发布之前多数方法进一步包括:8. The method according to claim 1, wherein the method further comprises:当转换为目标码率和/或目标格式的视频文件的播放时长或文件大小超过阈值时,将所述转换为目标码率和/或目标格式的视频文件切割为多个片段视频文件。When the playback duration or file size of the video file converted to the target bit rate and/or target format exceeds a threshold, the video file converted to the target bit rate and/or target format is cut into multiple segment video files.9、如权利要求7或8所述的方法,其特征在于,所述切割为多个片段视频文件包括:9. The method according to claim 7 or 8, wherein said cutting into a plurality of clip video files comprises:选择切割参数,判断采用该切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件时,所产生的最后一个切割片段的长度或大小是否小于设定的阈值;Select a cutting parameter, and judge whether the length or size of the last cut segment produced is less than a set threshold when the video file or the video file that has undergone code rate and/or format conversion is cut by using the cutting parameter;当所述最后一个切割片段的长度或大小不小于设定的阈值时,则采用该切割参数切割该视频文件或该进行了码率及/或格式转换的视频文件;When the length or size of the last cut segment is not less than the set threshold, then use the cutting parameter to cut the video file or the video file with code rate and/or format conversion;否则重新选择切割参数,或将该最后一个切割片段的内容并入其前一个切割片段。Otherwise, select the cutting parameters again, or merge the content of the last cutting segment into its previous cutting segment.10、如权利要求1所述的方法,其特征在于,所述将转换为目标码率和/或目标格式的视频文件进行发布包括:10. The method according to claim 1, wherein publishing the video file converted into the target bit rate and/or target format comprises:确定所述视频文件在点播服务器中的点播地址;Determine the on-demand address of the video file in the on-demand server;根据所述点播地址,修改相应视频点播页面的代码,在所述视频点播页面中将所述点播地址添加到对应的链接地址中。According to the on-demand address, modify the code of the corresponding video-on-demand page, and add the on-demand address to the corresponding link address on the video-on-demand page.11、如权利要求10所述的方法,其特征在于,所述确定所述视频文件在点播服务器中的点播地址包括:11. The method according to claim 10, wherein said determining the on-demand address of said video file in the on-demand server comprises:确定所述视频文件的文件标识,根据所述文件标识及发布该视频文件网站的域名,确定所述视频文件的点播地址。Determine the file identifier of the video file, and determine the on-demand address of the video file according to the file identifier and the domain name of the website that publishes the video file.12、如权利要求1或10所述的方法,其特征在于,所述将转换为目标码率和/或目标格式的视频文件进行发布还包括:12. The method according to claim 1 or 10, wherein publishing the video file converted into the target bit rate and/or target format further comprises:将进行了码率和/或格式转换的视频文件上传至点播服务器。Upload the video file with code rate and/or format conversion to the VOD server.13、如权利要求12所述的方法,其特征在于,所述将进行了码率和/或格式转换的视频文件上传至点播服务器还包括:13. The method according to claim 12, wherein the uploading the video file having undergone code rate and/or format conversion to the VOD server further comprises:将需上传的视频文件的文件列表发送给所述点播服务器,所述点播服务器根据所述文件列表中需上传的视频文件的大小信息及已经接收的所述视频文件的大小,确定是否成功接收所需上传的视频文件,当没有成功接收时,则点播服务器通知发布装置重新上传所述视频文件。Send the file list of the video file to be uploaded to the on-demand server, and the on-demand server determines whether to successfully receive the video file according to the size information of the video file to be uploaded in the file list and the size of the received video file. When the video file to be uploaded is not received successfully, the on-demand server notifies the distribution device to re-upload the video file.14、一种视频文件的发布装置,其特征在于,包括:14. A device for distributing video files, comprising:搜索下载模块,用于获取视频文件的存放地址,并根据该存放地址获取所述视频文件;A search and download module is used to obtain the storage address of the video file, and obtain the video file according to the storage address;转码模块,用于将所述视频文件转换为目标码率和/或目标格式;A transcoding module, configured to convert the video file into a target code rate and/or a target format;发布模块,用于将进行码率和/或格式转换后的视频文件进行发布。The publishing module is used for publishing the video files after bit rate and/or format conversion.15、如权利要求14所述的装置,其特征在于,所述搜索下载模块包括:15. The device according to claim 14, wherein the search and download module comprises:搜索单元,用于根据设定的网页地址获取视频文件的存放地址。The search unit is used to obtain the storage address of the video file according to the set web page address.16、如权利要求15所述的装置,其特征在于,所述搜索单元包括:16. The device according to claim 15, wherein the search unit comprises:判断子单元,用于判断所述网页地址对应的网页页面中的链接对应的地址所存放文件是否为视频文件;A judging subunit, configured to judge whether the file stored at the address corresponding to the link in the web page corresponding to the web page address is a video file;提取子模块,用于当所述网页地址对应的网页页面中的链接对应的地址所存放文件为视频文件时,提取该链接对应的地址作为视频文件的存放地址。The extracting submodule is used to extract the address corresponding to the link as the storage address of the video file when the file stored at the address corresponding to the link in the web page corresponding to the web page address is a video file.17、如权利要求14所述的装置,其特征在于,所述搜索下载模块包括:17. The device according to claim 14, wherein the search and download module comprises:下载单元,用于从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件;A downloading unit, configured to obtain the video file from the webpage where the hyperlink corresponding to the storage address of the video file is located;所述下载单元包括:The download unit includes:第一下载子单元,用于从所述视频文件的存放地址对应的超级链接所在的网页中,获取所述视频文件对应的描述信息;The first downloading subunit is used to obtain the description information corresponding to the video file from the webpage where the hyperlink corresponding to the storage address of the video file is located;匹配子单元,用于将所述对应的描述信息与预先设置的限制信息进行匹配;a matching subunit, configured to match the corresponding description information with preset restriction information;第二下载子单元,用于当匹配成功时,则根据所述视频文件的存放地址获取所述视频文件。The second downloading subunit is configured to obtain the video file according to the storage address of the video file when the matching is successful.18、如权利要求14所述的装置,其特征在于,所述装置还包括:18. The apparatus of claim 14, further comprising:描述信息发布模块,用于获取所述视频文件的描述信息;将所述视频文件的描述信息上传到所述服务器进行发布。The descriptive information publishing module is used to obtain the descriptive information of the video file; upload the descriptive information of the video file to the server for publishing.19、如权利要求14所述的装置,其特征在于,所述转码模块包括:19. The device according to claim 14, wherein the transcoding module comprises:存储单元,用于保存视频文件的类型信息和目标码率和/或目标格式的对应关系;The storage unit is used to store the type information of the video file and the corresponding relationship between the target bit rate and/or the target format;转码单元,用于根据获取的所述视频文件的类型信息,根据保存的视频文件的类型信息和目标码率和/或目标格式的对应关系,确定获取的所述视频文件对应的目标码率和/或目标格式,根据所述对应的目标码率和/或目标格式对所述视频文件转码。A transcoding unit, configured to determine the acquired target bit rate corresponding to the acquired video file according to the acquired type information of the video file and according to the correspondence between the stored video file type information and the target bit rate and/or target format and/or target format, transcoding the video file according to the corresponding target bit rate and/or target format.20、如权利要求14所述的装置,其特征在于,所述装置还包括:20. The apparatus of claim 14, further comprising:切片模块,用于当视频文件或进行了码率和/或格式转换的视频文件的播放时长或文件大小超过阈值时,将所述视频文件或进行了码率和/或格式转换的视频文件切割为多个片段视频文件。The slicing module is used for cutting the video file or the video file that has undergone the bit rate and/or format conversion when the playback duration or the file size of the video file or the video file that has undergone the bit rate and/or format conversion exceeds a threshold for multiple clip video files.21、如权利要求20所述的装置,其特征在于,所述切片模块包括:21. The device according to claim 20, wherein the slicing module comprises:判断单元,用于判断采用选择的切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件时,所产生的最后一个切割片段的长度或大小是否小于设定的阈值;A judging unit, configured to judge whether the length or size of the last cut segment generated is less than a set threshold when cutting the video file or the video file with bit rate and/or format conversion using the selected cutting parameters;切割单元,用于当所述最后一个切割片段的长度或大小不小于设定的阈值时,则采用该切割参数切割该视频文件或该进行了码率和/或格式转换的视频文件;A cutting unit, configured to use the cutting parameter to cut the video file or the video file with code rate and/or format conversion when the length or size of the last cut segment is not less than a set threshold;选择单元,用于当所述最后一个切割片段的长度或大小小于设定的阈值时,重新选择切割参数,或将该最后一个切割片段的内容并入其前一个切割片段。The selection unit is configured to reselect cutting parameters when the length or size of the last cut segment is smaller than a set threshold, or merge the content of the last cut segment into its previous cut segment.22、如权利要求14所述的装置,其特征在于,所述发布模块包括:22. The device according to claim 14, wherein the issuing module comprises:地址确定单元,用于确定所述视频文件在点播服务器中的点播地址;The address determination unit is used to determine the on-demand address of the video file in the on-demand server;地址发布单元,用于根据所述点播地址,修改相应视频点播页面的代码,在所述视频点播页面中将所述点播地址添加到对应的链接地址中。The address issuing unit is configured to modify the code of the corresponding video-on-demand page according to the on-demand address, and add the on-demand address to the corresponding link address on the video-on-demand page.23、如权利要求22所述的装置,其特征在于,所述地址确定单元包括:23. The device according to claim 22, wherein the address determining unit comprises:标识确定子单元,用于确定所述视频文件的文件标识;an identification determining subunit, configured to determine the file identification of the video file;地址确定子单元,用于根据所述文件标识及发布所述视频文件网站的域名,确定所述视频文件的点播地址。The address determination subunit is used to determine the on-demand address of the video file according to the file identifier and the domain name of the website that publishes the video file.24、如权利要求14所述的装置,其特征在于,所述发布模块还包括:24. The device according to claim 14, wherein the publishing module further comprises:上传单元,用于将进行了码率和/或格式转换的视频文件上传至点播服务器。The uploading unit is used for uploading the video file with bit rate and/or format conversion to the VOD server.25、如权利要求24所述的装置,其特征在于,所述上传单元包括:25. The device according to claim 24, wherein the uploading unit comprises:确认子单元,用于将需上传的视频文件的文件列表发送给所述点播服务器;A confirmation subunit is used to send a file list of video files to be uploaded to the on-demand server;接收子单元,用于接收点播服务器下发的重新上传通知。The receiving subunit is used to receive the re-upload notification issued by the on-demand server.26、如权利要求14所述的装置,其特征在于,所述发布模块还用于:26. The device according to claim 14, wherein the issuing module is further used for:判断是否需要重传所述视频文件,当需要重新上传时,重传该视频文件。It is judged whether the video file needs to be retransmitted, and when reuploading is required, the video file is retransmitted.
CNA2008101789300A2008-12-052008-12-05Video file publishing method and devicePendingCN101420452A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CNA2008101789300ACN101420452A (en)2008-12-052008-12-05Video file publishing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CNA2008101789300ACN101420452A (en)2008-12-052008-12-05Video file publishing method and device

Publications (1)

Publication NumberPublication Date
CN101420452Atrue CN101420452A (en)2009-04-29

Family

ID=40631054

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CNA2008101789300APendingCN101420452A (en)2008-12-052008-12-05Video file publishing method and device

Country Status (1)

CountryLink
CN (1)CN101420452A (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101901619A (en)*2010-07-162010-12-01复旦大学 A Video Player with Enhanced User Experience Based on Video Content Miniature
CN101964894A (en)*2010-08-242011-02-02中国科学院深圳先进技术研究院Method and system for parallel trans-coding of video slicing
CN102088620A (en)*2010-12-012011-06-08中兴通讯股份有限公司Method for downloading media file in content distribution network and client
CN102291412A (en)*2011-08-292011-12-21中兴通讯股份有限公司Multimedia service implementation method, system and device based on HTTP (hyper text transfer protocol)
CN102307289A (en)*2010-09-172012-01-04苏州阔地网络科技有限公司Method for recording video
CN102547227A (en)*2010-12-082012-07-04中国电信股份有限公司Transmission processing method and system for video monitoring file
CN102761627A (en)*2012-06-272012-10-31北京奇虎科技有限公司Cloud website recommending method and system based on terminal access statistics as well as related equipment
CN102780728A (en)*2011-05-132012-11-14腾讯科技(深圳)有限公司Media file transcoding and downloading method and client
WO2013037241A1 (en)*2011-09-162013-03-21腾讯科技(深圳)有限公司Mobile multimedia real-time transcoding playing system, device, storage medium and method
CN103281394A (en)*2013-06-072013-09-04北京奇虎科技有限公司File acquiring method, node servers and system
CN103297452A (en)*2012-02-242013-09-11北京对角巷科技发展有限公司Method and system for publishing and broadcasting streaming media on Internet in live mode
CN104518955A (en)*2013-09-272015-04-15广州市千钧网络科技有限公司Video uploading method and system
CN104602138A (en)*2015-01-302015-05-06青岛海信电器股份有限公司 A method and device for enabling streaming media server to support HLS protocol
CN105898448A (en)*2015-12-142016-08-24乐视云计算有限公司Submission method and device of transcoding attribute information
CN105912551A (en)*2015-12-232016-08-31乐视云计算有限公司System and method for file management
CN106101744A (en)*2016-06-232016-11-09深圳创维-Rgb电子有限公司A kind of method and device of online broadcasting TV
CN106126622A (en)*2016-06-222016-11-16武汉斗鱼网络科技有限公司A kind of video author's management method based on video website and system
CN107197363A (en)*2017-07-042017-09-22武汉斗鱼网络科技有限公司A kind of video broadcasting method and device
CN107277031A (en)*2017-06-302017-10-20广东欧珀移动通信有限公司 A network video download method, device, storage medium and terminal
WO2018032131A1 (en)*2016-08-142018-02-22何兰Method for forwarding video information from computer to mobile phone, and forwarding system
CN108235106A (en)*2018-01-312018-06-29聚好看科技股份有限公司 A method for controlling a video occlusion map on a smart TV
CN108924584A (en)*2018-05-302018-11-30互影科技(北京)有限公司The packaging method and device of interactive video
CN109804418A (en)*2016-09-292019-05-24株式会社电装Vehicle operation management system
CN110020378A (en)*2018-01-022019-07-16北京小度互娱科技有限公司The content delivery method and device of video website
CN110572693A (en)*2019-08-232019-12-13贵州省广播电视信息网络股份有限公司Media asset transcoding method based on artificial intelligence
CN111049887A (en)*2019-11-292020-04-21天脉聚源(杭州)传媒科技有限公司Download control method, system and storage medium based on dynamic search strategy
CN111107386A (en)*2019-12-272020-05-05北京达佳互联信息技术有限公司Live video playback method and device, electronic equipment, system and storage medium
CN111294623A (en)*2019-08-292020-06-16北京达佳互联信息技术有限公司Video playing method and device, electronic equipment and storage medium
CN111327939A (en)*2020-02-252020-06-23华南理工大学 A Distributed Teaching Video Processing System
CN112040338A (en)*2020-07-312020-12-04中国建设银行股份有限公司Video playing cheating detection method and device and electronic equipment
CN115695942A (en)*2022-09-272023-02-03苏州科达科技股份有限公司 Video distribution method, device, electronic device and storage medium
CN115734008A (en)*2022-10-192023-03-03北京智象信息技术有限公司Method, system and medium for quickly integrating content provider video resources
CN115695942B (en)*2022-09-272025-10-17苏州科达科技股份有限公司Video distribution method, video distribution device, electronic equipment and storage medium

Cited By (50)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101901619B (en)*2010-07-162012-10-17复旦大学 A Video Player with Enhanced User Experience Based on Video Content Miniature
CN101901619A (en)*2010-07-162010-12-01复旦大学 A Video Player with Enhanced User Experience Based on Video Content Miniature
CN101964894A (en)*2010-08-242011-02-02中国科学院深圳先进技术研究院Method and system for parallel trans-coding of video slicing
CN101964894B (en)*2010-08-242012-11-14中国科学院深圳先进技术研究院Method and system for parallel trans-coding of video slicing
CN102307289A (en)*2010-09-172012-01-04苏州阔地网络科技有限公司Method for recording video
CN102088620B (en)*2010-12-012014-06-18中兴通讯股份有限公司南京分公司Method for downloading media file in content distribution network and client
CN102088620A (en)*2010-12-012011-06-08中兴通讯股份有限公司Method for downloading media file in content distribution network and client
CN102547227A (en)*2010-12-082012-07-04中国电信股份有限公司Transmission processing method and system for video monitoring file
CN102780728A (en)*2011-05-132012-11-14腾讯科技(深圳)有限公司Media file transcoding and downloading method and client
CN102291412A (en)*2011-08-292011-12-21中兴通讯股份有限公司Multimedia service implementation method, system and device based on HTTP (hyper text transfer protocol)
CN102291412B (en)*2011-08-292017-06-30南京中兴新软件有限责任公司A kind of multimedia service realization method based on HTTP, system and device
WO2013037241A1 (en)*2011-09-162013-03-21腾讯科技(深圳)有限公司Mobile multimedia real-time transcoding playing system, device, storage medium and method
US9288250B2 (en)2011-09-162016-03-15Tencent Technology (Shenzhen) Company LimitedMobile multimedia real-time transcoding system, apparatus, storage medium and method
CN103002274B (en)*2011-09-162016-05-18腾讯科技(深圳)有限公司A kind of mobile multimedia real-time transcoding Play System and method of downloading based on off-line
CN103297452A (en)*2012-02-242013-09-11北京对角巷科技发展有限公司Method and system for publishing and broadcasting streaming media on Internet in live mode
CN103297452B (en)*2012-02-242016-08-24北京对角巷科技发展有限公司A kind of in the Internet issue and the method and system of live broadcast stream media
CN102761627B (en)*2012-06-272015-12-09北京奇虎科技有限公司Based on cloud network address recommend method and system and the relevant device of terminal access statistics
US10216848B2 (en)2012-06-272019-02-26Beijing Qihoo Technology Company LimitedMethod and system for recommending cloud websites based on terminal access statistics
CN102761627A (en)*2012-06-272012-10-31北京奇虎科技有限公司Cloud website recommending method and system based on terminal access statistics as well as related equipment
CN103281394A (en)*2013-06-072013-09-04北京奇虎科技有限公司File acquiring method, node servers and system
CN104518955A (en)*2013-09-272015-04-15广州市千钧网络科技有限公司Video uploading method and system
CN104602138A (en)*2015-01-302015-05-06青岛海信电器股份有限公司 A method and device for enabling streaming media server to support HLS protocol
CN104602138B (en)*2015-01-302018-05-08青岛海信传媒网络技术有限公司 A method and device for enabling streaming media server to support HLS protocol
WO2017101487A1 (en)*2015-12-142017-06-22乐视控股(北京)有限公司Method and device for submitting transcoding attribute information
CN105898448A (en)*2015-12-142016-08-24乐视云计算有限公司Submission method and device of transcoding attribute information
CN105912551A (en)*2015-12-232016-08-31乐视云计算有限公司System and method for file management
CN106126622A (en)*2016-06-222016-11-16武汉斗鱼网络科技有限公司A kind of video author's management method based on video website and system
CN106101744B (en)*2016-06-232020-07-10深圳创维-Rgb电子有限公司 A method and device for playing TV online
US10965969B2 (en)2016-06-232021-03-30Shenzhen Skyworth-Rgb Electronic Co., Ltd.Method and apparatus for playing online television program
WO2017219575A1 (en)*2016-06-232017-12-28深圳创维-Rgb电子有限公司Online television playing method and apparatus
CN106101744A (en)*2016-06-232016-11-09深圳创维-Rgb电子有限公司A kind of method and device of online broadcasting TV
WO2018032131A1 (en)*2016-08-142018-02-22何兰Method for forwarding video information from computer to mobile phone, and forwarding system
CN109804418A (en)*2016-09-292019-05-24株式会社电装Vehicle operation management system
CN107277031A (en)*2017-06-302017-10-20广东欧珀移动通信有限公司 A network video download method, device, storage medium and terminal
CN107197363B (en)*2017-07-042020-07-10武汉斗鱼网络科技有限公司Video playing method and device
CN107197363A (en)*2017-07-042017-09-22武汉斗鱼网络科技有限公司A kind of video broadcasting method and device
CN110020378A (en)*2018-01-022019-07-16北京小度互娱科技有限公司The content delivery method and device of video website
CN108235106B (en)*2018-01-312020-10-30聚好看科技股份有限公司 Method for controlling video occlusion map on smart TV and smart TV
CN108235106A (en)*2018-01-312018-06-29聚好看科技股份有限公司 A method for controlling a video occlusion map on a smart TV
CN108924584A (en)*2018-05-302018-11-30互影科技(北京)有限公司The packaging method and device of interactive video
CN110572693A (en)*2019-08-232019-12-13贵州省广播电视信息网络股份有限公司Media asset transcoding method based on artificial intelligence
CN111294623A (en)*2019-08-292020-06-16北京达佳互联信息技术有限公司Video playing method and device, electronic equipment and storage medium
CN111049887A (en)*2019-11-292020-04-21天脉聚源(杭州)传媒科技有限公司Download control method, system and storage medium based on dynamic search strategy
CN111107386A (en)*2019-12-272020-05-05北京达佳互联信息技术有限公司Live video playback method and device, electronic equipment, system and storage medium
CN111327939A (en)*2020-02-252020-06-23华南理工大学 A Distributed Teaching Video Processing System
CN112040338A (en)*2020-07-312020-12-04中国建设银行股份有限公司Video playing cheating detection method and device and electronic equipment
CN115695942A (en)*2022-09-272023-02-03苏州科达科技股份有限公司 Video distribution method, device, electronic device and storage medium
CN115695942B (en)*2022-09-272025-10-17苏州科达科技股份有限公司Video distribution method, video distribution device, electronic equipment and storage medium
CN115734008A (en)*2022-10-192023-03-03北京智象信息技术有限公司Method, system and medium for quickly integrating content provider video resources
CN115734008B (en)*2022-10-192024-06-04北京智象信息技术有限公司Method, system and medium for rapidly integrating video resources of content provider

Similar Documents

PublicationPublication DateTitle
CN101420452A (en)Video file publishing method and device
US20250301032A1 (en)Hypermedia Apparatus and Method
US10911789B2 (en)Automatic failover for live video streaming
CN103379362B (en)VOD method and system
US10264093B2 (en)Systems and methods for partial video caching
US7921221B2 (en)Method and apparatus for obtaining digital objects in a communication network
US20160080470A1 (en)Server-side playlist stitching
US20080294647A1 (en)Methods and apparatus to monitor content distributed by the internet
US9491225B2 (en)Offline download method and system
US20220337655A1 (en)Multimedia file upload
CN103024440B (en)Video quality evaluation and fault diagnosis method aiming at HAS (HTTP Adaptive Streaming)
JP2010503915A (en) Peer-to-peer media distribution system and method
WO2013170835A2 (en)System and method for distributing live broadcast content
US9356985B2 (en)Streaming video to cellular phones
CN107820115A (en)Realize the method, apparatus and client and storage medium of video information preview
KR101743228B1 (en)Streaming apparatus and method thereof, streaming service system using the streaming apparatus and computer readable recording medium
CN107920072B (en)Multimedia sharing method and system based on data characteristics
CN105592369B (en)A kind of video frequency abstract processing method and processing device
US8392452B2 (en)Method and apparatus for callback supplementation of media program metadata
CN113242437A (en)RTSP (real time streaming protocol) video plug-in-free playing method, system, device and storage medium
WO2023061060A1 (en)Audio and video code stream scheduling method, system, medium and electronic apparatus
KR101397183B1 (en)Method and apparatus for managing playlist file in streaming service
WO2015009828A1 (en)Method and system for detecting live over the top streams

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20090429


[8]ページ先頭

©2009-2025 Movatter.jp