CN109660837B - Multimedia program scheduling method and device - Google Patents

Multimedia program scheduling method and device Download PDF

Info

Publication number
CN109660837B
CN109660837B CN201811337897.1A CN201811337897A CN109660837B CN 109660837 B CN109660837 B CN 109660837B CN 201811337897 A CN201811337897 A CN 201811337897A CN 109660837 B CN109660837 B CN 109660837B
Authority
CN
China
Prior art keywords
playing
data
play
file
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811337897.1A
Other languages
Chinese (zh)
Other versions
CN109660837A (en
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.)
China Academy of Railway Sciences Corp Ltd CARS
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
China Academy of Railway Sciences Corp Ltd CARS
Institute of Computing Technologies of CARS
Beijing Jingwei Information 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 China Academy of Railway Sciences Corp Ltd CARS, Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical China Academy of Railway Sciences Corp Ltd CARS
Priority to CN201811337897.1A priority Critical patent/CN109660837B/en
Publication of CN109660837A publication Critical patent/CN109660837A/en
Application granted granted Critical
Publication of CN109660837B publication Critical patent/CN109660837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4302Content synchronisation processes, e.g. decoder synchronisation
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4826End-user interface for program selection using recommendation lists, e.g. of programs or channels sorted out according to their score

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a multimedia program scheduling method and a device, wherein the method comprises the steps of obtaining a play schedule of each play partition according to a play plan, and respectively starting periodic schedule scheduling for each play partition; performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point; calculating the offset between the preset scheduling time point and the scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data; and periodically starting the scheduling method to generate detailed scheduling result data, and performing multimedia playing by the player terminal according to the detailed scheduling result data. According to the embodiment of the invention, the playing data offset of the playing partition is obtained, and synchronous deviation rectification is carried out according to the playing data offset, so that the playing progress of each playing partition of a plurality of terminals is kept synchronous, and the playing consistency of multimedia programs is improved.

Description

