WO2017107514A1 - Offline transcoding method and system - Google Patents

Offline transcoding method and system Download PDF

Info

Publication number
WO2017107514A1
WO2017107514A1 PCT/CN2016/096007 CN2016096007W WO2017107514A1 WO 2017107514 A1 WO2017107514 A1 WO 2017107514A1 CN 2016096007 W CN2016096007 W CN 2016096007W WO 2017107514 A1 WO2017107514 A1 WO 2017107514A1
Authority
WO
WIPO (PCT)
Prior art keywords
transcoding
video file
task
information
attribute information
Prior art date
Application number
PCT/CN2016/096007
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 WO2017107514A1 publication Critical patent/WO2017107514A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • 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
    • H04N21/4402Processing 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 involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing 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 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

Definitions

  • the present application belongs to the field of video technologies, and in particular, to an offline transcoding method and system.
  • the transcoding program is usually run on a high-performance Linux server. Some code stream versions are preset to be pre-transcoded for transcoding.
  • the actual transcoding operation is a shell command (Linux interface interactive command). It contains various encoders and filter settings.
  • shell command Linux interface interactive command
  • simple preset transcoding can no longer meet the needs of users. .
  • the embodiment of the present application provides an offline transcoding method and system for solving the technical problem of poor customizability of the transcoding system in the prior art.
  • the embodiment of the present application discloses an offline transcoding method, including: receiving transcoding task data sent by a transcoding control device, where the transcoding task data includes a storage path of a video file to be transcoded And transcoding the configuration information; acquiring the video file to be transcoded according to the storage path; acquiring the first attribute information of the video file, and rotating the video file according to the first attribute information and the transcoding configuration information Code processing; returning result information of the transcoding task to the transcoding control device.
  • an offline transcoding system including: a data receiving module, configured to receive transcoding task data sent by a transcoding control device, where the transcoding task data includes a code to be transcoded a storage path and transcoding configuration information of the video file; a file obtaining module, configured to acquire a video file to be transcoded according to the storage path; and a transcoding module, configured to acquire first attribute information of the video file, and according to The first attribute information and the transcoding configuration information are subjected to transcoding processing on the video file; and the result feedback module is configured to return result information of the transcoding task to the transcoding control device.
  • the embodiment of the present application provides an electronic device, including: the above-mentioned offline transcoding system.
  • the embodiment of the present application provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium can store a computer program, and when the program is executed, the part of the offline transcoding method described above can be implemented. Or all steps.
  • An embodiment of the present application further provides an electronic device, including: one or more processors; and a memory; wherein the memory stores instructions executable by the one or more processors, the instructions being The one or more processors are executed to enable the one or more processors to perform any of the above described offline transcoding methods of the present application.
  • An embodiment of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the above-mentioned offline transcoding method of the embodiment of the present application.
  • the offline transcoding method and system provided by the embodiments of the present application provide an easy-to-expand customization requirement on the basis of providing basic offline transcoding functions, and the editor can set attribute parameters for the transcoding task.
  • FIG. 2 is a block diagram of an offline transcoding method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of hardware of an apparatus for offline transcoding according to an embodiment of the present application.
  • the offline transcoding system receives the transcoding task delivered by the transcoding control device, obtains the video file to be transcoded, and verifies the correctness and integrity of the video file, and then combines the transcoding configuration information with The video file is transcoded, and the running status of the transcoding task is monitored at the same time, and the transcoding task that ends due to the abnormality is retried. After the transcoding process is completed, the attribute information and image information of the finished file are fed back to the transcoding control.
  • the device on the basis of providing basic offline transcoding function, provides easy-to-expand customization requirements, optimizes the monitoring of the transcoding program, guarantees the success rate and stability of the transcoding task, and tries to transcode as much as possible. The problems that arise are explained to the user and improve the user experience.
  • FIG. 1 is an offline transcoding method provided by an embodiment of the present application, which is applicable to an offline transcoding system, and the method includes the following steps S10-S13.
  • step S10 the transcoding task data sent by the transcoding control device is received, and the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded.
  • the transcoding control device may be a computer used by a video service provider editor, a server console, etc., for calling a service interface of the offline transcoding system, and delivering the transcoding task data.
  • the storage path of the video file to be transcoded may be a storage path of the video file to be transcoded in the cloud storage system, and the cloud storage system is a plurality of node servers for saving the source video file, and is distributed in each area.
  • the transcoding configuration information is an attribute parameter of the transcoding task configured by the editing personnel through the transcoding control device, including: black edge removal, occlusion identification, audio track and channel selection, picture rotation, adding subtitles, and custom aspect ratio. , volume adjustment, bit rate quality ratio setting, end-of-sale promotion settings, multi-track configuration, original painting, Digital Theatre System (DTS) or Dolby transcoding.
  • DTS Digital Theatre System
  • step S11 the video file to be transcoded is obtained according to the storage path.
  • the storage path is parsed and downloaded from the corresponding storage path to the video file to be transcoded.
  • step S12 the first attribute information of the video file is acquired, and the video file is transcoded according to the first attribute information and the transcoding configuration information.
  • the first attribute information includes audio and video encoding format, audio and video code rate, total file rate, audio and video duration and total duration, audio sampling rate, and encapsulation mode of the video file, to reflect current audio and video attributes of the video file. . Then, the video file is transcoded according to the transcoding configuration information in the transcoding task data, and the finished file corresponding to the transcoding configuration information is generated.
  • step S13 the result information of the transcoding task is returned to the transcoding control device.
  • step S12 If the transcoding process is successful in step S12, the message that the transcoding task has been successfully executed is returned; if the transcoding process fails, the message that the transcoding task fails to be processed is returned, and the execution result of the transcoding task is notified to the editor.
  • step S12 may be further implemented as the following steps S120-S122.
  • step S120 the first attribute information of the video file is acquired, and according to the first attribute information, it is verified whether the video file can be transcoded.
  • the audio and video encoding format of the video file is obtained from the header information of the video file, and the files of different encoding formats have different file header identifiers.
  • the file header identifiers in the format of asf, wma, wmv, etc. are “30 26 B2 75 8E 66 CF 11 A6”
  • the file header of the avi format is identified as “41 56 49 20” and so on.
  • the offline transcoding system presets a list of encoding formats that cannot be transcoded, and matches the audio and video encoding formats of the video files to determine whether the video files can be transcoded.
  • step S121 in response to the video file being transcoded, the video file is transcoded according to the transcoding configuration information.
  • the transcoding can be performed and processed according to the transcoding configuration information.
  • step S122 in response to the video file being unable to be transcoded, the transcoding task is exited and the verification information that the video file cannot be transcoded is returned to the transcoding control device.
  • the transcoding processing cannot be performed, the transcoding task is exited, and the verification information that cannot be transcoded is returned to the transcoding control device to notify the user that the A user is an editor or developer who uses a transcoding control device.
  • the audio and video encoding format of the video file is verified before the start of the transcoding process to determine whether it can be transcoded. If the transcoding cannot be transcoded, the reason why the transcoding cannot be transcoded is returned to the transcoding control device. Prompt editor or developer.
  • step S12 may be further implemented as the following steps S123-S124.
  • step S123 the first attribute information of the video file is acquired, and the video file is verified to be complete according to the first attribute information.
  • step S124 in response to the video file being incomplete, the verification information that the video file is incomplete is returned to the transcoding control device.
  • the transcoding will continue, but the incomplete video will be returned to the transcoding control device, and the editor or developer has been notified to consider whether it needs to be replaced with another video file for transcoding. .
  • the integrity of the video file is verified before the transcoding process, and when the video file is incomplete, the verification result can be notified to the editor or developer.
  • the verification of the correctness of the video encoding attribute in the above steps S120-S122 and the verification of the video integrity in steps S123-S124 can also be simultaneously performed in parallel, and all the verification results are fed back to the transcoding control device, and the editor has been informed.
  • step S12 further includes the following steps S125-S126.
  • step S125 the video file is transcoded according to the first attribute information and the transcoding configuration information, and the transcoding task is monitored in real time to determine whether the transcoding task is in an abnormal state.
  • transcoding task After the transcoding task starts to execute, monitor the running status of the transcoding task to determine whether the transcoding task has an abnormality. Monitoring of transcoding tasks can include progress monitoring and memory usage monitoring.
  • the progress monitoring is to monitor the current progress of the transcoding task, redirect the standard output of the transcoding program to the preset file, and read the number of frames, duration and file size of the transcoding from the preset file, according to The duration of the source video file predicts the remaining time of the transcoding, and returns the current progress information to the transcoding control device for editing by the editor.
  • the progress card of the transcoding task exceeds the preset threshold for a certain value duration, it is determined that the transcoding sub-process is stuck, and the transcoding task is in an abnormal state.
  • Memory usage monitoring is the monitoring of the memory usage of the transcoding task.
  • the amount of memory occupied by the transcoded subprocess is obtained according to the process identifier (pid) of the transcoded subprocess.
  • pid process identifier
  • step S126 in response to the transcoding task being in an abnormal state, the transcoding task is ended.
  • the running status of the transcoding task is monitored, and the progress information is fed back to the transcoding control device, and when the transcoding task is stuck or the system resource occupancy is too high, the determination is transferred.
  • the code task is abnormal and ends the transcoding task.
  • step S12 further includes the following step S127 on the basis of including steps S125-S126.
  • step S127 the transcoding task is reprocessed by the preset retry transcoding scheme according to the error type corresponding to the abnormal state.
  • the corresponding retry transcoding scheme is preset for different error types, and the preset retry transcoding scheme can be set by a workaround parameter, such as the "--ffmpeg-workaround-bugs" parameter under ffmpeg.
  • the audio and video encoding format of the output file may be re-encoded, for example, the video encoding is converted from the avi format to the rm format, and the audio encoding is converted from the mp3 format to the FXA. format.
  • the code rate of the output file can be appropriately reduced, the cached data in the encoding process can be reduced, and the memory usage of the encoding process can be reduced.
  • the retry is performed according to the preset retry transcoding scheme, so that the delivered transcoding task is successfully executed as much as possible.
  • step S12 can be further implemented as the following step S128.
  • step S1208 the video file is secondarily encoded according to the first attribute information and the transcoding configuration information (2pass encoding)
  • 2pass means that you need to do two encodings.
  • the first pass encodes the whole slice first, and gets a stats file and a macroblock tree (mbtree) file.
  • the second pass encodes the two files for reference to assign a reasonable bit rate. If a specific code rate (or file size) is required for the finished file, it is usually encoded with 2pass (or multiple pass) to ensure the quality of the transcoding, save the code stream resources, and achieve the same effect on the file audio.
  • step S13 may further be the following step S131.
  • step S131 the second attribute information of the finished file of the transcoding task is acquired and returned to the transcoding control device.
  • the second attribute information includes information such as audio and video duration, code rate, frame rate, etc. of the finished file, and is compared with the target code stream version of the transcoding task, and outputs the verification result and returns to the transcoding control device for the editor to the finished product.
  • the attribute information of the file is checked and it is determined whether the finished file is output and content is distributed.
  • step S13 may further be the following step S132.
  • step S132 the image of the finished document of the transcoding task is intercepted and returned to the transcoding control device.
  • first predetermined number of divisions for example, 16 equal parts
  • randomly capturing a first preset number of (for example, 16) JPG images and using the image optimization program as the first preset number of images.
  • the score is saved, and a second preset number of (for example, 8) JPG images with higher scores are saved and returned to the transcoding control device for the editor to visually view the image quality of the finished document.
  • a first preset number eg, 16
  • a second predetermined number of (for example, 8) JPG images with higher scores are saved and Return to the transcoding control device for the editor to visually view the image quality of the finished document during the transcoding process.
  • steps S131 and S132 can also be processed in parallel at the same time, and the attribute information of the finished file and the image are returned together to the transcoding control device, and the editor combines the attribute information and the intercepted image to comprehensively consider the transcoding effect to determine whether the finished document is to be processed. Output for content distribution.
  • FIG. 2 is an offline transcoding system provided by an embodiment of the present application, including:
  • the data receiving module 20 is configured to receive transcoding task data that is sent by the transcoding control device, where the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded;
  • a file obtaining module 21 configured to acquire a video file to be transcoded according to the storage path;
  • the transcoding module 22 is configured to acquire first attribute information of the video file, and perform transcoding processing on the video file according to the first attribute information and transcoding configuration information;
  • the result feedback module 23 is configured to return result information of the transcoding task to the transcoding control device.
  • the transcoding module 22 further includes:
  • a first information verification submodule configured to acquire first attribute information of the video file, and verify, according to the first attribute information, whether the video file can be transcoded
  • transcoding submodule configured to perform transcoding processing on the video file according to the transcoding configuration information, in response to the video file being transcoded
  • the first information feedback submodule is configured to, when the video file cannot be transcoded, exit the transcoding task and return verification information that the video file cannot be transcoded to the transcoding control device.
  • the transcoding module 22 further includes:
  • a second information verification submodule configured to acquire first attribute information of the video file, and according to the first An attribute information verifies whether the video file is complete;
  • the second information feedback submodule returns, in response to the video file being incomplete, verification information that the video file is incomplete to the transcoding control device.
  • the transcoding module 22 further includes:
  • a status monitoring submodule configured to perform transcoding processing on the video file according to the first attribute information and the transcoding configuration information, and perform real-time monitoring on the transcoding task to determine whether the transcoding task is in an abnormal state.
  • the task end sub-module is configured to end the transcoding task in response to the transcoding task being in an abnormal state.
  • the status monitoring submodule further includes:
  • a progress monitoring unit that monitors a current progress of the transcoding task and returns information of the current progress to the transcoding control device.
  • the transcoding module 22 further includes:
  • the task retry submodule is configured to reprocess the transcoding task by a preset retry transcoding scheme according to the error type corresponding to the abnormal state.
  • the transcoding module 22 further includes:
  • a secondary coding submodule configured to perform secondary coding (2pass coding) on the video file according to the first attribute information and the transcoding configuration information.
  • the result feedback module 23 further includes:
  • the product information feedback sub-module is configured to acquire second attribute information of the finished file of the transcoding task and return to the transcoding control device.
  • the result feedback module 23 further includes:
  • a finished image feedback sub-module for intercepting an image of the finished document of the transcoding task and returning to the transcoding control device.
  • each of the foregoing functional modules may be implemented by a hardware processor.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium can store a program, and the program can be executed to perform an offline transfer provided by any one of the foregoing embodiments.
  • FIG. 3 is a schematic structural diagram of hardware of an electronic device of an offline transcoding method according to an embodiment of the present application. As shown in FIG. 3, the device includes:
  • One or more processors 310 and memory 320 are exemplified by one processor 310 in FIG.
  • the apparatus performing the offline transcoding method may further include: an input device 330 and an output device 340.
  • the processor 310, the memory 320, the input device 330, and the output device 340 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 320 is used as a non-transitory computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions corresponding to the offline transcoding method in the embodiment of the present application. / module.
  • the processor 310 executes various functional applications of the server and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 320, that is, implementing the offline transcoding method of the above method embodiments.
  • the memory 320 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the offline transcoding device, and the like.
  • memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 320 can optionally include memory remotely located relative to processor 310, which can be connected to an offline transcoding device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 330 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the offline transcoding device.
  • the output device 340 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 320, and when executed by the one or more processors 310, perform an offline transcoding method in any of the above method embodiments.
  • the electronic device of the embodiment of the invention exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, preview players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Abstract

