WO2017032249A1 - Video file display method and system - Google Patents

Video file display method and system Download PDF

Info

Publication number
WO2017032249A1
WO2017032249A1 PCT/CN2016/095643 CN2016095643W WO2017032249A1 WO 2017032249 A1 WO2017032249 A1 WO 2017032249A1 CN 2016095643 W CN2016095643 W CN 2016095643W WO 2017032249 A1 WO2017032249 A1 WO 2017032249A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
video file
name
directory
file
Prior art date
Application number
PCT/CN2016/095643
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 腾讯科技(深圳)有限公司
Publication of WO2017032249A1 publication Critical patent/WO2017032249A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs

Definitions

  • the present application provides a video file display method, including: obtaining a file directory in which a video file exists; scanning the video file directory to scan all video files in the video file directory; The file name of the video file is compared with a string; whether the same string is present and the length of the same string is greater than or equal to the preset threshold; when the same string exists and the length of the same string is greater than or equal to the preset threshold, The same character string is extracted as a video file presentation name, and a video file having the same character string is mapped under the presentation name.
  • FIG. 2 is a flow chart showing a video file display method according to another embodiment of the present application.
  • FIG. 1 illustrates a video file presentation method according to an embodiment of the present application, which may include the following steps:
  • S12 Scan the video file directory to scan all video files in the video file directory. For example, a video file can be judged based on the file suffix name.
  • step S26 Determine whether the length of the same string is greater than or equal to the preset threshold, when the same string length is greater than or equal to the preset threshold, proceeds to step S27, otherwise proceeds to step S28;
  • the video file display method in this embodiment adds step S22 to determine whether the video file directory needs to be filtered, and performs normal scanning process when filtering is not required, which is the same as in the previous embodiment.
  • the file directory is directly skipped to scan the next file directory, thereby improving the scanning speed. This is because individual clients encrypt the downloaded video, or do not use a standard video container to save the video content, causing the downloaded video files to be played by other players, so these video files can be filtered out.
  • Video file suffixes include standard and private. Common standard video suffixes include .AVI, .WMA, .RMVB, .RM, .FLV, .MP4, .MID, .3GP, etc. Some video clients can also define their own. Private video suffixes such as .bdv, .storm, .vdat, .v, etc.
  • An additional display unit 36 configured to set a display name by using another display method when the same string does not exist or the length of the same string is less than a preset threshold
  • a plurality of small video files divided into large video files in a part of the video file directory are extracted, and the same character string in the file names of the plurality of small video files is extracted, and the same character string is used as a video file display name. , so that multiple video files with the same string can be mapped to a display name to provide a better experience for users.
  • the first display unit is configured to search for a video configuration file in the video file directory. If a video configuration file exists, the video configuration file may be parsed according to the video configuration file parsing rule of the client corresponding to the file directory to extract the video file. Name and display it as a video file name;
  • the second display unit is configured to determine a directory name of the video file directory or the video file Whether the file name of the video file in the directory contains the movie name, and when the movie name is included, the movie name can be extracted and displayed as a video file name;
  • the fourth display unit is used to use the video file name as the display name.
  • the display units when one of the display units is not applicable, you can try to use other display units. Only when the first, second, and third display units are not applicable, use the fourth display unit, that is, directly use the video file name. As the name of the show.
  • the above display units are also not limited to use when the character string comparison unit 33, the determination unit 34, and the extraction mapping unit 35 are not applicable, and the above display unit can be used together with the character string comparison unit 33, the determination unit 34, and the extraction mapping unit 35.
  • all of the above display units can also be started synchronously or sequentially, and the obtained display names are presented to the user for selection, and the user can select a display name that is more in line with his own viewing habits. .
  • the extracting mapping unit 46 extracts the same character string as a video file display name when the same character string exists and the same character string length is greater than or equal to the preset threshold value, and maps the video file having the same character string to the display name;
  • the video file display method of the embodiment increases the filtering unit 42 to determine whether the video file directory needs to be filtered, and when the filtering is not required, the scanning unit 43 is started to perform a normal scanning process, and when filtering is required, When the file directory is directly skipped to scan the next file directory, the scanning speed can be improved.
  • the video file suffix name can be used to determine whether the video file needs to be filtered.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a video file display method and system, and a nonvolatile computer storage medium. The method comprises: obtaining a file category having video files; scanning the video file category, to obtain all video files in the video file category through scanning; performing character string comparison on file names of the video files obtained through scanning; determining whether same character strings exist and the lengths of the same character strings are greater than or equal to a preset threshold; and when the same character strings exist and the lengths of the same character strings are greater than or equal to the preset threshold, extracting the same character strings as a video file display name, and mapping video files having the same character strings to the display name.

Description

