CN111432236A - Method and apparatus for outputting information - Google Patents

Method and apparatus for outputting information Download PDF

Info

Publication number
CN111432236A
CN111432236A CN202010198808.0A CN202010198808A CN111432236A CN 111432236 A CN111432236 A CN 111432236A CN 202010198808 A CN202010198808 A CN 202010198808A CN 111432236 A CN111432236 A CN 111432236A
Authority
CN
China
Prior art keywords
file
transcoding
time
link
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010198808.0A
Other languages
Chinese (zh)
Inventor
唐月明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010198808.0A priority Critical patent/CN111432236A/en
Publication of CN111432236A publication Critical patent/CN111432236A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/233Processing of audio elementary streams
    • H04N21/2335Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for outputting information. One embodiment of the method comprises: responding to a received audio and video transcoding task sent by a terminal, and creating a task table; acquiring a file to be transcoded indicated by an audio and video transcoding task, and recording the time for successfully acquiring the file in a task table; analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in a task table; transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in a task table; calculating the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask; and for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information. The embodiment improves the speed and the accuracy of transcoding failure positioning.

Description

Method and apparatus for outputting information
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for outputting information.
Background
In the prior art, in order to meet various requirements of people, a video website converts rich video resources into a format suitable for network playing, specifically, for different video resources, the video website has different video formats, and not all video formats are suitable for network transmission playing, and the video website converts the video resources into, for example: ". flv or mp4 for network transmission (wherein, the flv format is suitable for TV terminal transmission and playing, and the mp4 format is suitable for computer and mobile terminal network transmission and playing). In order to ensure the viewing experience of the user, video websites usually provide a large amount of videos for the user to freely select to play. That is, a video website needs to establish a large number of transcoding tasks, and perform corresponding transcoding tasks through its internal transcoding system (composed of transcoding servers) to perform video transcoding processing. Many large websites need to convert thousands of videos into videos with different code rates and distribute the videos to different nodes every day, the videos are provided for different terminals to be convenient to watch, and transcoding adopted by the videos is cloud transcoding (which can be a cloud transcoding system or a corresponding cloud transcoding server), so that the video supply amount and even the experience of customers are directly influenced by the conditions of all links of the cloud transcoding.
Particularly, the cloud transcoding process is complex, the process is complicated, each transcoding link has different degrees of association, and if any transcoding link fails, the failure rate of transcoding processing can be increased; moreover, the formats of the film sources entering the cloud transcoding are various and different, the cloud transcoding needs to perform transcoding processing through different corresponding transcoding programs for the film sources with different formats, different transcoding programs may also fail during operation or updating, if the failure cannot be monitored timely, the transcoding processing is delayed, and even the transcoding is interrupted, so that the transcoding processing progress in the whole cloud transcoding is affected.
Existing fault location methods are typically based on user fault reporting, databases, and log collection systems. The complete process of the audio and video transcoding service generally comprises the steps of transmitting an input file, selecting a transcoding template, submitting a transcoding task, outputting a transcoding and informing a user of a transcoding result. Generally, after a user reports an error, a database and a log are inquired according to a task ID of the user, and the fault is gradually positioned. However, the method gradually searches logs of all links to locate the fault according to the task ID of the fault after the fault is reported by the client, so that the locating time consumption is high, and the abnormal links of the task cannot be actively sensed.
Disclosure of Invention
Embodiments of the present disclosure propose methods and apparatuses for outputting information.
In a first aspect, an embodiment of the present disclosure provides a method for outputting information, including: responding to a received audio and video transcoding task sent by a terminal, and creating a task table; acquiring a file to be transcoded indicated by an audio and video transcoding task, and recording the time for successfully acquiring the file in a task table; analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in a task table; transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in a task table; calculating the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask; and for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information.
In some embodiments, the audio video transcoding task comprises: the address of the file to be transcoded; and acquiring a file to be transcoded indicated by the audio and video transcoding task, wherein the file to be transcoded comprises: and downloading the file according to the address of the file to be transcoded.
In some embodiments, the subtasks include: uploading a file; and transcoding the file according to the analyzed parameter content, comprising: converting the file into a target file in a format specified by the parameter content; and uploading the target file to the target address.
In some embodiments, the subtasks include: notifying the user; and transcoding the file according to the analyzed parameter content, comprising: and sending the transcoding result to the terminal.
In some embodiments, the subtasks include: slicing, transcoding and merging; transcoding the file according to the analyzed parameter content, comprising: if the duration of the file is greater than a preset length threshold, slicing the file to obtain at least one fragment file; transcoding the at least one segment file in parallel according to the analyzed parameter content to obtain at least one transcoded segment; merging the at least one transcoded segment.
In some embodiments, the method further comprises: counting alarm information of each transcoding link of at least one terminal; and taking the link with the alarm times exceeding a preset time threshold as an obstacle elimination target.
In a second aspect, an embodiment of the present disclosure provides an apparatus for outputting information, including: the creating unit is configured to respond to the received audio and video transcoding task sent by the terminal and create a task table; the acquisition unit is configured to acquire a file to be transcoded indicated by the audio and video transcoding task and record the time for successfully acquiring the file in the task table; the analysis unit is configured to analyze the transcoding parameters indicated by the audio and video transcoding task and record the analyzed parameter content and the time for successfully analyzing the parameters in the task table; the transcoding unit is configured to transcode the file according to the analyzed parameter content and record the state of at least one subtask in transcoding and the end time of each subtask in the task table; the computing unit is configured to compute the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask; and the alarm unit is configured to determine that the link is abnormal and output alarm information if the actual use time of the link is greater than the preset theoretical use time for each link.
In some embodiments, the audio video transcoding task comprises: the address of the file to be transcoded; and the obtaining unit is further configured to: and downloading the file according to the address of the file to be transcoded.
In some embodiments, the subtasks include: uploading a file; and the transcoding unit is further configured to: converting the file into a target file in a format specified by the parameter content; and uploading the target file to the target address.
In some embodiments, the subtasks include: notifying the user; and the transcoding unit is further configured to: and sending the transcoding result to the terminal.
In some embodiments, the subtasks include: slicing, transcoding and merging; the transcoding unit is further configured to: if the duration of the file is greater than a preset length threshold, slicing the file to obtain at least one fragment file; transcoding the at least one segment file in parallel according to the analyzed parameter content to obtain at least one transcoded segment; merging the at least one transcoded segment.
In some embodiments, the apparatus further comprises a statistics unit configured to: counting alarm information of each transcoding link of at least one terminal; and taking the link with the alarm times exceeding a preset time threshold as an obstacle elimination target.
In a third aspect, an embodiment of the present disclosure provides an electronic device for outputting information, including: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any one of the first aspect.
According to the method and the device for outputting the information, the task table is created, the end time of each transcoding link is recorded, and then the time consumption of each link is calculated, so that the monitoring of indexes such as the state, the time consumption and the like of each link of the transcoding task is realized. And then the actual time and the theoretical time of each monitored link are analyzed, so that the link of the transcoding task failure can be positioned in time, and the fault reason can be quickly positioned. Meanwhile, time consumption of the tasks in each link is configured, and abnormal monitoring of the tasks in each link is achieved.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for outputting information, according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of a method for outputting information according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of a method for outputting information in accordance with the present disclosure;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for outputting information according to the present disclosure;
FIG. 6 is a schematic block diagram of a computer system suitable for use with an electronic device implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the disclosed method for outputting information or apparatus for outputting information may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a multimedia player, a web browser application, a shopping-like application, a search-like application, an instant messaging tool, a mailbox client, social platform software, and the like.
When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting Audio/video playing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio L layer III, motion Picture Experts compression standard Audio layer 3), MP4(Moving Picture Experts Group Audio L layer IV, motion Picture Experts compression standard Audio layer 4) players, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background transcoding server providing transcoding support for audio and video played on the terminal devices 101, 102, 103. The background transcoding server may analyze and otherwise process the received data such as the transcoding request (transcoding task), and feed back a processing result (e.g., a transcoded file) to the terminal device.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for outputting information provided by the embodiment of the present disclosure is generally performed by the server 105, and accordingly, the apparatus for outputting information is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for outputting information in accordance with the present disclosure is shown. The method for outputting information comprises the following steps:
step 201, in response to receiving an audio and video transcoding task sent by a terminal, a task table is created.
In this embodiment, an execution subject (for example, a server shown in fig. 1) of the method for outputting information may receive an audio/video transcoding task from a terminal, which a user uses to perform audio/video transcoding, through a wired connection manner or a wireless connection manner, where the audio/video transcoding task may include: a source file of the file to be transcoded (or a downloadable address of the file), transcoding parameters. The task may also specify a target address for storing the transcoded file. The destination address may be local to the terminal device or other network address. The user may not specify the target address, and the default is the default target address with the access right of the server.
The transcoding parameters may be as follows:
1. an encoder: h264;
2. resolution ratio: 640 x 360/854 x 480;
3. bit rate: 768 kbps;
4. frame rate: 24;
6. an audio encoder: AAC;
7. sampling rate: 44100;
8. bit rate: 96 or 128 kbps.
If the user does not fill in the complete parameters, default values can be used as transcoding parameters.
Each task is allocated with a task ID corresponding to a task table, and the task state and the execution field of the task, such as the execution state, the creation time, the latest update time, the ending time and the like. The execution state is used in the currently executed link, e.g., in transcoding, in file uploading. An identifier may be set for each link, for example, 1 represents obtaining a file, 2 represents parsing parameters, and the like.
Step 202, acquiring a file to be transcoded indicated by the audio and video transcoding task, and recording the time for successfully acquiring the file in a task table.
In this embodiment, the file uploaded by the terminal can be directly received. And recording the time for successfully acquiring the file in the task table after receiving the file. If the acquisition fails, the time is not recorded.
And step 203, analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in the task table.
In this embodiment, the transcoding parameters uploaded by the user through the terminal are all transmitted after being encoded into the binary data stream, and therefore the transcoding parameters need to be analyzed from the binary data stream. And if the analysis is successful, recording the time and the content of the successful analysis parameters, and if the analysis is failed, not recording.
And step 204, transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in a task table.
In this embodiment, if the duration of the file is not greater than the predetermined length threshold, the subtask may include: transcoding, uploading files, and notifying users. If the duration of the file is greater than a predetermined length threshold, the subtasks may include: slicing, transcoding, merging, uploading files and informing users. The end time of each subtask may be recorded. Uploading the file refers to uploading the transcoding result to a user-specified directory or a server default directory after transcoding is successful. And the step of informing the user means that the user is informed to check the transcoding result after the uploading is successful. If the transcoding is successful, the transcoding result can be the address of the transcoded file, and the information of the transcoding failure can also be stored in the address. And if the transcoding fails, directly returning terminal failure information.
And step 205, calculating the actual time of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask.
In this embodiment, the difference between the end times of the adjacent 2 links is the actual time of one link. For example, the difference between the time of parsing the parameter and the time of acquiring the file can calculate the actual time of the parsing parameter link. The difference between the end time of the transcoding link and the end time of the cutting link in transcoding is the actual time of the transcoding link. The method can not only position the fault of the whole transcoding process, but also accurately position the slice, or abnormal conditions in the merging process.
And step 206, for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information.
In this embodiment, the theoretical time of use can be experimentally measured. Different file sizes and transcoding parameters correspond to different theoretical time of use. For example, if the file is larger than 1G, the theoretical time for acquiring the file is 10 seconds, and if the file is smaller than 10M, the theoretical time for acquiring the file is 1 second. Certain redundancy time is already taken into account when calculating the theory. For each link, if the actual user is found to be larger than the theoretical user, the link is abnormal and alarm information is output. The time for transcoding can be considered when calculating the theoretical utilization time. If a link always needs to retry for a plurality of times to succeed, the link is also abnormal.
In the prior art, the state of a task is monitored to judge whether the transcoding task is successful, and the stage of failure of the failed task caused by abnormality cannot be judged. The embodiment of the disclosure can monitor which link causes transcoding failure and can actively sense abnormal links in the transcoding process.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for outputting information according to the present embodiment. In the application scenario of fig. 3, a user uploads audio/video transcoding related information to a server through a terminal. The server receives the transcoding task, creates a task table in the database, then starts to acquire the file, transcodes, uploads the transcoding result after transcoding and informs a user of the storage address of the transcoding result. The end time of each link is recorded in the task table for detecting whether the link is abnormal or not.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for outputting information is shown. The process 400 of the method for outputting information includes the steps of:
step 401, in response to receiving an audio and video transcoding task sent by a terminal, creating a task table.
In this embodiment, an execution subject (for example, a server shown in fig. 1) of the method for outputting information may receive an audio/video transcoding task from a terminal, which a user uses to perform audio/video transcoding, through a wired connection manner or a wireless connection manner. The specific process is substantially the same as step 201, and therefore, the detailed description is omitted.
And step 402, downloading the file according to the address of the file to be transcoded, and recording the time for successfully downloading the file in the task table.
In this embodiment, in addition to directly receiving the file to be transcoded, the file to be transcoded may be downloaded according to the website indicated by the user. And recording the time for successfully acquiring the file in the task table after receiving or downloading the file. If the acquisition fails, the time is not recorded.
And 403, analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in the task table.
And step 404, transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in a task table.
And 405, calculating the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask.
And 406, for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information.
Steps 403-406 are substantially the same as steps 201-206, and therefore will not be described again.
Step 407, counting the alarm information of each link of transcoding of at least one terminal.
In this embodiment, the server may receive audio and video transcoding tasks of different terminals, and may count the number of times of warning in a warning link after transcoding.
And step 408, taking the link with the alarm frequency exceeding the preset frequency threshold as an obstacle elimination target.
In this embodiment, some time transcoding failures may be a problem of a source file, or a parameter problem set by a user, rather than a failure of the server transcoding system, and therefore it is necessary to count which links have problems, and if a large number of alarms are given to a certain link, it is not an example, but the transcoding system fails. Thereby facilitating the location of the fault.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for outputting information in this embodiment represents a step of performing statistics on the alarm information. Therefore, the scheme described in the embodiment can more accurately position the fault position and eliminate the alarm caused by the setting of the source file and the user parameter.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for outputting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable in various electronic devices.
As shown in fig. 5, the apparatus 500 for outputting information of the present embodiment includes: the system comprises a creating unit 501, an obtaining unit 502, a parsing unit 503, a transcoding unit 504, a calculating unit 505 and an alarming unit 506. The creating unit 501 is configured to create a task table in response to receiving an audio/video transcoding task sent by a terminal; the acquiring unit 502 is configured to acquire a file to be transcoded indicated by an audio and video transcoding task, and record the time for successfully acquiring the file in a task table; the analysis unit 503 is configured to analyze the transcoding parameters indicated by the audio/video transcoding task, and record the analyzed parameter content and the time for successfully analyzing the parameters in the task table; a transcoding unit 504, configured to transcode the file according to the parsed parameter content, and record a state of at least one subtask in the transcoding and an end time of each subtask in the task table; a calculating unit 505 configured to calculate an actual time consumption of each link according to the time of acquiring the file, the time of analyzing the parameter, and the end time of each subtask; and an alarm unit 506 configured to determine that the link is abnormal and output alarm information if the actual usage time of the link is greater than a preset theoretical usage time for each link.
In this embodiment, the specific processing of the creating unit 501, the obtaining unit 502, the parsing unit 503, the transcoding unit 504, the calculating unit 505, and the warning unit 506 of the apparatus 500 for outputting information may refer to step 201 and step 206 in the corresponding embodiment of fig. 2.
In some optional implementations of this embodiment, the audio/video transcoding task includes: the address of the file to be transcoded; and the obtaining unit 502 is further configured to: and downloading the file according to the address of the file to be transcoded.
In some optional implementations of this embodiment, the subtasks include: uploading a file; and transcoding unit 504 is further configured to: converting the file into a target file in a format specified by the parameter content; and uploading the target file to the target address.
In some optional implementations of this embodiment, the subtasks include: notifying the user; and transcoding unit 504 is further configured to: and sending the transcoding result to the terminal.
In some optional implementations of this embodiment, the subtasks include: slicing, transcoding and merging; transcoding unit 504 is further configured to: if the duration of the file is greater than a preset length threshold, slicing the file to obtain at least one fragment file; transcoding the at least one segment file in parallel according to the analyzed parameter content to obtain at least one transcoded segment; merging the at least one transcoded segment.
In some optional implementations of this embodiment, the apparatus 500 further comprises a statistics unit (not shown in the drawings) configured to: counting alarm information of each transcoding link of at least one terminal; and taking the link with the alarm times exceeding a preset time threshold as an obstacle elimination target.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the server or terminal device of fig. 1) 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 607 including, for example, a liquid crystal display (L CD), speaker, vibrator, etc., storage devices 608 including, for example, magnetic tape, hard disk, etc., and communication devices 609.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a received audio and video transcoding task sent by a terminal, and creating a task table; acquiring a file to be transcoded indicated by an audio and video transcoding task, and recording the time for successfully acquiring the file in a task table; analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in a task table; transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in a task table; calculating the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask; and for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor comprises a creating unit, an obtaining unit, an analyzing unit, a transcoding unit, a calculating unit and an alarming unit. The names of the units do not form a limitation on the units themselves under certain conditions, for example, the creating unit may also be described as a "unit for creating a task table in response to receiving an audio/video transcoding task sent by a terminal".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (14)