Multimedia program scheduling method and device
Technical Field
The embodiment of the invention relates to the technical field of digital media information playing, in particular to a multimedia program scheduling method and device.
Background
With the rapid development of network technology and information technology, digital media technology is applied in various aspects of life, traditional plane advertisements, plane media and guide marks are developed towards the direction of digital display, and corresponding digital media information publishing systems are used as supports behind the applications. Taking a Passenger Information System (PIS for short) as an example, a media editing and publishing System is deployed in the center of a line and is responsible for making formats of terminal equipment in the line, compiling a play plan and editing and publishing other Passenger Information, and relevant play plan data and multimedia files are published to each play terminal through a network; player software is deployed on each playing terminal of the station and is responsible for scheduling, playing and displaying and outputting programs according to a playing plan compiled by a line center.
However, in the process of sending a multimedia program to each playing terminal for composite playing, the existing program scheduling method only schedules at the time point of program switching, and due to the difference of clock oscillators of each playing terminal, a small amount of deviation exists in the process of playing the program, and finally, the phenomenon of audio/video information asynchronization exists in a period of time for a plurality of playing terminals.
Therefore, a multimedia program scheduling method and apparatus are needed to solve the above problems.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a multimedia program scheduling method and apparatus.
In a first aspect, an embodiment of the present invention provides a multimedia program scheduling method, including:
acquiring a playing plan and corresponding multimedia files in the playing plan, acquiring a playing plan table of each playing partition according to the playing plan, and respectively starting periodic plan scheduling for each playing partition;
performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point;
calculating the offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data, wherein the detailed playing data comprises the scheduling time point, the ID of the played media file and the serial number of a file packet;
and periodically starting a scheduling method to generate detailed scheduling result data, carrying out multimedia playing by the player terminal according to the detailed scheduling result data, locally recording the actual playing result data, and uploading the playing data to the circuit center at regular time.
In a second aspect, an embodiment of the present invention provides a multimedia program scheduling apparatus, including:
a player data acquisition unit for acquiring a play plan, a message command and player parameter data of the player from a line center;
the media downloading and verifying unit is used for downloading the multimedia files set by the playing plan from the circuit center to each playing terminal and verifying the integrity of downloaded data;
the playing control unit is used for realizing the analysis of the playing plan data and the task execution;
the task scheduling unit is used for carrying out periodic scheduling on the partition plan data of each playing picture of the player to generate complete and detailed video playing data at any moment;
the synchronous rectification unit is used for carrying out deviation calculation and synchronous rectification on the frame of the playing picture of the player;
the drawing playing unit starts each playing component and draws playing pictures according to the instruction data of the playing control unit and the synchronous deviation rectifying unit;
and the statistical reporting unit is used for recording the actual playing log in detail at the player terminal and reporting the playing data to the line center regularly.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the multimedia program scheduling method and device provided by the embodiment of the invention, the play data offset is calculated, and synchronous deviation rectification is carried out according to the play data offset, so that the play progress of each play partition of a plurality of terminals is kept synchronous, and the play consistency of multimedia programs is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a multimedia program scheduling method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another multimedia program scheduling method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a multimedia program scheduling method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multimedia program scheduling apparatus according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a process of an apparatus for scheduling multimedia programs according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a multimedia program scheduling method according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides a multimedia program scheduling method, including:
step S101, acquiring a playing plan and a plan-related media file, acquiring each playing partition plan table according to the playing plan, and respectively starting plan scheduling for each partition cycle. In the embodiment of the present invention, the playing plan defines the layout information of the picture partitions of the player in detail, a detailed playing partition plan table is formulated for each partition, the playing partition plan table defines the playing list of each time segment of the partition, and the playing list is a list of multimedia files, in which basic information, duration information, playing effect information, etc. of the multimedia files are recorded. And the integral scheduling and playing of the playing plan corresponding to the player are realized by respectively starting the plan scheduling for each partition.
Step S102, carrying out clock synchronization with a central clock source, inputting a scheduling time point (default is the current time point), and acquiring a play plan, all play lists and media files of a current partition;
step S103, calculating a play list and play time contained in a scheduling time point and a future delta T time period according to the partition play plan, and judging whether the time period has a play list or not in the delta T time period;
and step S104, acquiring the partition pad playing list under the condition that the blank time period exists, and filling the time period without the play list with the pad playing list. In the embodiment of the invention, the program plan integrity is ensured by adding the check of the blank time period and filling the blank time period with the cushion list in the scheduling process.
Step S105, obtaining the play lists needing to be played in the delta T time period, calculating the media files needing to be played and the play time points of each play list, and judging whether all the media files needing to be played are legal or not;
step S106, filling the time point corresponding to the illegal file with the file of the previous time point, and circularly playing to the next playing time point;
step S107, calculating the offset between each scheduling time point and the scheduled playing time point of the media file, performing playing frame offset calculation on the media file with the offset, and generating detailed playing data, wherein the detailed playing data comprises the scheduling time points, the ID of the played media file and the serial number of a file packet;
step S108, scheduling and playing the detailed playing data calculated according to scheduling, locally recording the actual playing result data, and uploading the playing data to the central system at regular time;
fig. 2 is a schematic flow chart of another multimedia program scheduling method according to an embodiment of the present invention, and as shown in fig. 2, another multimedia program scheduling method according to an embodiment of the present invention includes:
step S201, acquiring the analyzed playing plan and the analyzed playing list data from the data acquisition unit;
step S202, time sequencing is carried out on the playing media data by adopting a similar Hash algorithm to form playing media queue data;
step S203, initializing a play plan scheduling unit and independently scheduling each partition;
step S204, calculating a play list and play time contained in the partition play plan calculation scheduling time point and the future delta T time period;
step S205, filling the time slot without the play list with the pad play list to form complete play list queue data;
step S206, calculating the media files to be played and the playing time points of each playing list, judging whether the media files to be played are all legal and complete, filling the time points corresponding to the illegal files with the files of the previous time points, and circularly playing until the next playing time point;
step S207 generates a detailed play data plan and a play offset in the Δ T time period.
Fig. 3 is a schematic flowchart of another multimedia program scheduling method according to an embodiment of the present invention, and as shown in fig. 3, another multimedia program scheduling method according to an embodiment of the present invention includes:
step S301, carrying out clock synchronization with a line center clock source in a period;
step S302, obtaining a play list, corresponding multimedia files and play schedule design data in the current time and delta T time;
step S303 is to process the scheduled data of the play schedule, divide each file into a plurality of packets according to the time sequence, and add a packet sequence number (timestamp) to each packet. Preferably, the file packet (unit) is the minimum unit of the multimedia file, and the packet serial number is added to each packet of data of the multimedia file, and the scheduling data is accurate to the scheduling time point, the ID of the played media file and the file packet serial number by combining the file ID (unique ID) of the file, so that the play deviation amount can be rapidly calculated, and synchronous positioning and deviation correction can be performed.
Step S304, calculating the media file to be played at the current time point, and directly jumping the data cache to the file frame or picture to be played at the current time point;
step S305, acquiring a multimedia file and a file frame or a picture currently being played, calculating a file frame or a picture to be played at the current time, comparing the two data, and calculating a play offset. Preferably, in the program synchronization error correction method, the synchronization error correction unit divides each media into a plurality of packets (units) according to a time sequence, adds a packet sequence number (timestamp) to each packet, obtains a multimedia file and a file packet sequence number currently being played, compares the multimedia file and the file packet sequence number with the media file and the packet sequence number which are calculated by the task scheduling unit and need to be played at the current moment, and calculates the play offset according to the difference of packet sequence number data and by combining the data length of each packet of files.
Step S306, the offset data is sent to the drawing playing unit, and the drawing playing unit carries out gradual deviation correction and synchronization;
step S307, synchronously playing the picture, and keeping the synchronization of audio and video or the synchronization of picture frames.
Fig. 4 is a schematic structural diagram of a multimedia program scheduling apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes a player data obtaining unit M41, a media downloading and verifying unit M42, a playing control unit M43, a task scheduling unit M44, a synchronous rectification unit M45, a drawing playing unit M46, and a statistics reporting unit M47.
A player data obtaining unit M41 for obtaining the play plan D1, the message command D2, and the player parameters D3 of the player from the hub. Wherein, the data of the playing plan D1 defines the setting of the player picture partition and the detailed multimedia file playing plan information of each partition in detail; the message command D2 is real-time communication data between the circuit center and the player, including parameter data update of various picture variables of the player and control instruction data of the player; the player parameter D3 defines the initialization parameters of the player.
In the embodiment of the invention, the player data acquisition unit acquires all the service data of the player, realizes the timely update of the service data of the player and realizes the synchronization with the line media release system data. Wherein, the player parameter data is acquired once when the player is started. The playing plan data is periodically acquired, and whether the playing plan is updated or not can be judged according to the version number defined in the playing plan file. The playing plan defines the layout and arrangement of the player, the schedule plan of the playing list of each partition and the multimedia file description information contained in each playing list in detail. The message command data is data communicated with the player by the line center system in a message instruction mode, and service data and a control instruction of the player are timely issued.
And the media downloading and verifying unit M42 is configured to download the multimedia file set by the play plan from the circuit center to each of the playing terminals, and verify the integrity of the downloaded data.
And a playback control unit M43 for performing parsing of the playback plan data and task execution. Initializing each playing component according to the picture partition setting defined by the playing plan, periodically starting task scheduling for each playing picture partition, and updating variable data in the playing picture; and after the new version playing plan data is downloaded, plan switching and picture updating are completed.
And the task scheduling unit M44 is used for carrying out periodic scheduling on the partition plan data of each playing picture of the player and generating complete and detailed video playing data at any moment.
In the embodiment of the invention, the task scheduling unit carries out periodic scheduling to obtain the media files and detailed time points to be played in each playing partition of the player in the delta T time period, and each scheduling period only schedules data in the delta T time period, but not schedules all-day data. On one hand, the scheduling overhead is small, and the efficiency is higher; on the other hand, when the playing plan is changed, accurate scheduling can be timely and quickly carried out. And finally, realizing the fast scheduling of the data of each partition.
And the synchronous rectification unit M45 is used for performing deviation calculation and synchronous rectification on the player playing picture frames.
In the embodiment of the invention, the synchronous deviation rectifying unit divides each medium into a plurality of packets (units) according to the time sequence, respectively adds the packet serial number (time stamp) to each packet, combines the file ID (unique ID) of the file, and schedules data to be accurate to the scheduling time point, the ID of the played medium file and the serial number of the file packet, thereby being capable of quickly calculating the play deviation and synchronously positioning and rectifying the deviation. The playing offset is calculated by obtaining the multimedia file and the file packet serial number which are currently played and comparing the multimedia file and the file packet serial number with the media file and the packet serial number which are calculated by the task scheduling unit and need to be played at the current moment.
And the drawing playing unit M46 is used for starting each playing component and drawing the playing picture according to the instruction data of the playing control unit and the synchronous deviation rectifying unit.
And the statistics reporting unit M47 is configured to record the final play log in detail at the player terminal, and periodically report the player play data to the line center.
Fig. 5 is a flowchart of a processing of a multimedia program scheduling apparatus according to an embodiment of the present invention, as shown in fig. 5, including:
and step 501 to step 505, acquiring the latest play plan, analyzing the plan file, and acquiring the corresponding multimedia file according to the play plan description. And periodically acquiring a playing plan file from a circuit center media editing and releasing system, comparing the version number of the playing plan file with a version number of a file locally stored in a terminal player, judging whether the plan file is a new plan, further checking the legal integrity of the plan file format if the plan file is the new plan, and storing the plan file as a temporary file after the checking is successful. And then, preprocessing the plan file data, analyzing the playing plan file, optimizing the plan data, splitting the plan file, and respectively processing the layout data, the playlist data and the media file description data. And downloading the multimedia file according to the media file information contained in the playing plan, verifying the integrity and the legality of the file after the downloading is finished, replacing the existing playing plan and the media file after the verification is successful, and starting the data loading and the program playing of the player.
Step 506, performing layout adjustment on the player according to the preprocessed data, and setting the playing content of each partition of the player. Specifically, according to the setting information of each partition layout of the player in the play plan file, the play components of each partition layout of the player are sequentially started, the relevant parameters of the player are initialized, and the initial loading of the play plan and the picture is realized.
And 507 to 510, processing the split playing plan and the playing list data, sequencing the playing media data, and initializing a scheduling unit. Specifically, the split playlist data is processed, the playlist defines detailed play schedule calendar data of each partition in detail, further, multimedia information defined by the playlist is processed to form detailed play media calendar data, the multimedia data is further sorted according to time by adopting a hash algorithm, and finally, detailed play data is formed and is subjected to play scheduling processing by a schedule scheduling unit.
Step 510 to step 513, start scheduling the playing data, generate detailed program playing data, and control and correct the program playing. Specifically, a play schedule is started to perform cache processing, and play schedule data of each play partition is generated. And acquiring latest scheduling data at fixed time, judging whether the player has playing deviation or not by combining clock information and data information currently played by the player, calculating playing deviation data if the player has the playing deviation, and sending playing control and deviation rectifying instructions to a player playing component. And generating final scheduling data comprising a scheduling time point, the ID of the played media file and the serial number of the file packet.
And 514 to 515, playing the program, recording the actual playing log data of the program, and reporting to the line center periodically.
According to the multimedia program scheduling method and the player, the program scheduling data are ensured to be complete by filling the blank time periods of the play list, filling illegal files and the like in the multimedia program scheduling process, and the phenomenon of picture black fields can not occur under any condition. By adding packet serial numbers (timestamps) to multimedia program files, scheduling data are accurate to corresponding time points, playing file IDs and file packet serial numbers, actual playing file frames are regularly compared with scheduling calculation result file frame data, offset is calculated and synchronous deviation rectification is carried out, and synchronous playing of multimedia files by a plurality of terminal playing data is ensured.
The apparatus provided in the embodiment of the present invention is used for executing the above method embodiments, and for details of the process and the details, reference is made to the above embodiments, which are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device may include: a processor (processor)601, a communication Interface (Communications Interface)602, a memory (memory)603 and a communication bus 604, wherein the processor 601, the communication Interface 602 and the memory 603 complete communication with each other through the communication bus 604. The processor 601 may call logic instructions in the memory 603 to perform the following method: acquiring a playing plan and corresponding multimedia files in the playing plan, acquiring a playing plan table of each playing partition according to the playing plan, and respectively starting periodic plan scheduling for each playing partition; performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point; calculating the offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data, wherein the detailed playing data comprises the scheduling time point, the ID of the played media file and the serial number of a file packet; and periodically starting a scheduling method to generate detailed scheduling result data, carrying out multimedia playing by the player terminal according to the detailed scheduling result data, locally recording the actual playing result data, and uploading the playing data to the circuit center at regular time.
In addition, the logic instructions in the memory 603 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: acquiring a playing plan and corresponding multimedia files in the playing plan, acquiring a playing plan table of each playing partition according to the playing plan, and respectively starting periodic plan scheduling for each playing partition; performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point; calculating the offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data, wherein the detailed playing data comprises the scheduling time point, the ID of the played media file and the serial number of a file packet; and periodically starting a scheduling method to generate detailed scheduling result data, carrying out multimedia playing by the player terminal according to the detailed scheduling result data, locally recording the actual playing result data, and uploading the playing data to the circuit center at regular time.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores server instructions, and the server instructions cause a computer to execute the multimedia program scheduling method provided in the foregoing embodiment, for example, the method includes: acquiring a playing plan and corresponding multimedia files in the playing plan, acquiring a playing plan table of each playing partition according to the playing plan, and respectively starting periodic plan scheduling for each playing partition; performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point; calculating the offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data, wherein the detailed playing data comprises the scheduling time point, the ID of the played media file and the serial number of a file packet; and periodically starting a scheduling method to generate detailed scheduling result data, carrying out multimedia playing by the player terminal according to the detailed scheduling result data, locally recording the actual playing result data, and uploading the playing data to the circuit center at regular time.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for scheduling multimedia programs, comprising:
acquiring a playing plan and corresponding multimedia files in the playing plan, acquiring a playing plan table of each playing partition according to the playing plan, and respectively starting periodic plan scheduling for each playing partition;
performing clock synchronization with a central clock source, and acquiring a play schedule, all play lists and multimedia files of a current play partition according to a preset scheduling time point;
calculating the offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data, wherein the detailed playing data comprises the scheduling time point, the ID of the played media file and the serial number of a file packet;
periodically starting a scheduling method, generating detailed scheduling result data, carrying out multimedia playing by a player terminal according to the detailed scheduling result data, locally recording actual playing result data, and uploading playing data to a circuit center at regular time;
the performing playing frame offset calculation on the multimedia file with the offset specifically includes:
dividing the multimedia file into a plurality of packets according to the time sequence for subsequent play frame offset calculation; each packet is added with a packet sequence number, and the packet sequence number carries a timestamp;
calculating a file frame or picture to be played at the current moment;
the multimedia and the file frame or the picture which are played currently are obtained, the file frame or the picture which is played currently is compared with the file frame or the picture which needs to be played at the current moment, and the play frame offset is calculated.
2. The method according to claim 1, wherein after the clock synchronization with the central clock source and the acquisition of the play schedule, all play lists and multimedia files of the current playing partition according to the preset scheduling time point, the method comprises:
according to the play schedule of the current play partition, calculating a play list and play time contained in a preset time period starting from a preset scheduling time point, judging whether a blank time period is available in the preset time period, and if the blank time period is available, filling the blank time period with a padded play list;
and acquiring the play lists played in the preset time period, judging the legality and integrity of the currently played multimedia file according to the currently played multimedia file and the play time point in each play list, and if the currently played multimedia file is an illegal file, filling the illegal file with the play file at the previous time point in the play time period corresponding to the illegal file, and circularly playing the illegal file to the next play time point.
3. The method of claim 2, wherein generating detailed scheduling result data comprises:
acquiring the analyzed play plan and play list data;
time sequencing is carried out on the playing media data by adopting a Hash-like algorithm to form playing media queue data;
initializing a play plan scheduling unit and independently scheduling each partition;
according to the playing plan of each playing partition, calculating a playing list and playing time contained in a preset time period starting from a preset scheduling time point;
filling the time slot without the play list with a cushion play list to form complete play list queue data;
the method comprises the steps of obtaining a multimedia file currently played by each play list and a play time point, judging the legality and integrity of the currently played multimedia file, if the currently played multimedia file is an illegal file, filling the currently played multimedia file with the play file at the previous time point of the illegal file in a play time period corresponding to the illegal file, and circularly playing the currently played multimedia file to the next play time point to generate detailed scheduling result data, wherein the detailed scheduling result data comprises a detailed play data plan and a play deviation in a preset time period.
4. The method according to any one of claims 1 to 3, wherein the calculating an offset between a preset scheduling time point and a scheduled playing time point of the multimedia file, and performing playing frame offset calculation on the multimedia file with the offset to generate detailed playing data comprises:
carrying out periodic clock synchronization with a line center clock source;
acquiring a play list, a corresponding multimedia file and play schedule design data in the current time and a preset time period;
processing the schedule data, dividing the multimedia file in the schedule data into a plurality of packets according to the time sequence, and adding a packet serial number to each packet, wherein the packet serial number carries a timestamp;
if the player is just started, acquiring the multimedia file of the current time point, and jumping the play data cache to a file frame or picture to be played at the current time point;
if the player is in a working state, acquiring first playing data of a file frame or picture corresponding to a multimedia file currently being played and second playing data of the file frame or picture to be played at the current moment point, and comparing the first playing data with the second playing data to obtain a playing offset;
and generating detailed playing data according to the playing offset so as to gradually rectify and synchronize playing frames, wherein the synchronization comprises picture synchronous playing, audio and video synchronization or picture frame synchronization.
5. A multimedia program scheduling apparatus, comprising:
the player data acquisition unit is used for acquiring a playing plan, a message command and player parameter data of the player from the line center;
the media downloading and verifying unit is used for downloading the multimedia files set by the playing plan from the circuit center to each playing terminal and verifying the integrity of downloaded data;
the playing control unit is used for realizing the analysis of the playing plan data and the task execution;
the task scheduling unit is used for carrying out periodic scheduling on the partition plan data of each playing picture of the player to generate complete and detailed video playing data at any moment;
the synchronous rectification unit is used for performing deviation calculation and synchronous rectification on the frame of the playing picture of the player, and specifically comprises the following steps: the system comprises a data processing module, a data processing module and a data processing module, wherein the data processing module is used for dividing each medium into a plurality of packets according to a time sequence, respectively adding a packet serial number to each packet, the packet serial number carries a timestamp, and the scheduling data is accurate to a corresponding time point, a playing file ID and a file packet serial number, regularly comparing a currently playing file frame with scheduling calculation result file frame data, calculating an offset and performing synchronous deviation correction;
the drawing playing unit starts each playing component and draws playing pictures according to the instruction data of the playing control unit and the synchronous deviation rectifying unit;
and the statistical reporting unit is used for recording the actual playing log in detail at the player terminal and reporting the playing data to the line center regularly.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the processor executes the program.
7. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201811337897.1A 2018-11-12 2018-11-12 Multimedia program scheduling method and device Active CN109660837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811337897.1A CN109660837B (en) 2018-11-12 2018-11-12 Multimedia program scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811337897.1A CN109660837B (en) 2018-11-12 2018-11-12 Multimedia program scheduling method and device