The invention discloses an offline transcoding method and system. The method comprises: receiving transcoding task data issued by a transcoding controller, the transcoding task data comprising a storage path and transcoding configuration information of a video file to be transcoded; obtaining the video file to be transcoded according to the storage path; obtaining a first attribution information of the video file and transcoding the video file according to the first attribution information and the transcoding configuration information; and returning result information of the transcoding task to the transcoding controller. The invention provides easy-to-expand customized requirements based on providing a basic offline transcoding function, and an editor can realize various transcoding functions flexibly by setting attribute parameters of the transcoding task, so that various video requirements of Internet users can be met.

Description

离线转码方法和系统Offline transcoding method and system
本申请要求于2015-12-21提交中国专利局、申请号为2015109646610、发明名称为“离线转码方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2015.
技术领域Technical field
本申请属于视频技术领域,具体地说,涉及一种离线转码方法和系统。The present application belongs to the field of video technologies, and in particular, to an offline transcoding method and system.
背景技术Background technique
随着多媒体、智能设备及互联网应用等技术的快速发展,用户在观看视频直播点播、视频分享等方面的需求愈发强烈。对于视频网站或视频云服务这样需要运营影视剧等长视频、用户原创内容(User Generated Content,UGC)分享视频以及对接各类客户资源的大型内容平台来说,很有必要去维护一套高效稳定的转码后台。With the rapid development of technologies such as multimedia, smart devices and Internet applications, users are increasingly demanding to watch live video on demand, video sharing and other aspects. For a video website or video cloud service that needs to operate video and video such as long video, User Generated Content (UGC) to share video and dock a variety of customer resources for large content platforms, it is necessary to maintain a set of efficient and stable Transcoding backend.
转码程序通常运行在高性能Linux服务器上,预置一些码流版本对应预设(preset)转码进行转码操作,实际的转码操作即是一条shell命令(Linux的界面交互命令),命令里包含各种编码器,滤镜设置;但随着片源类型的增长,用户定制需求的增加,以及更多高清音视频码流的适配,简单的预设转码已无法满足用户的需求。The transcoding program is usually run on a high-performance Linux server. Some code stream versions are preset to be pre-transcoded for transcoding. The actual transcoding operation is a shell command (Linux interface interactive command). It contains various encoders and filter settings. However, with the increase of the source type, the increase of user customization requirements, and the adaptation of more high-definition audio and video streams, simple preset transcoding can no longer meet the needs of users. .
发明内容Summary of the invention
有鉴于此,本申请实施例提供了一种离线转码方法和系统,用以解决现有技术中转码系统的可定制性较差的技术问题。In view of this, the embodiment of the present application provides an offline transcoding method and system for solving the technical problem of poor customizability of the transcoding system in the prior art.
为了解决上述技术问题,本申请实施例公开了一种离线转码方法,包括:接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;根据所述存储路径获取待转码的视频文件;获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;返回所述转码任务的结果信息至所述转码控制设备。 In order to solve the above technical problem, the embodiment of the present application discloses an offline transcoding method, including: receiving transcoding task data sent by a transcoding control device, where the transcoding task data includes a storage path of a video file to be transcoded And transcoding the configuration information; acquiring the video file to be transcoded according to the storage path; acquiring the first attribute information of the video file, and rotating the video file according to the first attribute information and the transcoding configuration information Code processing; returning result information of the transcoding task to the transcoding control device.
为了解决上述技术问题,本申请实施例公开了一种离线转码系统,包括:数据接收模块,用于接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;文件获取模块,用于根据所述存储路径获取待转码的视频文件;转码模块,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;结果反馈模块,用于返回所述转码任务的结果信息至所述转码控制设备。In order to solve the above technical problem, the embodiment of the present application discloses an offline transcoding system, including: a data receiving module, configured to receive transcoding task data sent by a transcoding control device, where the transcoding task data includes a code to be transcoded a storage path and transcoding configuration information of the video file; a file obtaining module, configured to acquire a video file to be transcoded according to the storage path; and a transcoding module, configured to acquire first attribute information of the video file, and according to The first attribute information and the transcoding configuration information are subjected to transcoding processing on the video file; and the result feedback module is configured to return result information of the transcoding task to the transcoding control device.
本申请实施例提供了一种电子设备,包括:上述的一种离线转码系统。The embodiment of the present application provides an electronic device, including: the above-mentioned offline transcoding system.
本申请实施例提供了一种非暂态计算机可读存储介质,其中,该非暂态计算机可读存储介质可存储有计算机程序,该程序执行时可实现上述的一种离线转码方法的部分或全部步骤。The embodiment of the present application provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium can store a computer program, and when the program is executed, the part of the offline transcoding method described above can be implemented. Or all steps.
本申请实施例还提供了一种电子设备,包括:一个或多个处理器;以及,存储器;其中,所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行,以使所述一个或多个处理器能够执行本申请上述任一项离线转码方法。An embodiment of the present application further provides an electronic device, including: one or more processors; and a memory; wherein the memory stores instructions executable by the one or more processors, the instructions being The one or more processors are executed to enable the one or more processors to perform any of the above described offline transcoding methods of the present application.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请实施例上述任一项离线转码方法。An embodiment of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the above-mentioned offline transcoding method of the embodiment of the present application.
与现有技术相比,本申请实施例提供的离线转码方法和系统,在提供基本的离线转码功能的基础上,提供易扩展的定制化需求,编辑人员可以对转码任务设置属性参数,灵活的实现各种转码功能,以满足互联网用户的各种视频需求。Compared with the prior art, the offline transcoding method and system provided by the embodiments of the present application provide an easy-to-expand customization requirement on the basis of providing basic offline transcoding functions, and the editor can set attribute parameters for the transcoding task. Flexible implementation of various transcoding functions to meet the various video needs of Internet users.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1是本申请实施例提供的一种离线转码方法的流程图;1 is a flowchart of an offline transcoding method provided by an embodiment of the present application;
图2是本申请实施例提供的一种离线转码方法的框图;2 is a block diagram of an offline transcoding method provided by an embodiment of the present application;
图3是本申请实施例提供的离线转码方法的设备的硬件结构示意图。 FIG. 3 is a schematic structural diagram of hardware of an apparatus for offline transcoding according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例,离线转码系统接收转码控制设备下发的转码任务,获取待转码的视频文件,对该视频文件的正确性和完整性进行校验,再结合转码配置信息对视频文件进行转码,同时监控转码任务的运行状态,对因出现异常而结束的转码任务进行重试,在转码处理完毕之后,将成品文件的属性信息和图像信息反馈给转码控制设备,在提供基本的离线转码功能的基础上,提供易扩展的定制化需求,优化对转码程序的监控,保障了转码任务的成功率和稳定性,并尽可能对转码过程中出现的问题对用户予以说明,提高良好的用户体验。In the embodiment of the present application, the offline transcoding system receives the transcoding task delivered by the transcoding control device, obtains the video file to be transcoded, and verifies the correctness and integrity of the video file, and then combines the transcoding configuration information with The video file is transcoded, and the running status of the transcoding task is monitored at the same time, and the transcoding task that ends due to the abnormality is retried. After the transcoding process is completed, the attribute information and image information of the finished file are fed back to the transcoding control. The device, on the basis of providing basic offline transcoding function, provides easy-to-expand customization requirements, optimizes the monitoring of the transcoding program, guarantees the success rate and stability of the transcoding task, and tries to transcode as much as possible. The problems that arise are explained to the user and improve the user experience.
图1是本申请实施例提供的一种离线转码方法,适用于离线转码系统,该方法包括以下步骤S10-S13。FIG. 1 is an offline transcoding method provided by an embodiment of the present application, which is applicable to an offline transcoding system, and the method includes the following steps S10-S13.
在步骤S10中,接收转码控制设备下发的转码任务数据,转码任务数据包括待转码的视频文件的存储路径和转码配置信息。In step S10, the transcoding task data sent by the transcoding control device is received, and the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded.
转码控制设备可以是视频服务商编辑人员使用的计算机、服务器控制台等,用于调用离线转码系统的服务接口,并下发转码任务数据。The transcoding control device may be a computer used by a video service provider editor, a server console, etc., for calling a service interface of the offline transcoding system, and delivering the transcoding task data.
待转码的视频文件的存储路径可以是待转码的视频文件在云存储系统中的存储路径,云存储系统是用于保存源视频文件的多个节点服务器,分布在各个地区。The storage path of the video file to be transcoded may be a storage path of the video file to be transcoded in the cloud storage system, and the cloud storage system is a plurality of node servers for saving the source video file, and is distributed in each area.
转码配置信息是编辑人员通过转码控制设备配置的所述转码任务的属性参数,包括:黑边去除、遮挡标识、音轨和声道选择、画面旋转、添加字幕、自定义宽高比、音量调整、码率质量比设置,片尾推广设置、多音轨配置、原画、数字化影院系统(Digital Theatre System,DTS)或杜比音效(Dolby)转码等。The transcoding configuration information is an attribute parameter of the transcoding task configured by the editing personnel through the transcoding control device, including: black edge removal, occlusion identification, audio track and channel selection, picture rotation, adding subtitles, and custom aspect ratio. , volume adjustment, bit rate quality ratio setting, end-of-sale promotion settings, multi-track configuration, original painting, Digital Theatre System (DTS) or Dolby transcoding.
在步骤S11中,根据存储路径获取待转码的视频文件。 In step S11, the video file to be transcoded is obtained according to the storage path.
解析存储路径,从相应的存储路径下载到待转码的视频文件。The storage path is parsed and downloaded from the corresponding storage path to the video file to be transcoded.
在步骤S12中,获取视频文件的第一属性信息,并根据第一属性信息和转码配置信息对视频文件进行转码处理。In step S12, the first attribute information of the video file is acquired, and the video file is transcoded according to the first attribute information and the transcoding configuration information.
第一属性信息包括视频文件的音视频编码格式、音视频码率、文件总码率、音视频时长和总时长、音频采样率、封装模式等信息,以反映视频文件的当前各项音视频属性。再根据转码任务数据中的转码配置信息对视频文件进行转码处理,生成与转码配置信息对应的成品文件。The first attribute information includes audio and video encoding format, audio and video code rate, total file rate, audio and video duration and total duration, audio sampling rate, and encapsulation mode of the video file, to reflect current audio and video attributes of the video file. . Then, the video file is transcoded according to the transcoding configuration information in the transcoding task data, and the finished file corresponding to the transcoding configuration information is generated.
在步骤S13中,返回转码任务的结果信息至转码控制设备。In step S13, the result information of the transcoding task is returned to the transcoding control device.
如果步骤S12中转码处理成功,返回转码任务已执行成功的消息;如果转码处理失败,则返回转码任务处理失败的消息,将转码任务的执行结果通知编辑人员。If the transcoding process is successful in step S12, the message that the transcoding task has been successfully executed is returned; if the transcoding process fails, the message that the transcoding task fails to be processed is returned, and the execution result of the transcoding task is notified to the editor.
本实施例中,在提供基本的离线转码功能的基础上,提供易扩展的定制化需求,编辑人员可以对转码任务设置属性参数,灵活的实现各种转码功能,以满足互联网用户的各种视频需求。In this embodiment, on the basis of providing basic offline transcoding function, an easy-to-expand customization requirement is provided, and an editor can set attribute parameters for the transcoding task, and flexibly implement various transcoding functions to meet Internet users. Various video needs.
在一个实施例中,步骤S12可进一步实施为以下步骤S120-S122。In an embodiment, step S12 may be further implemented as the following steps S120-S122.
在步骤S120中,获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否可以被转码。In step S120, the first attribute information of the video file is acquired, and according to the first attribute information, it is verified whether the video file can be transcoded.
从视频文件的头信息中获取视频文件的音视频编码格式,不同的编码格式的文件具有不同的文件头标识,例如,asf、wma、wmv等格式的文件头标识为“30 26 B2 75 8E 66 CF 11 A6”,avi格式的文件头标识为“41 56 49 20”等等。The audio and video encoding format of the video file is obtained from the header information of the video file, and the files of different encoding formats have different file header identifiers. For example, the file header identifiers in the format of asf, wma, wmv, etc. are “30 26 B2 75 8E 66 CF 11 A6”, the file header of the avi format is identified as “41 56 49 20” and so on.
离线转码系统中预设一个无法进行转码处理的编码格式列表,与视频文件的音视频编码格式进行匹配,来判断是否能够对该视频文件进行转码处理。The offline transcoding system presets a list of encoding formats that cannot be transcoded, and matches the audio and video encoding formats of the video files to determine whether the video files can be transcoded.
在步骤S121中,响应于视频文件能够被转码时,根据转码配置信息对视频文件进行转码处理。In step S121, in response to the video file being transcoded, the video file is transcoded according to the transcoding configuration information.
如果视频文件的音视频编码格式没有出现在预设列表中,则可以进行转码,根据转码配置信息进行处理。 If the audio and video encoding format of the video file does not appear in the preset list, the transcoding can be performed and processed according to the transcoding configuration information.
在步骤S122中,响应于视频文件不能被转码时,退出转码任务并返回视频文件无法转码的校验信息至转码控制设备。In step S122, in response to the video file being unable to be transcoded, the transcoding task is exited and the verification information that the video file cannot be transcoded is returned to the transcoding control device.
如果视频文件的音视频编码格式出现在预设列表中,则无法进行转码处理,退出该转码任务并返回无法转码的校验信息至转码控制设备,以通知用户,这里所说的用户是指使用转码控制设备的编辑人员或开发人员。If the audio and video encoding format of the video file appears in the preset list, the transcoding processing cannot be performed, the transcoding task is exited, and the verification information that cannot be transcoded is returned to the transcoding control device to notify the user that the A user is an editor or developer who uses a transcoding control device.
本实施例中,在转码处理开始前对视频文件的音视频编码格式进行校验,以确定是否能够被转码处理,如果无法转码则返回无法转码的原因至转码控制设备,以提示编辑人员或开发人员。In this embodiment, the audio and video encoding format of the video file is verified before the start of the transcoding process to determine whether it can be transcoded. If the transcoding cannot be transcoded, the reason why the transcoding cannot be transcoded is returned to the transcoding control device. Prompt editor or developer.
在一个实施例中,在一个实施例中,步骤S12可进一步实施为以下步骤S123-S124。In one embodiment, in one embodiment, step S12 may be further implemented as the following steps S123-S124.
在步骤S123中,获取视频文件的第一属性信息,并根据第一属性信息校验视频文件是否完整。In step S123, the first attribute information of the video file is acquired, and the video file is verified to be complete according to the first attribute information.
通过转封装的方法获取视频文件转封装后的文件时长,与第一属性信息中的视频文件的总时长信息进行比对,如果转封装后的文件时长小于第一属性信息中的视频文件的总时长,则判定该视频文件不完整。Obtaining the length of the file after the video file is packaged by the method of transcapsulation, and comparing with the total duration information of the video file in the first attribute information, if the length of the file after the package is smaller than the total length of the video file in the first attribute information The duration determines that the video file is incomplete.
在步骤S124中,响应于视频文件不完整时,返回视频文件不完整的校验信息至所述转码控制设备。In step S124, in response to the video file being incomplete, the verification information that the video file is incomplete is returned to the transcoding control device.
如果视频文件不完整,仍会继续进行转码处理,但会将视频不完整的信息返回至转码控制设备,已告知编辑人员或开发人员,供其考虑是否需要替换为其他视频文件进行转码。If the video file is incomplete, the transcoding will continue, but the incomplete video will be returned to the transcoding control device, and the editor or developer has been notified to consider whether it needs to be replaced with another video file for transcoding. .
本实施例中,在转码处理之前对视频文件的完整性进行校验,视频文件不完整时,能够将校验结果告知编辑人员或开发人员。In this embodiment, the integrity of the video file is verified before the transcoding process, and when the video file is incomplete, the verification result can be notified to the editor or developer.
上述步骤S120-S122对视频编码属性正确性的校验以及步骤S123-S124对视频完整性的校验也可以同时并行展开,并将校验结果全部反馈至转码控制设备,已告知编辑人员。The verification of the correctness of the video encoding attribute in the above steps S120-S122 and the verification of the video integrity in steps S123-S124 can also be simultaneously performed in parallel, and all the verification results are fed back to the transcoding control device, and the editor has been informed.
在一个实施例中,步骤S12还进一步包括以下步骤S125-S126。 In an embodiment, step S12 further includes the following steps S125-S126.
在步骤S125中,根据第一属性信息和转码配置信息对视频文件进行转码处理,对转码任务进行实时监控,以确定转码任务是否处于异常状态。In step S125, the video file is transcoded according to the first attribute information and the transcoding configuration information, and the transcoding task is monitored in real time to determine whether the transcoding task is in an abnormal state.
在转码任务开始执行之后,监控转码任务的运行状态,判断转码任务是否出现异常。对转码任务的监控可以包括进度监控和内存使用监控。After the transcoding task starts to execute, monitor the running status of the transcoding task to determine whether the transcoding task has an abnormality. Monitoring of transcoding tasks can include progress monitoring and memory usage monitoring.
进度监控是针对转码任务的当前进度的监控,将转码程序的标准输出重定向至预设文件内,并从预设文件中读取转码所在帧数、时长和文件大小等信息,根据源视频文件的时长预测转码剩余时间,将上述当前进度信息返回至转码控制设备,便于编辑人员查询。The progress monitoring is to monitor the current progress of the transcoding task, redirect the standard output of the transcoding program to the preset file, and read the number of frames, duration and file size of the transcoding from the preset file, according to The duration of the source video file predicts the remaining time of the transcoding, and returns the current progress information to the transcoding control device for editing by the editor.
当该转码任务的进度卡在某个数值的持续时间超过预设门限时,则判定转码子进程卡死,该转码任务处于异常状态。When the progress card of the transcoding task exceeds the preset threshold for a certain value duration, it is determined that the transcoding sub-process is stuck, and the transcoding task is in an abnormal state.
内存使用监控是针对转码任务的内存占用率进行的监控。根据转码子进程的进程标识(pid)获取转码子进程占用的内存量,当使用量超过预设门限时(例如超过系统内存的40%时),判定转码任务异常。Memory usage monitoring is the monitoring of the memory usage of the transcoding task. The amount of memory occupied by the transcoded subprocess is obtained according to the process identifier (pid) of the transcoded subprocess. When the usage exceeds a preset threshold (for example, when 40% of the system memory is exceeded), it is determined that the transcoding task is abnormal.
在步骤S126中,响应于转码任务处于异常状态,结束转码任务。In step S126, in response to the transcoding task being in an abnormal state, the transcoding task is ended.
本实施例中,在执行转码任务的同时,对转码任务的运行状态进行监控,将进度信息反馈至转码控制设备,在转码任务出现卡死或者系统资源占用过高时,判定转码任务异常,并结束该转码任务。In this embodiment, while performing the transcoding task, the running status of the transcoding task is monitored, and the progress information is fed back to the transcoding control device, and when the transcoding task is stuck or the system resource occupancy is too high, the determination is transferred. The code task is abnormal and ends the transcoding task.
在一个实施例中,步骤S12在包括步骤S125-S126的基础上还进一步包括以下步骤S127。In an embodiment, step S12 further includes the following step S127 on the basis of including steps S125-S126.
在步骤S127中,根据异常状态对应的错误类型,通过预设的重试转码方案重新处理转码任务。In step S127, the transcoding task is reprocessed by the preset retry transcoding scheme according to the error type corresponding to the abnormal state.
对不同的错误类型预设对应的重试转码方案,预设的重试转码方案可以可通过解决方案(workaround)参数进行设置,例如ffmpeg下的“--ffmpeg-workaround-bugs”参数。The corresponding retry transcoding scheme is preset for different error types, and the preset retry transcoding scheme can be set by a workaround parameter, such as the "--ffmpeg-workaround-bugs" parameter under ffmpeg.
因卡死而导致任务异常被结束的,可以改变输出文件的音视频编码格式重新编码,例如,将视频编码从avi格式转换为rm格式,音频编码从mp3格式转换为FXA 格式。If the task abnormality is ended due to the card death, the audio and video encoding format of the output file may be re-encoded, for example, the video encoding is converted from the avi format to the rm format, and the audio encoding is converted from the mp3 format to the FXA. format.
因内存占用率过高而导致任务异常被结束的,可以适当降低输出文件的码率,减少编码过程中的缓存数据,降低编码过程对内存的占用。If the task is abnormally terminated due to high memory usage, the code rate of the output file can be appropriately reduced, the cached data in the encoding process can be reduced, and the memory usage of the encoding process can be reduced.
本实施例中,对于因处于异常状态而结束的转码任务,根据预设的重试转码方案进行重试,从而尽可能的将下发的转码任务执行成功。In this embodiment, for the transcoding task that ends in the abnormal state, the retry is performed according to the preset retry transcoding scheme, so that the delivered transcoding task is successfully executed as much as possible.
在一个实施例中,步骤S12可进一步实施为以下步骤S128。In an embodiment, step S12 can be further implemented as the following step S128.
在步骤S128中,根据第一属性信息和转码配置信息对视频文件进行二次编码(2pass编码)In step S128, the video file is secondarily encoded according to the first attribute information and the transcoding configuration information (2pass encoding)
2pass代表需要做两次编码,第一遍编码先分析全片,得到一个统计(stats)文件和一个宏块树(mbtree)文件。第二遍编码以这两个文件作参考来分配合理的码率。如果对于成品文件需要特定的码率(或文件大小),则通常会用2pass(或多pass)编码,以达到保证转码质量,节省码流资源,同时对文件音频统一音量等效果。2pass means that you need to do two encodings. The first pass encodes the whole slice first, and gets a stats file and a macroblock tree (mbtree) file. The second pass encodes the two files for reference to assign a reasonable bit rate. If a specific code rate (or file size) is required for the finished file, it is usually encoded with 2pass (or multiple pass) to ensure the quality of the transcoding, save the code stream resources, and achieve the same effect on the file audio.
在一个实施例中,步骤S13可进一步实施例为以下步骤S131。In an embodiment, step S13 may further be the following step S131.
在步骤S131中,获取转码任务的成品文件的第二属性信息并返回至转码控制设备。In step S131, the second attribute information of the finished file of the transcoding task is acquired and returned to the transcoding control device.
第二属性信息包括成品文件的音视频时长、码率、帧率等信息,与转码任务的目标码流版本进行比对,输出校验结果并返回至转码控制设备,供编辑人员对成品文件的属性信息进行检查并确定是否将成品文件输出并进行内容分发。The second attribute information includes information such as audio and video duration, code rate, frame rate, etc. of the finished file, and is compared with the target code stream version of the transcoding task, and outputs the verification result and returns to the transcoding control device for the editor to the finished product. The attribute information of the file is checked and it is determined whether the finished file is output and content is distributed.
而在一个实施例中,步骤S13还可以进一步实施例为以下步骤S132。In an embodiment, step S13 may further be the following step S132.
在步骤S132中,截取转码任务的成品文件的图像并返回转码控制设备。In step S132, the image of the finished document of the transcoding task is intercepted and returned to the transcoding control device.
直接对成品文件进行第一预设数量的等分(例如16等分),随机截取第一预设数量的(例如16张)JPG格式图像,并采用图像优化程序为第一预设数量的图像打分,保存分数较高的第二预设数量的(例如8张)JPG格式图像并返回至转码控制设备,供编辑人员直观的查看成品文件图像质量。 Directly dividing the finished file by a first predetermined number of divisions (for example, 16 equal parts), randomly capturing a first preset number of (for example, 16) JPG images, and using the image optimization program as the first preset number of images. The score is saved, and a second preset number of (for example, 8) JPG images with higher scores are saved and returned to the transcoding control device for the editor to visually view the image quality of the finished document.
或者,在转码过程中,在第一预设数量的(例如16)等分区间内随机选择第一预设数量的(例如16个)画面截取YUV色彩空间数据并保存在转码目录,将YUV色彩空间数据转码为JPG格式,之后使用图像优化程序为第一预设数量的(例如16张)图片打分,保存分数较高的第二预设数量的(例如8张)JPG图像并并返回至转码控制设备,供编辑人员在转码过程中能够直观的查看成品文件的图像质量。Or, during the transcoding process, randomly selecting a first preset number (eg, 16) of pictures in the first predetermined number of (eg, 16) partitions to intercept the YUV color space data and saving the data in the transcoding directory, YUV color space data is transcoded into JPG format, and then the image is optimized to score a first preset number (for example, 16 images), and a second predetermined number of (for example, 8) JPG images with higher scores are saved and Return to the transcoding control device for the editor to visually view the image quality of the finished document during the transcoding process.
上述步骤S131和步骤S132也可以同时并行处理,将成品文件的属性信息和图像一起返回至转码控制设备,由编辑人员结合属性信息和截取的图像综合考量转码效果,以决定是否将成品文件输出进行内容分发。The above steps S131 and S132 can also be processed in parallel at the same time, and the attribute information of the finished file and the image are returned together to the transcoding control device, and the editor combines the attribute information and the intercepted image to comprehensively consider the transcoding effect to determine whether the finished document is to be processed. Output for content distribution.
以下是本申请的装置实施例,用于执行本申请的方法实施例。The following are device embodiments of the present application for performing the method embodiments of the present application.
图2是本申请实施例提供的一种离线转码系统,包括:FIG. 2 is an offline transcoding system provided by an embodiment of the present application, including:
数据接收模块20,用于接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;The data receiving module 20 is configured to receive transcoding task data that is sent by the transcoding control device, where the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded;
文件获取模块21,用于根据所述存储路径获取待转码的视频文件;a file obtaining module 21, configured to acquire a video file to be transcoded according to the storage path;
转码模块22,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;The transcoding module 22 is configured to acquire first attribute information of the video file, and perform transcoding processing on the video file according to the first attribute information and transcoding configuration information;
结果反馈模块23,用于返回所述转码任务的结果信息至所述转码控制设备。The result feedback module 23 is configured to return result information of the transcoding task to the transcoding control device.
在一个实施例中,该转码模块22进一步包括:In one embodiment, the transcoding module 22 further includes:
第一信息校验子模块,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否可以被转码;a first information verification submodule, configured to acquire first attribute information of the video file, and verify, according to the first attribute information, whether the video file can be transcoded;
转码子模块,用于响应于所述视频文件能够被转码时,根据所述转码配置信息对所述视频文件进行转码处理;a transcoding submodule, configured to perform transcoding processing on the video file according to the transcoding configuration information, in response to the video file being transcoded;
第一信息反馈子模块,用于响应于所述视频文件不能被转码时,退出所述转码任务并返回所述视频文件无法转码的校验信息至所述转码控制设备。The first information feedback submodule is configured to, when the video file cannot be transcoded, exit the transcoding task and return verification information that the video file cannot be transcoded to the transcoding control device.
在一个实施例中,该转码模块22进一步包括:In one embodiment, the transcoding module 22 further includes:
第二信息校验子模块,用于获取所述视频文件的第一属性信息,并根据所述第 一属性信息校验所述视频文件是否完整;a second information verification submodule, configured to acquire first attribute information of the video file, and according to the first An attribute information verifies whether the video file is complete;
第二信息反馈子模块,响应于所述视频文件不完整时,返回所述视频文件不完整的校验信息至所述转码控制设备。The second information feedback submodule returns, in response to the video file being incomplete, verification information that the video file is incomplete to the transcoding control device.
在一个实施例中,该转码模块22进一步包括:In one embodiment, the transcoding module 22 further includes:
状态监控子模块,用于根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理,对所述转码任务进行实时监控,以确定所述转码任务是否处于异常状态;a status monitoring submodule, configured to perform transcoding processing on the video file according to the first attribute information and the transcoding configuration information, and perform real-time monitoring on the transcoding task to determine whether the transcoding task is in an abnormal state. ;
任务结束子模块,用于响应于所述转码任务处于异常状态,结束所述转码任务。The task end sub-module is configured to end the transcoding task in response to the transcoding task being in an abnormal state.
在一个实施例中,该状态监控子模块进一步包括:In an embodiment, the status monitoring submodule further includes:
进度监控单元,监控所述转码任务的当前进度,返回所述当前进度的信息至所述转码控制设备。a progress monitoring unit that monitors a current progress of the transcoding task and returns information of the current progress to the transcoding control device.
在一个实施例中,该转码模块22进一步包括:In one embodiment, the transcoding module 22 further includes:
任务重试子模块,用于根据所述异常状态对应的错误类型,通过预设的重试转码方案重新处理所述转码任务。The task retry submodule is configured to reprocess the transcoding task by a preset retry transcoding scheme according to the error type corresponding to the abnormal state.
在一个实施例中,该转码模块22进一步包括:In one embodiment, the transcoding module 22 further includes:
二次编码子模块,用于根据所述第一属性信息和转码配置信息对所述视频文件进行二次编码(2pass编码)。And a secondary coding submodule, configured to perform secondary coding (2pass coding) on the video file according to the first attribute information and the transcoding configuration information.
在一个实施例中,该结果反馈模块23进一步包括:In one embodiment, the result feedback module 23 further includes:
成品信息反馈子模块,用于获取所述转码任务的成品文件的第二属性信息并返回至所述转码控制设备。The product information feedback sub-module is configured to acquire second attribute information of the finished file of the transcoding task and return to the transcoding control device.
在一个实施例中,该结果反馈模块23进一步包括:In one embodiment, the result feedback module 23 further includes:
成品图像反馈子模块,用于截取所述转码任务的成品文件的图像并返回所述转码控制设备。 a finished image feedback sub-module for intercepting an image of the finished document of the transcoding task and returning to the transcoding control device.
此外,本申请实施例中可以通过硬件处理器(hardware processor)来实现上述各个功能模块。In addition, in the embodiment of the present application, each of the foregoing functional modules may be implemented by a hardware processor.
本申请实施例还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质可存储有程序,该程序执行时可实现执行前述任意一个实施例提供的一种离线转码方法的各实现方式中的部分或全部步骤。The embodiment of the present application further provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium can store a program, and the program can be executed to perform an offline transfer provided by any one of the foregoing embodiments. Some or all of the various implementations of the code method.
图3是本申请实施例提供的离线转码方法的电子设备的硬件结构示意图,如图3所示,该设备包括:3 is a schematic structural diagram of hardware of an electronic device of an offline transcoding method according to an embodiment of the present application. As shown in FIG. 3, the device includes:
一个或多个处理器310以及存储器320,图3中以一个处理器310为例。One or more processors 310 and memory 320 are exemplified by one processor 310 in FIG.
执行离线转码方法的设备还可以包括:输入装置330和输出装置340。The apparatus performing the offline transcoding method may further include: an input device 330 and an output device 340.
处理器310、存储器320、输入装置330和输出装置340可以通过总线或者其他方式连接,图3中以通过总线连接为例。The processor 310, the memory 320, the input device 330, and the output device 340 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器320作为一种非暂态计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的离线转码方法对应的程序指令/模块。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的离线转码方法。The memory 320 is used as a non-transitory computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions corresponding to the offline transcoding method in the embodiment of the present application. / module. The processor 310 executes various functional applications of the server and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 320, that is, implementing the offline transcoding method of the above method embodiments.
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据离线转码装置的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至离线转码装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 320 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the offline transcoding device, and the like. Moreover, memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 320 can optionally include memory remotely located relative to processor 310, which can be connected to an offline transcoding device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置330可接收输入的数字或字符信息,以及产生与离线转码装置的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。 Input device 330 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the offline transcoding device. The output device 340 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器320中,当被所述一个或者多个处理器310执行时,执行上述任意方法实施例中的离线转码方法。 The one or more modules are stored in the memory 320, and when executed by the one or more processors 310, perform an offline transcoding method in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本发明实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the invention exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、预览播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, preview players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (19)

  1. 一种离线转码方法,其特征在于,包括:An offline transcoding method, comprising:
    接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;Receiving, by the transcoding control device, the transcoding task data, where the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded;
    根据所述存储路径获取待转码的视频文件;Obtaining a video file to be transcoded according to the storage path;
    获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;Obtaining first attribute information of the video file, and performing transcoding processing on the video file according to the first attribute information and transcoding configuration information;
    返回所述转码任务的结果信息至所述转码控制设备。Returning result information of the transcoding task to the transcoding control device.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述视频文件的第一属性信息包括:The method according to claim 1, wherein the obtaining the first attribute information of the video file comprises:
    获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否可以被转码;Obtaining first attribute information of the video file, and verifying, according to the first attribute information, whether the video file can be transcoded;
    响应于所述视频文件能够被转码时,根据所述转码配置信息对所述视频文件进行转码处理;Transmitting the video file according to the transcoding configuration information, in response to the video file being transcoded;
    响应于所述视频文件不能被转码时,退出所述转码任务并返回所述视频文件无法转码的校验信息至所述转码控制设备。In response to the video file being unable to be transcoded, the transcoding task is exited and the verification information that the video file cannot be transcoded is returned to the transcoding control device.
  3. 根据权利要求1所述的方法,其特征在于,所述获取所述视频文件的第一属性信息包括:The method according to claim 1, wherein the obtaining the first attribute information of the video file comprises:
    获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否完整;Obtaining first attribute information of the video file, and verifying, according to the first attribute information, whether the video file is complete;
    响应于所述视频文件不完整时,返回所述视频文件不完整的校验信息至所述转码控制设备。In response to the video file being incomplete, the verification information that the video file is incomplete is returned to the transcoding control device.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理包括:The method according to claim 1, wherein the transcoding the video file according to the first attribute information and the transcoding configuration information comprises:
    根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理,对 所述转码任务进行实时监控,以确定所述转码任务是否处于异常状态;Transcoding the video file according to the first attribute information and the transcoding configuration information, Performing real-time monitoring on the transcoding task to determine whether the transcoding task is in an abnormal state;
    响应于所述转码任务处于异常状态,结束所述转码任务。The transcoding task is ended in response to the transcoding task being in an abnormal state.
  5. 根据权利要求4所述的方法,其特征在于,所述对所述转码任务进行实时监控包括:The method according to claim 4, wherein said real-time monitoring of said transcoding task comprises:
    监控所述转码任务的当前进度,返回所述当前进度的信息至所述转码控制设备。Monitoring the current progress of the transcoding task, and returning information of the current progress to the transcoding control device.
  6. 根据权利要求4所述的方法,其特征在于,所述响应于所述转码任务处于异常状态,结束所述转码任务之后,所述方法还包括:The method according to claim 4, wherein, after the transcoding task is in an abnormal state and the end of the transcoding task, the method further comprises:
    根据所述异常状态对应的错误类型,通过预设的重试转码方案重新处理所述转码任务。The transcoding task is reprocessed by a preset retry transcoding scheme according to the error type corresponding to the abnormal state.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理包括:The method according to claim 1, wherein the transcoding the video file according to the first attribute information and the transcoding configuration information comprises:
    根据所述第一属性信息和转码配置信息对所述视频文件进行二次编码。And encoding the video file according to the first attribute information and the transcoding configuration information.
  8. 根据权利要求1所述的方法,其特征在于,所述返回所述转码任务的结果信息至所述转码控制设备包括:The method according to claim 1, wherein the returning the result information of the transcoding task to the transcoding control device comprises:
    获取所述转码任务的成品文件的第二属性信息并返回至所述转码控制设备;或者Obtaining second attribute information of the finished file of the transcoding task and returning to the transcoding control device; or
    截取所述转码任务的成品文件的图像并返回所述转码控制设备。An image of the finished document of the transcoding task is intercepted and returned to the transcoding control device.
  9. 一种离线转码系统,其特征在于,包括:An offline transcoding system, comprising:
    数据接收模块,用于接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;a data receiving module, configured to receive transcoding task data sent by the transcoding control device, where the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded;
    文件获取模块,用于根据所述存储路径获取待转码的视频文件;a file obtaining module, configured to acquire a video file to be transcoded according to the storage path;
    转码模块,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;a transcoding module, configured to acquire first attribute information of the video file, and perform transcoding processing on the video file according to the first attribute information and transcoding configuration information;
    结果反馈模块,用于返回所述转码任务的结果信息至所述转码控制设备。 a result feedback module, configured to return result information of the transcoding task to the transcoding control device.
  10. 根据权利要求9所述的系统,其特征在于,所述转码模块包括:The system of claim 9 wherein said transcoding module comprises:
    第一信息校验子模块,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否可以被转码;a first information verification submodule, configured to acquire first attribute information of the video file, and verify, according to the first attribute information, whether the video file can be transcoded;
    转码子模块,用于响应于所述视频文件能够被转码时,根据所述转码配置信息对所述视频文件进行转码处理;a transcoding submodule, configured to perform transcoding processing on the video file according to the transcoding configuration information, in response to the video file being transcoded;
    第一信息反馈子模块,用于响应于所述视频文件不能被转码时,退出所述转码任务并返回所述视频文件无法转码的校验信息至所述转码控制设备。The first information feedback submodule is configured to, when the video file cannot be transcoded, exit the transcoding task and return verification information that the video file cannot be transcoded to the transcoding control device.
  11. 根据权利要求9所述的系统,其特征在于,所述转码模块包括:The system of claim 9 wherein said transcoding module comprises:
    第二信息校验子模块,用于获取所述视频文件的第一属性信息,并根据所述第一属性信息校验所述视频文件是否完整;a second information verification submodule, configured to acquire first attribute information of the video file, and verify, according to the first attribute information, whether the video file is complete;
    第二信息反馈子模块,响应于所述视频文件不完整时,返回所述视频文件不完整的校验信息至所述转码控制设备。The second information feedback submodule returns, in response to the video file being incomplete, verification information that the video file is incomplete to the transcoding control device.
  12. 根据权利要求9所述的系统,其特征在于,所述转码模块包括:The system of claim 9 wherein said transcoding module comprises:
    状态监控子模块,用于根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理,对所述转码任务进行实时监控,以确定所述转码任务是否处于异常状态;a status monitoring submodule, configured to perform transcoding processing on the video file according to the first attribute information and the transcoding configuration information, and perform real-time monitoring on the transcoding task to determine whether the transcoding task is in an abnormal state. ;
    任务结束子模块,用于响应于所述转码任务处于异常状态,结束所述转码任务。The task end sub-module is configured to end the transcoding task in response to the transcoding task being in an abnormal state.
  13. 根据权利要求12所述的系统,其特征在于,所述状态监控子模块包括:The system of claim 12, wherein the status monitoring sub-module comprises:
    进度监控单元,监控所述转码任务的当前进度,返回所述当前进度的信息至所述转码控制设备。a progress monitoring unit that monitors a current progress of the transcoding task and returns information of the current progress to the transcoding control device.
  14. 根据权利要求12所述的系统,其特征在于,所述转码模块包括:The system of claim 12 wherein said transcoding module comprises:
    任务重试子模块,用于根据所述异常状态对应的错误类型,通过预设的重试转码方案重新处理所述转码任务。 The task retry submodule is configured to reprocess the transcoding task by a preset retry transcoding scheme according to the error type corresponding to the abnormal state.
  15. 根据权利要求9所述的系统,其特征在于,所述转码模块包括:The system of claim 9 wherein said transcoding module comprises:
    二次编码子模块,用于根据所述第一属性信息和转码配置信息对所述视频文件进行二次编码。And a secondary coding submodule, configured to perform secondary coding on the video file according to the first attribute information and the transcoding configuration information.
  16. 根据权利要求9所述的系统,其特征在于,所述结果反馈模块包括:The system of claim 9 wherein said result feedback module comprises:
    成品信息反馈子模块,用于获取所述转码任务的成品文件的第二属性信息并返回至所述转码控制设备;或者a product information feedback sub-module, configured to acquire second attribute information of the finished file of the transcoding task and return to the transcoding control device; or
    成品图像反馈子模块,用于截取所述转码任务的成品文件的图像并返回所述转码控制设备。a finished image feedback sub-module for intercepting an image of the finished document of the transcoding task and returning to the transcoding control device.
  17. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机程序,所述计算机程序用于使所述计算机执行权利要求1-8任一所述方法。A non-transitory computer readable storage medium, characterized in that the non-transitory computer readable storage medium stores a computer program for causing the computer to perform the method of any of claims 1-8 .
  18. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;以及,One or more processors; and,
    存储器;其特征在于,Memory; characterized in that
    所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行,以使所述一个或多个处理器:The memory stores instructions executable by the one or more processors, the instructions being executed by the one or more processors to cause the one or more processors to:
    接收转码控制设备下发的转码任务数据,所述转码任务数据包括待转码的视频文件的存储路径和转码配置信息;Receiving, by the transcoding control device, the transcoding task data, where the transcoding task data includes a storage path and transcoding configuration information of the video file to be transcoded;
    根据所述存储路径获取待转码的视频文件;Obtaining a video file to be transcoded according to the storage path;
    获取所述视频文件的第一属性信息,并根据所述第一属性信息和转码配置信息对所述视频文件进行转码处理;Obtaining first attribute information of the video file, and performing transcoding processing on the video file according to the first attribute information and transcoding configuration information;
    返回所述转码任务的结果信息至所述转码控制设备。Returning result information of the transcoding task to the transcoding control device.
  19. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-8所述的方法。 A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute The method of claims 1-8.