视频文件展示方法和系统Video file display method and system
本申请要求于2015年8月26日提交中国专利局、申请号为201510532723.0、发明名称为“视频文件展示方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510532723.0, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及电子技术领域,具体涉及一种视频文件展示方法和系统。The present application relates to the field of electronic technologies, and in particular, to a video file display method and system.
发明背景Background of the invention
随着网络环境的不断升级、移动设备性能的持续提高,越来越多的用户选择在手机上观看视频。手机已经成为大家每天必不可少的电子设备,根据2014年爱立信发布的电视消费趋势年度报告显示,74%的受访者至少每周使用移动设备观看视频。With the continuous upgrading of the network environment and the continuous improvement of the performance of mobile devices, more and more users choose to watch videos on mobile phones. Mobile phones have become an essential electronic device for everyone every day. According to the annual report on TV consumption trends published by Ericsson in 2014, 74% of respondents watch videos on mobile devices at least weekly.
为了争夺视频用户,各大视频网站都争相推出了自己的视频客户端。而这些客户端的视频内容不同,如果用户希望观看不同的视频内容,就需要安装多种视频客户端,通常这些视频客户端下载的视频文件存放的目录完全不同,无形中就给用户查找管理这些视频文件增加了麻烦。有些视频客户端会将大视频文件切分成很多个小视频文件,若将多个小视频文件全部展示给用户会给用户一种很杂乱的感觉,用户体验差。In order to compete for video users, major video sites are rushing to launch their own video client. The video content of these clients is different. If users want to watch different video content, they need to install a variety of video clients. Usually, the video files downloaded by these video clients are stored in different directories, and the user is invisible to manage and manage these videos. The file adds trouble. Some video clients will divide large video files into many small video files. If all the small video files are displayed to the user, the user will feel a messy feeling and the user experience is poor.
发明内容Summary of the invention
本申请所要解决的技术问题是现有的视频展示方式展示杂乱,用户体验差的问题。The technical problem to be solved by the present application is that the existing video display mode shows clutter and the user experience is poor.
为此目的,本申请提出了一种视频文件展示方法,包括:获取存在视频文件的文件目录;对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;对扫描出的视频文件的文件名进行字符串比对;判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;当存在相同字符串且相同字符串长度大于或等于预设阈值时, 抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。To this end, the present application provides a video file display method, including: obtaining a file directory in which a video file exists; scanning the video file directory to scan all video files in the video file directory; The file name of the video file is compared with a string; whether the same string is present and the length of the same string is greater than or equal to the preset threshold; when the same string exists and the length of the same string is greater than or equal to the preset threshold, The same character string is extracted as a video file presentation name, and a video file having the same character string is mapped under the presentation name.
本申请还提出了一种视频文件展示系统,所述系统至少包括存储器和处理器,其中所述存储器存储目录获取单元,扫描单元,字符串比对单元,判断单元,抽取映射单元,当被所述处理器执行时,所述目录获取单元用于获取存在视频文件的文件目录;所述扫描单元用于对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;所述字符串比对单元用于对扫描出的视频文件的文件名进行字符串比对;所述判断单元用于判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;所述抽取映射单元用于当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。The present application also proposes a video file presentation system, the system comprising at least a memory and a processor, wherein the memory stores a directory acquisition unit, a scanning unit, a string comparison unit, a determination unit, an extraction mapping unit, and a When the processor is executed, the directory obtaining unit is configured to acquire a file directory in which a video file exists; the scanning unit is configured to scan the video file directory to scan all video files in the video file directory; The string matching unit is configured to perform string matching on the file name of the scanned video file; the determining unit is configured to determine whether the same character string exists and whether the same string length is greater than or equal to a preset threshold; The extracting mapping unit is configured to extract the same character string as a video file display name when the same character string exists and the same character string length is greater than or equal to a preset threshold value, and map the video file having the same character string to the Under the name of the presentation.
本申请还提出了一种非易失性计算机存储介质,其中存储有计算机程序,该计算机程序用于执行以下步骤:获取存在视频文件的文件目录;对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;对扫描出的视频文件的文件名进行字符串比对;判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。The present application also proposes a non-volatile computer storage medium, wherein a computer program is stored, the computer program is configured to: obtain a file directory in which a video file exists; scan the video file directory to scan out All the video files in the video file directory; performing string comparison on the file names of the scanned video files; determining whether the same character string exists and whether the same string length is greater than or equal to a preset threshold; when the same string exists And when the same string length is greater than or equal to the preset threshold, extracting the same string as a video file display name, and mapping the video file having the same string to the display name.
附图简要说明BRIEF DESCRIPTION OF THE DRAWINGS
图1示出了根据本申请实施例的视频文件展示方法的流程图;FIG. 1 shows a flow chart of a video file presentation method according to an embodiment of the present application;
图2示出了根据本申请另一实施例的视频文件展示方法的流程图; 2 is a flow chart showing a video file display method according to another embodiment of the present application;
图3示出了根据本申请实施例的视频文件展示系统的示意图;FIG. 3 shows a schematic diagram of a video file presentation system in accordance with an embodiment of the present application; FIG.
图4示出了根据本申请另一实施例的视频文件展示系统的示意图;FIG. 4 is a schematic diagram of a video file presentation system according to another embodiment of the present application; FIG.
图5示出了根据本申请另一实施例的视频文件展示系统的硬件架构组成示意图;FIG. 5 is a schematic diagram showing the hardware architecture of a video file presentation system according to another embodiment of the present application; FIG.
图6示出了根据本申请另一实施例的视频文件展示系统的硬件架构组成示意图。FIG. 6 is a schematic diagram showing the hardware architecture of a video file presentation system according to another embodiment of the present application.
实施方式Implementation
下面将结合附图对本申请的实施例进行详细描述。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图1示出了根据本申请实施例的视频文件展示方法,该方法可以包括如下步骤:FIG. 1 illustrates a video file presentation method according to an embodiment of the present application, which may include the following steps:
S11.获取存在视频文件的文件目录。可以通过用户终端搜索到本地所安装的全部视频客户端,并根据各个视频客户端的相关配置文件,找到每个视频客户端所对应的存放视频文件的目录。当然,也可以由用户自行在用户终端中设置存放视频文件的文件目录,从而用户终端可以根据用户的设置来获取存放视频文件的文件目录。S11. Obtain a file directory in which a video file exists. You can search all the video clients installed locally through the user terminal, and find the directory where the video files are stored for each video client according to the related configuration files of each video client. Of course, the user can also set a file directory for storing the video file in the user terminal, so that the user terminal can obtain the file directory for storing the video file according to the setting of the user.
S12.对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件。例如,可以根据文件后缀名来判断视频文件。S12. Scan the video file directory to scan all video files in the video file directory. For example, a video file can be judged based on the file suffix name.
S13.对扫描出的视频文件的文件名进行字符串比对。有些视频客户端会将大视频文件切分成很多个小视频文件,例如视频文件目录下可能会存有aaa_01.avi、aaa_02.avi、aaa_03.avi、aaa_04.avi、bbb_01.avi、bbb_02.avi等视频文件,它们实际上是由一个大的视频文件切分成的小视频文件,如果将所有的文件都展示出来,不便于用户管理。需要找到相似的视频文件,并将相似的视频文件映射到一个展示名称下,以便于用户管理和观看,因此需要进行字符串比对。 S13. Perform string matching on the file name of the scanned video file. Some video clients will split large video files into many small video files. For example, the video file directory may contain aaa_01.avi, aaa_02.avi, aaa_03.avi, aaa_04.avi, bbb_01.avi, bbb_02.avi, etc. Video files, which are actually small video files that are cut into a large video file. If all the files are displayed, it is not convenient for user management. Need to find similar video files, and map similar video files to a display name for user management and viewing, so a string comparison is required.
S14.判断是否存在相同字符串,当存在相同字符串时,进入步骤S15,否则进入步骤S17。S14. It is judged whether or not the same character string exists, and when the same character string exists, the process proceeds to step S15, otherwise, the process proceeds to step S17.
S15.判断相同字符串长度是否大于或等于预设阈值,当相同字符串长度大于或等于预设阈值时,进入步骤S16,否则进入步骤S17。S15. Determine whether the length of the same string is greater than or equal to a preset threshold. When the length of the same string is greater than or equal to the preset threshold, proceed to step S16, otherwise proceed to step S17.
S16.抽取相同字符串作为视频文件展示名称,并将具有该相同字符串的视频文件映射到展示名称下。还是上面的例子,视频文件aaa_01.avi、aaa_02.avi、aaa_03.avi、aaa_04.avi具有相同字符串aaa,且相同字符串的长度等于预设相似度阈值3,则可以认为这四个视频文件属于相似视频文件,这时可以将相同字符串aaa作为视频文件展示名称,并将这四个视频文件映射到该展示名称下。同样地,视频文件bbb_01.avi、bbb_02.avi具有相同字符串bbb,且相同字符串的长度等于预设相似度阈值3,则可以认为这两个视频文件属于相似视频文件,这时可以将字符串bbb作为视频文件展示名称,并将这两个视频文件映射到该展示名称下。预设阈值可以由用户根据实际情况自由设定。S16. Extract the same string as the video file display name, and map the video file with the same string to the display name. In the above example, the video files aaa_01.avi, aaa_02.avi, aaa_03.avi, aaa_04.avi have the same string aaa, and the length of the same string is equal to the preset similarity threshold of 3, then the four video files can be considered. Belong to a similar video file, you can use the same string aaa as the video file display name and map the four video files under the display name. Similarly, if the video files bbb_01.avi and bbb_02.avi have the same character string bbb, and the length of the same character string is equal to the preset similarity threshold 3, then the two video files can be considered to belong to similar video files, and the characters can be used. The string bbb displays the name as a video file and maps the two video files under the display name. The preset threshold can be freely set by the user according to the actual situation.
S17.采用其他展示方法设置展示名称。S17. Set the display name using other display methods.
S18.判断是否还存在未扫描的文件目录,当存在未扫描的文件目录时,则返回到步骤S12对下一文件目录进行扫描,当不存在未扫描的文件目录时则结束。S18. It is judged whether there is still an unscanned file directory. When there is an unscanned file directory, the process returns to step S12 to scan the next file directory, and when there is no unscanned file directory, the process ends.
可以采用折叠展示的方式将多个具有相同字符串的视频文件映射到一个展示名称下,当用户点击该条展示名称时,再进一步向用户展示该影视的所有小段视频文件。Multiple video files with the same string can be mapped to a display name by folding display. When the user clicks on the display name, the user can further display all the video files of the movie.
在步骤S17中,当不适于用上述方法对视频文件进行展示时,例如可以采用如下的其他展示方法。In step S17, when it is not suitable to display the video file by the above method, for example, other display methods as follows may be employed.
1)可以查找所述视频文件目录下是否存在视频配置文件,如果存在视频配置文件,则可以根据该文件目录对应客户端的视频配置文件解析 规则,对视频配置文件进行解析以抽取出影视名称,并将其作为视频文件展示名称。例如,某些视频客户端会将下载的视频文件保存在一个MD5文件夹下,视频文件命名都是按照数字顺序命名,而影视名称则保存在视频文件同目录的配置文件中,通过从视频配置文件中抽取影视名称,避免给用户展示无意义的数字,导致用户找不到想要观看的视频文件。1) You can find whether there is a video configuration file in the video file directory. If a video configuration file exists, you can parse the video configuration file corresponding to the client according to the file directory. Rules, parsing the video profile to extract the title of the movie and display it as a video file. For example, some video clients will save the downloaded video files in an MD5 folder, the video file names are named in numerical order, and the movie titles are saved in the configuration file of the same video file, configured from the video. The file name is extracted from the file to avoid showing the user a meaningless number, so that the user cannot find the video file that he wants to watch.
2)可以判断所述视频文件目录的目录名或所述视频文件目录下的视频文件的文件名中是否包含有影视名称,当包含有影视名称时,可以抽取出该影视名称并将其作为视频文件展示名称。2) It can be determined whether the directory name of the video file directory or the file name of the video file in the video file directory contains a movie name, and when the movie name is included, the movie name can be extracted and used as a video. File display name.
3)可以判断所述视频文件目录是否为视频客户端存放视频的目录,若判断所述视频文件目录为视频客户端存放视频的目录时,则可以以“视频客户端名称_视频文件名”作为视频文件展示名称。3) It can be determined whether the video file directory is a directory in which the video client stores the video. If the video file directory is determined to be a video client to store the video directory, the video client name_video file name may be used as the video client name. Video file display name.
4)还可以直接用视频文件名作为展示名称。4) You can also directly use the video file name as the display name.
上述列举的4种其他展示方法只是举例,而并非穷举,本领域技术人员还可以采用任何其他展示方法。当其中一种展示方法不适用时,可以尝试使用其他展示方法。例如,可以先判断所述视频文件目录下是否存在视频配置文件,当不存在视频配置文件时,则判断所述视频文件目录的目录名或所述视频文件目录下的视频文件的文件名中是否包含有影视名称,当未包含有影视名称时,则判断所述视频文件目录是否为视频客户端存放视频目录,若所述视频文件目录不是视频客户端存放视频的目录时,则用视频文件名作为展示名称。上述判断的顺序只是举例,本领域技术人员可以任意设置展示方法1)、2)、3)的判断次序,只有当展示方法1)、2)、3)都不适用时,才使用展示方法4),即直接用视频文件名作为展示名称。The four other display methods listed above are merely examples, and are not exhaustive, and any other display method may be employed by those skilled in the art. When one of the presentation methods doesn't work, try using other display methods. For example, it may be determined whether a video configuration file exists in the video file directory, and when there is no video configuration file, determining whether the directory name of the video file directory or the file name of the video file in the video file directory is The movie name is included, and when the movie name is not included, it is determined whether the video file directory is a video client for storing a video directory, and if the video file directory is not a video client storing a video directory, the video file name is used. As the name of the show. The order of the above judgments is only an example, and those skilled in the art can arbitrarily set the judgment order of the display methods 1), 2), and 3), and only use the display method 4 when the display methods 1), 2), and 3) are not applicable. ), that is, directly use the video file name as the display name.
另外,上述列举的4种其他展示方法也不仅限于在步骤S13-S16不 适用时而使用,事实上,所列举的4种其他展示方法与上述步骤S13-S16可以组合使用,从而为用户提供更准确的视频展示。例如,有可能视频文件名为:数字序列_01.avi、数字序列_02.avi、数字序列_03.avi、数字序列_04.avi,这时如果仅采用上述步骤S13-S16,所得到的视频文件展示名称只是一个无意义的数字序列,用户仍然无法通过展示名称明确视频文件信息。此时,例如可以结合所列举的方法1),从视频配置文件中抽取出影视名称,并将其作为视频文件展示名称。In addition, the four other display methods listed above are not limited to the steps S13-S16. When applicable, in fact, the four other display methods listed can be used in combination with the above steps S13-S16 to provide a more accurate video presentation for the user. For example, it is possible that the video file name is: a digital sequence _01.avi, a digital sequence _02.avi, a digital sequence _03.avi, a digital sequence _04.avi, and if only the above steps S13-S16 are used, The video file display name is just a meaningless sequence of numbers, and the user still cannot clear the video file information by showing the name. At this time, for example, in conjunction with the enumerated method 1), the movie name is extracted from the video profile and displayed as a video file name.
当然,也可以同步或顺序执行上述所有展示方法,并将所得到的各个展示名称都呈现给用户进行选择,用户可以从中选择更符合自己观影习惯的展示名称。Of course, all the above display methods can also be performed synchronously or sequentially, and the obtained display names are presented to the user for selection, and the user can select a display name that is more in line with his own viewing habits.
图2示出了根据本申请另一实施例的视频文件展示方法,包括如下步骤:FIG. 2 illustrates a video file display method according to another embodiment of the present application, including the following steps:
S21.获取存在视频文件的文件目录;S21. Obtain a file directory in which the video file exists;
S22.判断所述视频文件目录是否需要过滤,若所述视频文件目录不需要过滤,执行步骤S23,否则执行步骤S29;S22. Determine whether the video file directory needs to be filtered, if the video file directory does not need to be filtered, step S23 is performed, otherwise step S29 is performed;
S23.对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;S23. Scan the video file directory to scan all video files in the video file directory;
S24.对扫描出的视频文件的文件名进行字符串比对;S24. Perform string matching on the file names of the scanned video files;
S25.判断是否存在相同字符串,当存在相同字符串时,进入步骤S26,否则进入步骤S28;S25. Determine whether the same string exists, when the same string exists, proceeds to step S26, otherwise proceeds to step S28;
S26.判断相同字符串长度是否大于或等于预设阈值,当相同字符串长度大于或等于预设阈值时,进入步骤S27,否则进入步骤S28;S26. Determine whether the length of the same string is greater than or equal to the preset threshold, when the same string length is greater than or equal to the preset threshold, proceeds to step S27, otherwise proceeds to step S28;
S27.抽取相同字符串作为视频文件展示名称,并将具有该相同字符串的视频文件映射到展示名称下;S27. Extract the same string as a video file display name, and map the video file with the same string to the display name;
S28.采用其他展示方法设置展示名称; S28. Use other display methods to set the display name;
S29.判断是否还存在未扫描的文件目录,当存在未扫描的文件目录时,则返回到步骤S22来判断下一文件目录是否需要过滤,当不存在未扫描的文件目录时则结束。S29. It is judged whether there is still an unscanned file directory. When there is an unscanned file directory, the process returns to step S22 to determine whether the next file directory needs to be filtered, and ends when there is no unscanned file directory.
与前一实施例相比,本实施例的视频文件展示方法增加了步骤S22判断所述视频文件目录是否需要过滤,当不需要过滤时进行正常的扫描进程,与前一实施例相同,而当需要过滤时,则直接略过该文件目录来对下一文件目录进行扫描,从而可以提高扫描速度。这是因为个别客户端会对下载的视频进行了加密设置,或者未采用标准的视频容器保存视频内容,导致其下载的视频文件其他播放器无法正常播放,因此可以过滤掉此类视频文件。Compared with the previous embodiment, the video file display method in this embodiment adds step S22 to determine whether the video file directory needs to be filtered, and performs normal scanning process when filtering is not required, which is the same as in the previous embodiment. When filtering is required, the file directory is directly skipped to scan the next file directory, thereby improving the scanning speed. This is because individual clients encrypt the downloaded video, or do not use a standard video container to save the video content, causing the downloaded video files to be played by other players, so these video files can be filtered out.
判断视频文件是否需要过滤的方法有多种,比较常用的是通过视频文件后缀名来进行判断。具体地,可以使用户终端执行一个自动化脚本代码,尝试使用视频播放器播放各个视频文件目录下的视频文件,由此总结出所有能够正常播放的视频文件后缀名。视频文件后缀包括标准的和私有的,常用的标准视频后缀包括.AVI,.WMA,.RMVB,.RM,.FLV,.MP4,.MID,.3GP等等,部分视频客户端也可以自己定义私有视频后缀,例如:.bdv,.storm,.vdat,.v等等。用户终端在总结出所有能够正常播放的视频文件后缀名后,即可以仅通过所述视频文件目录下视频文件的后缀名来判断所述视频文件目录是否需要过滤,也就是说,当视频文件的后缀名显示该视频文件能够正常播放时,则不过滤该目录,反之则可以省略对该目录的扫描进程。当然,也可以由用户自行设置需要过滤的视频文件目录。There are many ways to determine whether a video file needs to be filtered. The more common one is to judge by the suffix name of the video file. Specifically, the user terminal can execute an automated script code, and try to use the video player to play the video files in each video file directory, thereby summarizing all the video file suffix names that can be played normally. Video file suffixes include standard and private. Common standard video suffixes include .AVI, .WMA, .RMVB, .RM, .FLV, .MP4, .MID, .3GP, etc. Some video clients can also define their own. Private video suffixes such as .bdv, .storm, .vdat, .v, etc. After the user terminal summarizes the suffix names of all the video files that can be played normally, the suffix name of the video file in the video file directory may be used to determine whether the video file directory needs to be filtered, that is, when the video file is When the suffix name indicates that the video file can be played normally, the directory is not filtered. Otherwise, the scanning process for the directory can be omitted. Of course, it is also possible for the user to set the video file directory to be filtered by the user.
图3示出了根据本申请实施例的视频文件展示系统的示意图,与图1中所示的视频文件展示方法相对应地,该系统包括:FIG. 3 shows a schematic diagram of a video file presentation system according to an embodiment of the present application. Corresponding to the video file presentation method shown in FIG. 1, the system includes:
目录获取单元31,用于获取存在视频文件的文件目录; a directory obtaining unit 31, configured to acquire a file directory in which a video file exists;
扫描单元32,用于对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;The scanning unit 32 is configured to scan the video file directory to scan all the video files in the video file directory;
字符串比对单元33,用于对扫描出的视频文件的文件名进行字符串比对;The string matching unit 33 is configured to perform string matching on the file names of the scanned video files;
判断单元34,用于判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;The determining unit 34 is configured to determine whether the same character string exists and whether the same character string length is greater than or equal to a preset threshold;
抽取映射单元35,当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取该相同字符串作为视频文件展示名称,并将具有该相同字符串的视频文件映射到展示名称下;Extracting the mapping unit 35, when the same character string exists and the length of the same character string is greater than or equal to the preset threshold, extracting the same character string as the video file display name, and mapping the video file having the same character string to the display name;
附加展示单元36,用于当不存在相同字符串或相同字符串长度小于预设阈值时,采用其他展示方法设置展示名称;An additional display unit 36, configured to set a display name by using another display method when the same string does not exist or the length of the same string is less than a preset threshold;
未扫描目录确定单元37,用于判断是否还存在未扫描的文件目录,当存在未扫描的文件目录时,则启动扫描单元32对下一文件目录进行扫描,当不存在未扫描的文件目录时则结束。The unscanned directory determining unit 37 is configured to determine whether there is still an unscanned file directory. When there is an unscanned file directory, the scanning unit 32 is started to scan the next file directory when there is no unscanned file directory. Then it ends.
通过上述各个单元,对部分视频文件目录中由大视频文件切分成的多个小视频文件,抽取该多个小视频文件的文件名中相同字符串,并将该相同字符串作为视频文件展示名称,由此可以将多个具有相同字符串的视频文件映射到一个展示名称下,为用户提供更好的体验。Through the above-mentioned respective units, a plurality of small video files divided into large video files in a part of the video file directory are extracted, and the same character string in the file names of the plurality of small video files is extracted, and the same character string is used as a video file display name. , so that multiple video files with the same string can be mapped to a display name to provide a better experience for users.
与上文中的实施例相同,附加展示单元36可以包括第一展示单元、第二展示单元、第三展示单元和第四展示单元,其中:As with the above embodiments, the additional display unit 36 may include a first display unit, a second display unit, a third display unit, and a fourth display unit, wherein:
第一展示单元用于查找所述视频文件目录下是否存在视频配置文件,如果存在视频配置文件,则可以根据该文件目录对应客户端的视频配置文件解析规则,对视频配置文件进行解析以抽取出影视名称,并将其作为视频文件展示名称;The first display unit is configured to search for a video configuration file in the video file directory. If a video configuration file exists, the video configuration file may be parsed according to the video configuration file parsing rule of the client corresponding to the file directory to extract the video file. Name and display it as a video file name;
第二展示单元用于判断所述视频文件目录的目录名或所述视频文件 目录下的视频文件的文件名中是否包含有影视名称,当包含有影视名称时,可以抽取出该影视名称并将其作为视频文件展示名称;The second display unit is configured to determine a directory name of the video file directory or the video file Whether the file name of the video file in the directory contains the movie name, and when the movie name is included, the movie name can be extracted and displayed as a video file name;
第三展示单元用于判断所述视频文件目录是否为视频客户端存放视频的目录,若判断所述视频文件目录为视频客户端存放视频的目录时,则可以以“视频客户端名称_视频文件名”作为视频文件展示名称;The third display unit is configured to determine whether the video file directory is a directory where the video client stores the video. If the video file directory is determined to be a video client to store the video directory, the video client name _ video file may be used. Name" as the video file display name;
第四展示单元用于将视频文件名作为展示名称。The fourth display unit is used to use the video file name as the display name.
同样地,当其中一种展示单元不适用时,可以尝试使用其他展示单元,只有当第一、第二、第三展示单元都不适用时,才使用第四展示单元,即直接用视频文件名作为展示名称。上述各展示单元也不仅限于在字符串比对单元33、判断单元34和抽取映射单元35不适用时使用,上述展示单元可以与字符串比对单元33、判断单元34和抽取映射单元35配合使用,从而为用户提供更准确的视频展示;也可以同步或顺序启动上述所有展示单元,并将所得到的各个展示名称都呈现给用户进行选择,用户可以从中选择更符合自己观影习惯的展示名称。Similarly, when one of the display units is not applicable, you can try to use other display units. Only when the first, second, and third display units are not applicable, use the fourth display unit, that is, directly use the video file name. As the name of the show. The above display units are also not limited to use when the character string comparison unit 33, the determination unit 34, and the extraction mapping unit 35 are not applicable, and the above display unit can be used together with the character string comparison unit 33, the determination unit 34, and the extraction mapping unit 35. In order to provide users with more accurate video presentations; all of the above display units can also be started synchronously or sequentially, and the obtained display names are presented to the user for selection, and the user can select a display name that is more in line with his own viewing habits. .
图4示出了根据本申请另一实施例的视频文件展示系统的示意图,与图2中所示的视频文件展示方法相对应地,该系统包括:FIG. 4 is a schematic diagram of a video file presentation system according to another embodiment of the present application. Corresponding to the video file presentation method shown in FIG. 2, the system includes:
目录获取单元41,用于获取存在视频文件的文件目录;a directory obtaining unit 41, configured to acquire a file directory in which a video file exists;
过滤单元42,用于判断所述视频文件目录是否需要过滤,若所述视频文件目录不需要过滤,启动扫描单元43,否则启动未扫描目录确定单元48;The filtering unit 42 is configured to determine whether the video file directory needs to be filtered, if the video file directory does not need to be filtered, the scanning unit 43 is started, otherwise the unscanned directory determining unit 48 is started;
扫描单元43,用于对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;The scanning unit 43 is configured to scan the video file directory to scan all the video files in the video file directory;
字符串比对单元44,用于对扫描出的视频文件的文件名进行字符串比对;The string matching unit 44 is configured to perform string matching on the file names of the scanned video files;
判断单元45,用于判断是否存在相同字符串且相同字符串长度是否 大于或等于预设阈值;The determining unit 45 is configured to determine whether the same character string exists and the length of the same string is Greater than or equal to a preset threshold;
抽取映射单元46,当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取该相同字符串作为视频文件展示名称,并将具有该相同字符串的视频文件映射到展示名称下;The extracting mapping unit 46 extracts the same character string as a video file display name when the same character string exists and the same character string length is greater than or equal to the preset threshold value, and maps the video file having the same character string to the display name;
附加展示单元47,用于当不存在相同字符串或相同字符串长度小于预设阈值时,采用其他展示方法设置展示名称;An additional display unit 47, configured to set a display name by using another display method when the same string does not exist or the length of the same string is less than a preset threshold;
未扫描目录确定单元48,用于判断是否还存在未扫描的文件目录,当存在未扫描的文件目录时,则启动过滤单元42来判断下一文件目录是否需要过滤,当不存在未扫描的文件目录时则结束。The unscanned directory determining unit 48 is configured to determine whether there is still an unscanned file directory. When there is an unscanned file directory, the filtering unit 42 is started to determine whether the next file directory needs to be filtered, when there is no unscanned file. The catalog ends.
与前一实施例相比,本实施例的视频文件展示方法增加了过滤单元42判断所述视频文件目录是否需要过滤,当不需要过滤时启动扫描单元43进行正常的扫描进程,而当需要过滤时,则直接略过该文件目录来对下一文件目录进行扫描,从而可以提高扫描速度。同样地,在本实施例中可以通过视频文件后缀名来判断视频文件是否需要过滤。Compared with the previous embodiment, the video file display method of the embodiment increases the filtering unit 42 to determine whether the video file directory needs to be filtered, and when the filtering is not required, the scanning unit 43 is started to perform a normal scanning process, and when filtering is required, When the file directory is directly skipped to scan the next file directory, the scanning speed can be improved. Similarly, in this embodiment, the video file suffix name can be used to determine whether the video file needs to be filtered.
图5示出了根据本申请另一实施例的视频文件展示系统的硬件架构组成示意图。该装置可包括:处理器501,存储器502以及总线503。处理器501和存储器502通过总线503互联。FIG. 5 is a schematic diagram showing the hardware architecture of a video file presentation system according to another embodiment of the present application. The apparatus can include a processor 501, a memory 502, and a bus 503. Processor 501 and memory 502 are interconnected by a bus 503.
所述存储器502中存储目录获取单元31、扫描单元32、字符串对比单元33、判断单元34、抽取映射单元35,附加展示单元36以及未扫描目录确定单元37,当被所述处理器501执行时,所述目录获取单元31、扫描单元32、字符串对比单元33、判断单元34、抽取映射单元35,附加展示单元36以及未扫描目录确定单元37执行的操作与图3所示的实施例相同,这里不再赘述。The memory 502 stores a directory acquisition unit 31, a scanning unit 32, a character string comparison unit 33, a determination unit 34, an extraction mapping unit 35, an additional display unit 36, and an unscanned directory determination unit 37, which are executed by the processor 501. The operations performed by the directory acquisition unit 31, the scanning unit 32, the character string comparison unit 33, the determination unit 34, the extraction mapping unit 35, the additional display unit 36, and the unscanned directory determination unit 37 are the same as those of the embodiment shown in FIG. The same, no longer repeat here.
图6示出了根据本申请另一实施例的视频文件展示系统的硬件架构组成示意图。该装置可包括:处理器601,存储器602以及总线603。处理器601和存储器602通过总线603互联。 FIG. 6 is a schematic diagram showing the hardware architecture of a video file presentation system according to another embodiment of the present application. The apparatus can include a processor 601, a memory 602, and a bus 603. Processor 601 and memory 602 are interconnected by a bus 603.
所述存储器602中存储目录获取单元41,过滤单元42,扫描单元43,字符串对比单元44,判断单元45,抽取映射单元46,附加展示单元47以及未扫描目录确定单元48,当被所述处理器601执行时,所述目录获取单元41,过滤单元42,扫描单元43,字符串对比单元44,判断单元45,抽取映射单元46,附加展示单元47以及未扫描目录确定单元48执行的操作与图4所示的实施例相同,这里不再赘述。The memory 602 stores a directory obtaining unit 41, a filtering unit 42, a scanning unit 43, a character string comparing unit 44, a determining unit 45, an extracting mapping unit 46, an additional display unit 47, and an unscanned directory determining unit 48, when said When the processor 601 is executed, the directory acquisition unit 41, the filtering unit 42, the scanning unit 43, the character string comparison unit 44, the determination unit 45, the extraction mapping unit 46, the additional display unit 47, and the operations performed by the unscanned directory determination unit 48. The same as the embodiment shown in FIG. 4, and details are not described herein again.
上述视频文件展示方法和系统,对部分视频文件目录中由大视频文件切分成的多个小视频文件,抽取该多个小视频文件的文件名中相同字符串,并将该相同字符串作为视频文件展示名称,由此可以将多个具有相同字符串的视频文件映射到一个展示名称下,使得用户通过展示名称明确视频文件信息,从而为用户提供更好的体验。The video file display method and system, the plurality of small video files divided into large video files in a part of the video file directory, extracting the same character string in the file names of the plurality of small video files, and using the same string as the video The file display name, whereby multiple video files with the same string can be mapped to a display name, so that the user can clarify the video file information by displaying the name, thereby providing a better experience for the user.
本领域技术人员应当理解,本申请所提供的视频文件展示方法和系统不仅可以适用于诸如安卓、IOS或Windows Phone等移动智能设备,还可以适用于所有计算机设备。Those skilled in the art should understand that the video file display method and system provided by the present application can be applied not only to mobile smart devices such as Android, IOS or Windows Phone, but also to all computer devices.
本领域内的技术人员还应理解,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。Those skilled in the art will also appreciate that the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
本申请实施例还提供一种计算机可读存储介质,其内存储有计算机可执行指令,上述的计算机可读存储介质例如为非易失性存储器例如光盘、硬盘、或者闪存。上述的计算机可执行指令用于让计算机或者类似的运算装置完成上述的视频文件展示方法中的各种操作。The embodiment of the present application further provides a computer readable storage medium having stored therein computer executable instructions, such as a non-volatile memory such as an optical disk, a hard disk, or a flash memory. The computer executable instructions described above are for causing a computer or similar computing device to perform various operations in the video file presentation method described above.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的,应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图 一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of a method, a device (system), and a computer program product according to embodiments of the present application, it being understood that each of the flowcharts and/or block diagrams can be implemented by computer program instructions. And/or a combination of blocks and flow diagrams and/or blocks in the flowcharts and/or block diagrams. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Implementing a process or multiple processes and/or block diagrams in a flowchart A device in a box or a function specified in a plurality of boxes.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
虽然结合附图描述了本申请的实施方式,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。 While the embodiments of the present invention have been described with reference to the drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the invention. Within the limits defined.

