WO2017101488A1 - 实时转码的监控方法和实时转码系统 - Google Patents

实时转码的监控方法和实时转码系统 Download PDF

Info

Publication number
WO2017101488A1
WO2017101488A1 PCT/CN2016/096006 CN2016096006W WO2017101488A1 WO 2017101488 A1 WO2017101488 A1 WO 2017101488A1 CN 2016096006 W CN2016096006 W CN 2016096006W WO 2017101488 A1 WO2017101488 A1 WO 2017101488A1
Authority
WO
WIPO (PCT)
Prior art keywords
real
task
time transcoding
time
transcoding task
Prior art date
Application number
PCT/CN2016/096006
Other languages
English (en)
French (fr)
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 WO2017101488A1 publication Critical patent/WO2017101488A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • 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/439Processing of audio elementary streams
    • H04N21/4398Processing of audio elementary streams involving reformatting operations of audio signals
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing 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
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing 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/440218Processing 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
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing 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/440236Processing 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 media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load

Definitions

  • the present application belongs to the field of video technologies, and in particular, to a real-time transcoding monitoring method and a real-time transcoding system.
  • the embodiment of the present application provides a real-time transcoding monitoring method and a real-time transcoding system, which are used to solve the technical problem that the real-time transcoding system in the prior art cannot predict the running status of the transcoding task.
  • the embodiment of the present application discloses a real-time transcoding monitoring method, which is applicable to a real-time transcoding system, including: receiving a real-time transcoding task creation instruction delivered by a live control center; creating and executing a corresponding real-time The transcoding task is configured to allocate a corresponding task identifier to the real-time transcoding task, and redirect the log data of the real-time transcoding task to a preset directory; and parse the log data in the preset directory according to the task identifier, Monitoring the running status of the real-time transcoding task.
  • a real-time transcoding system including: an instruction connection
  • the receiving module is configured to receive a real-time transcoding task creation instruction sent by the live control center;
  • the first task execution module is configured to create and execute a corresponding real-time transcoding task, and allocate a corresponding task identifier to the real-time transcoding task, Redirecting the log data of the real-time transcoding task to the preset directory;
  • the task monitoring module is configured to parse the log data in the preset directory according to the task identifier, and monitor the running status of the real-time transcoding task.
  • An embodiment of the present application provides an electronic device, including: the foregoing real-time 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 the computer program can implement the above-mentioned real-time transcoding monitoring. Part or all of the steps of the method.
  • 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 execute to enable the one or more processors to perform the monitoring method of any of the above-described real-time transcodings 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 configured to perform the monitoring method of any of the above-mentioned real-time transcoding of the embodiment of the present application.
  • the real-time transcoding monitoring method and the real-time transcoding system redirect the log data of each real-time transcoding task to a preset directory, and the log data in the preset directory.
  • the analysis is performed to monitor the running status of the real-time transcoding task, improve the stability of the real-time transcoding system, and provide effective protection for the live broadcast service.
  • FIG. 1 is a flowchart of a method for monitoring real-time transcoding provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for monitoring real-time transcoding provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a method for monitoring real-time transcoding provided by an embodiment of the present application
  • FIG. 4 is a flowchart of a method for monitoring real-time transcoding provided by an embodiment of the present application
  • FIG. 5 is a flowchart of a method for monitoring real-time transcoding provided by an embodiment of the present application
  • FIG. 6 is a block diagram of a real-time transcoding system provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of hardware of a device for real-time transcoding according to an embodiment of the present application.
  • the real-time transcoding task is created according to the instruction issued by the live control center, and the task identifier is assigned, and the log data of the real-time transcoding task is redirected to the preset directory, and after the real-time transcoding task is started, the parsing is performed. Set the log data in the directory to monitor whether the real-time transcoding task is abnormal. It realizes effective monitoring of the real-time transcoding system, improves the stability of the real-time transcoding system, and provides effective protection for the live broadcast service. To provide more stable video live broadcast services for network users.
  • FIG. 1 is a method for monitoring real-time transcoding provided by an embodiment of the present application, which is applicable to a real-time transcoding system, and the method includes the following steps S10-S12.
  • step S10 the real-time transcoding task creation instruction delivered by the live control center is received.
  • a web page (Web) interface for realizing functions such as creating a real-time transcoding task, viewing a real-time transcoding task state, terminating a real-time transcoding task, restarting a task execution module, and a task monitoring module is defined between the real-time transcoding system and the live broadcast control center. The editor starts and stops the corresponding real-time transcoding task according to the change of the live broadcast service.
  • the corresponding operation After receiving the instruction sent by the live control center, the corresponding operation is performed. If the command data does not conform to the predefined data format, for example, the live stream identifier (ID) is missing, or the address corresponding to the input stream and the output stream is missing, an error message is returned to notify the live broadcast control center that the corresponding operation is not performed.
  • ID live stream identifier
  • step S11 the corresponding real-time transcoding task is created and executed, and the corresponding task identifier is assigned to the real-time transcoding task, and the log data of the real-time transcoding task is redirected to the preset directory.
  • a real-time transcoding task thread instance is started and a corresponding task identifier is assigned as a global unique identifier of the real-time transcoding task.
  • a global task management dictionary is created in the memory of the real-time transcoding device, and the task identifier is stored as a key in the global task management dictionary.
  • the real-time transcoding task data is parsed to obtain the attribute parameters of the real-time transcoding task.
  • Including transmission protocols for detecting input streams such as Real Time Messaging Protocol (RTMP), HyperText Transfer Protocol (HTTP), and Microsoft Media Server Protocol (MMS); configuration output User agent information (user_agent), HTTP header information, etc.; after determining different code rates according to the transcoding file, start the transcoding sub-process under the real-time transcoding task thread instance, and start performing real-time transcoding task,
  • the process number of the transcoded sub-process is recorded in the corresponding task identifier in the global task management dictionary, and the log data of the transcoded sub-process is redirected to a preset directory, which is a directory accessible by the task monitoring module, to facilitate The task monitoring module acquires log data and performs monitoring operations.
  • the transcoding sub-process During the running process of the transcoding sub-process, if the stop signal of the live control center is received, the transcoding sub-process exits and stops the transcoding task; if the stop signal is not received, the sub-process exits, and then restarts A transcode child process and update the process number in the global task management dictionary.
  • step S12 the log data in the preset directory is parsed according to the task identifier, and the running status of the real-time transcoding task is monitored.
  • the task identifier is used to distinguish different real-time transcoding tasks, and the current progress information of the transcoding sub-process is obtained from the corresponding log data (usually appearing in the last 3 lines of the log data), and the progress information includes time information and bit rate (bit rate). ), image size and load information.
  • the time information is the total duration of the live video stream that has been transcoded by the transcoding sub-process; the code rate is the code rate of the transcoded live video stream, and the image size is the width and height of the live video stream image after transcoding; Load information is the The system resources currently occupied by the real-time transcoding task.
  • the log data can be periodically parsed and each real-time transcoding task can be monitored by the above information, or the log data can be parsed at a preset fixed time point and each real-time transcoding task can be monitored by the above information to detect real-time transcoding. Whether the task is working properly, identify a real-time transcoding task that has stuck or occupied too much system resources.
  • the log data of each real-time transcoding task is redirected to a preset directory, and the log data in the preset directory is parsed to monitor the running status of the real-time transcoding task, and the real-time transcoding system is improved.
  • the stability of the live broadcast service provides an effective guarantee. The manners for monitoring the running status of the real-time transcoding task are separately described below.
  • step S12 may be further implemented as the following steps S121-S124.
  • step S121 progress information of the real-time transcoding task is obtained from the log data.
  • step S122 the time information in the progress information is periodically acquired to determine the update status of the time information.
  • time information After the time information is obtained, it is updated into the time dictionary, and the time dictionary is also identified by the task of the real-time transcoding task as a key, corresponding to the time information of the real-time transcoding task.
  • the time information is acquired every preset time (for example, 10 seconds).
  • the acquired time information is not updated compared with the last time acquired, the real-time transcoding task may be stuck.
  • step S123 when the number of times that the time information is not updated is greater than or equal to the first preset threshold, it is determined that the real-time transcoding task is in an abnormal state.
  • the time when the time information is not updated is greater than or equal to the first preset threshold, and the time that the real-time transcoding task has been stuck is too long. Then, it may be determined that the real-time transcoding task has an abnormality. For example, the time information is obtained every 10 seconds, and the time information of a task identifier in the time dictionary is not updated more than 3 times, then the duration of the real-time transcoding task has been more than 30 seconds, then It is determined that an abnormality has occurred in the real-time transcoding task corresponding to the task identifier.
  • step S124 the real-time transcoding task is restarted according to the task identifier.
  • the process ID of the transcoded sub-process under the task identifier is queried, and the transcoding sub-process of the real-time transcoding task is restarted according to the process ID. Reassign the new process number to the restarted transcoded child process and save it under the corresponding task ID in the global task management dictionary.
  • whether the real-time transcoding task is stuck or not is determined by whether the time information in the progress information is continuously updated, and the transcoding sub-process is restarted after the stuck phenomenon is recognized, so as to repair the real-time transfer to the live broadcast service as soon as possible. Code processing to ensure the normal broadcast of the live broadcast service.
  • step S12 may be further implemented as the following steps S125-S124.
  • step S125 the update log in the log data is periodically acquired.
  • the update log is obtained in the real-time transcoding task log data every preset time (for example, 10 seconds) to determine whether the real-time transcoding task is still running. If the update log is not obtained, the real-time transcoding task may have stopped running.
  • step S126 when the duration of the update log is not greater than or equal to the second preset threshold, it is determined that the real-time transcoding task is in an abnormal state.
  • the duration of the update log is less than or equal to the second preset threshold, if the duration of the real-time transcoding task does not continue to run, the duration of the real-time transcoding task may be determined to be abnormal.
  • step S127 the real-time transcoding task is restarted according to the task identifier.
  • whether the real-time transcoding task is continuously running or not, and whether the real-time transcoding task cannot continue to run for a long time is determined by whether the update log can be obtained, and the transcoding sub-process is restarted, so as to repair the
  • the real-time transcoding of the live broadcast service ensures the normal broadcast of the live broadcast service.
  • step S12 may be further implemented as the following steps S128-S1211.
  • step S128 the progress information of the real-time transcoding task is obtained from the log data.
  • step S129 the load information in the progress information is periodically detected.
  • the load information may be the occupancy rate of the real-time transcoding task to the system memory, or the usage rate of the CPU.
  • step S1210 when the load information is greater than or equal to the third preset threshold, the real-time transcoding task is determined. In an abnormal state.
  • the load information is greater than or equal to the third preset threshold, the current load of the real-time transcoding task is too large, which may be caused by too long running time or excessive video data processing.
  • the real-time transcoding program occupies more than 40% of the system memory, it is determined that the real-time transcoding task is abnormal.
  • step S1211 the real-time transcoding task is restarted according to the task identifier.
  • the load information in the progress information is used to determine whether the load of the real-time transcoding task is too high.
  • the transcoding sub-process is restarted, thereby releasing the system resources occupied by the real-time transcoding task.
  • the restarted transcoded subprocess can get better processing efficiency.
  • the real-time transcoding task can be monitored in parallel through the monitoring modes provided in FIG. 2, FIG. 3 and FIG. 4, when the real-time transcoding task is stuck, the continuous operation does not continue, and the current load is generated.
  • the transcoding sub-process of the real-time transcoding task is restarted, and the real-time transcoding task is monitored from multiple dimensions, which further helps to provide a more stable live video service for network users.
  • the real-time transcoding monitoring method further includes the following steps S13-S14.
  • step S13 after the real-time transcoding system is restarted, all current real-time transcoding tasks are acquired from the live broadcast control center.
  • the real-time transcoding task is obtained from the live broadcast control center according to the service currently in the live broadcast.
  • step S14 the acquired real-time transcoding task is created and executed and the corresponding task identifier is re-allocated.
  • the real-time transcoding system can also quickly re-create the real-time transcoding task after restarting, so that the straight line continues
  • the broadcast service can quickly return to normal.
  • step S11 in the real-time transcoding monitoring method may be further implemented as the following steps S111 to S113.
  • step S111 a corresponding real-time transcoding task is created, a corresponding task identifier is assigned to the real-time transcoding task, and the log data of the real-time transcoding task is redirected to the preset directory.
  • step S112 the real-time transcoding task is parsed, and the custom transcoding attribute information therein is obtained.
  • the custom transcoding attribute information may be transcoding attribute information set by an editor of the live control center, including one of code rate range information, audio track information, channel information, subtitle information, audio filters, and video filters. Multiple, you can add richer content for live video for users to choose or improve the viewing of live video.
  • step S113 a real-time transcoding task is performed according to the custom transcoding attribute information.
  • the custom transcoding attribute information in the real-time transcoding task is parsed before the transcoding task is executed, and the transcoding content is performed according to the customized transcoding attribute information, thereby improving the viewing effect of the live video and adding the live video. More rich content for users to choose.
  • FIG. 6 is a real-time transcoding system provided by an embodiment of the present application, including:
  • the instruction receiving module 20 is configured to receive a real-time transcoding task creation instruction delivered by the live control center;
  • the first task execution module 21 is configured to create and execute a corresponding real-time transcoding task, allocate a corresponding task identifier for the real-time transcoding task, and redirect the log data of the real-time transcoding task to a preset directory;
  • the task monitoring module 22 is configured to parse the log data in the preset directory according to the task identifier, and monitor the running status of the real-time transcoding task.
  • the task monitoring module 22 further includes:
  • a first progress information obtaining submodule configured to obtain progress information of a real-time transcoding task from the log data
  • a time information detecting submodule configured to periodically obtain time information in the progress information to determine an update status of the time information
  • a first state detecting submodule configured to determine that the real-time transcoding task is in an abnormal state when the number of times that the time information is not updated is greater than or equal to the first preset threshold
  • the first task restarts the sub-module, and is configured to restart the real-time transcoding task according to the task identifier.
  • the task monitoring module 22 further includes:
  • the update log obtaining sub-module is configured to periodically obtain an update log in the log data.
  • a second state detecting submodule configured to determine that the real-time transcoding task is in an abnormal state when the duration of the update log is not greater than or equal to the second preset threshold
  • the second task restarts the sub-module for restarting the real-time transcoding task according to the task identifier.
  • the task monitoring module 22 further includes:
  • a second progress information obtaining submodule configured to obtain progress information of the real-time transcoding task from the log data
  • a load detection submodule for periodically detecting load information in progress information
  • the third state detecting submodule determines that the real-time transcoding task is in an abnormal state when the load information is greater than or equal to the third preset threshold;
  • the third task restarts the sub-module and restarts the real-time transcoding task according to the task identifier.
  • system further comprises:
  • a task obtaining module configured to acquire all current real-time transcoding tasks from the live broadcast control center after the real-time transcoding system is restarted;
  • the second task execution module is configured to create and execute the acquired real-time transcoding task and re-allocate the corresponding task identifier.
  • the first task execution module 21 includes:
  • the task creation sub-module is configured to create a corresponding real-time transcoding task, assign a corresponding task identifier to the real-time transcoding task, and redirect the log data of the real-time transcoding task to a preset directory;
  • the custom attribute acquisition sub-module is configured to parse the real-time transcoding task and obtain the custom transcoding attribute information therein;
  • the task execution sub-module is configured to perform a real-time transcoding task according to the customized transcoding attribute information.
  • 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 a real-time transfer provided by any one of the foregoing embodiments.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device for monitoring a real-time transcoding method according to an embodiment of the present application. As shown in FIG. 7, the device includes:
  • processors 710 and memory 720 one processor 710 is taken as an example in FIG.
  • the apparatus for performing the real-time transcoding monitoring method may further include: an input device 730 and an output device 740.
  • the processor 710, the memory 720, the input device 730, and the output device 740 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 720 is used as a non-transitory computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, as in the real-time transcoding monitoring method in the embodiment of the present application.
  • the processor 710 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 720, that is, a real-time transcoding monitoring method of the foregoing method embodiments.
  • the memory 720 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 real-time transcoding monitoring device, and the like. .
  • memory 720 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 720 can optionally include a memory remotely located relative to processor 710. These remote memories can be connected to the real-time transcoding monitoring device via the 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 730 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the real time transcoded monitoring device.
  • the output device 740 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 720, and when executed by the one or more processors 710, perform a real-time transcoding monitoring 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