Publications (2)

Publication Number Publication Date
CN109660837A CN109660837A (en) 2019-04-19
CN109660837B true CN109660837B (en) 2020-12-18

Family

ID=66110803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811337897.1A Active CN109660837B (en) 2018-11-12 2018-11-12 Multimedia program scheduling method and device

Country Status (1)

Country Link
CN (1) CN109660837B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783583B (en) * 2019-11-06 2024-04-05 西安诺瓦星云科技股份有限公司 Playing plan display method, device and system and computer readable medium
CN115412747B (en) * 2021-05-27 2024-03-01 京东方科技集团股份有限公司 Monitoring method, monitoring device and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209069A (en) * 2013-05-07 2013-07-17 浙江赛思电子科技有限公司 Time synchronization device and method based on precise time protocol
EP2930711A1 (en) * 2014-04-10 2015-10-14 Televic Rail NV System for optimizing image quality
CN107404754A (en) * 2017-06-13 2017-11-28 深圳市市政设计研究院有限公司 Clock synchronizing method and system between a kind of track transportation industry LTE base station
CN207150762U (en) * 2017-05-18 2018-03-27 中国铁道科学研究院电子计算技术研究所 A kind of vehicle multimedia playing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI326544B (en) * 2006-11-15 2010-06-21 Ind Tech Res Inst An intelligent heterogeneous network packet dispatcher methodology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209069A (en) * 2013-05-07 2013-07-17 浙江赛思电子科技有限公司 Time synchronization device and method based on precise time protocol
EP2930711A1 (en) * 2014-04-10 2015-10-14 Televic Rail NV System for optimizing image quality
CN207150762U (en) * 2017-05-18 2018-03-27 中国铁道科学研究院电子计算技术研究所 A kind of vehicle multimedia playing system
CN107404754A (en) * 2017-06-13 2017-11-28 深圳市市政设计研究院有限公司 Clock synchronizing method and system between a kind of track transportation industry LTE base station

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乘客信息系统多媒体技术及消息调度研究;孙同庆;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20140531;全文 *