Claims (15)

  1. 一种视频文件展示方法,其特征在于,包括:A video file display method, comprising:
    获取存在视频文件的文件目录;Obtain a file directory where the video file exists;
    对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;Scanning the video file directory to scan all video files in the video file directory;
    对扫描出的视频文件的文件名进行字符串比对;Perform a string comparison on the file names of the scanned video files;
    判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;Determining whether the same character string exists and whether the same string length is greater than or equal to a preset threshold;
    当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。When the same character string exists and the same character string length is greater than or equal to a preset threshold, the same character string is extracted as a video file presentation name, and a video file having the same character string is mapped under the presentation name.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    判断所述视频文件目录下是否存在视频配置文件;Determining whether a video configuration file exists in the video file directory;
    当存在视频配置文件时,对所述视频配置文件进行解析以抽取出影视名称,并将所述影视名称作为视频文件展示名称。When a video profile exists, the video profile is parsed to extract a movie title, and the movie name is displayed as a video file name.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    判断所述视频文件目录的目录名或所述视频文件目录下的视频文件的文件名中是否包含有影视名称;Determining whether a directory name of the video file directory or a file name of a video file in the video file directory includes a movie name;
    当包含有影视名称时,抽取出所述影视名称并将其作为视频文件展示名称。When a movie title is included, the title of the movie is extracted and displayed as a video file.
  4. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    判断所述视频文件目录是否为视频客户端存放视频目录;Determining whether the video file directory is a video client for storing a video directory;
    当是视频客户端存放视频目录时,以视频客户端名称和视频文件名作为视频文件展示名称。 When the video client stores the video directory, the video client name and the video file name are used as the video file display name.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述获取存在视频文件的文件目录与所述对所述视频文件目录进行扫描之间,还包括:The method according to any one of claims 1 to 4, further comprising: between the obtaining a file directory of the presence video file and the scanning the video file directory, further comprising:
    判断所述视频文件目录是否需要过滤,如果不需要过滤则进行所述对所述视频文件目录进行扫描的步骤,如果需要过滤则对下一视频文件目录进行扫描。Determining whether the video file directory needs to be filtered, if the filtering is not required, performing the step of scanning the video file directory, and if filtering is required, scanning the next video file directory.
  6. 一种视频文件展示系统,其特征在于,所述系统至少包括存储器和处理器,其中所述存储器存储目录获取单元,扫描单元,字符串比对单元,判断单元,抽取映射单元,当被所述处理器执行时,A video file presentation system, characterized in that the system comprises at least a memory and a processor, wherein the memory storage directory acquisition unit, a scanning unit, a string comparison unit, a determination unit, an extraction mapping unit, when When the processor executes,
    所述目录获取单元用于获取存在视频文件的文件目录;The directory obtaining unit is configured to acquire a file directory in which a video file exists;
    所述扫描单元用于对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;The scanning unit is configured to scan the video file directory to scan all video files in the video file directory;
    所述字符串比对单元用于对扫描出的视频文件的文件名进行字符串比对;The string comparison unit is configured to perform string comparison on the file name of the scanned video file;
    所述判断单元用于判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;The determining unit is configured to determine whether the same character string exists and whether the same character string length is greater than or equal to a preset threshold;
    所述抽取映射单元用于当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。The decimating mapping unit is configured to: when the same character string exists and the same character string length is greater than or equal to a preset threshold, extract the same character string as a video file display name, and map the video file having the same character string to Under the display name.
  7. 根据权利要求6所述的系统,其特征在于,所述存储器进一步存储第一展示单元,当被所述处理器执行时,The system of claim 6 wherein said memory further stores a first presentation unit, when executed by said processor,
    所述第一展示单元用于判断所述视频文件目录下是否存在视频配置文件;当存在视频配置文件时,对所述视频配置文件进行解析以抽取出影视名称,并将所述影视名称作为视频文件展示名称。The first display unit is configured to determine whether a video configuration file exists in the video file directory; when a video configuration file exists, parsing the video configuration file to extract a movie name, and using the movie name as a video File display name.
  8. 根据权利要求6所述的系统,其特征在于,所述存储器进一步存 储第二展示单元,当被所述处理器执行时,The system of claim 6 wherein said memory is further stored Storing a second display unit, when executed by the processor,
    所述第二展示单元用于判断所述视频文件目录的目录名或所述视频文件目录下的视频文件的文件名中是否包含有影视名称;当包含有影视名称时,抽取出所述影视名称并将其作为视频文件展示名称。The second display unit is configured to determine whether a file name of the video file directory or a file name of the video file in the video file directory includes a movie name; and when the movie name is included, extract the movie name And display it as a video file name.
  9. 根据权利要求6所述的系统,其特征在于,所述存储器进一步存储第三展示单元,当被所述处理器执行时,The system of claim 6 wherein said memory further stores a third display unit, when executed by said processor,
    所述第三展示单元用于判断所述视频文件目录是否为视频客户端存放视频的目录;若判断所述视频文件目录为视频客户端存放视频的目录时,以视频客户端名称和视频文件名作为视频文件展示名称。The third display unit is configured to determine whether the video file directory is a directory in which a video client stores a video; if the video file directory is determined to be a video client to store a video directory, the video client name and the video file name are used. Show the name as a video file.
  10. 根据权利要求6-9中任一项所述的方法,其特征在于,所述存储器进一步存储过滤单元,当被所述处理器执行时,Method according to any of the claims 6-9, wherein the memory further stores a filtering unit, when executed by the processor,
    所述过滤单元用于判断所述视频文件目录是否需要过滤,如果不需要过滤则启动所述扫描单元对所述视频文件目录进行扫描,如果需要过滤则对下一视频文件目录进行扫描。The filtering unit is configured to determine whether the video file directory needs to be filtered. If the filtering is not required, the scanning unit is started to scan the video file directory, and if filtering is required, the next video file directory is scanned.
  11. 一种非易失性计算机存储介质,其特征在于,其中存储有计算机程序,该计算机程序用于执行以下步骤:A non-volatile computer storage medium characterized by storing therein a computer program for performing the following steps:
    获取存在视频文件的文件目录;Obtain a file directory where the video file exists;
    对所述视频文件目录进行扫描,以扫描出所述视频文件目录下的所有视频文件;Scanning the video file directory to scan all video files in the video file directory;
    对扫描出的视频文件的文件名进行字符串比对;Perform a string comparison on the file names of the scanned video files;
    判断是否存在相同字符串且相同字符串长度是否大于或等于预设阈值;Determining whether the same character string exists and whether the same string length is greater than or equal to a preset threshold;
    当存在相同字符串且相同字符串长度大于或等于预设阈值时,抽取所述相同字符串作为视频文件展示名称,并将具有所述相同字符串的视频文件映射到所述展示名称下。 When the same character string exists and the same character string length is greater than or equal to a preset threshold, the same character string is extracted as a video file presentation name, and a video file having the same character string is mapped under the presentation name.
  12. 如权利要求11所述的非易失性计算机存储介质,其特征在于,所述计算机程序进一步用于执行以下步骤:The non-volatile computer storage medium of claim 11 wherein said computer program is further for performing the steps of:
    判断所述视频文件目录下是否存在视频配置文件;Determining whether a video configuration file exists in the video file directory;
    当存在视频配置文件时,对所述视频配置文件进行解析以抽取出影视名称,并将所述影视名称作为视频文件展示名称。When a video profile exists, the video profile is parsed to extract a movie title, and the movie name is displayed as a video file name.
  13. 如权利要求11所述的非易失性计算机存储介质,其特征在于,所述计算机程序进一步用于执行以下步骤:The non-volatile computer storage medium of claim 11 wherein said computer program is further for performing the steps of:
    判断所述视频文件目录的目录名或所述视频文件目录下的视频文件的文件名中是否包含有影视名称;Determining whether a directory name of the video file directory or a file name of a video file in the video file directory includes a movie name;
    当包含有影视名称时,抽取出所述影视名称并将其作为视频文件展示名称。When a movie title is included, the title of the movie is extracted and displayed as a video file.
  14. 根据权利要求11所述的非易失性计算机存储介质,其特征在于,所述计算机程序进一步用于执行以下步骤:The non-volatile computer storage medium of claim 11 wherein said computer program is further for performing the steps of:
    判断所述视频文件目录是否为视频客户端存放视频目录;Determining whether the video file directory is a video client for storing a video directory;
    当是视频客户端存放视频目录时,以视频客户端名称和视频文件名作为视频文件展示名称。When the video client stores the video directory, the video client name and the video file name are used as the video file display name.
  15. 根据权利要求11-14中任一项所述的非易失性计算机存储介质,其特征在于,所述计算机程序进一步用于执行以下步骤:The non-volatile computer storage medium of any of claims 11-14, wherein the computer program is further configured to perform the following steps:
    判断所述视频文件目录是否需要过滤,如果不需要过滤则进行所述对所述视频文件目录进行扫描的步骤,如果需要过滤则对下一视频文件目录进行扫描。 Determining whether the video file directory needs to be filtered, if the filtering is not required, performing the step of scanning the video file directory, and if filtering is required, scanning the next video file directory.
PCT/CN2016/095643 2015-08-26 2016-08-17 Video file display method and system WO2017032249A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510532723.0 2015-08-26
CN201510532723.0A CN106488299B (en) 2015-08-26 2015-08-26 Video file display method and system

Publications (1)

Publication Number Publication Date
WO2017032249A1 true WO2017032249A1 (en) 2017-03-02

Family

ID=58099578

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095643 WO2017032249A1 (en) 2015-08-26 2016-08-17 Video file display method and system

Country Status (2)

Country Link
CN (1) CN106488299B (en)
WO (1) WO2017032249A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968781A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Video page drama determining method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832250A (en) * 2019-04-11 2020-10-27 珠海金山办公软件有限公司 Display method, system, storage medium and terminal of long character string

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751603B1 (en) * 2000-05-16 2004-06-15 Sun Microsystems, Inc. Autocomplete method and apparatus for data file selection
JP2007088722A (en) * 2005-09-21 2007-04-05 Toshiba Corp Serial searching apparatus and series program searching method
JP2007165983A (en) * 2005-12-09 2007-06-28 Nippon Telegr & Teleph Corp <Ntt> Metadata automatic generating apparatus, metadata automatic generating method, metadata automatic generating program, and recording medium for recording program
CN101620612A (en) * 2008-07-03 2010-01-06 阿尔派株式会社 Content attribute rendering method and device thereof
CN102081649A (en) * 2010-12-31 2011-06-01 深圳联友科技有限公司 Method and system for searching computer files
CN102929982A (en) * 2012-10-17 2013-02-13 Tcl通力电子(惠州)有限公司 Media scanned file indexing method and device
CN103324638A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 File name display method and system
CN104182531A (en) * 2014-08-28 2014-12-03 广州金山网络科技有限公司 Video name processing method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008011432A (en) * 2006-06-30 2008-01-17 Toshiba Corp Video recording and reproducing device and method
JP2011164908A (en) * 2010-02-09 2011-08-25 Panasonic Corp Method and apparatus for managing filename
CN103514231A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 File naming method and electronic device
TWI604317B (en) * 2013-08-08 2017-11-01 虹光精密工業股份有限公司 Method for naming image file
CN104573005A (en) * 2015-01-07 2015-04-29 魅族科技(中国)有限公司 Generation method and system for folder property

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751603B1 (en) * 2000-05-16 2004-06-15 Sun Microsystems, Inc. Autocomplete method and apparatus for data file selection
JP2007088722A (en) * 2005-09-21 2007-04-05 Toshiba Corp Serial searching apparatus and series program searching method
JP2007165983A (en) * 2005-12-09 2007-06-28 Nippon Telegr & Teleph Corp <Ntt> Metadata automatic generating apparatus, metadata automatic generating method, metadata automatic generating program, and recording medium for recording program
CN101620612A (en) * 2008-07-03 2010-01-06 阿尔派株式会社 Content attribute rendering method and device thereof
CN102081649A (en) * 2010-12-31 2011-06-01 深圳联友科技有限公司 Method and system for searching computer files
CN103324638A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 File name display method and system
CN102929982A (en) * 2012-10-17 2013-02-13 Tcl通力电子(惠州)有限公司 Media scanned file indexing method and device
CN104182531A (en) * 2014-08-28 2014-12-03 广州金山网络科技有限公司 Video name processing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968781A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Video page drama determining method and device
CN110968781B (en) * 2018-09-30 2023-05-23 北京国双科技有限公司 Video page scenario determination method and device