PCT/CN2016/096007 2015-12-21 2016-08-19 Offline transcoding method and system WO2017107514A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510964661.0 2015-12-21
CN201510964661.0A CN105898318A (en) 2015-12-21 2015-12-21 Offline transcoding method and system

Publications (1)

Publication Number Publication Date
WO2017107514A1 true WO2017107514A1 (en) 2017-06-29

Family

ID=57001997

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096007 WO2017107514A1 (en) 2015-12-21 2016-08-19 Offline transcoding method and system

Country Status (2)

Country Link
CN (1) CN105898318A (en)
WO (1) WO2017107514A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474827A (en) * 2018-12-03 2019-03-15 四川巧夺天工信息安全智能设备有限公司 The method of monitor video fast transcoding
CN111199743A (en) * 2020-02-28 2020-05-26 Oppo广东移动通信有限公司 Audio coding format determining method and device, storage medium and electronic equipment
CN113490012A (en) * 2021-07-26 2021-10-08 南京炫佳网络科技有限公司 Preemptive injection method, device, server and storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933483A (en) * 2017-12-15 2019-06-25 中国电信股份有限公司 Streaming media transcoding service monitoring method and device and computer readable storage medium
US10645140B2 (en) 2018-04-09 2020-05-05 Wangsu Science & Technology Co., Ltd. Method for processing transcoding task, system and task management server
CN108521421B (en) * 2018-04-09 2019-11-12 网宿科技股份有限公司 A kind of processing method, system and the task management server of transcoding task
CN109982160A (en) * 2019-04-09 2019-07-05 北京奇艺世纪科技有限公司 A kind of method, apparatus, client device and server that video uploads
CN111935545B (en) * 2020-08-03 2023-03-24 腾讯音乐娱乐科技(深圳)有限公司 Method, device and equipment for transcoding video data and storage medium
CN112866713B (en) * 2021-01-19 2022-09-16 北京睿芯高通量科技有限公司 Transcoding all-in-one machine system and transcoding method
CN113132756B (en) * 2021-03-12 2023-03-21 杭州当虹科技股份有限公司 Video coding and transcoding method
CN113064798A (en) * 2021-04-25 2021-07-02 上海商汤临港智能科技有限公司 Exception handling method and device, electronic equipment and system
CN113673651A (en) * 2021-09-23 2021-11-19 上海凌瓴信息科技有限公司 Structured product information management system and method based on two-dimensional code technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030066084A1 (en) * 2001-09-28 2003-04-03 Koninklijke Philips Electronics N. V. Apparatus and method for transcoding data received by a recording device
CN101404767A (en) * 2008-11-24 2009-04-08 崔天龙 Parameter-variable automated video transcoding method based on image analysis and artificial intelligence
CN102868707A (en) * 2011-07-04 2013-01-09 腾讯科技(深圳)有限公司 Method and system for downloading and transcoding file
CN102882829A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Transcoding method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030066084A1 (en) * 2001-09-28 2003-04-03 Koninklijke Philips Electronics N. V. Apparatus and method for transcoding data received by a recording device
CN101404767A (en) * 2008-11-24 2009-04-08 崔天龙 Parameter-variable automated video transcoding method based on image analysis and artificial intelligence
CN102868707A (en) * 2011-07-04 2013-01-09 腾讯科技(深圳)有限公司 Method and system for downloading and transcoding file
CN102882829A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Transcoding method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474827A (en) * 2018-12-03 2019-03-15 四川巧夺天工信息安全智能设备有限公司 The method of monitor video fast transcoding
CN109474827B (en) * 2018-12-03 2022-11-29 四川巧夺天工信息安全智能设备有限公司 Method for rapidly transcoding monitoring video
CN111199743A (en) * 2020-02-28 2020-05-26 Oppo广东移动通信有限公司 Audio coding format determining method and device, storage medium and electronic equipment
CN113490012A (en) * 2021-07-26 2021-10-08 南京炫佳网络科技有限公司 Preemptive injection method, device, server and storage medium
CN113490012B (en) * 2021-07-26 2023-06-23 南京炫佳网络科技有限公司 Preemptive injection method, preemptive injection device, server and storage medium