Also Published As

Publication number Publication date
CN109660837A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN111050205B (en) Video clip acquisition method, device, equipment and storage medium
CN103385008B (en) Content delivery method and system
RU2580022C2 (en) Displaying text in natural language
CN109660837B (en) Multimedia program scheduling method and device
CN108174226B (en) Transcoding device and method for live video and computer readable storage medium
CN104394443A (en) Method for dynamically inserting and broadcasting program in HLS live broadcast streaming medium
CN110264280A (en) A kind of outdoor advertising monitoring method
CN103491427A (en) Method and device for processing video
CN113190254A (en) Updating method and device
CN110381378B (en) Estimation method, device, server and storage medium of network multimedia playing amount
CN109947435A (en) The dispositions method and system of server cluster software environment
CN114553895A (en) Data synchronization method, system, storage medium and electronic equipment
CN113064590B (en) Processing method and device for interactive components in interactive video
CN116309964A (en) Video generation method, device, equipment and storage medium
CN110471922B (en) Content extension method and device for accounting node and computer readable storage medium
CN112822515B (en) Video file replacement method and device
CN114710692B (en) Multimedia file processing method and device
CN110888883A (en) Data storage method, device, system and storage medium
CN112449209A (en) Video storage method and device, cloud server and computer readable storage medium
CN115129323B (en) Method, device and equipment for processing data resource packet and storage medium
CN113595869B (en) Voice playing method and device, storage medium and electronic device
CN107360466A (en) A kind of method and device to the single sequence of video frequency program
CN113672275B (en) Method for updating built-in data of Android terminal in factory
CN117119229A (en) Delay measurement method and device
CN116668751A (en) Program playing method and device, electronic equipment and storage medium

Legal Events

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