本申请公开了一种实时转码的监控方法和实时转码系统,该方法包括:接收直播控制中心下发的实时转码任务创建指令;创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。实现了对实时转码任务运行状态的监控,提升了实时转码系统的稳定性,为直播业务提供了有效保障。

Description

实时转码的监控方法和实时转码系统
本申请要求于2015-12-18提交中国专利局、申请号为2015109604285、发明名称为“实时转码的监控方法和实时转码系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于视频技术领域,具体地说,涉及一种实时转码的监控方法和实时转码系统。
背景技术
随着多媒体、智能设备及互联网应用等技术的快速发展,无论是体育比赛,音乐演出,还是个人秀场,人们对于视频点播和直播的需求愈发强烈,但限于当前的网络条件及观看人数等因素的限制,点播及直播云平台、视频网站等较稳定的直播系统仍是用户的首选。但同时也对这些平台构成了挑战,平台不仅需要满足各类用户的需求,应对不同的网络环境进行调度处理,还需尽可能地统一视频编码格式的情况下提供不同客户的定制功能,保证转码内容的稳定输出,在这种情景下实时转码这一环节就显得尤为重要。
现有技术中很多平台选用的实时转码系统大多是商用编码器,编码器的设备原因导致的不稳定因素经常不可控,转码任务运行状态无法预知。
发明内容
有鉴于此,本申请实施例提供了一种实时转码的监控方法和实时转码系统,用以解决现有技术中实时转码系统对转码任务的运行状态无法预知的技术问题。
为了解决上述技术问题,本申请实施例公开了一种实时转码的监控方法,适用于实时转码系统,包括:接收直播控制中心下发的实时转码任务创建指令;创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。
为了解决上述技术问题,本申请实施例公开了一种实时转码系统,包括:指令接 收模块,用于接收直播控制中心下发的实时转码任务创建指令;第一任务执行模块,用于创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;任务监控模块,用于根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。
本申请实施例提供了一种电子设备,包括:上述的一种实时转码系统。
本申请实施例提供了一种非暂态计算机可读存储介质,其中,该非暂态计算机可读存储介质可存储有计算机程序,该计算机程序执行时可实现上述的一种实时转码的监控方法的部分或全部步骤。
本申请实施例还提供了一种电子设备,包括:一个或多个处理器;以及,存储器;其中,所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行,以使所述一个或多个处理器能够执行本申请上述任一项实时转码的监控方法。
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请实施例上述任一项实时转码的监控方法。
与现有技术相比,本申请实施例提供的实时转码的监控方法和实时转码系统,将每个实时转码任务的日志数据重定向到预设目录,对预设目录中的日志数据进行解析,实现对实时转码任务运行状态的监控,提升了实时转码系统的稳定性,为直播业务提供了有效保障。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种实时转码的监控方法的流程图;
图2是本申请实施例提供的一种实时转码的监控方法的流程图;
图3是本申请实施例提供的一种实时转码的监控方法的流程图;
图4是本申请实施例提供的一种实时转码的监控方法的流程图;
图5是本申请实施例提供的一种实时转码的监控方法的流程图;
图6是本申请实施例提供的一种实时转码系统的框图;
图7是本申请实施例提供的实时转码方法的设备的硬件结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例,根据直播控制中心下发的指令创建实时转码任务并分配任务标识,将实时转码任务的日志数据重定向至预设目录,在实时转码任务开始执行后,通过解析预设目录中的日志数据来监控实时转码任务的运行状态是否出现异常,实现了对实时转码系统的有效监控,提升了实时转码系统的稳定性,为直播业务提供了有效保障,有助于为网络用户提供更稳定的视频直播服务。
图1是本申请实施例提供的一种实时转码的监控方法,适用于实时转码系统,该方法包括以下步骤S10-S12。
在步骤S10中,接收直播控制中心下发的实时转码任务创建指令。
实时转码系统与直播控制中心之间定义了实现创建实时转码任务、查看实时转码任务状态、终止实时转码任务、重启任务执行模块和任务监控模块等功能的网页(Web)接口,供编辑人员根据直播业务的变化来启动和停止对应的实时转码任务。
当接收到直播控制中心下发的指令后,执行上述对应操作。如果指令数据不符合预定义的数据格式,例如,缺少直播流标识(ID)、或者缺少输入流和输出流对应的地址等,则返回错误消息通知直播控制中心,不执行对应的操作。
在步骤S11中,创建并执行对应的实时转码任务,为实时转码任务分配对应的任务标识,将实时转码任务的日志数据重定向到预设目录。
每接收到一个实时转码任务,启动一个实时转码任务线程实例并分配对应任务标识,做为该实时转码任务的全局唯一标识。
考虑到单台实时转码设备的转码容量问题以及中控单元对各台实时转码设备负载的限制,不会出现大量实时转码任务同时在单台转码机运行的状况,因此能够在实时转码设备的内存中创建一个全局任务管理字典,并将任务标识作为键(key)存入全局任务管理字典中。
解析实时转码任务数据,以获得该实时转码任务的属性参数。包括检测输入流的传输协议,例如实时消息传输协议(Real Time Messaging Protocol,RTMP)、超文本传输协议(HyperText Transfer Protocol,HTTP)和微软媒体服务器协议(Microsoft Media Server Protocol,MMS)等;配置输出流的用户代理信息(user_agent)、HTTP头(headers)信息等;根据转码档次确定不同的码率之后,在该实时转码任务线程实例下启动转码子进程,开始执行实时转码任务,将该转码子进程的进程号记录到全局任务管理字典内相应的任务标识下,并将转码子进程的日志数据重定向到预设目录,该预设目录是任务监控模块能够访问的目录,以利于任务监控模块获取日志数据并执行监控操作。
在转码子进程的运行过程中,如果接收到直播控制中心的停止(Stop)信号,则转码子进程退出,停止转码任务;如果未接收到停止信号,遇到子进程退出的情况,则重启一个转码子进程并更新全局任务管理字典中的进程号。
在步骤S12中,根据任务标识解析预设目录中的日志数据,监控实时转码任务的运行状态。
通过任务标识来区分不同的实时转码任务,从对应的日志数据中获取其转码子进程当前的进度信息(通常出现在日志数据的最后3行),进度信息包括时间信息、码率(比特率)、图像尺寸和负载信息。
其中,时间信息是转码子进程当前已转码的直播视频流的总时长;码率是已转码的直播视频流的码率,图像尺寸是转码后的直播视频流图像的宽和高;负载信息是该 实时转码任务当前所占用的系统资源。
可以周期性的解析日志数据并通过上述信息来监控每个实时转码任务,也可以在预设的固定时间点解析日志数据并通过上述信息来监控每个实时转码任务,以检测实时转码任务是否运转正常,识别出已卡死(stuck)或者占用系统资源过大的实时转码任务。
本实施例中,将每个实时转码任务的日志数据重定向到预设目录,对预设目录中的日志数据进行解析,实现对实时转码任务运行状态的监控,提升了实时转码系统的稳定性,为直播业务提供了有效保障。下面对监控实时转码任务的运行状态的方式分别进行说明。
在一个实施例中,如图2所示,步骤S12可进一步实施为以下步骤S121-S124。
在步骤S121中,从日志数据中获取实时转码任务的进度信息。
在步骤S122中,周期性的获取进度信息中的时间信息来判断时间信息的更新状态。
获取时间信息后,将其更新到时间字典内,时间字典也是以实时转码任务的任务标识为键(key),对应保存实时转码任务的时间信息。
每隔预设时长(例如10秒)获取一次时间信息,当获取到的时间信息与上一次获取的相比没有更新时,代表该实时转码任务可能出现了卡死。
在步骤S123中,当时间信息持续未被更新的次数大于或等于第一预设门限时,确定实时转码任务处于异常状态。
时间信息持续未被更新的次数大于或等于第一预设门限,代表该实时转码任务已卡死的时间过长,那么,可确定该实时转码任务出现了异常。例如,每隔10秒获取一次时间信息,时间字典中某个任务标识的时间信息没有更新的次数超过了3次,那么该实时转码任务已卡死的时长很可能已经超过了30秒,那么确定该任务标识对应的实时转码任务出现了异常。
在步骤S124中,根据任务标识重启实时转码任务。
在全局任务管理字典中,查询到该任务标识下的转码子进程的进程号,根据进程号重启该实时转码任务的转码子进程。为重新启动的转码子进程重新分配新的进程号并保存在全局任务管理字典相应的任务标识下。
本实施例中,通过进度信息中的时间信息是否持续更新来判断实时转码任务是否出现已卡死的现象,识别出卡死现象后重新启动转码子进程,从而尽快修复对于直播业务的实时转码处理,保证直播业务的正常播出。
在一个实施例中,如图3所示,步骤S12可进一步实施为以下步骤S125-S124。
在步骤S125中,周期性的获取日志数据中的更新日志。
每隔预设时长(例如10秒)获取实时转码任务日志数据中更新日志,以判断该实时转码任务是否仍在继续运行。如果没有获取到更新日志,代表该实时转码任务可能已停止运行。
在步骤S126中,当未获取到更新日志的时长大于或等于第二预设门限时,确定实时转码任务处于异常状态。
当获取不到更新日志的时长大于或等于第二预设门限时,代表该实时转码任务没有继续运行的持续时间过长,那么,可确定该实时转码任务出现了异常。
在步骤S127中,根据任务标识重启实时转码任务。
本实施例中,通过是否能够获取到更新日志来判断实时转码任务是否在继续运行,识别出该实时转码任务无法继续运行的持续时间过长时,重新启动转码子进程,从而尽快修复对于直播业务的实时转码处理,保证直播业务的正常播出。
在一个实施例中,如图4所示,步骤S12可进一步实施为以下步骤S128-S1211。
在步骤S128中,从日志数据中获取实时转码任务的进度信息。
在步骤S129中,周期性的检测所述进度信息中的负载信息。
负载信息可以是实时转码任务对系统内存的占用率,或者是对CPU的使用率等。
在步骤S1210中,当负载信息大于或等于第三预设门限时,确定实时转码任务处 于异常状态。
负载信息大于或等于第三预设门限时,代表该实时转码任务当前的负载过大,可能是运行时间过长或者是视频数据处理量过多造成的。例如,当实时转码程序占用了大于40%的系统内存时,判定该实时转码任务异常。
在步骤S1211中,根据任务标识重启实时转码任务。
本实施例中,通过进度信息中的负载信息来判断实时转码任务的负载是否过高,当该实时转码任务负载过高时,重新启动转码子进程,从而释放其占用的系统资源,使重新启动的转码子进程能够获取更佳的处理效率。
而在另一个实施例中,可以通过图2、图3和图4所提供的监控方式同时并行对实时转码任务进行监控,当实时转码任务出现已卡死、出现没有继续运行、当前负载过高等任意一种情形时,都会对实时转码任务的转码子进程进行重启,从而从多个维度对实时转码任务进行监控,进一步有助于为网络用户提供更稳定的视频直播服务。
在一个实施例中,如图5所示,该实时转码的监控方法进一步包括以下步骤S13-S14。
在步骤S13中,在实时转码系统重启之后,从直播控制中心获取当前所有的实时转码任务。
需要对实时转码系统进行重启时,由于实时转码任务均由内存中的全局任务管理字典来维护,因此在重启后当前的全局任务管理字典将无法保存。
实时转码系统在重启后从直播控制中心根据当前仍在直播中的业务获取实时转码任务。
在步骤S14中,创建并执行获取到的实时转码任务并重新分配对应的任务标识。
创建实时转码任务并重新分配任务标识,在内存中重新创建一个全局任务管理字典,以重新分配的任务标识为键(key)。后续转码处理与实时监控的过程仍然与重启之前相同。
该实时转码系统在重启之后也能够很快重新创建实时转码任务,使仍在继续的直 播业务能够迅速恢复正常。
在一个实施例中,该实时转码的监控方法中的步骤S11可进一步实施为以下步骤S111-步骤S113。
在步骤S111中,创建对应的实时转码任务,为实时转码任务分配对应的任务标识,将实时转码任务的日志数据重定向到预设目录。
在步骤S112中,解析实时转码任务,获取其中的自定义转码属性信息。
自定义转码属性信息可以是由直播控制中心的编辑人员设置的转码属性信息,包括码率范围信息、音轨信息、声道信息、字幕信息、音频滤镜以及视频滤镜中的一个或多个,可以为直播视频添加更丰富的内容供用户选择或者提高直播视频的观看效果。
在步骤S113中,根据自定义转码属性信息执行实时转码任务。
本实施例中,在转码任务执行之前解析出实时转码任务中的自定义转码属性信息,根据自定义转码属性信息执行转码内容,提高了直播视频的观看效果,为直播视频添加更丰富的内容供用户选择。
以下为本申请的装置实施例,用于执行本申请的上述方法实施例。
图6是本申请实施例提供的一种实时转码系统,包括:
指令接收模块20,用于接收直播控制中心下发的实时转码任务创建指令;
第一任务执行模块21,用于创建并执行对应的实时转码任务,为实时转码任务分配对应的任务标识,将实时转码任务的日志数据重定向到预设目录;
任务监控模块22,用于根据任务标识解析预设目录中的日志数据,监控实时转码任务的运行状态。
在一个实施例中,该任务监控模块22进一步包括:
第一进度信息获取子模块,用于从日志数据中获取实时转码任务的进度信息;
时间信息检测子模块,用于周期性的获取进度信息中的时间信息来判断时间信息的更新状态;
第一状态检测子模块,用于当时间信息持续未被更新的次数大于或等于第一预设门限时,确定实时转码任务处于异常状态;
第一任务重启子模块,用于根据任务标识重启实时转码任务。
在一个实施例中,该任务监控模块22进一步包括:
更新日志获取子模块,用于周期性的获取日志数据中的更新日志;
第二状态检测子模块,用于当未获取到更新日志的时长大于或等于第二预设门限时,确定实时转码任务处于异常状态;
第二任务重启子模块,用于根据任务标识重启实时转码任务。
在一个实施例中,该任务监控模块22进一步包括:
第二进度信息获取子模块,用于从日志数据中获取实时转码任务的进度信息;
负载检测子模块,用于周期性的检测进度信息中的负载信息;
第三状态检测子模块,当负载信息大于或等于第三预设门限时,确定实时转码任务处于异常状态;
第三任务重启子模块,根据任务标识重启实时转码任务。
在一个实施例中,所述系统还包括:
任务获取模块,用于在实时转码系统重启之后,从直播控制中心获取当前所有的实时转码任务;
第二任务执行模块,用于创建并执行获取到的实时转码任务并重新分配对应的任务标识。
在一个实施例中,该第一任务执行模块21包括:
任务创建子模块,用于创建对应的实时转码任务,为实时转码任务分配对应的任务标识,将实时转码任务的日志数据重定向到预设目录;
自定义属性获取子模块,用于解析实时转码任务,获取其中的自定义转码属性信息;
任务执行子模块,用于根据自定义转码属性信息执行实时转码任务。
此外,本申请实施例中可以通过硬件处理器(hardware processor)来实现上述各个功能模块。
本申请实施例还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质可存储有程序,该程序执行时可实现执行前述任意一个实施例提供的一种实时转码的监控方法的各实现方式中的部分或全部步骤。
图7是本申请实施例提供的实时转码的监控方法的电子设备的硬件结构示意图,如图7所示,该设备包括:
一个或多个处理器710以及存储器720,图7中以一个处理器710为例。
执行实时转码的监控方法的设备还可以包括:输入装置730和输出装置740。
处理器710、存储器720、输入装置730和输出装置740可以通过总线或者其他方式连接,图7中以通过总线连接为例。
存储器720作为一种非暂态计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的实时转码的监控方法对应的程序指令/模块。处理器710通过运行存储在存储器720中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的实时转码的监控方法。
存储器720可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据实时转码的监控装置的使用所创建的数据等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器720可选包括相对于处理器710远程设置的存储器, 这些远程存储器可以通过网络连接至实时转码的监控装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置730可接收输入的数字或字符信息,以及产生与实时转码的监控装置的用户设置以及功能控制有关的键信号输入。输出装置740可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器720中,当被所述一个或者多个处理器710执行时,执行上述任意方法实施例中的实时转码的监控方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本发明实施例的电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、预览播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (16)

  1. 一种实时转码的监控方法,适用于实时转码系统,其特征在于,包括:
    接收直播控制中心下发的实时转码任务创建指令;
    创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;
    根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态包括:
    从所述日志数据中获取所述实时转码任务的进度信息;
    周期性的获取所述进度信息中的时间信息来判断所述时间信息的更新状态;
    当所述时间信息持续未被更新的次数大于或等于第一预设门限时,确定所述实时转码任务处于异常状态;
    根据所述任务标识重启所述实时转码任务。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态包括:
    周期性的获取所述日志数据中的更新日志;
    当未获取到所述更新日志的时长大于或等于第二预设门限时,确定所述实时转码任务处于异常状态;
    根据所述任务标识重启所述实时转码任务。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态包括:
    从所述日志数据中获取所述实时转码任务的进度信息;
    周期性的检测所述进度信息中的负载信息;
    当所述负载信息大于或等于第三预设门限时,确定所述实时转码任务处于异常状态;
    根据所述任务标识重启所述实时转码任务。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述实时转码系统重启之后,从所述直播控制中心获取当前所有的实时转码任务;
    创建并执行获取到的实时转码任务并重新分配对应的任务标识。
  6. 根据权利要求1所述的方法,其特征在于,所述创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录包括:
    创建对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;
    解析所述实时转码任务,获取其中的自定义转码属性信息;
    根据所述自定义转码属性信息执行所述实时转码任务。
  7. 一种实时转码系统,其特征在于,包括:
    指令接收模块,用于接收直播控制中心下发的实时转码任务创建指令;
    第一任务执行模块,用于创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;
    任务监控模块,用于根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。
  8. 根据权利要求7所述的系统,其特征在于,所述任务监控模块包括:
    第一进度信息获取子模块,用于从所述日志数据中获取所述实时转码任务的进度信息;
    时间信息检测子模块,用于周期性的获取所述进度信息中的时间信息来判断所述时间信息的更新状态;
    第一状态检测子模块,用于当所述时间信息持续未被更新的次数大于或等于第一预设门限时,确定所述实时转码任务处于异常状态;
    第一任务重启子模块,用于根据所述任务标识重启所述实时转码任务。
  9. 根据权利要求7所述的系统,其特征在于,所述任务监控模块包括:
    更新日志获取子模块,用于周期性的获取所述日志数据中的更新日志;
    第二状态检测子模块,用于当未获取到所述更新日志的时长大于或等于第二预设门限时,确定所述实时转码任务处于异常状态;
    第二任务重启子模块,用于根据所述任务标识重启所述实时转码任务。
  10. 根据权利要求7所述的系统,其特征在于,所述任务监控模块包括:
    第二进度信息获取子模块,用于从所述日志数据中获取所述实时转码任务的进度信息;
    负载检测子模块,用于周期性的检测所述进度信息中的负载信息;
    第三状态检测子模块,当所述负载信息大于或等于第三预设门限时,确定所述实时转码任务处于异常状态;
    第三任务重启子模块,根据所述任务标识重启所述实时转码任务。
  11. 根据权利要求7所述的系统,其特征在于,所述系统还包括:
    任务获取模块,用于在所述实时转码系统重启之后,从所述直播控制中心获取当前所有的实时转码任务;
    第二任务执行模块,用于创建并执行获取到的实时转码任务并重新分配对应的任务标识。
  12. 根据权利要求7所述的系统,其特征在于,所述第一任务执行模块包括:
    任务创建子模块,用于创建对应的实时转码任务,为所述实时转码任务分 配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;
    自定义属性获取子模块,用于解析所述实时转码任务,获取其中的自定义转码属性信息;
    任务执行子模块,用于根据所述自定义转码属性信息执行所述实时转码任务。
  13. 一种电子设备,其特征在于,包括:如权利要求7-12任一项所述的实时转码系统。
  14. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机程序,所述计算机程序用于使所述计算机执行权利要求1-6任一所述方法。
  15. 一种电子设备,包括:
    一个或多个处理器;以及,
    存储器;其特征在于,
    所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行,以使所述一个或多个处理器:
    接收直播控制中心下发的实时转码任务创建指令;
    创建并执行对应的实时转码任务,为所述实时转码任务分配对应的任务标识,将所述实时转码任务的日志数据重定向到预设目录;
    根据所述任务标识解析所述预设目录中的日志数据,监控所述实时转码任务的运行状态。
  16. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-6所述的方法。