1. A method for outputting information, comprising:
responding to a received audio and video transcoding task sent by a terminal, and creating a task table;
acquiring a file to be transcoded indicated by the audio and video transcoding task, and recording the time for successfully acquiring the file in the task table;
analyzing the transcoding parameters indicated by the audio and video transcoding task, and recording the analyzed parameter content and the time for successfully analyzing the parameters in the task table;
transcoding the file according to the analyzed parameter content, and recording the state of at least one subtask in transcoding and the end time of each subtask in the task table;
calculating the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask;
and for each link, if the actual use time of the link is greater than the preset theoretical use time, determining that the link is abnormal and outputting alarm information.
2. The method of claim 1, wherein the audio-video transcoding task comprises: the address of the file to be transcoded; and
the acquiring of the file to be transcoded indicated by the audio and video transcoding task comprises the following steps:
and downloading the file according to the address of the file to be transcoded.
3. The method of claim 1, wherein the subtasks include: uploading a file; and
the transcoding the file according to the analyzed parameter content comprises the following steps:
converting the file into a target file in a format specified by the parameter content;
and uploading the target file to a target address.
4. The method of claim 1, wherein the subtasks include: notifying the user; and
the transcoding the file according to the analyzed parameter content comprises the following steps:
and sending the transcoding result to the terminal.
5. The method of claim 1, wherein the subtasks include: slicing, transcoding and merging;
the transcoding the file according to the analyzed parameter content comprises the following steps:
if the duration of the file is greater than a preset length threshold, slicing the file to obtain at least one fragment file;
transcoding the at least one segment file in parallel according to the analyzed parameter content to obtain at least one transcoded segment;
merging the at least one transcoded segment.
6. The method according to one of claims 1-5, wherein the method further comprises:
counting alarm information of each transcoding link of at least one terminal;
and taking the link with the alarm times exceeding a preset time threshold as an obstacle elimination target.
7. An apparatus for outputting information, comprising:
the creating unit is configured to respond to the received audio and video transcoding task sent by the terminal and create a task table;
the acquisition unit is configured to acquire the file to be transcoded indicated by the audio and video transcoding task and record the time for successfully acquiring the file in the task table;
the analysis unit is configured to analyze the transcoding parameters indicated by the audio and video transcoding task and record the analyzed parameter content and the time for successfully analyzing the parameters in the task table;
the transcoding unit is configured to transcode the file according to the analyzed parameter content and record the state of at least one subtask in transcoding and the end time of each subtask in the task table;
the computing unit is configured to compute the actual time consumption of each link according to the time for acquiring the file, the time for analyzing the parameters and the end time of each subtask;
and the alarm unit is configured to determine that the link is abnormal and output alarm information if the actual use time of the link is greater than the preset theoretical use time for each link.
8. The apparatus of claim 7, wherein the audio video transcoding task comprises: the address of the file to be transcoded; and
the acquisition unit is further configured to:
and downloading the file according to the address of the file to be transcoded.
9. The apparatus of claim 7, wherein a subtask comprises: uploading a file; and
the transcoding unit is further configured to:
converting the file into a target file in a format specified by the parameter content;
and uploading the target file to a target address.
10. The apparatus of claim 7, wherein a subtask comprises: notifying the user; and
the transcoding unit is further configured to:
and sending the transcoding result to the terminal.
11. The apparatus of claim 7, wherein a subtask comprises: slicing, transcoding and merging;
the transcoding unit is further configured to:
if the duration of the file is greater than a preset length threshold, slicing the file to obtain at least one fragment file;
transcoding the at least one segment file in parallel according to the analyzed parameter content to obtain at least one transcoded segment;
merging the at least one transcoded segment.
12. The apparatus according to one of claims 7-11, wherein the apparatus further comprises a statistics unit configured to:
counting alarm information of each transcoding link of at least one terminal;
and taking the link with the alarm times exceeding a preset time threshold as an obstacle elimination target.
13. An electronic device for outputting information, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202010198808.0A 2020-03-20 2020-03-20 Method and apparatus for outputting information Pending CN111432236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010198808.0A CN111432236A (en) 2020-03-20 2020-03-20 Method and apparatus for outputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010198808.0A CN111432236A (en) 2020-03-20 2020-03-20 Method and apparatus for outputting information

