CN101873464A - Method and device for switching video signals automatically - Google Patents
Method and device for switching video signals automatically Download PDFInfo
- Publication number
- CN101873464A CN101873464A CN200910142055A CN200910142055A CN101873464A CN 101873464 A CN101873464 A CN 101873464A CN 200910142055 A CN200910142055 A CN 200910142055A CN 200910142055 A CN200910142055 A CN 200910142055A CN 101873464 A CN101873464 A CN 101873464A
- Authority
- CN
- China
- Prior art keywords
- channel number
- standard
- channel
- output
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a method and a device for switching video signals automatically. The method comprises: setting file formats corresponding to the channel numbers of a video decoder; reading data in the channels according to the channel numbers and outputting the data in a current channel to a simulation output channel in a format corresponding to the channel number; and adding 1 to the value of the channel number of the current channel, judging if the value of the channel number is greater than the number of all channels, wherein if the value of the channel number is greater than the number of all channels, the channel number is set as zero before the execution of the previous step, and if the value of the channel number is not greater than the number of all channels, the previous step is executed directly. When the method and the device are used, the video signals in different formats can be switched automatically, human source waste caused by manual switching is avoided, long-term continuous stable test can be performed, and a long-time test interruption problem caused by manual switching is solved.
Description
Technical field
The present invention relates to the signal processing technology field, particularly a kind of method and apparatus of switching video signals automatically.
Background technology
In the test process of security product, often need carry out vision signal and switch input, comprise the switching of standard and the switching of scene, with the adaptive capacity of test analog-to-digital conversion (AD) or other programs.All not stopping to adjust the standard of player or manual switchover plug line-by-line inversion (PALPhase Alternating Line) system and national television system committee (NTSC, National TelevisionSystem Committee) system video camera by remote controller generally speaking tests.
Wherein, Phase Alternation Line system is meant the PAL television standard, per second 25 frames, television scan line is 625 lines, and strange preceding, idol after, the digitlization PAL television standard resolution of standard is 720*576, the color position of 24 bits is dark, and the ratio of width to height of picture is 4: 3, and the PAL television standard is used for countries and regions such as China, Europe.
TSC-system is meant the ntsc television standard, per second 29.97 frames (being reduced to 30 frames), and television scan line is 525 lines, idol is preceding, strange after, the digitlization ntsc television standard resolution of standard is 720*486, the color position of 24 bits is dark, and the ratio of width to height of picture is 4: 3.The ntsc television standard is used for countries and regions such as U.S., day.
Existing vision signal is switched input all by manually finishing, and it has following shortcoming:
1) must need the people and see, waste of manpower by manually finishing;
2) can not satisfy the test of long-time continuous stability, manual switching can only be the test of short time several hrs, and is interrupted certainly.
Summary of the invention
The embodiment of the invention is to provide a kind of method and apparatus of switching video signals automatically, to realize switching video signals automatically, avoids because the problem that manual switchover brought.
The embodiment of the invention provides a kind of method of switching video signals automatically, and the pairing file standard of each channel number of Video Decoder is set, and described method also comprises:
A, Video Decoder be according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel;
B, the value of described current channel number is added 1, whether the value of judging this channel number greater than the overall channel number, if, make then that channel number is 0, and then execution in step a, otherwise, direct execution in step a.
Wherein, described file standard comprises the first kind standard and the second type standard;
Step a is described will work as in the prepass data with this channel number the single-image of the corresponding standard step that outputs to the analog output channel comprise:
If the corresponding first kind standard of current channel number then will work as the interior data of prepass and output to the analog output channel with the single-image of first kind standard; If the corresponding second type standard of current channel number, the data that then will work as in the prepass are exported with the picture of the second type standard;
Wherein, described first kind standard is a pal mode, and the described second type standard is the TSC-system formula.
Wherein, before step a, also comprise: opening timing output;
Step b is described make channel number be 0 after, also comprise: wait for Preset Time length, and then execution in step a;
The value of described this channel number of judgement of step b smaller or equal to the overall channel number after, also comprise: wait for Preset Time length, and then execution in step a.
Wherein, before waiting for Preset Time length, also comprise: judge whether to stop regularly output, if then finish, otherwise carry out the operation of waiting for Preset Time length again.
The embodiment of the invention also provides a kind of device of switching video signals automatically, comprising:
Module is set, is used to be provided with the pairing file standard of each channel number of Video Decoder;
Read output module, be used for according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel;
Channel selecting module is used for the value of described current channel number is added 1, when the value of described current channel number is counted greater than overall channel, make that channel number is 0, reinform and read output module, when the value of described current channel number was counted smaller or equal to overall channel, directly notice read output module.
Wherein, described device also comprises: the time opening module is used for opening timing output; Time block is used to wait for Preset Time length;
Described channel selecting module also was used for before notice reads output module, and the notice time block after the Preset Time length of receiving the time block feedback arrives, is known and read output module.
Wherein, described device also comprises: the timing stopping modular is used to stop regularly output, process ends.
Described channel selecting module also was used for before notice reads output module, after determining to carry out timing output, reinformed time block, and behind definite need stopping, notice is stopping modular regularly.
Wherein, described file standard comprises the first kind standard and the second type standard; Described read module comprises:
First read module when being used for the corresponding first kind standard of current channel number, will work as the interior data of prepass and output to the analog output channel with the single-image of first kind standard;
Second read module, when being used for the corresponding second type standard of current channel number, the data that will work as in the prepass are exported with the picture of the second type standard;
Wherein, described first kind standard is a pal mode, and the described second type standard is the TSC-system formula.
Use the present invention, the vision signal that can finish different systems is automatically switched, avoided the waste of human resource that brought by manually finishing switching, can satisfy the long-time steady testing that continues simultaneously, avoided because the problem that the long-time test that manual switching caused is interrupted.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, to do to introduce simply to the accompanying drawing of required use among the embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram according to the realization switching video signals automatically of present embodiment;
Fig. 2 is the method flow diagram according to another realization switching video signals automatically of present embodiment;
Fig. 3 is the application schematic diagram according to the embodiment of the invention;
Fig. 4 is the apparatus structure schematic diagram according to the switching video signals automatically of present embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention discloses a kind of method of switching video signals automatically, comprise: the pairing file standard of each channel number that Video Decoder is set, described method also comprises: a, according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel; B, the value of described current channel number is added 1, whether the value of judging this channel number greater than the overall channel number, if, make then that channel number is 0, and then execution in step a, otherwise, direct execution in step a.Use the present invention, the vision signal that can finish different systems is automatically switched, avoided the waste of human resource that brought by manually finishing switching, can satisfy the long-time steady testing that continues simultaneously, avoided because the problem that the long-time test that manual switching caused is interrupted.
Referring to Fig. 1, it is the method flow diagram according to the realization switching video signals automatically of present embodiment.Present embodiment may further comprise the steps:
For example, passage 0 decoding Phase Alternation Line system scene 1 video file, passage 1 decoding TSC-system scene 2 video files, passage 2 decoding Phase Alternation Line system scenes 3 video files, passage 3 decoding Phase Alternation Line system scenes 4 video files ... passage n decoding Phase Alternation Line system scene n+1 video file; Here, scene 1 can be the scene of monitoring 1 building stair, and scene 2 can be the scene of monitoring 2 building stair ...
In the present embodiment, the file standard can comprise the first kind standard and the second type standard, and wherein, first kind standard is a pal mode, and the second type standard is the TSC-system formula.
Video Decoder in the present embodiment can be the DS40xxMD series integrated circuit board that the Haikang prestige is looked.
This step can take following mode to realize:
BPalStandard[0]=TRUE # channel number is 0 the corresponding pal mode of passage,
BPalStandard[1]=FALSE # channel number is 1 the corresponding TSC-system formula of passage,
BPalStandard[2]=TRUE # channel number is 2 the corresponding pal mode of passage,
BPalStandard[3]=TRUE # channel number is 3 the corresponding pal mode of passage,
……
BPalStandard[n]=TRUE # channel number is the corresponding pal mode of passage of n.
Concrete, the DS40xxMD series integrated circuit board that the Haikang prestige is looked in the present embodiment can be realized the hardware decoding of corresponding series security product video file and document flow, decoding can realize the matrix output of decoding channels simultaneously, a certain decoding channels single-image different systems can be set output to a certain delivery outlet, be the output of analog signal, and owing to have only two kinds of standards in this example, if thereby the corresponding first kind standard of current channel number is pal mode, then will work as the interior data of prepass and output to the analog output channel with the single-image of pal mode; If the corresponding second type standard of current channel number is the TSC-system formula, the data that then will work as in the prepass are exported with the picture of TSC-system formula.
Concrete, make Count=Count+1.
So far, finished the automatic switchover of different systems vision signal.
Use present embodiment, the vision signal that can finish different systems is automatically switched, avoided the waste of human resource that brought by manually finishing switching, can satisfy the long-time steady testing that continues simultaneously, avoided because the problem that the long-time test that manual switching caused is interrupted.
Referring to Fig. 2, it is the method flow diagram according to another realization switching video signals automatically of the embodiment of the invention.Present embodiment and difference embodiment illustrated in fig. 1 are to have increased the regularly function of output, all the other and embodiment illustrated in fig. 1 identical, the concrete steps of present embodiment are as follows:
Step 201 is provided with each document scene that each passage of Video Decoder is decoded;
For example, passage 0 decoding Phase Alternation Line system scene 1 video file, passage 1 decoding TSC-system scene 2 video files, passage 2 decoding Phase Alternation Line system scenes 3 video files, passage 3 decoding Phase Alternation Line system scenes 4 video files ... passage n decoding Phase Alternation Line system scene n+1 video file; Here, scene 1 can be the scene of monitoring 1 building stair, and scene 2 can be the scene of monitoring 2 building stair ...
Step 202 is provided with the pairing file standard of each channel number of Video Decoder;
In the present embodiment, the file standard can comprise the first kind standard and the second type standard, and wherein, first kind standard is a pal mode, and the second type standard is the TSC-system formula.
Video Decoder in the present embodiment can be the DS40xxMD series integrated circuit board that the Haikang prestige is looked.
This step can take following mode to realize:
BPalStandard[0]=TRUE # channel number is 0 the corresponding pal mode of passage,
BPalStandard[1]=FALSE # channel number is 1 the corresponding TSC-system formula of passage,
BPalStandard[2]=TRUE # channel number is 2 the corresponding pal mode of passage,
BPalStandard[3]=TRUE # channel number is 3 the corresponding pal mode of passage,
……
BPalStandard[n]=TRUE # channel number is the corresponding pal mode of passage of n.
The step 103 that above-mentioned steps 204~206 is equivalent among Fig. 1.
Step 207 adds 1 with the value of current channel number;
Concrete, make Count=Count+ 1.
Whether step 208, the value of judging this channel number greater than the overall channel number, if then execution in step 209, otherwise, execution in step 210;
Step 209 makes that channel number is 0, and then execution in step 210;
Step 210 judges whether to stop regularly input, if, then finish, otherwise, execution in step 211;
Step 211 is waited for A second, and execution in step 204 then.
So far, having finished the automatic switchover of different systems vision signal, and, can regularly switch.
Use present embodiment, the vision signal that can finish different systems is automatically switched, avoided the waste of human resource that brought by manually finishing switching, can satisfy the long-time steady testing that continues simultaneously, avoided because the problem that the long-time test that manual switching caused is interrupted.
Referring to Fig. 3, it is the application schematic diagram according to the embodiment of the invention.According to Fig. 3 as can be known, the file that needs decoding can be a video tape recorder setting, also can local store, can also come the real time data stream of automatic network, use the Haikang prestige and look different the different video files of recording more than the long-time decoding of passages of DS40xxMD series integrated circuit board correspondence, regularly respectively these decoding channels data sheet pictures are outputed in the simulation output simultaneously, the signal of simulation output directly is linked in various test environments or the security protection equipment as the test signal of input, can realizes the automatic test of vision signal switching.Concrete implementation procedure repeats no more here referring to Fig. 1 and Fig. 2.
The embodiment of the invention also provides a kind of device of switching video signals automatically, referring to Fig. 4, comprising: module 401 is set, reads output module 402 and channel selecting module 403, wherein,
Read output module 402, be used for according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel;
Said apparatus can also comprise: time opening module and time block, wherein,
The time opening module is used for opening timing output;
Time block is used to wait for Preset Time length;
Above-mentioned channel selecting module also was used for before notice reads output module, and the notice time block after the Preset Time length of receiving the time block feedback arrives, is known and read output module.
Said apparatus can also comprise: the timing stopping modular is used to stop regularly output, process ends.
Above-mentioned channel selecting module also was used for before notice reads output module, after determining to carry out timing output, reinformed time block, and behind definite need stopping, notice is stopping modular regularly.
Above-mentioned file standard comprises the first kind standard and the second type standard; At this moment, above-mentioned read module can comprise:
First read module when being used for the corresponding first kind standard of current channel number, will work as the interior data of prepass and output to the analog output channel with the single-image of first kind standard;
Second read module, when being used for the corresponding second type standard of current channel number, the data that will work as in the prepass are exported with the picture of the second type standard;
Above-mentioned first kind standard is a pal mode, and the second type standard is the TSC-system formula.
Use present embodiment, the vision signal that can finish different systems is automatically switched, avoided the waste of human resource that brought by manually finishing switching, can satisfy the long-time steady testing that continues simultaneously, avoided because the interruption of the long-time test that manual switching caused.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.
Claims (10)
1. the method for a switching video signals automatically is characterized in that, the pairing file standard of each channel number of Video Decoder is set, and described method also comprises:
A, Video Decoder be according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel;
B, the value of described current channel number is added 1, whether the value of judging this channel number greater than the overall channel number, if, make then that channel number is 0, and then execution in step a, otherwise, direct execution in step a.
2. method according to claim 1 is characterized in that,
Described file standard comprises the first kind standard and the second type standard;
Step a is described will work as in the prepass data with this channel number the single-image of the corresponding standard step that outputs to the analog output channel comprise:
If the corresponding first kind standard of current channel number then will work as the interior data of prepass and output to the analog output channel with the single-image of first kind standard; If the corresponding second type standard of current channel number, the data that then will work as in the prepass are exported with the picture of the second type standard.
3. method according to claim 2 is characterized in that, described first kind standard is a pal mode, and the described second type standard is the TSC-system formula.
4. method according to claim 1 is characterized in that,
Before step a, also comprise: opening timing output;
Step b is described make channel number be 0 after, also comprise: wait for Preset Time length, and then execution in step a;
The value of described this channel number of judgement of step b smaller or equal to the overall channel number after, also comprise: wait for Preset Time length, and then execution in step a.
5. method according to claim 4 is characterized in that, before waiting for Preset Time length, also comprises: judge whether to stop regularly output, if then finish, otherwise carry out the operation of waiting for Preset Time length again.
6. the device of a switching video signals automatically is characterized in that, comprising:
Module is set, is used to be provided with the pairing file standard of each channel number of Video Decoder;
Read output module, be used for according to the data in the channel number fetch channel, will work as in the prepass data with this channel number the single-image of corresponding standard output to the analog output channel;
Channel selecting module is used for the value of described current channel number is added 1, when the value of described current channel number is counted greater than overall channel, make that channel number is 0, reinform and read output module, when the value of described current channel number was counted smaller or equal to overall channel, directly notice read output module.
7. device according to claim 6 is characterized in that, described device also comprises:
The time opening module is used for opening timing output;
Time block is used to wait for Preset Time length;
Described channel selecting module also was used for before notice reads output module, and the notice time block after the Preset Time length of receiving the time block feedback arrives, is known and read output module.
8. device according to claim 7 is characterized in that, described device also comprises: the timing stopping modular is used to stop regularly output, process ends.
Described channel selecting module also was used for before notice reads output module, after determining to carry out timing output, reinformed time block, and behind definite need stopping, notice is stopping modular regularly.
9. device according to claim 6 is characterized in that, described file standard comprises the first kind standard and the second type standard; Described read module comprises:
First read module when being used for the corresponding first kind standard of current channel number, will work as the interior data of prepass and output to the analog output channel with the single-image of first kind standard;
Second read module, when being used for the corresponding second type standard of current channel number, the data that will work as in the prepass are exported with the picture of the second type standard.
10. device according to claim 9 is characterized in that, described first kind standard is a pal mode, and the described second type standard is the TSC-system formula.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910142055A CN101873464A (en) | 2009-06-01 | 2009-06-01 | Method and device for switching video signals automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910142055A CN101873464A (en) | 2009-06-01 | 2009-06-01 | Method and device for switching video signals automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101873464A true CN101873464A (en) | 2010-10-27 |
Family
ID=42998091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910142055A Pending CN101873464A (en) | 2009-06-01 | 2009-06-01 | Method and device for switching video signals automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101873464A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657837A (en) * | 2016-12-02 | 2017-05-10 | 青岛海信电器股份有限公司 | Television system switching method and television set |
CN108509166A (en) * | 2017-02-23 | 2018-09-07 | 宏正自动科技股份有限公司 | automatic switching device and automatic switching method |
CN110769181A (en) * | 2018-07-25 | 2020-02-07 | 杭州海康威视数字技术股份有限公司 | Video signal system identification method and device, electronic equipment and readable storage medium |
US11930158B2 (en) | 2018-07-25 | 2024-03-12 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video signal identification method and apparatus, electronic device and readable storage medium |
-
2009
- 2009-06-01 CN CN200910142055A patent/CN101873464A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657837A (en) * | 2016-12-02 | 2017-05-10 | 青岛海信电器股份有限公司 | Television system switching method and television set |
CN106657837B (en) * | 2016-12-02 | 2021-12-14 | 海信视像科技股份有限公司 | Television system switching method and television |
CN108509166A (en) * | 2017-02-23 | 2018-09-07 | 宏正自动科技股份有限公司 | automatic switching device and automatic switching method |
CN108509166B (en) * | 2017-02-23 | 2021-07-09 | 宏正自动科技股份有限公司 | Automatic switching device and automatic switching method |
CN110769181A (en) * | 2018-07-25 | 2020-02-07 | 杭州海康威视数字技术股份有限公司 | Video signal system identification method and device, electronic equipment and readable storage medium |
CN110769181B (en) * | 2018-07-25 | 2021-01-26 | 杭州海康威视数字技术股份有限公司 | Video signal system identification method and device, electronic equipment and readable storage medium |
US11930158B2 (en) | 2018-07-25 | 2024-03-12 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video signal identification method and apparatus, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0675645B1 (en) | Apparatus for discriminating video kinds and automatic aspect ratio discrimination apparatus and television receiver using it | |
EP2521351A1 (en) | Method and device for processing multi-picture video image | |
US6229574B1 (en) | Screen ratio converter for digital TV | |
CN101436396A (en) | Method and system for displaying television wall, and television wall control equipment | |
US5627825A (en) | Video communication apparatus | |
CN101873464A (en) | Method and device for switching video signals automatically | |
CN101783946A (en) | Video decoding method, video decoder and video monitoring system | |
US4673977A (en) | Method of spatially thresholding a discrete color image | |
KR980007408A (en) | Telecommunication terminal and device for projecting received information | |
JPH01218181A (en) | Closed circuit television equipment | |
CN100471274C (en) | Method of video sync protection and video sync protector thereof | |
CN101076104B (en) | Method for inspecting film mode | |
CN102111625A (en) | DVR-based television standard automatic identification system and method | |
CN1232119C (en) | Time prompting method in TV conference service | |
Thompson | European collaboration on picture coding research for 2 Mbit/s transmission | |
CN101557459B (en) | Video signal receiving method, device and embedded system | |
KR900004959B1 (en) | Moving picture image contours correcting circuit of codel | |
Down | User Instruction Manual | |
JP2515174B2 (en) | Multi-source video conference system | |
CN1681311A (en) | Method for outputting signals beyond range of inputs by synchronous signal oritation coupling | |
Loncaric et al. | Managing mixed HD and SD broadcasting | |
KR0164057B1 (en) | The mixing apparatus of digital image signal | |
KR950005605B1 (en) | Image display system | |
JPH01234993A (en) | Interphone system | |
KR100369991B1 (en) | Image processing device with simple configuration in set top box and method of controlling the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20101027 |