PCT/CN2016/096006 2015-12-18 2016-08-19 实时转码的监控方法和实时转码系统 WO2017101488A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510960428.5 2015-12-18
CN201510960428.5A CN105898554A (zh) 2015-12-18 2015-12-18 实时转码的监控方法和实时转码系统

Publications (1)

Publication Number Publication Date
WO2017101488A1 true WO2017101488A1 (zh) 2017-06-22

Family

ID=57002202

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096006 WO2017101488A1 (zh) 2015-12-18 2016-08-19 实时转码的监控方法和实时转码系统

Country Status (2)

Country Link
CN (1) CN105898554A (zh)
WO (1) WO2017101488A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684611A (zh) * 2018-12-18 2019-04-26 北京城市网邻信息技术有限公司 一种字典转码方法、装置、存储介质及终端
CN110297738A (zh) * 2019-05-21 2019-10-01 深圳壹账通智能科技有限公司 系统服务的监控方法、装置、设备及存储介质
CN111078510A (zh) * 2018-10-18 2020-04-28 北京国双科技有限公司 一种任务处理进度的记录方法及装置
CN111858234A (zh) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 一种任务执行方法、装置、设备、介质
CN112866713A (zh) * 2021-01-19 2021-05-28 北京睿芯高通量科技有限公司 一种转码一体机系统以及转码方法
CN114422817A (zh) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 直播间数据处理方法、装置、电子设备、存储介质
CN116108476A (zh) * 2022-11-03 2023-05-12 广东加一信息技术有限公司 一种基于大数据的信息安全管理及监控系统

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933483A (zh) * 2017-12-15 2019-06-25 中国电信股份有限公司 流媒体转码服务监控方法和装置以及计算机可读存储介质
CN108174226B (zh) * 2017-12-19 2020-11-10 平安科技(深圳)有限公司 直播视频的转码装置、方法及计算机可读存储介质
CN110996117B (zh) * 2019-12-20 2021-10-22 北京达佳互联信息技术有限公司 视频转码方法、装置、电子设备和存储介质
CN111432236A (zh) * 2020-03-20 2020-07-17 北京百度网讯科技有限公司 用于输出信息的方法和装置
CN111432243A (zh) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 视频转码方法及装置
CN113064798A (zh) * 2021-04-25 2021-07-02 上海商汤临港智能科技有限公司 异常处理方法、装置、电子设备及系统
CN113992537B (zh) * 2021-10-26 2023-06-20 上海网达软件股份有限公司 在线转码的日志管理方法、系统、设备及存储介质
CN114845141A (zh) * 2022-04-18 2022-08-02 上海哔哩哔哩科技有限公司 边缘转码方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090303897A1 (en) * 2005-12-19 2009-12-10 Audiocodes, Inc. Method and apparatus for voice-over-ip call recording and analysis
CN103873953A (zh) * 2014-03-17 2014-06-18 西安未来国际信息股份有限公司 一种基于云计算的高性能课件转码的实现步骤
CN104284203A (zh) * 2014-10-31 2015-01-14 云看天下(北京)科技有限公司 一种视频文件混合云转码方法及系统
CN104980750A (zh) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 一种视频转码日志的收集方法、装置及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5412385B2 (ja) * 2010-08-16 2014-02-12 スキルアップジャパン株式会社 分散トランスコーディングシステム並びに方法、及びトランスコーディング装置
CN104469370A (zh) * 2013-09-17 2015-03-25 中国普天信息产业股份有限公司 一种视频转码的方法和装置
CN104159127B (zh) * 2014-08-21 2019-02-22 北京奇艺世纪科技有限公司 一种视频转码方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090303897A1 (en) * 2005-12-19 2009-12-10 Audiocodes, Inc. Method and apparatus for voice-over-ip call recording and analysis
CN103873953A (zh) * 2014-03-17 2014-06-18 西安未来国际信息股份有限公司 一种基于云计算的高性能课件转码的实现步骤
CN104284203A (zh) * 2014-10-31 2015-01-14 云看天下(北京)科技有限公司 一种视频文件混合云转码方法及系统
CN104980750A (zh) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 一种视频转码日志的收集方法、装置及系统

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078510A (zh) * 2018-10-18 2020-04-28 北京国双科技有限公司 一种任务处理进度的记录方法及装置
CN111078510B (zh) * 2018-10-18 2023-05-16 北京国双科技有限公司 一种任务处理进度的记录方法及装置
CN109684611A (zh) * 2018-12-18 2019-04-26 北京城市网邻信息技术有限公司 一种字典转码方法、装置、存储介质及终端
CN109684611B (zh) * 2018-12-18 2024-02-20 北京城市网邻信息技术有限公司 一种字典转码方法、装置、存储介质及终端
CN110297738A (zh) * 2019-05-21 2019-10-01 深圳壹账通智能科技有限公司 系统服务的监控方法、装置、设备及存储介质
CN111858234A (zh) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 一种任务执行方法、装置、设备、介质
CN112866713A (zh) * 2021-01-19 2021-05-28 北京睿芯高通量科技有限公司 一种转码一体机系统以及转码方法
CN114422817A (zh) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 直播间数据处理方法、装置、电子设备、存储介质
CN114422817B (zh) * 2022-01-17 2023-09-26 北京达佳互联信息技术有限公司 直播间数据处理方法、装置、电子设备、存储介质
CN116108476A (zh) * 2022-11-03 2023-05-12 广东加一信息技术有限公司 一种基于大数据的信息安全管理及监控系统
CN116108476B (zh) * 2022-11-03 2023-08-25 深圳市和合信诺大数据科技有限公司 一种基于大数据的信息安全管理及监控系统