Publications (1)

Publication Number Publication Date
CN111432236A true CN111432236A (en) 2020-07-17

Family

ID=71548232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010198808.0A Pending CN111432236A (en) 2020-03-20 2020-03-20 Method and apparatus for outputting information

Country Status (1)

Country Link
CN (1) CN111432236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679592A (en) * 2022-02-07 2022-06-28 上海哔哩哔哩科技有限公司 Edge cluster scheduling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155457A1 (en) * 2012-04-12 2013-10-17 Google Inc. Live streaming video processing
CN103686157A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for providing alarm in cloud transcoding
CN105898554A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Real-time transcoding monitoring method and real-time transcoding system
CN110856018A (en) * 2019-11-14 2020-02-28 武汉珞佳伟业科技有限公司 Rapid transcoding method and system in monitoring system based on cloud computing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155457A1 (en) * 2012-04-12 2013-10-17 Google Inc. Live streaming video processing
CN103686157A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for providing alarm in cloud transcoding
CN105898554A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Real-time transcoding monitoring method and real-time transcoding system
CN110856018A (en) * 2019-11-14 2020-02-28 武汉珞佳伟业科技有限公司 Rapid transcoding method and system in monitoring system based on cloud computing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679592A (en) * 2022-02-07 2022-06-28 上海哔哩哔哩科技有限公司 Edge cluster scheduling method and device

