CN102075670B - Log recording method and device for broadcast machine - Google Patents

Log recording method and device for broadcast machine Download PDF

Info

Publication number
CN102075670B
CN102075670B CN200910238282.8A CN200910238282A CN102075670B CN 102075670 B CN102075670 B CN 102075670B CN 200910238282 A CN200910238282 A CN 200910238282A CN 102075670 B CN102075670 B CN 102075670B
Authority
CN
China
Prior art keywords
broadcast
daily record
task
preset
preset space
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.)
Expired - Fee Related
Application number
CN200910238282.8A
Other languages
Chinese (zh)
Other versions
CN102075670A (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 Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200910238282.8A priority Critical patent/CN102075670B/en
Publication of CN102075670A publication Critical patent/CN102075670A/en
Application granted granted Critical
Publication of CN102075670B publication Critical patent/CN102075670B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a log recording method and a log recording device for a broadcast machine. The method comprises that: when the broadcast machine broadcasts subtitles, a broadcast log is generated according to broadcast states of tasks and entries thereof in a program list; broadcast logs corresponding to the tasks and the entries thereof are buffered in a preset space of an internal memory; and when data in the preset space reaches the preset memory size, the broadcast logs in the preset space are saved in a local disk of the broadcast machine. Through the invention, the disk read-write frequency is reduced, the service life of the disk is prolonged, and the system stability is improved because the interaction with the disk is reduced.

Description

A kind of log recording method of broadcast machine and device
Technical field
The present invention relates to tv broadcasting technology field, particularly relate to a kind of log recording method and device of broadcast machine.
Background technology
The volume broadcast system of TV programme in broadcasting and TV field, generally comprises and compiles unit and broadcast machine.General, there are several channels in a TV station, and each channel has independently playing device.Broadcast machine carries out captions ground according to the program menu received and automatically broadcasts, to be loaded into synchronous broadcasting video realizing captions timing on video.
Under normal circumstances, time broadcast machine carries out caption playing by each entry in program menu, corresponding log recording can be done simultaneously, to record current broadcasting situation, the broadcast state of this locality be filed.When player preserves local record, be generally that record daily record just writes local disk.Because the task quantity in program menu is many, the amount of information generating daily record is many, and tens daily records just may be had every several seconds to need record.
Existing log recording method, often generating a daily record just needs in write local disk, in disk, the write operation of data is very frequent, broadcast program and disk are frequently mutual, affect the useful life of disk, and cause systematic function step-down, bad stability, such as, the process of disk to input output request is slack-off.More serious, cause the collapse of system, if system crash, then now current record and the record of history all will be lost.Broadcast machine is the pith compiled in broadcast system, and whether the performance of its system directly affects broadcast normal.
In a word, the technical problem needing those skilled in the art urgently to solve is exactly: the log recording method that how can provide a kind of broadcast machine, extends the useful life of storage medium, ensures the stability of diary record system.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of log recording method of broadcast machine, can provide a kind of log recording method of broadcast machine, extends the useful life of storage medium, ensures the stability of diary record system.
In order to solve the problem, the invention discloses a kind of log recording method of broadcast machine, comprising:
When broadcast machine carries out caption playing, generate according to the broadcast state of each task and entry thereof in program menu and broadcast daily record;
By each task and broadcast log buffer corresponding to entry thereof in the preset space of internal memory;
When the data in described preset space reach preset memory space, the broadcast daily record in preset space is saved on the local disk of broadcast machine.
Preferably, described method also comprises: when the data in described preset space reach preset memory space, the broadcast daily record in preset space is sent to watch-dog.
Further, described method also comprises: arrange update time, and the broadcast daily record in preset space is read in timing, is saved to disk and is sent to watch-dog.
Further, after broadcast daily record is saved to disk, deletes in preset memory headroom and broadcast daily record accordingly.
Preferably, described broadcast daily record comprises: task names, clause name, time, broadcast state.
According to another embodiment of the invention, also disclose a kind of log recording apparatus of broadcast machine, comprising:
Daily record generation module, for when broadcast machine carries out caption playing, generates according to the broadcast state of each task and entry thereof in program menu and broadcasts daily record;
Log buffer module, for by each task and broadcast log buffer corresponding to entry thereof in the preset space of internal memory;
Log saving module, for when the data in described preset space reach preset memory space, is saved to the broadcast daily record in preset space on the local disk of broadcast machine.
Preferably, described device also comprises: Log Sender module, for when the data in described preset space reach preset memory space, the broadcast daily record in preset space is sent to watch-dog.
Further, described device also comprises: set of time module, and for arranging update time, clocked flip log saving module and Log Sender module read the broadcast daily record in preset space.
Further, described device also comprises: buffer memory removing module, after being saved to disk in broadcast daily record, deleting in preset memory headroom and broadcasts daily record accordingly.
Preferably, described broadcast daily record comprises: task names, clause name, date, time, broadcast state.
Compared with prior art, the present invention has the following advantages:
Each task in program menu and entry thereof are broadcasted daily record and are previously recorded in the preset space of internal memory by the present invention, when the data in described preset space reach preset memory space, then the broadcast daily record in preset space are saved to disk.The present invention aims at the buffer memory prestored in space by broadcast day, decrease the number of times to disk read-write, compared to prior art, extends the useful life of disk, and due to the mutual minimizing with disk, improves the stability of system.
In addition, the present invention, by broadcast daily record is sent to watch-dog, achieves remote journal record and files, carry out two preservation, when the local daily record of broadcast machine is lost, can consult the broadcast daily record of backup, improve the fail safe of broadcast daily record preservation, reliability.
Further, by arranging update time, broadcast daily record in preset space is read in timing, ensure that the user of local broadcast machine and remote monitoring personnel are when broadcasting daily record data volume and being less, also can check the log recording of broadcast in time.
Accompanying drawing explanation
Fig. 1 is the flow chart of the log recording method embodiment of a kind of broadcast machine of the present invention;
Fig. 2 is the flow chart of the log recording apparatus embodiment of a kind of broadcast machine of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, show the flow chart of the log recording method embodiment of a kind of broadcast machine of the present invention, comprising:
Step 101, when broadcast machine carries out caption playing, generates according to the broadcast state of each task and entry thereof in program menu and broadcasts daily record;
The program menu completed is submitted to the broadcast machine of each channel by the volume unit compiling broadcast system, and broadcast machine starts caption playing engine automatically, receives the broadcast order of sending from broadcast control program method, is responsible for the caption playing of this channel.
Broadcast machine is according to each task in program menu and entry caption playing thereof, general, the broadcast content of a day is a program menu, and it is divided into two-layer configuration: task and entry, a program menu can comprise multiple task period, and each task period can comprise again multiple entry period.Different tasks has unique ID mark to distinguish, and different entries is also distinguished by unique ID.
Each task has the time of beginning and the time of end, comprise broadcast the date, broadcast time, material enter point, duration, also comprise the ID (unique identification of task of task names, task, do not repeat in whole programme, this ID produces when newly-increased task, eliminate during deletion task, more remain unchanged during new task) etc.Each entry comprises: broadcast date, broadcast time, enter point, go out point (when form is: minute: second: frame), the ID of clause name, entry, program category (as news, advertisement, TV play etc.).
Broadcast machine then generates according to the broadcast state of each task and entry thereof in program menu and broadcasts daily record.Preferably, broadcast daily record to comprise: task names, clause name, time, broadcast state.
Such as, there is following task in program menu, its task names is that flag is play, need the same day (on November 3rd, 2009) evening 19:33:20-19:37:10 carry out performing broadcasting, wherein, the 19:33:20-19:34:10 time period set the Chinese flag broadcasting; The 19:34:11-19:37:10 time period sets Olympic Five Ring flag and plays.
Then recording structure according to the broadcasting situation broadcast daily record of program menu is: task names; Clause name; Date; Time; Broadcast state; Program category.Concrete record is as follows:
Flag plays (the 3rd task); The Chinese flag (the 1st entry); 19:33:20; Start to play, normally.
Flag plays (the 3rd task); The Chinese flag (the 1st entry); 19:34:11; Terminate to play, postpone 1 second.
Flag plays (the 3rd task); Five rings flag (the 2nd entry); 19:34:12; Start to play, postpone 1 second.
Flag plays (the 3rd task); Five rings flag (the 2nd entry); 19:37:10; Terminate to play, normally.
Needs illustrate, the record of described broadcast daily record is not limited to above-mentioned form, the increase and decrease carrying out association attributes parameter can be needed to arrange according to the difference of user.Such as, user can increase program category and broadcast the date on each record, and in the present embodiment, adding program category in each bar log recording is news, and broadcasting the date is on November 3rd, 2009; Or, the broadcast day of same date (one day) can also be aimed at batch when local disk is preserved and carry out the record on date.In addition, except generating each task and broadcast daily record corresponding to entry thereof, general, also need to record start-up time, shut-in time, the startup of broadcast machine or close whether normal log information.
Step 102, by each task and broadcast log buffer corresponding to entry thereof in the preset space of internal memory;
Under normal circumstances, very abundant according to the log content of the broadcast state record of program menu, for in a task, usually comprise multiple entry, and each task likely or can be intersected simultaneously and performed, such as, while flag is play, also may broadcast the station symbol of TV station, the source of news release. reporter's title, a left side flies news in brief captions etc., within a few second, the conversion just having multiple caption is broadcasted, may will generate tens log recordings a second, in this case, if carry out the mutual of log recording program and disk frequently, with regard to the stability of influential system, the serious normal play that also may can affect program menu.
In order to reduce the read-write number of times of disk, the embodiment of the present invention opens up a preset space in internal memory, this space is specifically designed to the broadcast daily record of depositing generation, whenever one that generates is broadcasted daily record with regard in the preset space of write memory, carry out buffer memory, instead of directly daily record is stored in disk in prior art.
Step 103, when the data in described preset space reach preset memory space, is saved to the broadcast daily record in preset space on the local disk of broadcast machine.
Set preset memory space in the preset space of internal memory, when the daily record data write reaches this preset memory space, be saved to disk.Described preset memory space can arrange different values according to the demand of user, if can set larger storing value when log recording data that are comparatively frequent, record are more; If log recording data that are comparatively slow, record can set less storing value time less.General, preset memory space is no more than 1M.Like this, at set intervals, when the data accumulation stored when preset space is to certain amount, just writes disk, carry out the preservation of local data.Owing to decreasing the read-write number of times of disk, therefore, the useful life of disk is extended; And due to the mutual minimizing with disk, ensure that the stability of broadcast machine system.
In a preferred embodiment of the invention, described method also comprises step:
When the daily record data in described preset space reaches preset memory space, broadcast daily record is sent to watch-dog.
In some cases, after broadcast machine is play program menu, also need corresponding watch-dog and remote journal record and monitoring are carried out to its broadcast state, to file to the daily record of each broadcast machine, and check whether broadcast machine normally works.
Therefore, when from preset space read broadcast daily record and stored in local disk while, can also by this Log Sender to watch-dog.The broadcast daily record being sent to remote supervisory and control(ling) equipment can be the whole broadcast log informations in preset space, also can be to extract crucial record entry from broadcast log recording, only a part is wherein sent to watch-dog and carries out filing and monitoring.
Broadcast daily record is sent to watch-dog, the daily record of broadcast machine is backed up, achieve remote journal record and file, improve the fail safe of daily record preservation, reliability, preserved by secondary, when the local daily record of broadcast machine is lost, can consult the broadcast daily record of backup.
Further, in a preferred embodiment of the invention, described method also comprises step:
Arrange update time, the broadcast daily record in preset space is read in timing, is saved to disk and is sent to watch-dog simultaneously.
In some cases, user needs to recall broadcast machine timely and consults at the log recording of local disk, or remote monitoring is carried out to broadcast daily record, if and the daily record data amount that current broadcast machine generates is little, so need to wait for long time, the daily record data in preset space just can run up to preset memory space, carries out the digital independent in internal memory, for user, the record of daily record is not in time.Therefore, need to arrange update time, the timing of carrying out broadcasting daily record is read.Such as adopt OnTimer timer, or use the management method of thread, set, every two seconds, the broadcast daily record in preset space is saved to disk, and be sent to watch-dog simultaneously.Like this, operating personnel can check broadcast record case timely on local broadcast machine, and remote monitoring end also can obtain log recording in time.
Further, broadcast daily record empties in preset memory headroom and broadcasts daily record accordingly after being saved to disk.
The broadcast daily record stored in preset space may disposable whole reading, now, directly empties preset space, to provide spatial cache for broadcast daily record afterwards.In some cases, the data volume in preset space is larger, daily record formation speed is than very fast, when reading one, just have the write of newly-generated broadcast daily record, then all read and emptied preset space again, likely the data do not read are deleted, therefore, after reading a broadcast daily record, correspondingly it is deleted.
With reference to Fig. 2, show the structure chart of the log recording apparatus embodiment of a kind of broadcast machine of the present invention, comprising:
Daily record generation module 201, for when broadcast machine carries out caption playing, generates according to the broadcast state of each task and entry thereof in program menu and broadcasts daily record;
Log buffer module 202, for by each task and broadcast log buffer corresponding to entry thereof in the preset space of internal memory;
Log saving module 203, for when the data in described preset space reach preset memory space, is saved to the broadcast daily record in preset space on the local disk of broadcast machine.
In a preferred embodiment of the invention, with reference to Fig. 2, described device also comprises:
Log Sender module 204, for when the data in described preset space reach preset memory space, is sent to watch-dog by the broadcast daily record in preset space.Then by remote supervisory and control(ling) equipment, back up the daily record of local broadcast machine, further, whether the operating state can also monitoring broadcast machine is normal.
Preferably, described device also comprises:
Set of time module 205, for arranging update time, clocked flip log saving module and Log Sender module read the broadcast daily record in preset space.By setting-up time, avoid the overlong time that broadcast day aims at buffer memory in internal memory, ensure that local and remote personnel can consult log recording in time.
Further, described device also comprises:
Buffer memory removing module 206, after being saved to disk in broadcast daily record, deleting in preset memory headroom and broadcasts daily record accordingly.
Preferably, described broadcast daily record comprises: task names, clause name, time, broadcast state.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Above to log recording method and the device of a kind of broadcast machine provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. a log recording method for broadcast machine, is characterized in that, comprising:
When broadcast machine carries out caption playing, generate corresponding broadcast daily record respectively according to the broadcast state of each task and entry thereof in program menu; Described program menu comprises task, and described task agent is containing entry;
By each task described and broadcast daily record corresponding to entry thereof simultaneously or intersect buffer memory in the preset space of internal memory;
When the data in described preset space reach preset memory space, the broadcast daily record in preset space is saved on the local disk of broadcast machine;
Described method also comprises:
When the data in described preset space reach preset memory space, the broadcast daily record in preset space is sent to watch-dog.
2. the method for claim 1, is characterized in that, also comprises:
Arrange update time, the broadcast daily record in preset space is read in timing, is saved to disk and is sent to watch-dog.
3. the method for claim 1, is characterized in that, also comprises:
After broadcast daily record is saved to disk, deletes in preset memory headroom and broadcast daily record accordingly.
4. the method for claim 1, is characterized in that, described broadcast daily record comprises:
Task names, clause name, time, broadcast state.
5. a log recording apparatus for broadcast machine, is characterized in that, comprising:
Daily record generation module, for when broadcast machine carries out caption playing, generates corresponding broadcast daily record respectively according to the broadcast state of each task and entry thereof in program menu; Described program menu comprises task, and described task agent is containing entry;
Log buffer module, for by each task described and broadcast daily record corresponding to entry thereof simultaneously or intersect buffer memory in the preset space of internal memory;
Log saving module, for when the data in described preset space reach preset memory space, is saved on the local disk of broadcast machine by the broadcast daily record in preset space;
Also comprise:
Log Sender module, for when the data in described preset space reach preset memory space, is sent to watch-dog by the broadcast daily record in preset space.
6. device as claimed in claim 5, is characterized in that, also comprise:
Set of time module, for arranging update time, clocked flip log saving module and Log Sender module read the broadcast daily record in preset space.
7. device as claimed in claim 5, is characterized in that, also comprise:
Buffer memory removing module, after being saved to disk in broadcast daily record, deleting in preset memory headroom and broadcasts daily record accordingly.
8. device as claimed in claim 5, it is characterized in that, described broadcast daily record comprises:
Task names, clause name, date, time, broadcast state.
CN200910238282.8A 2009-11-24 2009-11-24 Log recording method and device for broadcast machine Expired - Fee Related CN102075670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910238282.8A CN102075670B (en) 2009-11-24 2009-11-24 Log recording method and device for broadcast machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910238282.8A CN102075670B (en) 2009-11-24 2009-11-24 Log recording method and device for broadcast machine

Publications (2)

Publication Number Publication Date
CN102075670A CN102075670A (en) 2011-05-25
CN102075670B true CN102075670B (en) 2015-05-27

Family

ID=44034000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910238282.8A Expired - Fee Related CN102075670B (en) 2009-11-24 2009-11-24 Log recording method and device for broadcast machine

Country Status (1)

Country Link
CN (1) CN102075670B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810050A (en) * 2011-05-31 2012-12-05 深圳市金蝶友商电子商务服务有限公司 Log data writing method and log system
CN103678149B (en) * 2013-12-19 2017-01-18 华为技术有限公司 Data processing method and device
CN104850556B (en) * 2014-02-17 2018-06-29 阿里巴巴集团控股有限公司 A kind of method and device of data processing
CN106681998A (en) * 2015-11-05 2017-05-17 北京国双科技有限公司 Method and device for remotely storing logs
CN105677258A (en) * 2016-02-23 2016-06-15 浪潮(北京)电子信息产业有限公司 Method and system for managing log data
CN112363675A (en) * 2020-11-18 2021-02-12 苏州元核云技术有限公司 Control method and system based on distributed storage system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980381A (en) * 2005-12-08 2007-06-13 厦门雅迅网络股份有限公司 Taxi networked advertisement playing effect data processing method
CN101267352A (en) * 2008-04-21 2008-09-17 神州亿品科技有限公司 Log file analysis system and log file analysis method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2340721T3 (en) * 2005-12-29 2010-06-08 United Video Properties, Inc. SYSTEMS AND METHODS FOR THE TRACKING OF EPISODES IN AN INTERACTIVE MEDIA ENVIRONMENT.

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980381A (en) * 2005-12-08 2007-06-13 厦门雅迅网络股份有限公司 Taxi networked advertisement playing effect data processing method
CN101267352A (en) * 2008-04-21 2008-09-17 神州亿品科技有限公司 Log file analysis system and log file analysis method

Also Published As

Publication number Publication date
CN102075670A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN102075670B (en) Log recording method and device for broadcast machine
EP1239673B1 (en) Method and memory for storing content
CN100578470C (en) Audio/video data access method and device based on raw device
EP3089470B1 (en) Video editing device
CN1643605B (en) Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device
CN101552692B (en) Operating and maintenance system and parameter configuration method of network element device
US8379496B2 (en) Recording device, recording method and program
CN100454999C (en) Method and apparatus for editing recorded program using virtual file system and file structure
CN103686381A (en) Smart television and method and device for processing video playing records in browser of smart television
CN103019899A (en) Method and system for replaying intelligent terminal event as well as intelligent terminal
CN101707633A (en) Message-oriented middleware persistent message storing method based on file system
CN103731625A (en) Method for simultaneously and synchronously playing multiple paths of audios and videos
CN104104895A (en) Method for carrying out video playback on video data and hard-disk video recorder
CN100440352C (en) Power failure recovery method
CN100359592C (en) Data storage method for hard disk for camera-shooting and recording device
CN101325653B (en) Apparatus and method for implementing plug-and-play function in set-top box
JP4930358B2 (en) Data processing apparatus and data processing method
CN102075691B (en) Subtitle editing and broadcasting system with log management function
CN1261944C (en) Recording/reproducing disk control device and disc apparatus comprising the same
CN102075690A (en) Journal monitoring method and device for caption broadcasting machines
US20140282758A1 (en) Method of time shifting in a digital tv and apparatus using the same
CN102194504A (en) Media file play method, player and server for playing medial file
CN112181311B (en) Cyclic recording method, equipment and storage medium
CN114741552A (en) Video file storage method and medium with custom format
JP2008511886A (en) Storing and reading data from memory media

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150527

Termination date: 20161124