Also Published As

Publication number Publication date
CN105898554A (zh) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2017101488A1 (zh) 实时转码的监控方法和实时转码系统
CN110519177B (zh) 一种网络流量识别方法及相关设备
WO2017107514A1 (zh) 离线转码方法和系统
US20130290969A1 (en) Operator graph changes in response to dynamic connections in stream computing applications
CN108712422B (zh) 一种创建转码任务的方法和装置
JP2017108389A (ja) 生放送でタイムマシン機能を提供する方法およびシステム
US10412016B2 (en) Streaming information based on available bandwidth
US10326704B2 (en) Enabling continuous content playback
CN106791957B (zh) 视频直播处理方法及装置
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
KR20160039888A (ko) 클라우드 스트리밍 서비스 시스템, 최적 gpu를 이용한 클라우드 스트리밍 서비스 방법 및 이를 위한 장치
CN110662017B (zh) 一种视频播放质量检测方法和装置
CN110908806A (zh) 一种混流任务的管理方法、装置、设备和存储介质
WO2017113708A1 (zh) 视频播放方法及装置
WO2017080450A1 (zh) 多媒体数据下载方法、客户端、服务器、系统及存储介质
CN106303563B (zh) 流媒体在线播放方法、装置、执行终端以及存储介质
CN104753811A (zh) 一种流媒体业务优化方法、设备及系统
US11777871B2 (en) Delivery of multimedia components according to user activity
US9400757B2 (en) Automatically changing application priority as a function of a number of people proximate to a peripheral device
TW201337596A (zh) 針對多媒體內容支援瀏覽器之服務
CN112073727B (zh) 转码方法、装置、电子设备及存储介质
WO2017088382A1 (zh) 数据处理的方法和装置
CN106331757B (zh) 一种控制音视频数据播放的方法及装置
CN111726658A (zh) 一种多媒体数据传输方法及装置
US9917742B1 (en) Hardware connection management

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

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

Country of ref document: EP

Kind code of ref document: A1