CN102075670A - Log recording method and device for broadcast machine - Google Patents
Log recording method and device for broadcast machine Download PDFInfo
- Publication number
- CN102075670A CN102075670A CN2009102382828A CN200910238282A CN102075670A CN 102075670 A CN102075670 A CN 102075670A CN 2009102382828 A CN2009102382828 A CN 2009102382828A CN 200910238282 A CN200910238282 A CN 200910238282A CN 102075670 A CN102075670 A CN 102075670A
- Authority
- CN
- China
- Prior art keywords
- broadcast
- daily record
- space
- presetting
- machine
- 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.)
- Granted
Links
Images
Landscapes
- Management Or Editing Of Information On Record Carriers (AREA)
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
Technical field
The present invention relates to the tv broadcasting technology field, particularly relate to a kind of log recording method and device that broadcasts machine.
Background technology
The volume broadcast system of TV programme in the broadcasting and TV field generally comprises unit and the broadcast machine compiled.General, there are several channels in a TV station, and each channel has independently playing device.The broadcast machine carries out captions ground according to the program menu that receives and broadcasts automatically, to be loaded into the synchronous playing that realizes captions timing on video on the video.
Generally, the broadcast machine carries out captions when broadcasting by each clauses and subclauses in the program menu, can do corresponding log record simultaneously, writing down current broadcast situation, the broadcast state of this locality is filed.When player is preserved local record, generally be that daily record of record just writes local disk.Because the task quantity in the program menu is many, the amount of information that generates daily record is many, and just having tens daily records every several seconds needs record.
Existing log recording method, daily record of every generation just need write in the local disk, the write operation of data is very frequent in the disk, broadcast program and disk are frequently mutual, influence the useful life of disk, and cause systematic function step-down, bad stability, for example, disk is slack-off to the input and output processing of request.More serious, cause the collapse of system, if system crash, then current record and historical record all will be lost this moment.The broadcast machine is the pith of compiling in the broadcast system, and whether the performance of its system directly influences broadcast normal.
In a word, need the urgent technical problem that solves of those skilled in the art to be exactly: how a kind of log recording method that broadcasts machine can be provided, prolong the useful life of storage medium, guarantee the stability of diary record system.
Summary of the invention
Technical problem to be solved by this invention provides a kind of log recording method that broadcasts machine, and a kind of log recording method that broadcasts machine can be provided, and prolongs the useful life of storage medium, guarantees the stability of diary record system.
In order to address the above problem, the invention discloses a kind of log recording method that broadcasts machine, comprising:
When the broadcast machine carries out the captions broadcast, broadcast daily record according to the broadcast state generation of each task and clauses and subclauses thereof in the program menu;
Broadcast log buffer presetting in the space with each task and clauses and subclauses correspondence thereof to internal memory;
When the described data that preset in the space reach when presetting memory space, the broadcast daily record of presetting in the space is saved on the local disk of broadcast machine.
Preferably, described method also comprises: when the described data that preset in the space reach when presetting memory space, the broadcast daily record of presetting in the space is sent to watch-dog.
Further, described method also comprises: be set update time, regularly read the broadcast daily record of presetting in the space, be saved to disk and be sent to watch-dog.
Further, after the broadcast daily record was saved to disk, corresponding broadcast daily record in the memory headroom was preset in deletion.
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 that broadcasts machine, having comprised:
The daily record generation module is used for when the broadcast machine carries out the captions broadcast, broadcasts daily record according to the broadcast state generation of each task and clauses and subclauses thereof in the program menu;
The log buffer module is used for the broadcast log buffer of each task and clauses and subclauses correspondence thereof the space of presetting to internal memory;
Log saving module is used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is saved on the local disk of broadcast machine.
Preferably, described device also comprises: the daily record sending module, be used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is sent to watch-dog.
Further, described device also comprises: the time is provided with module, is used to be provided with update time, and timing triggers log saving module and the daily record sending module reads the broadcast daily record of presetting in the space.
Further, described device also comprises: the buffer memory removing module, be used for after the broadcast daily record is saved to disk, and corresponding broadcast daily record in the memory headroom is preset in deletion.
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:
The present invention broadcasts daily record with each task and clauses and subclauses thereof in the program menu and is recorded in presetting in the space of internal memory in advance, and when the described data that preset in the space reach when presetting memory space, the broadcast daily record that will preset again in the space is saved to disk.The present invention has reduced the number of times to disk read-write by broadcast day aim at prestoring buffer memory in the space, than prior art, has prolonged the useful life of disk, and since with the mutual minimizing of disk, improved the stability of system.
In addition, the present invention is sent to watch-dog by broadcasting daily record, has realized that long-range log record files, carry out two the preservation, under the situation that the local daily record of the machine of broadcast is lost, can consult the broadcast daily record of backup, improved and broadcasted fail safe, the reliability that daily record is preserved.
Further,, regularly read the broadcast daily record of presetting in the space, guaranteed that the user of local broadcast machine and remote monitoring personnel are broadcasting under the less situation of daily record data volume, also can in time check the log record of broadcast by be set update time.
Description of drawings
Fig. 1 is a kind of flow chart that broadcasts the log recording method embodiment of machine of the present invention;
Fig. 2 is a kind of flow chart that broadcasts the log recording apparatus embodiment of machine of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
With reference to Fig. 1, show a kind of flow chart that broadcasts the log recording method embodiment of machine of the present invention, comprising:
The volume unit of compiling broadcast system is submitted to the broadcast machine of each channel with the program menu that completes, and the broadcast machine starts captions automatically and broadcasts engine, receives from broadcasting the broadcast order that the control program method is sent, and the captions of being responsible for this channel broadcast.
The broadcast machine is play captions according to each task in the program menu and clauses and subclauses thereof, general, one day broadcast content is a program menu, it is divided into two-layer configuration: task and clauses and subclauses, a program menu can comprise a plurality of task periods, and each task period can comprise a plurality of clauses and subclauses periods again.Different tasks has unique ID to identify to distinguish, and different clauses and subclauses also are to be distinguished by unique ID.
Each task has the time of beginning and the time of end, comprise that broadcasting date, broadcast time, material goes into point, duration, ID (the unique identification of task that also comprises task names, task, in whole programme, do not repeat, this ID produces when the task of increasing newly, eliminate during the deletion task, remain unchanged during updating task) etc.Frame), clause name, the ID of clauses and subclauses, program category (as news, advertisement, TV play etc.) each clauses and subclauses comprises: broadcast date, broadcast time, go into point, go out point (when form is: divide: second:.
The broadcast machine then generates the broadcast daily record according to the broadcast state of each task and clauses and subclauses thereof in the program menu.Preferably, broadcasting daily record comprises: task names, clause name, time, broadcast state.
Following task is for example arranged in the program menu, and its task names is that flag is play, and need carry out broadcast at 19:33:20-19:37:10 in evening on the same day (on November 3rd, 2009), wherein, sets the Chinese flag in the 19:33:20-19:34:10 time period and plays; The 19:34:11-19:37:10 time period is set the Olympic Five Ring flag and plays.
Then broadcasting daily record according to the broadcast situation of program menu records structure and is: task names; Clause name; Date; Time; Broadcast state; Program category.Concrete record is as follows:
Flag is play (the 3rd task); The Chinese flag (the 1st clauses and subclauses); 19:33:20; Begin to play, normal.
Flag is play (the 3rd task); The Chinese flag (the 1st clauses and subclauses); 19:34:11; Finish to play, postpone 1 second.
Flag is play (the 3rd task); Five rings flag (the 2nd clauses and subclauses); 19:34:12; Begin to play, postpone 1 second.
Flag is play (the 3rd task); Five rings flag (the 2nd clauses and subclauses); 19:37:10; Finish to play, normal.
Need illustrate that the record of described broadcast daily record is not limited to above-mentioned form, can carry out the increase and decrease setting of association attributes parameter according to user's different needs.For example, the user can increase program category and broadcast the date on each bar record, and in the present embodiment, adding program category in each bar log record is news, and broadcasting the date is on November 3rd, 2009; Perhaps, the broadcast day of same date (one day) can also be aimed at carrying out in batches when local disk is preserved the record on date.In addition, general except generating the broadcast daily record of each task and clauses and subclauses correspondence thereof, also need to write down the broadcast machine start-up time, shut-in time, start or close whether normal log information.
Generally, log content according to the broadcast state of program menu record is very abundant, in a task, usually comprise a plurality of clauses and subclauses, and each task might simultaneously or be intersected and carried out, for example, when 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 or the like, within several seconds, the conversion that just has multiple captions is broadcasted, may a second will generate tens log records, in this case, if frequent carry out log record program and disk alternately, just influence the stability of system, the serious normal play that may also can influence program menu.
In order to reduce the read-write number of times of disk, the embodiment of the invention is opened up one and is preset the space in internal memory, this space is specifically designed to the broadcast daily record of depositing generation, whenever a broadcast daily record the presetting in the space that generates with regard to write memory, carry out buffer memory, rather than in the prior art directly with log store in disk.
The presetting in the space to set of internal memory preset memory space, when the daily record data that writes reaches this and presets memory space, it is saved to disk.The described memory space that presets can be provided with different values according to user's demand, if log record data comparatively frequent, record can be set bigger storing value more for a long time; If log record data comparatively slow, record can be set less storing value more after a little while.General, preset memory space and be no more than 1M.Like this, at set intervals, when the data accumulation that presets the space storage arrives certain amount, just write disk, carry out the preservation of local data.Owing to reduced the read-write number of times of disk, therefore, obtained the useful life of disk prolonging; And since with the mutual minimizing of disk, guaranteed to broadcast the stability of machine system.
In a preferred embodiment of the invention, described method also comprises step:
When the described daily record data that presets in the space reaches when presetting memory space, will broadcast daily record and be sent to watch-dog.
In some cases, after the broadcast machine is play program menu, also need corresponding watch-dog its broadcast state is carried out long-range log record and monitoring, file, and check whether operate as normal of broadcast machine with the daily record of each being broadcasted machine.
Therefore, when from preset the space, reading the broadcast daily record and depositing local disk in, this daily record can also be sent to watch-dog.The broadcast daily record that is sent to remote supervisory and control(ling) equipment can be the whole broadcast log informations that preset in the space, also can be to extract crucial record clauses and subclauses from broadcast log record, only will a part wherein be sent to watch-dog and files and monitor.
To broadcast daily record and be sent to watch-dog, the daily record of broadcasting machine will be backed up, realize that long-range log record files, fail safe, reliability that daily record is preserved have been improved, preserve by secondary, under the situation that the daily record of broadcast machine local is lost, can consult the broadcast daily record of backup.
Further, in a preferred embodiment of the invention, described method also comprises step:
Be set update time, regularly read the broadcast daily record of presetting in the space, be saved to disk and be sent to watch-dog simultaneously.
In some cases, the user need access the broadcast machine timely and consult at the log record of local disk, perhaps carry out remote monitoring to broadcasting daily record, if and the daily record data amount that current broadcast machine generates seldom, need to wait for long time so, preset daily record data in the space and just can run up to and preset memory space, carry out the data read in the internal memory, for the user, the record of daily record is untimely.Therefore, need be set update time, broadcast the timing of daily record and read.For example adopt the OnTimer timer, perhaps use the management method of thread, set the broadcast daily record that to preset in the space every two seconds and be saved to disk, and be sent to watch-dog simultaneously.Like this, operating personnel can check the broadcast record case timely on this locality broadcast machine, and the remote monitoring end also can in time obtain log record.
Further, broadcast daily record and be saved to after the disk, empty and preset corresponding broadcast daily record in the memory headroom.
Presetting the broadcast daily record of space stored may disposablely all read, and at this moment, directly empties and presets the space, so that provide spatial cache for broadcast daily record afterwards.In some cases, the data volume that presets the space is bigger, the daily record formation speed is than very fast, when reading one, just have writing of newly-generated broadcast daily record, then all read to empty again and preset the space, might be with the data deletion of not reading, therefore, read one broadcast daily record after, correspondingly it is deleted.
With reference to Fig. 2, show a kind of structure chart that broadcasts the log recording apparatus embodiment of machine of the present invention, comprising:
Daily record generation module 201 is used for when the broadcast machine carries out the captions broadcast, broadcasts daily record according to the broadcast state generation of each task and clauses and subclauses thereof in the program menu;
Log buffer module 202 is used for the broadcast log buffer of each task and clauses and subclauses correspondence thereof the space of presetting to internal memory;
Log saving module 203 is used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is saved on the local disk of broadcast machine.
In a preferred embodiment of the invention, with reference to Fig. 2, described device also comprises:
Daily record sending module 204 is used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is sent to watch-dog.Then by remote supervisory and control(ling) equipment, this locality is broadcasted the daily record of machine and back up, further, whether the operating state that can also monitor the broadcast machine is normal.
Preferably, described device also comprises:
Time is provided with module 205, is used to be provided with update time, and timing triggers log saving module and the daily record sending module reads the broadcast daily record of presetting in the space.By setting-up time, avoided broadcast day to aim at the overlong time of buffer memory in the internal memory, guaranteed that local and remote personnel can in time consult log record.
Further, described device also comprises:
Buffer memory removing module 206 is used for after the broadcast daily record is saved to disk, and corresponding broadcast daily record in the memory headroom is preset in deletion.
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 all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than to a kind of log recording method and device that broadcasts machine provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a log recording method that broadcasts machine is characterized in that, comprising:
When the broadcast machine carries out the captions broadcast, broadcast daily record according to the broadcast state generation of each task and clauses and subclauses thereof in the program menu;
Broadcast log buffer presetting in the space with each task and clauses and subclauses correspondence thereof to internal memory;
When the described data that preset in the space reach when presetting memory space, the broadcast daily record of presetting in the space is saved on the local disk of broadcast machine.
2. the method for claim 1 is characterized in that, also comprises:
When the described data that preset in the space reach when presetting memory space, the broadcast daily record of presetting in the space is sent to watch-dog.
3. method as claimed in claim 2 is characterized in that, also comprises:
Be set update time, regularly read the broadcast daily record of presetting in the space, be saved to disk and be sent to watch-dog.
4. the method for claim 1 is characterized in that, also comprises:
After the broadcast daily record was saved to disk, corresponding broadcast daily record in the memory headroom was preset in deletion.
5. the method for claim 1 is characterized in that, described broadcast daily record comprises:
Task names, clause name, time, broadcast state.
6. a log recording apparatus that broadcasts machine is characterized in that, comprising:
The daily record generation module is used for when the broadcast machine carries out the captions broadcast, broadcasts daily record according to the broadcast state generation of each task and clauses and subclauses thereof in the program menu;
The log buffer module is used for the broadcast log buffer of each task and clauses and subclauses correspondence thereof the space of presetting to internal memory;
Log saving module is used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is saved on the local disk of broadcast machine.
7. device as claimed in claim 6 is characterized in that, also comprises:
The daily record sending module is used for reaching when presetting memory space when the described data that preset the space, and the broadcast daily record of presetting in the space is sent to watch-dog.
8. method as claimed in claim 7 is characterized in that, also comprises:
Time is provided with module, is used to be provided with update time, and timing triggers log saving module and the daily record sending module reads the broadcast daily record of presetting in the space.
9. device as claimed in claim 6 is characterized in that, also comprises:
The buffer memory removing module is used for after the broadcast daily record is saved to disk, and corresponding broadcast daily record in the memory headroom is preset in deletion.
10. device as claimed in claim 6 is characterized in that, described broadcast daily record comprises:
Task names, clause name, date, time, broadcast state.
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 true CN102075670A (en) | 2011-05-25 |
CN102075670B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810050A (en) * | 2011-05-31 | 2012-12-05 | 深圳市金蝶友商电子商务服务有限公司 | Log data writing method and log system |
CN103678149A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Data processing method and device |
CN104850556A (en) * | 2014-02-17 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for data processing |
CN105677258A (en) * | 2016-02-23 | 2016-06-15 | 浪潮(北京)电子信息产业有限公司 | Method and system for managing log data |
CN106681998A (en) * | 2015-11-05 | 2017-05-17 | 北京国双科技有限公司 | Method and device for remotely storing logs |
CN112363675A (en) * | 2020-11-18 | 2021-02-12 | 苏州元核云技术有限公司 | Control method and system based on distributed storage system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980381A (en) * | 2005-12-08 | 2007-06-13 | 厦门雅迅网络股份有限公司 | Taxi networked advertisement playing effect data processing method |
WO2007078623A2 (en) * | 2005-12-29 | 2007-07-12 | United Video Properties, Inc. | Systems and methods for episode tracking in an interactive media environment |
CN101267352A (en) * | 2008-04-21 | 2008-09-17 | 神州亿品科技有限公司 | Log file analysis system and log file analysis method |
-
2009
- 2009-11-24 CN CN200910238282.8A patent/CN102075670B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980381A (en) * | 2005-12-08 | 2007-06-13 | 厦门雅迅网络股份有限公司 | Taxi networked advertisement playing effect data processing method |
WO2007078623A2 (en) * | 2005-12-29 | 2007-07-12 | United Video Properties, Inc. | Systems and methods for episode tracking in an interactive media environment |
CN101267352A (en) * | 2008-04-21 | 2008-09-17 | 神州亿品科技有限公司 | Log file analysis system and log file analysis method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810050A (en) * | 2011-05-31 | 2012-12-05 | 深圳市金蝶友商电子商务服务有限公司 | Log data writing method and log system |
CN103678149A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Data processing method and device |
WO2015090113A1 (en) * | 2013-12-19 | 2015-06-25 | 华为技术有限公司 | Data processing method and device |
CN103678149B (en) * | 2013-12-19 | 2017-01-18 | 华为技术有限公司 | Data processing method and device |
CN104850556A (en) * | 2014-02-17 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for data processing |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102075670B (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101281542B (en) | Method and device for storing file | |
CN102075670A (en) | Log recording method and device for broadcast machine | |
CN100561386C (en) | A kind of data save method and device | |
CN102136290A (en) | Method for storing embedded real-time video files | |
CN101753936B (en) | Configuration method of storage space and video server for video monitoring system | |
US11250888B1 (en) | Flash memory and method for storing and retrieving embedded audio video data | |
CN101207799A (en) | System and method for storing program and program ordering system | |
CN103902434A (en) | Alarm log management method and system | |
CN102332284A (en) | Multimedia data processing method and processing system suitable for digital media broadcast | |
CN101057294B (en) | Reproducing apparatus for reproducing the audio-visual data stored in the storage medium | |
CN103544161B (en) | Realize method, order programme and the song-requesting service device of intelligent updating song information | |
CN100359592C (en) | Data storage method for hard disk for camera-shooting and recording device | |
CN103731625A (en) | Method for simultaneously and synchronously playing multiple paths of audios and videos | |
CN100543748C (en) | A kind of method and system of utilizing file allocation table to carry out the file tracking | |
CN100454999C (en) | Method and apparatus for editing recorded program using virtual file system and file structure | |
EP2779670A2 (en) | Method of time shifting in a digital TV and apparatus using the same | |
CN100383881C (en) | Method for protecting hardware key information area in embedded device | |
CN102075690A (en) | Journal monitoring method and device for caption broadcasting machines | |
CN101206660A (en) | File organization method | |
CN100559487C (en) | The method and system of the recording capacity of management accounts equipment | |
JP4930358B2 (en) | Data processing apparatus and data processing method | |
CN100589556C (en) | Programme generating method and system | |
CN100498779C (en) | Embedded hardware video system | |
CN112181973B (en) | Time sequence data storage method | |
CN102075691B (en) | Subtitle editing and broadcasting system with log management function |
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 |