Also Published As

Publication number Publication date
CN105898318A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2017107514A1 (en) Offline transcoding method and system
JP6490654B2 (en) Method and system for providing a time machine function in live broadcasting
US11417341B2 (en) Method and system for processing comment information
WO2017101488A1 (en) Real-time transcoding monitoring method and real-time transcoding system
CN110830735B (en) Video generation method and device, computer equipment and storage medium
US11936923B1 (en) System and method for transcoding media stream
CN111309279A (en) Multi-screen interactive display method and device
US20170171279A1 (en) Method and terminal for online playing video stream
US11490173B2 (en) Switch of audio and video
US10448073B2 (en) Popping-screen push system and method
US20170162229A1 (en) Play method and device
WO2017084467A1 (en) Method for processing video stream, device, and system
WO2017101487A1 (en) Method and device for submitting transcoding attribute information
US9832493B2 (en) Method and apparatus for processing audio/video file
CN110662017B (en) Video playing quality detection method and device
CN112839238B (en) Screen projection playing method and device and storage medium
US20170155697A1 (en) Method and device for processing streaming media
TWI634784B (en) Digital media content playing transfer method and application device thereof
CN111385660B (en) Video on demand method, device, equipment and storage medium
US20220021715A1 (en) Live streaming method and apparatus, device and computer readable storage medium
US20170280193A1 (en) Method and device for processing a streaming media file
CN109348298B (en) Method and equipment for pushing and playing multimedia data stream
CN116866633A (en) Cloud video playing method and player
CN105657466A (en) Video playing method and apparatus
CN110855619B (en) Processing method and device for playing audio and video data, storage medium and terminal equipment

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877326

Country of ref document: EP

Kind code of ref document: A1