Similar Documents

Publication Publication Date Title
US9203642B2 (en) Method and system for collecting data on a wireless device
US20180367847A1 (en) Dynamic detection and mitigation of multimedia stream abandonment
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
US20220078502A1 (en) Techniques for obtaining and distributing user-generated content to internet-based content providers
CN112702198B (en) Abnormal root cause positioning method and device, electronic equipment and storage medium
CN110620806B (en) Information generation method and device
US11715496B2 (en) Systems and methods for processing video data
CN110908921A (en) Game problem positioning method and device, electronic equipment and storage medium
CN111432236A (en) Method and apparatus for outputting information
CN113873288A (en) Method and device for generating playback in live broadcast process
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN111385599A (en) Video processing method and device
CN115016794A (en) Code generation method, device, equipment and medium
EP4184920A1 (en) Dynamic multimedia stream insertion from multiple sources
US8538907B2 (en) Autonomous intelligent content items
CN115187364A (en) Method and device for monitoring deposit risk under bank distributed scene
CN111367592B (en) Information processing method and device
CN110324608B (en) Method and device for detecting video stream quality and computer equipment
CN112817874A (en) User interface test method, device, equipment and medium
CN108228829B (en) Method and apparatus for generating information
CN112749204A (en) Method and device for reading data
CN111385638A (en) Video processing method and device
CN112799863B (en) Method and device for outputting information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination