CN111294647B - A video processing method, device and device, and storage medium - Google Patents
A video processing method, device and device, and storage medium Download PDFInfo
- Publication number
- CN111294647B CN111294647B CN201811506852.2A CN201811506852A CN111294647B CN 111294647 B CN111294647 B CN 111294647B CN 201811506852 A CN201811506852 A CN 201811506852A CN 111294647 B CN111294647 B CN 111294647B
- Authority
- CN
- China
- Prior art keywords
- video
- preprocessed
- priority
- preprocessed video
- processed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000012545 processing Methods 0.000 claims abstract description 79
- 238000000034 method Methods 0.000 claims abstract description 65
- 238000007781 pre-processing Methods 0.000 claims abstract description 41
- 230000008569 process Effects 0.000 claims abstract description 31
- 230000015654 memory Effects 0.000 claims description 40
- 238000004590 computer program Methods 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 description 11
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 6
- 230000005291 magnetic effect Effects 0.000 description 6
- 238000013468 resource allocation Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 235000003642 hunger Nutrition 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000037351 starvation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/805—QOS or priority aware
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及视频处理技术领域,涉及但不限于一种视频处理方法、装置及设备、存储介质。The embodiments of the present application relate to the technical field of video processing, and relate to, but are not limited to, a video processing method, apparatus and device, and storage medium.
背景技术Background technique
在相关技术中,转码系统通过外部接口接收客户端发送的视频,并将视频存储在数据库中,转码系统实时扫描数据库,在查找到有未处理的视频时,就对未处理的视频进行转码。但是,相关技术中的转码系统并不能适应用户的需求。In the related art, the transcoding system receives the video sent by the client through the external interface, and stores the video in the database. The transcoding system scans the database in real time. Transcode. However, the transcoding system in the related art cannot meet the needs of users.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供一种视频处理方法、装置及设备、存储介质。In view of this, embodiments of the present application provide a video processing method, apparatus and device, and storage medium.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
本申请实施例提供了一种视频处理方法,所述方法包括:通过转码系统中的外部接口获取待处理视频;An embodiment of the present application provides a video processing method, the method comprising: acquiring a video to be processed through an external interface in a transcoding system;
根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Preprocessing the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。According to the priority of the preprocessed video, system resources are allocated to the preprocessed video to process the preprocessed video.
本申请实施例提供了一种视频处理装置,所述装置包括:获取模块、预处理模块、第一确定模块和分配模块;其中,An embodiment of the present application provides a video processing apparatus, the apparatus includes: an acquisition module, a preprocessing module, a first determination module, and an allocation module; wherein,
所述获取模块,用于通过转码系统中的外部接口获取待处理视频;The acquisition module is used to acquire the video to be processed through an external interface in the transcoding system;
所述预处理模块,用于根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;The preprocessing module is configured to preprocess the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
所述第一确定模块,用于根据所述预处理视频的属性信息,确定所述预处理视频的优先级;The first determination module is configured to determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
所述分配模块,用于根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。The allocation module is configured to allocate system resources to the pre-processed video according to the priority of the pre-processed video, so as to process the pre-processed video.
本申请实施例还提供了一种视频处理设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器;其中,所述处理器用于运行所述计算机程序时,处理应用于终端设备的上述方案中所述视频处理的方法的步骤。Embodiments of the present application further provide a video processing device, including a processor and a memory for storing a computer program that can be run on the processor; wherein, when the processor is used to run the computer program, the processing is applied to a terminal The steps of the video processing method described in the above solution of the device.
本申请实施例还提供了一种存储介质,其上存储有计算机程序,该计算机程序被处理器处理时实现应用于终端设备的上述方案中所述视频处理方法的步骤。Embodiments of the present application further provide a storage medium on which a computer program is stored, and when the computer program is processed by a processor, implements the steps of the video processing method described in the above solution applied to a terminal device.
本申请实施例所提供的视频处理方法、装置、设备及存储介质,通过转码系统中的外部接口获取待处理视频;根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;根据所述预处理视频的属性信息,确定所述预处理视频的优先级;根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理;如此,能够满足用户需求,根据确定的优先级对视频动态分配系统资源,并进行视频转码。In the video processing method, device, device, and storage medium provided by the embodiments of the present application, the video to be processed is obtained through an external interface in the transcoding system; and the video to be processed is preprocessed according to video configuration information set based on user requirements , obtain a preprocessed video; determine the priority of the preprocessed video according to the attribute information of the preprocessed video; according to the priority of the preprocessed video, allocate system resources to the preprocessed video to The video is preprocessed for processing; in this way, user requirements can be met, system resources are dynamically allocated to the video according to the determined priority, and video transcoding is performed.
附图说明Description of drawings
图1为本申请实施例的视频处理方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flowchart of a video processing method according to an embodiment of the present application;
图2为本申请实施例的相关技术中的转码系统的实现流程示意图;FIG. 2 is a schematic flowchart of the implementation of the transcoding system in the related art of the embodiment of the present application;
图3为本申请实施例的转码系统的结构示意图;3 is a schematic structural diagram of a transcoding system according to an embodiment of the application;
图4为本申请实施例的视频预处理的实现流程示意图;FIG. 4 is a schematic flowchart of an implementation of video preprocessing according to an embodiment of the present application;
图5为本申请实施例的视频调度的实现流程示意图;FIG. 5 is a schematic flowchart of an implementation of video scheduling according to an embodiment of the present application;
图6为本申请实施例的视频处理装置的组成结构示意图;FIG. 6 is a schematic diagram of a composition structure of a video processing apparatus according to an embodiment of the present application;
图7为本申请实施例的视频处理设备的组成结构示意图。FIG. 7 is a schematic structural diagram of a video processing device according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图及具体实施例对本申请作进一步详细的说明。The present application will be described in further detail below with reference to the accompanying drawings and specific embodiments.
图1为本申请实施例中的视频处理方法的实现流程示意图,如图1所示,该方法包括以下步骤:FIG. 1 is a schematic flowchart of the implementation of the video processing method in the embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:
步骤101:通过转码系统中的外部接口获取待处理视频;Step 101: Obtain the video to be processed through an external interface in the transcoding system;
这里,转码系统用于对视频进行处理,在实际应用中,转码系统包括外部接口,客户端通过外部接口向转码系统发送待处理视频,转码系统通过外部接口接收客户端发送的待处理视频,并将待处理视频保存在存储系统中。Here, the transcoding system is used to process the video. In practical applications, the transcoding system includes an external interface. The client sends the video to be processed to the transcoding system through the external interface, and the transcoding system receives the pending video sent by the client through the external interface. Process the video and save the video to be processed in the storage system.
步骤102:根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Step 102: Preprocessing the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
这里,视频配置信息可以包括:目标格式、目标码率、目标关键帧信息等与视频相关的配置信息。Here, the video configuration information may include: target format, target bit rate, target key frame information and other video-related configuration information.
视频配置信息由用户需求确定,基于用户需求可以设置待处理视频的视频配置信息,以使转码系统根据用户需求对待处理视频进行处理。比如:用户需求为将动画视频(Flash Video,FLV)格式的视频转换成目标格式为音频视频交错格式(Audio VideoInterleaved,AVI)的视频,则视频配置信息的目标格式为AVI格式。The video configuration information is determined by user requirements, and video configuration information of the video to be processed can be set based on the user requirements, so that the transcoding system can process the video to be processed according to the user requirements. For example, if the user needs to convert a video in an animation video (Flash Video, FLV) format into a video whose target format is an audio video interleaved (Audio Video Interleaved, AVI) format, the target format of the video configuration information is the AVI format.
根据待处理视频的视频配置信息,对待处理视频进行预处理,可以包括:对视频的格式、码率进行处理,或者对待处理视频添加关键帧信息等,从而得到预处理视频。According to the video configuration information of the video to be processed, preprocessing the video to be processed may include: processing the format and bit rate of the video, or adding key frame information to the video to be processed, so as to obtain the preprocessed video.
步骤103:根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Step 103: Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
这里,预处理视频的属性信息可以包括:视频价值、时间紧迫度等与预处理视频相关的属性。Here, the attribute information of the preprocessed video may include: video value, time urgency and other attributes related to the preprocessed video.
得到预处理视频后,确定预处理视频的属性信息,根据预处理视频的属性信息,确定预处理视频的优先级。After the preprocessed video is obtained, the attribute information of the preprocessed video is determined, and the priority of the preprocessed video is determined according to the attribute information of the preprocessed video.
比如:根据预处理视频的视频价值、时间紧迫度,可以确定预处理视频的优先级为紧急或非紧急。For example, according to the video value and time urgency of the preprocessed video, the priority of the preprocessed video can be determined as urgent or non-urgent.
步骤104:根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。Step 104: Allocate system resources to the preprocessed video according to the priority of the preprocessed video, so as to process the preprocessed video.
根据预处理视频确定的优先级,对预处理视频分配系统资源,利用分配的系统资源,对预处理视频进行处理。According to the priority determined by the preprocessed video, system resources are allocated to the preprocessed video, and the preprocessed video is processed by using the allocated system resources.
比如:预处理视频确定的优先级为紧急时,对预处理视频分配较多的系统资源,利用上述系统资源对预处理视频进行处理,可以保证优先级为紧急的预处理视频能及时处理。For example, when the priority determined by the preprocessed video is urgent, more system resources are allocated to the preprocessed video, and the above-mentioned system resources are used to process the preprocessed video, which can ensure that the preprocessed video whose priority is urgent can be processed in time.
在利用系统资源,对预处理视频进行处理时,可以先确定预处理视频的处理类型;根据处理类型,对预处理视频进行处理。这里,处理类型可以为:转码处理类型或打码处理类型。When using system resources to process the preprocessed video, the processing type of the preprocessed video can be determined first; the preprocessed video is processed according to the processing type. Here, the processing type may be: transcoding processing type or coding processing type.
比如:确定预处理视频的处理类型为转码处理类型或打码处理类型时,根据处理类型,对预处理视频进行转码处理或打码处理。For example, when it is determined that the processing type of the preprocessed video is a transcoding processing type or a coding processing type, transcoding processing or coding processing is performed on the preprocessing video according to the processing type.
在本申请实施例中,通过转码系统中的外部接口获取待处理视频;根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;根据所述预处理视频的属性信息,确定所述预处理视频的优先级;根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理;如此,能够满足用户需求,根据确定的优先级对视频动态分配系统资源,并进行视频转码。In the embodiment of the present application, the video to be processed is obtained through an external interface in the transcoding system; the video to be processed is preprocessed according to the video configuration information set based on the user's needs, and the preprocessed video is obtained; according to the preprocessing The attribute information of the video is used to determine the priority of the preprocessed video; according to the priority of the preprocessed video, system resources are allocated to the preprocessed video to process the preprocessed video; According to the determined priority, the system resources are dynamically allocated to the video, and video transcoding is performed.
本申请实施例提供一种视频处理方法,该方法包括以下步骤:The embodiment of the present application provides a video processing method, and the method includes the following steps:
步骤201:根据所述视频配置信息,确定所述待处理视频的类型;Step 201: Determine the type of the video to be processed according to the video configuration information;
这里,视频配置信息还可以包括:源格式、源码率等与视频相关的配置信息。Here, the video configuration information may further include: source format, source code rate, and other video-related configuration information.
根据视频配置信息中的源格式、源码率等可以确定待处理视频的类型,比如:与用户需求对应的视频配置信息为将FLV格式的待处理视频转换成AVI格式的视频,则待处理视频的源格式为FLV格式,说明待处理视频的类型为FLV格式的视频。The type of the video to be processed can be determined according to the source format, source code rate, etc. in the video configuration information. For example, if the video configuration information corresponding to the user's needs is to convert the video to be processed in FLV format into a video in AVI format, then the The source format is FLV format, indicating that the type of the video to be processed is a video in FLV format.
步骤202:通过转码系统中的外部接口获取待处理视频;Step 202: Obtain the video to be processed through an external interface in the transcoding system;
这样,在通过转码系统中的外部接口获取待处理视频时,可以根据视频配置信息,确定待处理视频的类型,通过转码系统中的外部接口获取对应类型的待处理视频,而不是获取所有的待处理视频。这样,能够只获取需要处理的视频,提高处理效率。In this way, when the video to be processed is obtained through the external interface in the transcoding system, the type of the video to be processed can be determined according to the video configuration information, and the corresponding type of video to be processed can be obtained through the external interface in the transcoding system, instead of obtaining all the videos to be processed. pending video. In this way, only the video that needs to be processed can be acquired, and the processing efficiency can be improved.
步骤203:根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Step 203: Preprocessing the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
这里,视频配置信息可以包括:目标格式、目标码率、目标关键帧信息等与视频相关的配置信息。Here, the video configuration information may include: target format, target bit rate, target key frame information and other video-related configuration information.
视频配置信息由用户需求确定,基于用户需求可以设置待处理视频的视频配置信息,以使转码系统根据用户需求对待处理视频进行处理。The video configuration information is determined by user requirements, and video configuration information of the video to be processed can be set based on the user requirements, so that the transcoding system can process the video to be processed according to the user requirements.
在一实施例中,视频配置信息包括:目标格式、目标码率或目标关键帧信息。当视频配置信息为目标格式时,将待处理视频的格式调整为目标格式,从而得到预处理视频;当视频配置信息为目标码率时,将待处理视频的格式调整为目标码率,从而得到预处理视频;当视频配置信息为目标关键帧信息时,根据目标关键帧信息对待处理视频添加关键帧,从而得到预处理视频。In an embodiment, the video configuration information includes: target format, target bit rate or target key frame information. When the video configuration information is the target format, the format of the video to be processed is adjusted to the target format to obtain the preprocessed video; when the video configuration information is the target bit rate, the format of the video to be processed is adjusted to the target bit rate, thereby obtaining Preprocess the video; when the video configuration information is the target keyframe information, add keyframes to the video to be processed according to the target keyframe information, thereby obtaining the preprocessed video.
比如:视频配置信息的目标格式为AVI格式,则将待处理视频的格式调整为AVI格式,得到预处理视频;视频配置信息的码率格式为600比特每秒,则将待处理视频的码率调整为600比特每秒,得到预处理视频。For example, if the target format of the video configuration information is AVI format, then the format of the video to be processed is adjusted to AVI format to obtain a preprocessed video; the bit rate format of the video configuration information is 600 bits per second, then the bit rate of the video to be processed is adjusted to AVI format. Adjusted to 600 bits per second to get the preprocessed video.
步骤204:根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Step 204: Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
步骤205:根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。Step 205: Allocate system resources to the preprocessed video according to the priority of the preprocessed video, so as to process the preprocessed video.
在本申请实施例中,能够根据视频配置信息,获取待处理视频,提高了处理效率;且能够根据用户需求,对待处理视频的格式、码率、关键帧信息进行预处理,适应用户需求。In the embodiment of the present application, the to-be-processed video can be obtained according to the video configuration information, which improves the processing efficiency; and the format, bit rate, and key frame information of the to-be-processed video can be preprocessed according to user requirements to meet user requirements.
本申请实施例提供一种视频处理方法,该方法包括以下步骤:The embodiment of the present application provides a video processing method, and the method includes the following steps:
步骤301:通过转码系统中的外部接口获取待处理视频;Step 301: Obtain the video to be processed through an external interface in the transcoding system;
步骤302:根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Step 302: Preprocessing the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
步骤303:根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Step 303: Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
这里,预处理视频的属性信息可以包括:视频价值、时间紧迫度等与预处理视频相关的属性。Here, the attribute information of the preprocessed video may include: video value, time urgency and other attributes related to the preprocessed video.
得到预处理视频后,确定预处理视频的属性信息,根据预处理视频的属性信息,确定预处理视频的优先级。After the preprocessed video is obtained, the attribute information of the preprocessed video is determined, and the priority of the preprocessed video is determined according to the attribute information of the preprocessed video.
在一实施例中,属性信息包括:视频价值和时间紧迫度,配置预处理视频的视频价值、时间紧迫度、视频价值对应的权值和时间紧迫度对应的权值;根据视频价值、时间紧迫度、视频价值对应的权值和时间紧迫度对应的权值,确定预处理视频的优先级得分,根据优先级得分,确定预处理视频的优先级。In one embodiment, the attribute information includes: video value and time urgency, configure the video value of the preprocessed video, the time urgency, the weight corresponding to the video value, and the weight corresponding to the time urgency; According to the priority score, the priority score of the preprocessed video is determined, and the priority of the preprocessed video is determined according to the priority score.
比如:配置的预处理视频的视频价值为1,时间紧迫度为2,视频价值对应的权值为0.6,时间紧迫度对应的权值为0.4,对上述参数进行加权求和,确定预处理视频的优先级为1.4,根据优先级得分1.4,确定预处理视频的优先级。For example: the video value of the configured preprocessed video is 1, the time urgency is 2, the weight corresponding to the video value is 0.6, and the weight corresponding to the time urgency is 0.4. The above parameters are weighted and summed to determine the preprocessed video. The priority is 1.4, and according to the priority score 1.4, the priority of preprocessing video is determined.
在一实施例中,所述属性信息还包括:剩余价值密度,配置预处理视频的剩余价值密度和剩余价值密度对应的权值,则在确定预处理视频的优先级得分时,包括:根据视频价值、时间紧迫度、剩余价值密度、视频价值对应的权值、时间紧迫度对应的权值和剩余价值密度对应的权值,确定预处理视频的优先级得分。In one embodiment, the attribute information further includes: remaining value density, and configuring the remaining value density of the preprocessed video and the weight corresponding to the remaining value density, then when determining the priority score of the preprocessed video, including: according to the video Value, time urgency, residual value density, weight corresponding to video value, weight corresponding to time urgency, and weight corresponding to residual value density, determine the priority score of the preprocessed video.
比如:配置的预处理视频的视频价值为3,时间紧迫度为2,剩余价值密度为1,视频价值对应的权值为0.3,时间紧迫度对应的权值为0.4,剩余价值密度对应的权值为0.3,对上述参数进行加权求和,确定预处理视频的优先级为2,根据优先级得分2,确定预处理视频的优先级。For example: the video value of the configured preprocessed video is 3, the time urgency is 2, the remaining value density is 1, the weight corresponding to the video value is 0.3, the weight corresponding to the time urgency is 0.4, and the weight corresponding to the remaining value density is 0.4. The value is 0.3, and the above parameters are weighted and summed to determine the priority of the preprocessed video as 2, and according to the priority score of 2, the priority of the preprocessed video is determined.
在一实施例中,预处理视频的优先级包括:紧急或非紧急,在根据优先级得分,确定预处理视频的优先级时,如果优先级得分大于或等于预设分值时,可以确定预处理视频的优先级为紧急;如果优先级得分小于预设分值时,可以确定预处理视频的优先级为非紧急。In one embodiment, the priority of the preprocessed video includes: urgent or non-urgent, when determining the priority of the preprocessed video according to the priority score, if the priority score is greater than or equal to the preset score, it can be determined The priority of processing video is urgent; if the priority score is less than the preset score, it can be determined that the priority of preprocessing video is non-urgent.
比如:优先级得分为1.4,预设分值为1.5,优先级得分小于预设分值,则预处理视频的优先级为非紧急;优先级得分为2,预设分值为1.5,优先级得分大于预设分值,则预处理视频的优先级为紧急。For example: the priority score is 1.4, the preset score is 1.5, and the priority score is less than the preset score, then the priority of the preprocessed video is non-urgent; the priority score is 2, the preset score is 1.5, the priority If the score is greater than the preset score, the priority of preprocessing video is urgent.
需要说明的是,时间紧迫度、剩余价值密度可以是变化的,在发生变化时,可以对时间紧迫度、剩余价值密度进行重新配置。It should be noted that the time urgency and residual value density can be changed, and when changes occur, the time urgency and residual value density can be reconfigured.
步骤304:根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。Step 304: Allocate system resources to the preprocessed video according to the priority of the preprocessed video, so as to process the preprocessed video.
在一实施例中,当预处理视频的优先级为紧急时,可以将全部系统资源分配给预处理视频,以保证优先级为紧急的预处理视频优先进行处理;如果所述预处理视频的优先级为非紧急时,不分配系统资源给所述预处理视频,以等待优先级为紧急的预处理视频处理完成。In one embodiment, when the priority of the preprocessed video is urgent, all system resources can be allocated to the preprocessed video to ensure that the preprocessed video with the urgent priority is processed first; if the priority of the preprocessed video is When the priority is non-urgent, system resources are not allocated to the preprocessed video, so as to wait for the processing of the preprocessed video whose priority is urgent to be completed.
在本申请实施例中,能够根据属性信息,确定预处理视频的优先级,从而动态分配对应的系统资源以处理预处理视频。In this embodiment of the present application, the priority of the preprocessed video can be determined according to the attribute information, so as to dynamically allocate corresponding system resources to process the preprocessed video.
本申请实施例提供一种视频处理方法,该方法包括以下步骤:The embodiment of the present application provides a video processing method, and the method includes the following steps:
步骤401:通过转码系统中的外部接口获取待处理视频;Step 401: Obtain the video to be processed through an external interface in the transcoding system;
步骤402:根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Step 402: Preprocess the video to be processed according to the video configuration information set based on user requirements to obtain a preprocessed video;
步骤403:根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Step 403: Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
步骤404:根据系统资源占用信息,对确定的所述预处理视频的优先级进行调整,使得所述预处理视频的优先级变高或变低;Step 404: Adjust the determined priority of the preprocessed video according to the system resource occupancy information, so that the priority of the preprocessed video becomes higher or lower;
这里,系统资源可以包括中央处理器(Central Processing Unit,CPU)或内存,系统资源占用信息用于表征处理视频时对系统资源的占用百分比,在系统资源为CPU时,系统资源占用信息用于表征CPU使用率;在系统资源为内存时,系统资源占用信息用于表征内存使用率。Here, the system resources may include a central processing unit (Central Processing Unit, CPU) or memory, and the system resource occupancy information is used to represent the percentage of system resources occupied during video processing. When the system resource is a CPU, the system resource occupancy information is used to represent the CPU usage; when the system resource is memory, the system resource occupancy information is used to represent the memory usage.
在确定预处理视频的优先级后,确定系统资源的占用百分比,若预处理视频占用的系统资源超过了阈值,则可将预处理视频的优先级变低,以使预处理视频的优先级对应的系统资源在阈值范围内;若预处理视频占用的系统资源没有超过阈值,则可将预处理视频的优先级变高,使预处理视频的优先级对应的系统资源不超过阈值范围。After determining the priority of the preprocessed video, determine the percentage of system resource occupancy. If the system resource occupied by the preprocessed video exceeds the threshold, the priority of the preprocessed video can be lowered, so that the priority of the preprocessed video corresponds to If the system resources occupied by the preprocessed video do not exceed the threshold, the priority of the preprocessed video can be increased so that the system resources corresponding to the priority of the preprocessed video do not exceed the threshold range.
这里,在对预处理视频的优先级进行调整时,可以使用nice命令来对预处理视频的优先级进行调整。Here, when adjusting the priority of the preprocessed video, you can use the nice command to adjust the priority of the preprocessed video.
步骤405:根据变高或变低的优先级,对所述预处理视频分配系统资源,使得分配的系统资源变大或变小。Step 405 : Allocate system resources to the pre-processed video according to the higher or lower priority, so that the allocated system resources become larger or smaller.
对预处理视频的优先级进行调整,使得预处理视频的优先级变高或变低。当预处理视频的优先级变高时,对预处理视频分配较大的系统资源;当预处理视频的优先级变低时,对预处理视频分配较小的系统资源。Adjust the priority of the preprocessed video so that the priority of the preprocessed video becomes higher or lower. When the priority of the preprocessed video becomes higher, larger system resources are allocated to the preprocessed video; when the priority of the preprocessed video becomes lower, smaller system resources are allocated to the preprocessed video.
在本申请实施例中,对预处理视频的优先级进行调整,通过调整后的优先级对预处理视频分配系统资源,能够动态为预处理视频分配系统资源。In the embodiment of the present application, the priority of the pre-processed video is adjusted, and system resources are allocated to the pre-processed video through the adjusted priority, so that system resources can be dynamically allocated to the pre-processed video.
本申请实施例提供一种视频处理方法,该方法包括以下步骤:The embodiment of the present application provides a video processing method, and the method includes the following steps:
步骤501:通过转码系统中的外部接口获取待处理视频;Step 501: Obtain the video to be processed through an external interface in the transcoding system;
步骤502:根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;Step 502: Preprocessing the to-be-processed video according to the video configuration information set based on user requirements to obtain a preprocessed video;
步骤503:根据所述预处理视频的属性信息,确定所述预处理视频的优先级;Step 503: Determine the priority of the preprocessed video according to the attribute information of the preprocessed video;
步骤504:根据所述预处理视频的优先级,确定所述预处理视频对应的系统资源阈值;Step 504: Determine the system resource threshold corresponding to the preprocessed video according to the priority of the preprocessed video;
根据预处理视频的优先级,在预处理视频优先级与系统资源阈值的对应关系中,确定预处理视频对应的系统资源阈值,比如:预处理视频的优先级为1,根据预处理视频优先级与系统资源阈值的对应关系,可以确定预处理视频对应的系统资源阈值60。According to the priority of the preprocessed video, in the corresponding relationship between the preprocessed video priority and the system resource threshold, determine the system resource threshold corresponding to the preprocessed video, for example: the priority of the preprocessed video is 1, according to the preprocessed video priority The corresponding relationship with the system resource threshold can determine the system resource threshold 60 corresponding to the preprocessed video.
在根据预处理视频的优先级,确定所述预处理视频对应的系统资源阈值之前,需要设置预处理视频优先级与系统资源阈值的对应关系。比如:预处理视频优先级为1时,对应的系统资源阈值为60;预处理视频优先级为2时,对应的系统资源阈值为40。Before determining the system resource threshold corresponding to the preprocessed video according to the priority of the preprocessed video, the corresponding relationship between the preprocessed video priority and the system resource threshold needs to be set. For example, when the preprocessing video priority is 1, the corresponding system resource threshold is 60; when the preprocessing video priority is 2, the corresponding system resource threshold is 40.
这里,在设置系统资源阈值时,可以使用cpulimit命令对系统资源阈值进行设置。Here, when setting the system resource threshold, you can use the cpulimit command to set the system resource threshold.
步骤505:根据所述系统资源阈值,对所述预处理视频分配系统资源,以使所述预处理视频对应的系统资源不超过所述系统资源阈值。Step 505: Allocate system resources to the preprocessed video according to the system resource threshold, so that the system resources corresponding to the preprocessed video do not exceed the system resource threshold.
根据系统资源阈值,将等于或小于系统资源阈值的系统资源分配给预处理视频,以使预处理视频对应的系统资源不超过所述系统资源阈值。According to the system resource threshold, system resources equal to or less than the system resource threshold are allocated to the preprocessed video, so that the system resources corresponding to the preprocessed video do not exceed the system resource threshold.
在本申请实施例中,能够根据系统资源阈值为预处理资源分配系统资源,使得预处理视频对应的系统资源不超过所述系统资源阈值。In this embodiment of the present application, system resources can be allocated for preprocessing resources according to a system resource threshold, so that the system resources corresponding to the preprocessed video do not exceed the system resource threshold.
本申请实施例以数字化学习的视频为例,对本申请实施例提供的视频处理方法进行说明。The embodiment of the present application uses a video of digital learning as an example to describe the video processing method provided by the embodiment of the present application.
数字化学习是指在教育领域建立互联网平台,学生通过网络进行学习的一种全新学习模式,又称为网络化学习或数字化学习E-learning。以数字化学习为核心的信息技术与课程的整合,不同于传统的学习方式,把传统教学方式的优势和数字化环境下教学的优势结合起来,使二者优势互补是社会发展的趋势,也是教育学习的重大变革。Digital learning refers to a new learning model in which an Internet platform is established in the field of education, and students learn through the Internet, also known as e-learning or e-learning. The integration of information technology and curriculum with digital learning as the core is different from traditional learning methods. It combines the advantages of traditional teaching methods with the advantages of teaching in a digital environment, and makes the two complement each other. It is the trend of social development and educational learning. major changes.
数字化教学的加入有助于改变现行课堂教学的缺憾,丰富学习资源,创设宽松、融洽的学习氛围,活跃课堂气氛,启发学生思维,使学生在积极参与、充分交流中体验到学习和成功的愉悦,从而切实提高学校教学的有效性。随着数字化教学深入发展以及使用用户的增多,需要对应的学习视频也呈指数级增长。The addition of digital teaching helps to change the shortcomings of current classroom teaching, enrich learning resources, create a relaxed and harmonious learning atmosphere, activate classroom atmosphere, inspire students' thinking, and enable students to experience the joy of learning and success in active participation and full communication. , so as to effectively improve the effectiveness of school teaching. With the in-depth development of digital teaching and the increase of users, the corresponding learning videos are also increasing exponentially.
因为学习视频提供者环境不同,拍摄设施不同等原因导致原始视频格式、清晰度、码率、大小等的不同,因此,需要对原始的学习视频进行视频转码。相关技术中的视频转码系统一般使用FLV的元数据注入器(yamdi,Yet Another MetaData Injector for FLV)和快速动态图像(FFmpeg,Fast Forward Mpeg)两种工具。Due to the different environments of learning video providers, different shooting facilities, etc., the original video format, definition, bit rate, size, etc. are different. Therefore, it is necessary to perform video transcoding on the original learning video. The video transcoding system in the related art generally uses two tools, the FLV metadata injector (yamdi, Yet Another MetaData Injector for FLV) and the Fast Forward Mpeg (FFmpeg, Fast Forward Mpeg).
yamdi为FLV文件增加了很多元数据metadata信息,比如创建者、是否有关键帧、是否有视频、是否有音频、视频高度和宽度等等。yamdi adds a lot of metadata information to FLV files, such as creator, whether there are keyframes, whether there is video, whether there is audio, video height and width, etc.
FFmpeg是一个自由软件,可以运行多种格式的音频和视频的录影、转换和流功能等,包含:音视频解码器库libavcodec和音视频格式转换库libavformat。libavcodec是一个用于多个项目中音频和视频的解码器库,libavformat是一个音频与视频格式转换库。FFmpeg is a free software that can run multiple formats of audio and video recording, conversion and streaming functions, including: audio and video decoder library libavcodec and audio and video format conversion library libavformat. libavcodec is a decoder library for audio and video in several projects, and libavformat is an audio and video format conversion library.
在相关技术中,转码系统的流程如图2所示。相关技术中的转码系统分为两部分:外部模块21和内部模块22。两部分通过存储系统(数据库)作为桥梁连接。客户端通过外部模块发送视频,等视频转换完成后回传给客户端。转码系统在实时扫描数据库,发现有未处理视频即取出视频进行视频转码。视频转码一般分为两大部分:转换编码和文件添加metadata。In the related art, the flow of the transcoding system is shown in FIG. 2 . The transcoding system in the related art is divided into two parts: an
转换编码主要有以下三种情况:码率转换、分辨率转换编码和语法转码。其中码率转换和分辨率转换多用于同类码流语法内转码。其中:There are three main types of transcoding: rate conversion, resolution conversion coding, and syntax transcoding. Among them, rate conversion and resolution conversion are mostly used for transcoding within the same code stream syntax. in:
1)码率转换:主要应用于电视广播和网络传输中,其目的是:数字广播中特定级之间的兼容性;及网络传输中在保证有效传输的情况下,尽可能地节省带宽。1) Code rate conversion: Mainly used in TV broadcasting and network transmission, its purpose is: compatibility between specific levels in digital broadcasting; and in network transmission, in the case of ensuring effective transmission, save bandwidth as much as possible.
2)分辨率转换编码:分为时间分辨率转码和空间分辨率转码。主要针对用户解码器的一些限制,比如:实时处理能力、解码端处理能力及用户端显示器分辨率等。2) Resolution conversion coding: divided into temporal resolution transcoding and spatial resolution transcoding. It is mainly aimed at some limitations of the user's decoder, such as: real-time processing capability, decoding-end processing capability, and user-end display resolution.
3)语法转码:主要是由于输入和转码后的码流所遵循的压缩标准不同。3) Syntax transcoding: mainly due to the different compression standards followed by the input and transcoded streams.
相关技术中的转码机制比较完善,但是不能满足用户负载的动态要求,主要体现在:The transcoding mechanism in the related art is relatively complete, but it cannot meet the dynamic requirements of user load, which is mainly reflected in:
1)不同的场景,不同的用户对于视频转换响应速度要求不一致。如用户自己导入,这部分资源应该相应速度高,以便于用户及时能看到和纠正自己导入资源的问题。管理员批量导入,这部分资源对于实时性要求没有那么高,可以在系统闲时处理。2)不同的视频对于转码后的要求不一致,有的视频需要转换成不同清晰度,不同码率的各种视频,另外一种则不需要。1) Different users have different requirements for video conversion response speed in different scenarios. If the user imports by himself, this part of the resource should be relatively fast, so that the user can see and correct the problem of the imported resource in time. The administrator can import in batches. This part of the resources does not have such high real-time requirements and can be processed when the system is idle. 2) Different videos have inconsistent requirements after transcoding. Some videos need to be converted into various videos with different resolutions and different bit rates, while others do not.
本申请实施例解决在相关技术的转码机制下,动态满足用户需求,根据优先级、系统资源和转码产品的不一致等,动态分布系统资源和优先级,进行资源转码智能化运行。The embodiments of the present application solve the problem of dynamically satisfying user needs under the transcoding mechanism of the related art, dynamically distributing system resources and priorities according to priorities, inconsistencies between system resources and transcoding products, and performing intelligent operation of resource transcoding.
视频转码模块化动态处理模型如图3所示,分为外部模块30和内部模块31,其中:The video transcoding modular dynamic processing model is shown in Figure 3, which is divided into an
外部模块30,用于提供给客户端使用,客户端不用关心内部实现逻辑,通过外部模块传送相应视频,然后转码系统进行视频转码,推送转码后的视频给客户端。The
内部模块31,分为不同子模块,包括:视频预处理模块311、系统资源分配模块312、优先级计算模块313、视频存放分配模块314、视频任务调度模块315、处理分配模块316、转码模块317和打码模块318等。其中:The
1)视频预处理模块311,用于进行视频基本信息的处理,并进行保存,为下一步处理做准备。资源预处理模块的处理流程如图4所示,包括:1) The
步骤41:将视频输入到队列中,并对其进行缓冲;Step 41: Input the video into the queue and buffer it;
步骤42:对输入的视频进行格式、码率、关键帧等处理;Step 42: Process the format, bit rate, key frame, etc. of the input video;
步骤43:再通过队列将视频输出。Step 43: Output the video through the queue.
2)系统资源分配模块312,用于使用nice命令调整视频的优先级,使用cpulimit命令可以暂停视频,以控制视频所占用处理能力不超过特定限制。其中:2) The system resource allocation module 312 is used to adjust the priority of the video by using the nice command, and the video can be paused by using the cpulimit command, so as to control the processing capacity occupied by the video not to exceed a specific limit. in:
nice命令可以修改视频的优先级,这样就可以让视频运行得不那么频繁。这个功能在运行cpu密集型的后台进程或批处理作业时尤为有用。nice值的取值范围是[-20,19],-20表示最高优先级,而19表示最低优先级。Linux进程的默认nice值为0。使用nice命令,不带任何参数时,可以将进程的nice值设置为10。这样调度器就会将此视频视为较低优先级的视频,从而减少cpu资源的分配。The nice command can modify the priority of the video, so that the video can be run less frequently. This feature is especially useful when running CPU-intensive background processes or batch jobs. The value range of the nice value is [-20, 19], -20 represents the highest priority, and 19 represents the lowest priority. The default nice value for Linux processes is 0. Using the nice command without any parameters, you can set the nice value of the process to 10. In this way, the scheduler will treat this video as a lower priority video, thereby reducing the allocation of CPU resources.
cpulimit命令的工作原理是为视频预设一个cpu占用率门限,并实时监控进程是否超出此门限,若超出则让该视频暂停运行一段时间。cpulimit使用信号停止SIGSTOP和信号继续SIGCONT这两个信号来控制进程。它不会修改视频的nice值,而是通过监控视频的cpu占用率来做出动态调整。cpulimit的优势是可以控制视频的cpu使用率的上限值,但与nice命令相比也有缺点,那就是即使cpu是空闲的,视频也不能完全使用整个cpu资源。The working principle of the cpulimit command is to preset a cpu usage threshold for the video, and monitor whether the process exceeds this threshold in real time. If it exceeds, the video will be suspended for a period of time. cpulimit uses two signals, SIGSTOP to stop and SIGCONT to continue, to control processes. It does not modify the nice value of the video, but makes dynamic adjustments by monitoring the CPU usage of the video. The advantage of cpulimit is that it can control the upper limit of the cpu usage of the video, but it also has a disadvantage compared with the nice command, that is, even if the cpu is idle, the video cannot fully use the entire cpu resource.
3)优先级计算模块313,用于根据视频价值、处理紧迫性(时间紧迫度)或剩余价值密度,计算预处理视频的优先级。3) The priority calculation module 313 is configured to calculate the priority of the preprocessed video according to the video value, processing urgency (time urgency) or remaining value density.
系统各种功能总是通过处理相关的任务来完成。然而,由于系统各个功能在整个系统中重要性的不同,系统处理各个任务的重要程度也存在着明显的差异。显然,视频价值是视频本身的固有属性,与视频的时间特征无关;此外,视频的价值也不是在视频处理完成的那个瞬间产生,而是随着视频的处理而逐渐积累的过程。Various functions of the system are always completed by processing related tasks. However, due to the different importance of each function of the system in the whole system, there are also obvious differences in the importance of each task handled by the system. Obviously, the video value is an inherent attribute of the video itself and has nothing to do with the temporal characteristics of the video; in addition, the value of the video is not generated at the moment when the video processing is completed, but a process that gradually accumulates with the processing of the video.
对于实时视频系统各种视频,其处理紧迫性的处理方式也是不同的:仅考虑能满足截止期视频的紧迫性,对于无法满足截止期的视频则直接进夭折处理;处理视频的紧迫性等于其最近一次开始处理时的紧迫性,并在其处理期间保持不变;活动视频与等待视频的紧迫性随其等待时间的增加而逐渐增大;休眠视频的处理周期尚未到达,不考虑其紧迫性。For various videos in the real-time video system, the processing methods of processing urgency are also different: only consider the urgency of the video that can meet the deadline, and directly process the video that cannot meet the deadline; the urgency of processing the video is equal to its The urgency of the most recent start of processing and remains the same during its processing; the urgency of active and waiting videos increases as their waiting time increases; the processing period of dormant videos has not yet arrived, regardless of their urgency .
假设当实时视频系统开始运行时,所有视频同时放行,这时,基本优先级最高的视频首先获得系统处理权。然后,随着系统时间的推移,系统中各个视频的优先级动态变化。Assuming that when the real-time video system starts running, all videos are released at the same time, at this time, the video with the highest basic priority obtains the system processing right first. Then, over time, the priorities of individual videos in the system change dynamically.
对于处理视频,其处理紧迫性保持,但其剩余价值密度随着已处理时间的增加而不断增加,这在一定程度上保护了处理视频不被其它任务抢占;For processing video, its processing urgency remains, but its residual value density increases with the increase of processed time, which protects processing video from being preempted by other tasks to a certain extent;
对于等待视频与活动视频,其剩余价值密度保持不变,但随着其等待时间的增加,其处理紧迫性不断增加,这给它们提供了抢占系统处理权的机会。For waiting videos and active videos, their residual value density remains the same, but as their waiting time increases, their processing urgency increases, giving them an opportunity to preempt the system’s processing rights.
此外,通过调节参数的取值,还可以调节视频剩余价值密度及处理紧迫性对视频动态优先级的影响力。剩余价值密度大的视频将优先获得系统的处理权,故能提高系统累积价值收益。In addition, by adjusting the value of the parameter, the influence of the remaining video value density and processing urgency on the video dynamic priority can also be adjusted. Videos with high residual value density will be given priority to receive the processing rights of the system, so it can increase the cumulative value income of the system.
此外,处理视频的剩余价值密度随已处理时间增加而增大,能够减少处理视频被抢占而夭折的概率,进而减少了视频抢占的次数,提高视频的成功处理率。若剩余价值密度较大时,处理紧迫性高的视频将优先获得系统的处理权,可以增加剩余价值密度较大的视频参与系统处理的机会。但是,等待视频或活动视频的紧迫性随等待时间增加而增高,使视频抢占的概率大大增加,可能会造成部分价值密度大的视频夭折而降低系统累积价值收益。In addition, the residual value density of the processed video increases with the processing time, which can reduce the probability that the processed video is preempted and die prematurely, thereby reducing the number of video preemptions and improving the successful processing rate of the video. If the residual value density is high, the video with high processing urgency will be given priority to obtain the processing right of the system, which can increase the chances of the video with high residual value density participating in the system processing. However, the urgency of waiting for videos or active videos increases with the increase of waiting time, which greatly increases the probability of video preemption, which may cause some videos with high value density to die prematurely and reduce the accumulated value of the system.
4)视频存放分配模块314,用于对不同种类的视频进行存放,比如:存储H.264的视频;4) video storage and distribution module 314, for storing different kinds of videos, such as: storing the video of H.264;
5)视频调度模块315,用于统一分配调用不同的模块。5) The video scheduling module 315 is used for uniformly assigning and calling different modules.
当视频请求到达后,根据视频的属性将视频分为非紧急视频和紧急视频。其中:When the video request arrives, the video is divided into non-emergency video and emergency video according to the properties of the video. in:
非紧急视频带有可量化的优先级标记,进入视频队列后依据优先级进行排队,在视频队列中的视频优先级会随着在视频中的时间的增长而提高。这样可以防止饿死的问题出现,即某个优先级低的视频由于一直排在优先级高的视频后面儿一直无法得到转码服务。Non-urgent videos are marked with a quantifiable priority. After entering the video queue, they are queued according to the priority. The video priority in the video queue will increase as the time in the video increases. This can prevent the problem of starvation, that is, a video with a low priority cannot get the transcoding service because it is always ranked behind a video with a high priority.
紧急视频具有非常高的优先级,可以绕过一般的视频队列,直接请求计算资源以完成转码。在可用计算资源不足的情况下,可以通过调度将其他正在进行的非紧急视频任务暂停,腾出足够的计算资源服务于该紧急视频任务,保证紧急视频任务在较低的时间内完成,视频调度模块的处理流程如图5所示,该流程包括:Urgent video has a very high priority and can bypass the general video queue and directly request computing resources to complete the transcoding. When the available computing resources are insufficient, other ongoing non-emergency video tasks can be suspended through scheduling to free up enough computing resources to serve the urgent video task, ensuring that the emergency video task is completed within a relatively short time. The processing flow of the module is shown in Figure 5, which includes:
步骤51:视频预处理模块311对视频进行预处理后,优先级计算模块313对视频的优先级进行计算,得到紧急任务和非紧急任务;Step 51: After the
步骤52:对于非紧急任务,优先级计算模块313将非紧急任务缓存在任务队列319中,对于紧急任务,通过系统资源分配模块315对紧急任务分配资源;Step 52: For non-urgent tasks, the priority calculation module 313 caches the non-urgent tasks in the task queue 319, and for urgent tasks, allocates resources to the urgent tasks through the system resource allocation module 315;
步骤53:视频调度模块315对紧急任务和非紧急任务进行调度,系统资源分配模块315对紧急任务分配资源使得视频转码模块317对紧急任务进行转码处理;Step 53: The video scheduling module 315 schedules urgent tasks and non-urgent tasks, and the system resource allocation module 315 allocates resources to the urgent tasks so that the
步骤54:系统资源分配模块315对紧急任务分配资源使得视频打码模块318对紧急任务进行打码处理,当紧急任务处理完毕后,在调度系统资源对非紧急任务进行处理。Step 54: The system resource allocation module 315 allocates resources to the urgent tasks so that the
6)处理分配模块316,用于对视频进行处理的分配,使其使用转码模块或打码模块进行处理。6) The processing and
7)转码模块317,用于对视频进行转码处理。7) A
8)打码模块318,用于对视频进行打码处理。8) The
视频转码模块化动态处理模型对视频进行转码的过程如下:The video transcoding modular dynamic processing model transcodes the video as follows:
步骤61:视频接收模块接收客户端发送的视频,将视频存放在存储系统中;Step 61: the video receiving module receives the video sent by the client, and stores the video in the storage system;
步骤62:根据用户需求对视频预处理模块进行配置,将配置信息发送给视频存放分配模块,视频存放分配模块通过视频任务调度在存储系统中查找与配置信息相应的视频,并返回到视频存放分配模块中;Step 62: Configure the video preprocessing module according to user requirements, send the configuration information to the video storage and distribution module, and the video storage and distribution module searches for the video corresponding to the configuration information in the storage system through video task scheduling, and returns to the video storage and distribution module. in the module;
步骤63:视频预处理模块对返回的视频进行处理;Step 63: the video preprocessing module processes the returned video;
步骤64:视频调度模块调用优先级计算模块对视频的优先级进行计算;Step 64: the video scheduling module calls the priority calculation module to calculate the priority of the video;
步骤65:根据计算获得的优先级,系统资源分配模块对视频分配系统资源;Step 65: According to the priority obtained by calculation, the system resource allocation module allocates system resources to the video;
步骤66:处理分配模块确定视频使用转码模块,或是打码模块进行处理;Step 66: The processing allocation module determines that the video is processed by the transcoding module or the coding module;
步骤67:使用分配的系统资源对视频进行转码或打码处理,处理完成后,将视频返回存储系统,并发送给客户端。Step 67: Use the allocated system resources to perform transcoding or coding processing on the video, and after the processing is completed, return the video to the storage system and send it to the client.
随着网络和多媒体应用的发展,异质网络间信息的交换日益增多;在现阶段的数字视频通信领域,多种图像标准并存,这些图像标准除语法格式不同外,在压缩效率、码率、压缩格式上都不同,它们分别针对特定的应用场合,所处网络环境、相应的解码器性能或显示器显示能力都有区别,视频转码系统的重要性就日益突显。本申请实施例的技术效果主要包括以下内容:With the development of network and multimedia applications, the exchange of information between heterogeneous networks is increasing. In the field of digital video communication at this stage, a variety of image standards coexist. Except for different syntax formats, these image standards have different advantages in compression efficiency, bit rate, etc. The compression formats are different, and they are aimed at specific applications, the network environment, the corresponding decoder performance or display capabilities are different, the importance of the video transcoding system is increasingly prominent. The technical effects of the embodiments of the present application mainly include the following contents:
通过系统的视频动态给视频分配资源:通过分析系统现在cpu、内存等的占用情况,动态添加视频,并分配视频优先级。Dynamically allocate resources to videos through the video of the system: Dynamically add videos and assign video priorities by analyzing the current CPU and memory usage of the system.
通过视频属性动态分配转码优先级:不同视频优先级不同,通过视频本身优先级属性进行视频队列优先级动态调整。Dynamically assign transcoding priority through video attributes: Different videos have different priorities, and the video queue priority is dynamically adjusted through the video's own priority attribute.
本申请实施例实现的面向移动网络的视频转码系统,通过高效的转码算法,提供纯软件的实时降码率和降分辨率,转码质量损失少、实时性高、成本低、可扩展性和灵活性强。针对转码的实时性要求,特别提出了延时保证的自适应策略,解决了计算复杂性和转码质量均衡的关键技术问题,并据此实现了高效率的转码。The mobile network-oriented video transcoding system implemented in the embodiments of the present application provides pure software real-time code reduction rate and resolution reduction through an efficient transcoding algorithm, with less loss of transcoding quality, high real-time performance, low cost, and scalability. Sex and flexibility. Aiming at the real-time requirements of transcoding, an adaptive strategy for delay guarantee is proposed, which solves the key technical problems of computational complexity and transcoding quality balance, and thus achieves high-efficiency transcoding.
模块化架构,方便扩展:根据转码规模和转码视频多少可以动态添加资源如主机等,进行系统扩展。Modular architecture, easy to expand: According to the scale of transcoding and the number of transcoded videos, resources such as hosts can be dynamically added for system expansion.
对业务进行模块化拆分后,使各业务模块间解耦,因此,各个都是独立的模块,它们之间是没有依赖关系。每个模块负责的功能不同,业务逻辑不同,模块间业务解耦。模块功能比较单一,可在多个项目中使用。每个模块实际上也是一个完整的项目,可以进行单独编译、调试。After the business is divided into modules, the business modules are decoupled. Therefore, each is an independent module, and there is no dependency between them. Each module is responsible for different functions, different business logic, and business decoupling between modules. The function of the module is relatively simple and can be used in multiple projects. Each module is actually a complete project, which can be compiled and debugged separately.
本申请实施例提供一种资源处理装置,图6为本申请实施例的资源处理装置的组成结构示意图,如图6所示,资源处理装置60包括:获取模块601、预处理模块602、第一确定模块603和分配模块604;其中,An embodiment of the present application provides a resource processing apparatus. FIG. 6 is a schematic diagram of the composition and structure of the resource processing apparatus according to an embodiment of the present application. As shown in FIG. 6 , the resource processing apparatus 60 includes: an acquisition module 601 , a
获取模块601,用于通过转码系统中的外部接口获取待处理视频;an acquisition module 601, configured to acquire the video to be processed through an external interface in the transcoding system;
预处理模块602,用于根据基于用户需求设置的视频配置信息,对所述待处理视频进行预处理,得到预处理视频;A
第一确定模块603,用于根据所述预处理视频的属性信息,确定所述预处理视频的优先级;a
分配模块604,用于根据所述预处理视频的优先级,对所述预处理视频分配系统资源,以对所述预处理视频进行处理。The allocation module 604 is configured to allocate system resources to the preprocessed video according to the priority of the preprocessed video, so as to process the preprocessed video.
在其他实施例中,所述装置60还包括:第二确定模块,用于根据所述视频配置信息,确定所述待处理视频的类型;In other embodiments, the apparatus 60 further includes: a second determining module, configured to determine the type of the video to be processed according to the video configuration information;
相应地,获取模块601,用于根据所述待处理视频的类型,通过转码系统中的外部接口获取待处理视频。Correspondingly, the obtaining module 601 is configured to obtain the video to be processed through an external interface in the transcoding system according to the type of the video to be processed.
在其他实施例中,所述视频配置信息包括:目标格式、目标码率或目标关键帧信息,所述预处理模块包括:格式预处理单元、码率预处理单元或关键帧预处理单元;其中:In other embodiments, the video configuration information includes: target format, target bit rate or target key frame information, and the preprocessing module includes: a format preprocessing unit, a bit rate preprocessing unit or a key frame preprocessing unit; wherein :
格式预处理单元,用于将所述待处理视频的格式调整为所述目标格式,得到预处理视频;a format preprocessing unit, configured to adjust the format of the video to be processed to the target format to obtain a preprocessed video;
或者,码率预处理单元,用于将所述待处理视频的码率调整为所述目标码率,得到预处理视频;Or, a code rate preprocessing unit, configured to adjust the code rate of the to-be-processed video to the target code rate to obtain a preprocessed video;
或者,关键帧预处理单元,用于根据所述目标关键帧信息对所述待处理视频添加关键帧,得到预处理视频。Or, a key frame preprocessing unit, configured to add key frames to the to-be-processed video according to the target key frame information to obtain a pre-processed video.
在其他实施例中,所述属性信息包括:视频价值和时间紧迫度,所述装置还包括:第一配置模块,用于配置所述预处理视频的视频价值、时间紧迫度、所述视频价值对应的权值和所述时间紧迫度对应的权值;In other embodiments, the attribute information includes: video value and time urgency, and the apparatus further includes: a first configuration module configured to configure the video value, time urgency, and video value of the preprocessed video the corresponding weight and the weight corresponding to the time urgency;
相应地,所述第一确定模块包括:第一确定单元和第二确定单元;其中:Correspondingly, the first determination module includes: a first determination unit and a second determination unit; wherein:
第一确定单元,用于根据所述视频价值、所述时间紧迫度、所述视频价值对应的权值和所述时间紧迫度对应的权值,确定所述预处理视频的优先级得分;a first determining unit, configured to determine the priority score of the preprocessed video according to the video value, the time urgency, the weight corresponding to the video value, and the weight corresponding to the time urgency;
第二确定单元,用于根据所述优先级得分,确定所述预处理视频的优先级。A second determining unit, configured to determine the priority of the preprocessed video according to the priority score.
在其他实施例中,所述属性信息还包括:剩余价值密度,所述装置60还包括:第二配置模块,用于配置所述预处理视频的剩余价值密度和所述剩余价值密度对应的权值;In other embodiments, the attribute information further includes: remaining value density, and the apparatus 60 further includes: a second configuration module configured to configure the remaining value density of the preprocessed video and the weight corresponding to the remaining value density value;
相应地,第一确定单元,用于根据所述视频价值、所述时间紧迫度、所述剩余价值密度、所述视频价值对应的权值、所述时间紧迫度对应的权值和所述剩余价值密度对应的权值,确定所述预处理视频的优先级得分;Correspondingly, the first determination unit is configured to determine the value according to the video value, the time urgency, the remaining value density, the weight corresponding to the video value, the weight corresponding to the time urgency, and the remaining value. The weight corresponding to the value density determines the priority score of the preprocessed video;
第二确定单元,用于根据所述优先级得分,确定所述预处理视频的优先级。A second determining unit, configured to determine the priority of the preprocessed video according to the priority score.
在其他实施例中,所述预处理视频的优先级包括:紧急或非紧急;所述第二确定单元包括:第一确定子单元和第二确定子单元;其中:第一确定子单元,用于如果所述优先级得分大于或等于预设分值时,确定所述预处理视频的优先级为紧急;第二确定子单元,用于如果所述优先级得分小于预设分值时,确定所述预处理视频的优先级为非紧急;In other embodiments, the priority of the preprocessed video includes: urgent or non-urgent; the second determination unit includes: a first determination subunit and a second determination subunit; wherein: the first determination subunit, using When the priority score is greater than or equal to a preset score, determine that the priority of the preprocessed video is urgent; a second determination subunit is used to determine if the priority score is less than the preset score. The priority of the preprocessed video is non-urgent;
相应地,分配模块包括:第一分配单元和第二分配单元;其中:第一分配单元,用于如果所述预处理视频的优先级为紧急时,将全部系统资源分配给预处理视频,以保证优先级为紧急的预处理视频优先进行处理;第二分配单元,用于如果所述预处理视频的优先级为非紧急时,不分配系统资源给所述预处理视频,以等待优先级为紧急的预处理视频处理完成。Correspondingly, the allocating module includes: a first allocating unit and a second allocating unit; wherein: the first allocating unit is configured to allocate all system resources to the preprocessed video if the priority of the preprocessed video is urgent, so as to It is guaranteed that the preprocessed video whose priority is urgent is processed first; the second allocation unit is used to not allocate system resources to the preprocessed video if the priority of the preprocessed video is not urgent, and wait for the priority to be Urgent preprocessing video processing completed.
在其他实施例中,分配模块包括:调整单元和第三分配单元;其中,In other embodiments, the distribution module includes: an adjustment unit and a third distribution unit; wherein,
调整单元,用于根据系统资源占用信息,对确定的所述预处理视频的优先级进行调整,使得所述预处理视频的优先级变高或变低;an adjustment unit, configured to adjust the determined priority of the preprocessed video according to the system resource occupancy information, so that the priority of the preprocessed video becomes higher or lower;
第三分配单元,用于根据变高或变低的优先级,对所述预处理视频分配系统资源,使得分配的系统资源变大或变小。The third allocating unit is configured to allocate system resources to the preprocessed video according to the priorities that become higher or lower, so that the allocated system resources become larger or smaller.
在其他实施例中,分配模块包括:第三确定单元和第四分配单元;其中,In other embodiments, the allocation module includes: a third determination unit and a fourth allocation unit; wherein,
第三确定单元,用于根据所述预处理视频的优先级,确定所述预处理视频对应的系统资源阈值;a third determination unit, configured to determine a system resource threshold corresponding to the preprocessed video according to the priority of the preprocessed video;
第四分配单元,用于根据所述系统资源阈值,对所述预处理视频分配系统资源,以使所述预处理视频对应的系统资源不超过所述系统资源阈值。A fourth allocation unit, configured to allocate system resources to the preprocessed video according to the system resource threshold, so that the system resources corresponding to the preprocessed video do not exceed the system resource threshold.
需要说明的是,上述实施例提供的视频处理装置在进行视频处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的视频处理装置与视频处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the video processing apparatus provided in the above-mentioned embodiments performs video processing, only the division of the above-mentioned program modules is used for illustration. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the video processing apparatus and the video processing method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
图7为本申请实施例的视频处理设备的组成结构示意图,如图7所示,所述装置包括处理器702和用于存储能够在处理器702上运行的计算机程序的存储器701;其中,所述处理器702用于运行所述计算机程序时,以实现上述实施例中提供的视频处理方法中的步骤。FIG. 7 is a schematic structural diagram of a video processing device according to an embodiment of the present application. As shown in FIG. 7 , the apparatus includes a
这里需要指出的是:以上终端实施例项的描述,与上述方法描述是类似的,具有同方法实施例相同的有益效果,因此不做赘述。对于本申请终端实施例中未披露的技术细节,本领域的技术人员请参照本申请方法实施例的描述而理解,为节约篇幅,这里不再赘述。It should be pointed out here that the descriptions of the above terminal embodiments are similar to the descriptions of the above methods, and have the same beneficial effects as the method embodiments, so they will not be repeated. For technical details that are not disclosed in the terminal embodiments of the present application, those skilled in the art should refer to the description of the method embodiments of the present application to understand, and to save space, details are not repeated here.
在示例性实施例中,本申请实施例还提供了一种存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器701,上述计算机程序可由处理器702处理,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、FlashMemory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, an embodiment of the present application further provides a storage medium, specifically a computer-readable storage medium, for example, including a
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器处理时实现上述实施例中提供的视频处理方法中的步骤。Embodiments of the present application further provide a computer-readable storage medium on which a computer program is stored, and when the computer program is processed by a processor, implements the steps in the video processing method provided in the foregoing embodiments.
这里需要指出的是:以上计算机介质实施例项的描述,与上述方法描述是类似的,具有同方法实施例相同的有益效果,因此不做赘述。对于本申请终端实施例中未披露的技术细节,本领域的技术人员请参照本申请方法实施例的描述而理解,为节约篇幅,这里不再赘述。It should be pointed out here that the descriptions of the above computer medium embodiments are similar to the descriptions of the above methods, and have the same beneficial effects as those of the method embodiments, so they will not be repeated. For technical details that are not disclosed in the terminal embodiments of the present application, those skilled in the art should refer to the description of the method embodiments of the present application to understand, and to save space, details are not repeated here.
上述本申请实施例揭示的方法可以应用于所述处理器中,或者由所述处理器实现。所述处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述处理器可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,所述处理器读取存储器中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present application may be applied to the processor, or implemented by the processor. The processor may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the foregoing method in combination with its hardware.
可以理解,本申请实施例的存储器(存储器)可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(FlashMemory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random AccessMemory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random AccessMemory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory (memory) in this embodiment of the present application may be a volatile memory or a nonvolatile memory, and may also include both a volatile memory and a nonvolatile memory. Among them, the non-volatile memory may be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-only memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (FlashMemory), Magnetic Surface Memory, Optical disk, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Type Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory). The memories described in the embodiments of the present application are intended to include, but not be limited to, these and any other suitable types of memories.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811506852.2A CN111294647B (en) | 2018-12-10 | 2018-12-10 | A video processing method, device and device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811506852.2A CN111294647B (en) | 2018-12-10 | 2018-12-10 | A video processing method, device and device, and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111294647A CN111294647A (en) | 2020-06-16 |
| CN111294647B true CN111294647B (en) | 2022-04-08 |
Family
ID=71029010
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811506852.2A Active CN111294647B (en) | 2018-12-10 | 2018-12-10 | A video processing method, device and device, and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111294647B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112000454B (en) * | 2020-08-27 | 2023-06-09 | 平安国际智慧城市科技股份有限公司 | Method and device for processing multimedia data |
| CN112040239B (en) * | 2020-09-14 | 2022-07-26 | 国网重庆市电力公司电力科学研究院 | File repair method and device based on AVI format file structure |
| CN112291068B (en) * | 2020-11-02 | 2023-08-18 | 重庆捷旭科技有限公司 | Multimedia data processing method based on cloud storage |
| CN113038071B (en) * | 2021-01-22 | 2023-03-10 | 创业慧康科技股份有限公司 | Medical video processing system for medical remote visiting system |
| CN112995704B (en) * | 2021-04-25 | 2021-08-06 | 武汉中科通达高新技术股份有限公司 | Cache management method and device, electronic equipment and storage medium |
| CN113242452A (en) * | 2021-06-15 | 2021-08-10 | 中国人民解放军91388部队 | Video display method, device, system, equipment and storage medium |
| CN113645471B (en) * | 2021-06-22 | 2022-06-03 | 北京邮电大学 | Multi-cloud video distribution strategy optimization method and system |
| CN120378605A (en) * | 2025-06-25 | 2025-07-25 | 西安昕晨电子科技有限公司 | Video acquisition method and device based on modularized low coupling |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW200819993A (en) * | 2006-10-27 | 2008-05-01 | Nvidia Corp | System resources arbitration method with dynamic priority adjustment |
| EP2362659A1 (en) * | 1999-12-14 | 2011-08-31 | Scientific Atlanta, Inc. | System and method for adaptive decoding of a video signal with coordinated resource allocation |
| CN105992020A (en) * | 2015-07-24 | 2016-10-05 | 乐视云计算有限公司 | Video conversion resource distribution method and system |
| CN106027596A (en) * | 2016-04-27 | 2016-10-12 | 乐视控股(北京)有限公司 | Task distributing method and device |
| CN106470169A (en) * | 2015-08-19 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of service request method of adjustment and equipment |
| CN106851336A (en) * | 2017-02-07 | 2017-06-13 | 上海网达软件股份有限公司 | The audio-video document code-transferring method and system of a kind of Dynamic Resource Allocation for Multimedia |
| CN106911939A (en) * | 2017-01-06 | 2017-06-30 | 武汉烽火众智数字技术有限责任公司 | A kind of video transcoding method, apparatus and system |
| CN107729130A (en) * | 2017-09-20 | 2018-02-23 | 昆明理工大学 | A kind of time point based on information physical system does not know task-dynamic dispatching method |
| CN108366273A (en) * | 2018-03-16 | 2018-08-03 | 中国传媒大学 | Distributed video transcoding system and distributed video transcoding method |
-
2018
- 2018-12-10 CN CN201811506852.2A patent/CN111294647B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2362659A1 (en) * | 1999-12-14 | 2011-08-31 | Scientific Atlanta, Inc. | System and method for adaptive decoding of a video signal with coordinated resource allocation |
| TW200819993A (en) * | 2006-10-27 | 2008-05-01 | Nvidia Corp | System resources arbitration method with dynamic priority adjustment |
| CN105992020A (en) * | 2015-07-24 | 2016-10-05 | 乐视云计算有限公司 | Video conversion resource distribution method and system |
| CN106470169A (en) * | 2015-08-19 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of service request method of adjustment and equipment |
| CN106027596A (en) * | 2016-04-27 | 2016-10-12 | 乐视控股(北京)有限公司 | Task distributing method and device |
| CN106911939A (en) * | 2017-01-06 | 2017-06-30 | 武汉烽火众智数字技术有限责任公司 | A kind of video transcoding method, apparatus and system |
| CN106851336A (en) * | 2017-02-07 | 2017-06-13 | 上海网达软件股份有限公司 | The audio-video document code-transferring method and system of a kind of Dynamic Resource Allocation for Multimedia |
| CN107729130A (en) * | 2017-09-20 | 2018-02-23 | 昆明理工大学 | A kind of time point based on information physical system does not know task-dynamic dispatching method |
| CN108366273A (en) * | 2018-03-16 | 2018-08-03 | 中国传媒大学 | Distributed video transcoding system and distributed video transcoding method |
Non-Patent Citations (1)
| Title |
|---|
| 一种基于优先级区分的视频流传输控制算法;王明伟等;《计算机技术与发展》;20110210(第02期);54-57 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111294647A (en) | 2020-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111294647B (en) | A video processing method, device and device, and storage medium | |
| CN110769278B (en) | Distributed video transcoding method and system | |
| Li et al. | Cost-efficient and robust on-demand video transcoding using heterogeneous cloud services | |
| CN1198210C (en) | Micro dispatching method and operation system inner core | |
| US20140204103A1 (en) | Data processing system and method for task scheduling in a data processing system | |
| US8549525B2 (en) | Method for tuning service performance of multi-task system and multi-task system thereof | |
| CN111813543B (en) | Adaptive scheduling method, device and computer readable storage medium | |
| EP1061443A2 (en) | Flow control in adaptive pipelines | |
| Bulterman et al. | Multimedia synchronization and UNIX | |
| KR20210130802A (en) | First-in-first-out capability for segmented data stream processing | |
| CN106993190B (en) | Software-hardware synergism coding method and system | |
| WO2021036784A1 (en) | Media data processing method and apparatus, media server and computer-readable storage medium | |
| CN115134658B (en) | Video processing method, device, equipment and storage medium | |
| US20250193465A1 (en) | Video transcoding method and apparatus, device, storage medium, and video-on-demand system | |
| CN110188518B (en) | Parameter configuration method, device, terminal and storage medium | |
| CN110324615A (en) | A kind of code rate allocation method and device | |
| CN119343665A (en) | Processing of video operations as subtasks of video clips | |
| US11166035B1 (en) | Method and device for transcoding video | |
| WO2023174254A1 (en) | Video posting method and apparatus, and device and storage medium | |
| JP2006350828A (en) | Stream control device | |
| WO2025044576A1 (en) | Task processing method, question answering method, and task processing platform | |
| CN107426611B (en) | multi-path output method and system based on video transcoding | |
| CN115509725A (en) | GOP scheduling method, system, terminal equipment and medium based on scene change | |
| CN115604238A (en) | Audio and video processing method, device, equipment and medium of Internet of things operating system | |
| CN114816703A (en) | Task processing method, device, equipment and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220706 Address after: 610041 China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan Patentee after: China Mobile (Chengdu) information and Communication Technology Co.,Ltd. Patentee after: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd. Address before: 100032 No. 29, Finance Street, Beijing, Xicheng District Patentee before: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd. |
|
| TR01 | Transfer of patent right |