Also Published As

Publication number Publication date
CN106488299A (en) 2017-03-08
CN106488299B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
US9014372B2 (en) Video file encryption and decryption method, device, and mobile terminal
US20180253503A1 (en) Method, Apparatus and System for Preloading of APP Launch Advertising
US9805119B2 (en) Subtitle processing method, device and system and storage medium
CN102340699B (en) Preserve TV user history and use the method and system of information
CN107527186B (en) Electronic reading management method and device and terminal equipment
US20150156227A1 (en) Synchronize Tape Delay and Social Networking Experience
WO2017181597A1 (en) Method and device for video playback
US20190005327A1 (en) Object storage and retrieval based upon context
US20210271921A1 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
WO2017096903A1 (en) Android platform-based multimedia recommendation method and terminal device
US20170272793A1 (en) Media content recommendation method and device
CN110958470A (en) Multimedia content processing method, device, medium and electronic equipment
CN103442299A (en) Display method for playing records and electronic equipment
WO2017032249A1 (en) Video file display method and system
CN104853251A (en) Online collection method and device for multimedia data
WO2020063437A1 (en) Keyword recommendation method and apparatus, storage medium, and electronic device
CN109933569B (en) File merging method, file opening method and related equipment
WO2016161922A1 (en) Video file processing method and device
CN112639759A (en) Context digital media processing system and method
US10264324B2 (en) System and method for group-based media composition
CN110493661B (en) Video file processing method and server
CN105677860B (en) Function searching method and related equipment
CN109040848B (en) Bullet screen reverse-playing method and device, electronic equipment and storage medium
US20150142576A1 (en) Methods and mobile devices for displaying an adaptive advertisement object and systems for generating the adaptive advertisement object
CN105893012A (en) Method and device for generating video screenshot in Android system

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: 16838508

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 25/07/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16838508

Country of ref document: EP

Kind code of ref document: A1