CN107222704B - A kind of video formats switching method and device - Google Patents
A kind of video formats switching method and device Download PDFInfo
- Publication number
- CN107222704B CN107222704B CN201710473956.7A CN201710473956A CN107222704B CN 107222704 B CN107222704 B CN 107222704B CN 201710473956 A CN201710473956 A CN 201710473956A CN 107222704 B CN107222704 B CN 107222704B
- Authority
- CN
- China
- Prior art keywords
- power supply
- target video
- video frame
- video
- frame rate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
Abstract
The invention discloses a kind of video formats switching method and devices, which comprises according to the voltage value of the power supply in predetermined time period, determines the frequency of power supply;According to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save, target video standard is determined;According to the target video standard of the determination, the video formats that itself is supported are switched to the target video standard.Due in embodiments of the present invention, according to the voltage value of the power supply in predetermined time period, it can determine the frequency of power supply, and then target video standard can be determined according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save, the video formats that itself is supported are switched to the target video standard, select the problem of influencing video playing quality caused by video formats mistake so as to avoid as user.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of video formats switching methods and device.
Background technique
In field of video monitoring, video usually has line-by-line inversion (Phase Alteration Line, PAL) and state's household electrical appliances
Depending on two kinds of standards of standard committee (National Television System Committee, NTSC), both standards are
Cannot be compatible, if selection pal mode plays the video of NTSC system formula, or selection NTSC system formula on an electronic device
The video of pal mode is played, then picture will will become black and white, therefore electronic equipment needs to set electronics when playing video
The standard of standby upper selection is identical as the standard for the video to be played.
General electronic equipment can support the broadcasting of both standard videos of PAL and NTSC, but user is using
When electronic equipment, the relevant knowledge for needing user to understand video formats is made in this way to select video formats on an electronic device
At the inconvenient for use of user, and if user selects mistake, the play quality of video just will affect.
However there is presently no a kind of solutions adaptively switched that can be realized video formats.
Summary of the invention
The embodiment of the invention provides a kind of video formats switching method and devices, select video due to user to solve
The problem of video playing quality is influenced caused by standard mistake.
The embodiment of the invention provides a kind of video formats switching methods, this method comprises:
According to the voltage value of the power supply in predetermined time period, the frequency of power supply is determined;
According to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save, target video system is determined
Formula;
According to the target video standard of the determination, the video formats that itself is supported are switched to the target video system
Formula.
It is further, described according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save,
After determining target video standard, the method also includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, really
Set the goal video frame rate;
According to the target video frame per second of the determination, the video frame rate that itself is supported is switched to the target video frame
Rate.
Further, the target video standard according to the determination and the video formats and video frame rate that pre-save
Corresponding relationship, determine that target video frame per second includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, really
The fixed corresponding each video frame rate of the target video standard;
According to determining each video frame rate and the maximum video frame rate itself saved recognized, target video frame is determined
Rate.
Further, the video formats that itself is supported are switched to institute by the target video standard according to the determination
Stating target video standard includes:
Whether output selects the prompt information of the target video standard;
If user selects the target video standard, the video formats that itself is supported are switched to the target video system
Formula.
Further, the voltage value according to the power supply in predetermined time period, determines the frequency of power supply
Before, the method also includes:
Judge power supply for AC power source or DC power supply;
If it is AC power source, subsequent step is carried out;
If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply, to the line
Wave voltage amplifies processing, using the ripple voltage after enhanced processing as the voltage of power supply, carries out subsequent step.
On the other hand, the embodiment of the invention provides a kind of video formats switching device, described device includes:
First determining module determines power supply for the voltage value according to the power supply in predetermined time period
Frequency;
Second determining module, for being closed according to the frequency of power supply and the frequency pre-saved are corresponding with video formats
System, determines target video standard;
First switching module switches the video formats itself supported for the target video standard according to the determination
For the target video standard.
Further, described device further include:
Second switching module, for according to the target video standard of the determination and the video formats and video that pre-save
The corresponding relationship of frame per second determines target video frame per second;According to the target video frame per second of the determination, by the video frame of itself support
Rate is switched to the target video frame per second.
Further, second switching module, specifically for being protected according to the target video standard of the determination with preparatory
The corresponding relationship of the video formats and video frame rate deposited determines the corresponding each video frame rate of the target video standard;According to true
Fixed each video frame rate and the maximum video frame rate itself saved recognized, determine target video frame per second.
Further, whether first switching module selects the prompt of the target video standard specifically for exporting
Information;If user selects the target video standard, the video formats that itself is supported are switched to the target video standard.
Further, described device further include:
Judgment module, for judging power supply for AC power source or DC power supply, if it is AC power source, triggering the
One determining module;If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply, to institute
It states ripple voltage and amplifies processing, using the ripple voltage after enhanced processing as the voltage of power supply, triggering first is determined
Module.
Further, first determining module includes first resistor, second resistance, voltage-stabiliser tube, the first optocoupler, third electricity
Resistance and the 4th resistance, wherein
One end of first resistor connects power supply input terminal, and the other end is electric with the reference of second resistance and voltage-stabiliser tube respectively
Pole connection;
One end ground connection that second resistance is not connect with first resistor;
One end of 3rd resistor connects first voltage input terminal, and the other end is connecting the light emitting diode in the first optocoupler just
Pole;
The plus earth of voltage-stabiliser tube, cathode connect the cathode of the light emitting diode in the first optocoupler;
One end of 4th resistance connects second voltage input terminal, the other end respectively with the phototriode in the first optocoupler
Collector is connected with input/output port;
The emitter of phototriode in first optocoupler is grounded.
Further, first determining module includes the 5th resistance, the 6th resistance and the second optocoupler, wherein
One end of 5th resistance connects power supply input terminal, and the other end is connecting the light emitting diode in the second optocoupler just
Pole;
One end of 6th resistance connects tertiary voltage input terminal, the other end respectively with the phototriode in the second optocoupler
Collector is connected with analog-digital converter;
The cathode of light emitting diode in second optocoupler is grounded;
The emitter of phototriode in second optocoupler is grounded.
The embodiment of the invention provides a kind of video formats switching method and devices, which comprises according to it is default when
Between power supply in length voltage value, determine the frequency of power supply;According to the frequency of power supply and pre-save
The corresponding relationship of frequency and video formats determines target video standard;According to the target video standard of the determination, itself is propped up
The video formats held are switched to the target video standard.Due in embodiments of the present invention, according in predetermined time period
The voltage value of power supply can determine the frequency of power supply, and then according to the frequency of power supply and the frequency pre-saved
The corresponding relationship of rate and video formats can determine target video standard, and the video formats that itself is supported are switched to the target
Video formats select the problem of video playing quality is influenced caused by video formats mistake so as to avoid as user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of video formats handoff procedure schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of circuit diagram that the embodiment of the present invention 4 provides;
Fig. 3 A is that the voltage value of power supply that the embodiment of the present invention 4 provides changes with time waveform;
Fig. 3 B is that the voltage value of the power supply after the halfwave rectifier that provides of the embodiment of the present invention 4 changes with time wave
Shape;
Fig. 3 C is the level change waveform after the halfwave rectifier that the embodiment of the present invention 4 provides;
Fig. 4 is another circuit diagram that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of video formats switching device structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The present invention will be describe below in further detail with reference to the accompanying drawings, it is clear that described embodiment is only this
A part of embodiment is invented, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
All other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment 1:
Fig. 1 be a kind of video formats handoff procedure schematic diagram provided in an embodiment of the present invention, the process the following steps are included:
S101: according to the voltage value of the power supply in predetermined time period, the frequency of power supply is determined.
Video formats switching method provided in an embodiment of the present invention be applied to electronic equipment, the electronic equipment include PC,
The equipment such as smart television and mobile phone.
Video formats generally include pal mode and NTSC system formula, wherein the frequency of every kind of video formats and power supply is
There are corresponding relationships, in order to realize the adaptive switching of video formats, electronic equipment it needs to be determined that power supply frequency.
After the electronic equipment powers on, the voltage value of the power supply in available predetermined time period, according to default
The voltage value of power supply in time span can determine the frequency of power supply.Wherein it is possible to be adopted by existing voltage
The voltage value that collector obtains power supply can be determined in predetermined time period by installing timer in the electronic device
Power supply voltage value, and then determine power supply frequency.
For example, learning the voltage value of power supply according to the voltage value of the power supply in the predetermined time period of acquisition
The waveform changed over time be a sine wave, by timer record the sine wave interior execution cycle per second be 50 times, then
The frequency for determining power supply is 50Hz.
S102: according to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save, target is determined
Video formats.
Since there are corresponding relationships for the frequency of every kind of video formats and power supply, in the frequency for determining power supply
Afterwards, in order to realize the adaptive switchings of video formats, the frequency and video formats of power supply are pre-saved in electronic equipment
Corresponding relationship, according to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save, by with it is determining
The corresponding video formats of the frequency of power supply are determined as target video standard.
For example, the frequency of the power supply pre-saved in electronic equipment and the corresponding relationship of video formats are power supply
Frequency be 50Hz, corresponding video formats be pal mode;The frequency of power supply is 60Hz, and corresponding video formats are
NTSC system formula.If determining that the frequency of power supply is 50Hz, then according to the voltage value of the power supply in predetermined time period
According to the corresponding relationship of the frequency of the power supply pre-saved and video formats, determine that target video standard is pal mode;Such as
Fruit determines that the frequency of power supply is 60Hz, then according to guarantor in advance according to the voltage value of the power supply in predetermined time period
The frequency for the power supply deposited and the corresponding relationship of video formats determine that target video standard is NTSC system formula.
S103: according to the target video standard of the determination, the video formats that itself is supported is switched to the target and are regarded
Frequency standard.
Electronic equipment is to support pal mode and NTSC system formula both standards simultaneously, after determining target video standard,
Electronic equipment can by itself support video formats be switched to the target video standard, that is, if it is determined that target video
Standard is pal mode, and the video formats that itself is supported are switched to pal mode by electronic equipment;If it is determined that target video system
Formula is NTSC system formula, and the video formats that itself is supported are switched to NTSC system formula by electronic equipment.Due to the view of electronic equipment switching
Frequency standard is according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save, and the target determined regards
Frequency standard, therefore the video formats of electronic equipment switching are video formats corresponding with the frequency of power supply, therefore can be
Under the video formats of electronic equipment switching, normal play video.
Due to that in embodiments of the present invention, according to the voltage value of the power supply in predetermined time period, can determine confession
The frequency of power supply, and then can be true according to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save
Set the goal video formats, the video formats that itself is supported is switched to the target video standard, so as to avoid due to user
Select the problem of video playing quality is influenced caused by video formats mistake.
Embodiment 2:
The video formats that electronic equipment itself is supported are corresponding with the frequency of power supply, and in addition electronic equipment itself is supported
Video frame rate it is also corresponding with the frequency of power supply, electronic equipment when playing video, if electronic equipment switching view
Frequency frame per second and the frequency of power supply not to it is corresponding when can then generate color rolling phenomenon, influence video playing quality.Therefore electronic equipment
Before playing video, the video formats for not only needing electronic equipment to switch are corresponding with the frequency of power supply, it is also necessary to electronics
The video frame rate of equipment switching is corresponding with the frequency of power supply.
On the basis of the above embodiments, in embodiments of the present invention, the frequency according to power supply and in advance guarantor
The corresponding relationship of the frequency and video formats deposited, after determining target video standard, the method also includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, really
Set the goal video frame rate;
According to the target video frame per second of the determination, the video frame rate that itself is supported is switched to the target video frame
Rate.
Since all there are corresponding relationships with the frequency of power supply for the video formats and video frame rate of electronic equipment.Electronics is set
The corresponding relationship that video formats and video frame rate are pre-saved in standby, after determining target video standard, according to described true
The corresponding relationship of fixed target video standard and the video formats pre-saved and video frame rate can determine target video frame
Rate.
Electronic equipment supports different video frame rates simultaneously, and after determining target video frame per second, electronic equipment can incite somebody to action oneself
The video frame rate that body is supported is switched to the target video frame per second.Since the video frame rate of electronic equipment switching is according to described true
The corresponding relationship of fixed target video standard and the video formats pre-saved and video frame rate, the target video frame determined
Rate, therefore the video frame rate of electronic equipment switching is video frame rate corresponding with target video standard, therefore can be set in electronics
Under the video frame rate of standby switching, normal play video rolls phenomenon without color.
For example, video formats are pal mode, the video frame rate that electronic equipment itself is supported is 25FPS, 50FPS, 100FPS
Deng;Video formats are NTSC system formula, and the video frame rate that electronic equipment itself is supported is 30FPS, 60FPS, 120FPS etc..If really
Fixed target video standard is pal mode, it is determined that target video frame per second be any in 25FPS, 50FPS, 100FPS etc.
One;If it is determined that target video standard be NTSC system formula, it is determined that target video frame per second be 30FPS, 60FPS,
Any one in 120FPS etc..After determining target video frame per second, the video frame rate that itself is supported is switched to the target
Video frame rate.
Due in embodiments of the present invention, according to the target video standard of the determination and the video formats pre-saved with
The corresponding relationship of video frame rate determines target video frame per second, according to the target video frame per second of the determination, by the view of itself support
Frequency frame per second is switched to the target video frame per second, so that the video frame rate of electronic equipment switching is and target video standard pair
The video frame rate answered, therefore can be avoided and color rolling phenomenon occur.
The configuring condition of the own hardware of electronic equipment determines the maximum video frame rate that electronic equipment itself is supported, such as
The maximum video frame rate that some electronic equipments itself are supported is 80FPS, the maximum video frame rate that some electronic equipments itself are supported
It can be by any one corresponding video frame of the target video standard after determining target video standard for 120FPS etc.
Rate is determined as the target video frame per second that electronic equipment itself can be supported.In order to enable video playing is more smooth, of the invention real
It applies in example, the target video standard according to the determination and video formats pre-saved are corresponding with video frame rate closes
System, determines that target video frame per second includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, really
The fixed corresponding each video frame rate of the target video standard;
According to determining each video frame rate and the maximum video frame rate itself saved recognized, target video frame is determined
Rate.
Each video formats correspond to multiple video frame rates, after determining target video standard, according to the target of the determination
The corresponding relationship of video formats and the video formats pre-saved and video frame rate can determine that the target video standard is corresponding
Each video frame rate.The maximum video frame rate that itself can be supported is preserved in electronic equipment, is determining target video standard pair
After each video frame rate answered, according to the maximum video frame rate that itself recognized can be supported, in corresponding each view
Determine target video frame per second in frequency frame per second, i.e., by electronic equipment can be supported in corresponding each video frame rate maximum
Video frame rate is determined as target video frame per second.It, will according to the target video frame per second of the determination after determining target video frame per second
The video frame rate itself supported is switched to the target video frame per second.
After determining the corresponding each video frame rate of target video standard, it can be propped up according to itself saved in electronic equipment
The maximum video frame rate held can determine electronic equipment energy described in the corresponding each video frame rate of the target video standard
The each video frame rate enough supported, wherein by the corresponding each video frame rate of the target video standard, set no more than electronics
The video frame rate of the maximum video frame rate that itself can be supported of standby middle preservation each of can be supported as the electronic equipment
Video frame rate.And then maximum video frame rate in each video frame rate that the electronic equipment can be supported is determined as target view
Frequency frame per second.
The corresponding video frame rate of pal mode is 25FPS, 50FPS, 100FPS etc.;The corresponding video frame rate of NTSC system formula is
30FPS, 60FPS, 120FPS etc..For example, the maximum video frame rate that electronic equipment itself saves is 80FPS, i.e., the described electronics is set
When standby broadcasting video, the maximum video frame rate that can be supported is 80FPS, according to the frequency of power supply and the frequency pre-saved
With the corresponding relationship of video formats, determining target video standard is pal mode, it is determined that the target video standard is corresponding every
A video frame rate is 25FPS, 50FPS, 100FPS etc., since the maximum video frame rate that electronic equipment itself saves is 80FPS, because
This, in corresponding each video frame rate, each video frame rate that electronic equipment can be supported is 25FPS, 50FPS, due to
Maximum video frame rate is 50FPS in each video frame rate that electronic equipment can be supported, therefore is that 50FPS is true by video frame rate
It is set to target video frame per second;If it is determined that target video standard be NTSC system formula, it is determined that the target video standard is corresponding
Each video frame rate is 30FPS, 60FPS, 120FPS etc., since the maximum video frame rate that electronic equipment itself saves is 80FPS,
Therefore, in corresponding each video frame rate, each video frame rate that electronic equipment can be supported is 30FPS, 60FPS, by
Maximum video frame rate is 60FPS in each video frame rate that electronic equipment can be supported, therefore is 60FPS by video frame rate
It is determined as target video frame per second.
For another example the maximum video frame rate that electronic equipment itself saves is 120FPS, i.e., the described electronic equipment plays video
When, the maximum video frame rate that can be supported is 120FPS, according to the frequency of power supply and the frequency pre-saved and video system
The corresponding relationship of formula, determining target video standard are pal mode, it is determined that the corresponding each video frame of the target video standard
Rate is 25FPS, 50FPS, 100FPS etc., since the maximum video frame rate that electronic equipment itself saves is 120FPS, described
In corresponding each video frame rate, each video frame rate that electronic equipment can be supported is 25FPS, 50FPS, 100FPS, due to
Maximum video frame rate is 100FPS in each video frame rate that electronic equipment can be supported, therefore is 100FPS by video frame rate
It is determined as target video frame per second;If it is determined that target video standard be NTSC system formula, it is determined that the target video standard is corresponding
Each video frame rate be 30FPS, 60FPS, 120FPS etc., since the maximum video frame rate that electronic equipment itself saves is
120FPS, therefore, in corresponding each video frame rate, each video frame rate that electronic equipment can be supported be 30FPS,
60FPS, 120FPS, maximum video frame rate is 120FPS in each video frame rate that can be supported due to electronic equipment,
It is that 120FPS is determined as target video frame per second by video frame rate.
Due in embodiments of the present invention, according to the target video standard of the determination and the video formats pre-saved with
The corresponding relationship of video frame rate determines the corresponding each video frame rate of the target video standard, according to determining each video frame
Rate and the maximum video frame rate itself saved recognized, electronic equipment in each video frame rate of the determination can be supported
Maximum video frame rate be determined as target video frame per second.Therefore it is capable of the performance of maximum performance electronic equipment, so that video is broadcast
It puts more smooth.
Embodiment 3:
The video formats that itself is supported can be switched to described by electronic equipment automatically after determining target video standard
Target video standard, in order to improve user experience, on the basis of the various embodiments described above, in embodiments of the present invention, described
According to the target video standard of the determination, the video formats that itself is supported, which are switched to the target video standard, includes:
Whether output selects the prompt information of the target video standard;
If user selects the target video standard, the video formats that itself is supported are switched to the target video system
Formula.
Electronic equipment is determined according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save
After target video standard, the prompt information for whether selecting the target video standard can be exported, the prompt information can be with
For voice messaging or text information etc..User selects video formats according to the prompt information that electronic equipment exports.Since electronics is set
The prompt information of standby output specifies the target video standard that electronic equipment determines, therefore user generally can selection target video
Standard.If user selects to be target video standard, the video formats that itself is supported are switched to the mesh by electronic equipment
Mark video formats.Certainly, user is also possible to the case where falsely dropping, if the video formats of user's selection are not the targets
Video formats, electronic equipment can export the prompt information of selection video formats mistake, to prompt target video selected by user
Standard.
Preferably, electronic equipment can be shielded and be removed when whether output selects the prompt information of the target video standard
Video formats except target video standard, make user can only selection target video formats, and the target video system of removing can not be selected
Video formats except formula are both not in the case where user falsely drops video formats in this way, could be used that family understands Current electronic
Which kind of video formats equipment switching is.
For example, electronic equipment is according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save,
Determining target video standard is pal mode, then exports voice messaging or the text information of " whether selecting pal mode " etc., together
When NTSC system formula option can be shielded, make user according to prompt information select pal mode, user select pal mode after,
The video formats that itself is supported are switched to pal mode by electronic equipment.
For another example electronic equipment is closed according to the frequency of power supply and the frequency pre-saved are corresponding with video formats
System, determining target video standard are NTSC system formula, then export the voice messaging or text information of " whether selecting NTSC system formula "
Deng, while pal mode option can be shielded, so that user is selected NTSC system formula according to prompt information, user selects NTSC
After standard, the video formats that itself is supported are switched to NTSC system formula by electronic equipment.
Since in embodiments of the present invention, for electronic equipment after determining target video standard, whether output selects the mesh
The prompt information of video formats is marked, if user selects the target video standard, the video formats that itself is supported are switched to
The target video standard.To improve the experience of user.
Embodiment 4:
For electronic equipment when powering on, power supply is likely to be AC power source, it is also possible to DC power supply.It is directed to exchange
Power supply and DC power supply can determine the frequency of power supply in different ways, on the basis of the various embodiments described above,
In the embodiment of the present invention, the voltage value according to the power supply in predetermined time period, determine power supply frequency it
Before, the method also includes:
Judge power supply for AC power source or DC power supply;
If it is AC power source, subsequent step is carried out;
If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply, to the line
Wave voltage amplifies processing, using the ripple voltage after enhanced processing as the voltage of power supply, carries out subsequent step.
Electronic equipment in the voltage value according to the power supply in predetermined time period, determine power supply frequency it
Before, need to judge that power supply is AC power source or DC power supply, if it is AC power source, the voltage value of AC power source is at any time
Between variation waveform be generally sine wave, according to the voltage value of the AC power source in predetermined time period, can determine alternating current
The frequency in source.Therefore, if it is determined that power supply is AC power source, then the subsequent confession according in predetermined time period is directly carried out
The voltage value of power supply, the step of determining the frequency of power supply.
And if it is determined that power supply is DC power supply, the voltage of DC power supply is not absolutely constant, but is had light
What microwave moved, the voltage of slight fluctuations i.e. the ripple voltage of DC power supply.If it is determined that power supply is DC power supply, then
The DC voltage for needing to filter out DC power supply obtains the ripple voltage of DC power supply.Wherein, the direct current of DC power supply is filtered out
Pressure, the ripple voltage for obtaining DC power supply can be realized by existing filter circuit, filtered out the DC voltage of DC power supply, obtained
It takes the process of the ripple voltage of DC power supply to belong to the prior art, no longer this process is repeated herein.
After the ripple voltage for obtaining DC power supply, due to the fluctuation range very little of ripple voltage, directly by ripple voltage
As the voltage of power supply, so that it is determined that the frequency of power supply.In order to further increase the frequency of the power supply pushed up
Accuracy, obtain DC power supply ripple voltage after, place is amplified to the ripple voltage by voltage amplifier circuit
Reason carries out subsequent step, i.e., according in predetermined time period using the ripple voltage after enhanced processing as the voltage of power supply
Enhanced processing after ripple voltage value, determine the frequency of power supply.Wherein, by voltage amplifier circuit to the ripple electricity
The process that pressure carries out enhanced processing belongs to the prior art, no longer repeats herein this process.
In embodiments of the present invention, it if it is determined that power supply is AC power source, then directly carries out long according to preset time
The voltage value of power supply in degree, the step of determining the frequency of power supply;If it is determined that power supply is DC power supply, then
The DC voltage for filtering out DC power supply obtains the ripple voltage of DC power supply, amplifies processing to the ripple voltage, will put
Big treated voltage of the ripple voltage as power supply, then carries out the electricity according to the power supply in predetermined time period
Pressure value, the step of determining the frequency of power supply.
In the various embodiments described above of the present invention, determining can obtain when the frequency of power supply according to software program, can also
It is realized in a manner of by building hardware circuit.If Fig. 2 is a kind of frequency of determining power supply provided in an embodiment of the present invention
The circuit diagram of rate includes first resistor R1, second resistance R2, voltage-stabiliser tube D, the first optocoupler U1,3rd resistor R3 in the circuit
With the 4th resistance R4, wherein
One end of first resistor R1 connects power supply input terminal POWER_IN, and the other end is respectively with second resistance R2 and surely
The reference electrode of pressure pipe D connects;
One end ground connection that second resistance R2 is not connect with first resistor R1;
One end of 3rd resistor R3 connects first voltage input terminal V1, and the other end connects the light-emitting diodes in the first optocoupler U1
The anode of pipe;
The plus earth of voltage-stabiliser tube D, cathode connect the cathode of the light emitting diode in the first optocoupler U1;
One end of 4th resistance R4 connects second voltage input terminal V2, the other end respectively with photosensitive three in the first optocoupler U1
The collector of pole pipe is connected with input/output port IO;
The emitter of phototriode in first optocoupler U1 is grounded.
Wherein, the voltage of first voltage input terminal V1 and second voltage input terminal V2 input is all fixed voltage value, one
As first voltage input terminal input voltage be greater than second voltage input terminal input voltage, such as first voltage input terminal input
Voltage be 10V, second voltage input terminal input voltage be 3.3V.If power supply is AC power source, or after processing
DC power supply ripple voltage, then power supply input terminal POWER_IN input voltage value change over time, the pressure stabilizing
There are breakdown voltage values by pipe D itself, exist when the voltage value of power supply input terminal POWER_IN input reaches voltage-stabiliser tube D itself
When breakdown voltage value, voltage-stabiliser tube D becomes being connected from disconnecting.After voltage-stabiliser tube D conducting, first voltage input terminal V1, the first optocoupler U1
In light emitting diode and voltage-stabiliser tube D where circuit conducting, at this time since the light emitting diode in the first optocoupler U1 has electric current
Pass through, therefore the phototriode conducting in the first optocoupler U1, at this time second voltage input terminal V2, the 4th resistance R4 and the first light
Circuit conducting where phototriode in coupling U1.
Circuit as shown in Figure 2, when voltage-stabiliser tube D is disconnected, the first optocoupler U1 is disconnected, and second voltage input terminal V2 is defeated at this time
Voltage out is exported by the 4th resistance R4 to input/output port IO, at this time the voltage value and second at input/output port IO
The voltage value of voltage input end V2 output is identical, is high level;When voltage-stabiliser tube D conducting, the first optocoupler U1 conducting inputs at this time
Voltage value at output port IO is identical as the voltage value at the first both ends optocoupler U1, is low level.High level is shown as in circuit
1, low level is shown as 0.Electronic equipment can be according to every at the timer itself installed, and the input/output port IO of acquisition
A moment is high level or low level, determines the frequency of power supply.
As shown in Figure 3A, if the waveform that the voltage value of power supply input terminal POWER_IN input changes over time is one
A sine wave, the voltage value fluctuation range of power supply are -3V to+3V, by the voltage-stabiliser tube D in Fig. 2, by the sine wave into
Row halfwave rectifier obtains the waveform as described in Fig. 3 B.Such as the breakdown voltage value of voltage-stabiliser tube D is 1.24V, then when power supply
When voltage value reaches 1.24V, voltage-stabiliser tube D conducting becomes low level, electronic equipment from high level at input/output port IO at this time
Low level is become from high level at available input/output port IO, i.e., becomes 0 from 1.The input and output that electronic equipment obtains
Level change waveform at the IO of port is as shown in Figure 3 C, can determine power supply according to level change waveform shown in Fig. 3 C
Frequency, i.e. the corresponding frequency of level change waveform shown in Fig. 3 C is 2 times of the frequency of power supply, if electronic equipment obtains
Interior input/output port IO per second at from 1 become 0 number be 100 times, then the frequency of power supply be 50Hz.
In addition, being also based on other circuits to realize, in the various embodiments described above in the frequency for determining power supply
On the basis of, Fig. 4 is the circuit diagram of another frequency for determining power supply provided in an embodiment of the present invention, includes in the circuit
5th resistance R5, the 6th resistance R6 and the second optocoupler U2, wherein
One end of 5th resistance R5 connects power supply input terminal POWER_IN, and the other end connects the hair in the second optocoupler U2
The anode of optical diode;
One end of 6th resistance R6 connects tertiary voltage input terminal V3, the other end respectively with photosensitive three in the second optocoupler U2
The collector of pole pipe is connected with analog-digital converter ADC;
The cathode of light emitting diode in second optocoupler U2 is grounded;
The emitter of phototriode in second optocoupler U2 is grounded.
It as shown in figure 4, the voltage of tertiary voltage input terminal V3 input is fixed voltage value, such as can be 3.3V.Institute
It states the second optocoupler U2 and is constantly on state, determined by the property of the second optocoupler U2, as power supply input terminal POWER_IN
When the voltage value of input is larger, the electric current for flowing through the light emitting diode in the second optocoupler U2 is larger, at this time the resistance of the second optocoupler U2
Anti- smaller, the voltage value of input analog-to-digital converter ADC is smaller;And when power supply input terminal POWER_IN input voltage value compared with
Hour, the electric current for flowing through the light emitting diode in the second optocoupler U2 is smaller, and the impedance of the second optocoupler U2 is larger at this time, inputs modulus
The voltage value of converter ADC is larger.Since the voltage of tertiary voltage input terminal V3 input is fixed voltage value, power supply is defeated
The voltage value for entering to hold POWER_IN to input changes over time, therefore passes through circuit diagram as shown in Figure 4, inputs analog-to-digital conversion
The voltage value of device ADC can change with the variation of the power supply input terminal POWER_IN voltage value inputted.
The analog signal of input can be converted to digital signal by analog-digital converter ADC, and electronic equipment can be according to modulus
The digital signal of converter ADC conversion, determines the frequency of power supply.Specifically, being preset in analog-digital converter ADC with reference to electricity
Pressure value, when the voltage value of input analog-to-digital converter ADC is greater than the preset reference voltage value, analog-digital converter ADC conversion
Digital signal be 1, when the voltage value of input analog-to-digital converter ADC be not more than the preset reference voltage value when, modulus turn
The digital signal that parallel operation ADC is converted is 0.The digital signal for the analog-digital converter ADC per second conversion that electronic equipment obtains is become from 1
0 number is the frequency of power supply.Wherein, the digital signal converted according to analog-digital converter ADC, determines power supply
The process of frequency belongs to the prior art, no longer repeats herein this process.
In addition, can be realized the voltage value according to the power supply in predetermined time period, the frequency of power supply is determined
Circuit be not limited to Fig. 2 and circuit shown in Fig. 4, as long as can be according to the voltage of the power supply in predetermined time period
Value, determines that the circuit of the frequency of power supply belongs in the protection scope of the embodiment of the present invention.
Fig. 5 is a kind of video formats switching device structural schematic diagram provided in an embodiment of the present invention, and described device includes:
First determining module 51 determines power supply for the voltage value according to the power supply in predetermined time period
Frequency;
Second determining module 52, for corresponding with video formats according to the frequency of power supply and the frequency pre-saved
Relationship determines target video standard;
First switching module 53 cuts the video formats that itself is supported for the target video standard according to the determination
It is changed to the target video standard.
Described device further include:
Second switching module 54, for according to the target video standard of the determination and the video formats and view that pre-save
The corresponding relationship of frequency frame per second determines target video frame per second;According to the target video frame per second of the determination, by the video of itself support
Frame per second is switched to the target video frame per second.
Second switching module 54, specifically for according to the target video standard of the determination and the video pre-saved
The corresponding relationship of standard and video frame rate determines the corresponding each video frame rate of the target video standard;According to each of determining
Video frame rate and the maximum video frame rate itself saved recognized, determine target video frame per second.
Whether first switching module 53 selects the prompt information of the target video standard specifically for exporting;Such as
Fruit user selects the target video standard, and the video formats that itself is supported are switched to the target video standard.
Described device further include:
Judgment module 55, for judging power supply for AC power source or DC power supply, if it is AC power source, triggering
First determining module 51;If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply,
Processing is amplified to the ripple voltage, using the ripple voltage after enhanced processing as the voltage of power supply, triggering first
Determining module 51.
First determining module 51 includes first resistor, second resistance, voltage-stabiliser tube, the first optocoupler, 3rd resistor and the
Four resistance, wherein one end of first resistor connects power supply input terminal, the other end ginseng with second resistance and voltage-stabiliser tube respectively
Examine electrode connection;One end ground connection that second resistance is not connect with first resistor;One end connection first voltage input of 3rd resistor
End, the other end connect the anode of the light emitting diode in the first optocoupler;The plus earth of voltage-stabiliser tube, cathode connect in the first optocoupler
Light emitting diode cathode;One end of 4th resistance connects second voltage input terminal, and the other end is respectively and in the first optocoupler
The collector of phototriode is connected with input/output port;The emitter of phototriode in first optocoupler is grounded.
First determining module 51 includes the 5th resistance, the 6th resistance and the second optocoupler, wherein one end of the 5th resistance
Power supply input terminal is connected, the other end connects the anode of the light emitting diode in the second optocoupler;One end of 6th resistance connects
Tertiary voltage input terminal, the other end are connect with the collector of the phototriode in the second optocoupler and analog-digital converter respectively;The
The cathode of light emitting diode in two optocouplers is grounded;The emitter of phototriode in second optocoupler is grounded.
The embodiment of the invention provides a kind of video formats switching method and devices, which comprises according to it is default when
Between power supply in length voltage value, determine the frequency of power supply;According to the frequency of power supply and pre-save
The corresponding relationship of frequency and video formats determines target video standard;According to the target video standard of the determination, itself is propped up
The video formats held are switched to the target video standard.Due in embodiments of the present invention, according in predetermined time period
The voltage value of power supply can determine the frequency of power supply, and then according to the frequency of power supply and the frequency pre-saved
The corresponding relationship of rate and video formats can determine target video standard, and the video formats that itself is supported are switched to the target
Video formats select the problem of video playing quality is influenced caused by video formats mistake so as to avoid as user.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of video formats switching method, which is characterized in that the described method includes:
According to the voltage value of the power supply in predetermined time period, the frequency of power supply is determined;
According to the corresponding relationship of the frequency of power supply and the frequency and video formats that pre-save, target video standard is determined;
According to the target video standard of the determination, the video formats that itself is supported are switched to the target video standard;
The voltage value according to the power supply in predetermined time period, before the frequency for determining power supply, the method
Further include:
Judge power supply for AC power source or DC power supply;
If it is AC power source, subsequent step is carried out;
If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply, to the ripple electricity
Pressure carries out enhanced processing, using the ripple voltage after enhanced processing as the voltage of power supply, carries out subsequent step.
2. the method as described in claim 1, which is characterized in that the frequency according to power supply and the frequency pre-saved
With the corresponding relationship of video formats, after determining target video standard, the method also includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, mesh is determined
Mark video frame rate;
According to the target video frame per second of the determination, the video frame rate that itself is supported is switched to the target video frame per second.
3. method according to claim 2, which is characterized in that the target video standard according to the determination and in advance guarantor
The corresponding relationship of the video formats and video frame rate deposited determines that target video frame per second includes:
According to the corresponding relationship of the target video standard of the determination and the video formats and video frame rate that pre-save, determining should
The corresponding each video frame rate of target video standard;
According to determining each video frame rate and the maximum video frame rate itself saved recognized, target video frame per second is determined.
4. the method as described in claim 1, which is characterized in that the target video standard according to the determination, by itself
The video formats of support are switched to the target video standard
Whether output selects the prompt information of the target video standard;
If user selects the target video standard, the video formats that itself is supported are switched to the target video standard.
5. a kind of video formats switching device, which is characterized in that described device includes:
First determining module determines the frequency of power supply for the voltage value according to the power supply in predetermined time period;
Second determining module, for according to the frequency of power supply and the corresponding relationship of the frequency and video formats that pre-save,
Determine target video standard;
The video formats that itself is supported are switched to institute for the target video standard according to the determination by the first switching module
State target video standard;
Described device further include:
Judgment module, for judging power supply for AC power source or DC power supply, if it is AC power source, triggering first is really
Cover half block;If it is DC power supply, the DC voltage of DC power supply is filtered out, obtains the ripple voltage of DC power supply, to the line
Wave voltage amplifies processing, using the ripple voltage after enhanced processing as the voltage of power supply, triggers the first determining module.
6. device as claimed in claim 5, which is characterized in that described device further include:
Second switching module, for according to the target video standard of the determination and the video formats and video frame rate that pre-save
Corresponding relationship, determine target video frame per second;According to the target video frame per second of the determination, the video frame rate that itself is supported is cut
It is changed to the target video frame per second.
7. device as claimed in claim 6, which is characterized in that second switching module is specifically used for according to the determination
Target video standard and the video formats and video frame rate that pre-save corresponding relationship, determine that the target video standard is corresponding
Each video frame rate;According to determining each video frame rate and the maximum video frame rate itself saved recognized, mesh is determined
Mark video frame rate.
8. device as claimed in claim 5, which is characterized in that whether first switching module selects specifically for output
The prompt information of the target video standard;If user selects the target video standard, by the video formats of itself support
It is switched to the target video standard.
9. device as claimed in claim 5, which is characterized in that first determining module include first resistor, second resistance,
Voltage-stabiliser tube, the first optocoupler, 3rd resistor and the 4th resistance, wherein
One end of first resistor connects power supply input terminal, and the other end connects with the reference electrode of second resistance and voltage-stabiliser tube respectively
It connects;
One end ground connection that second resistance is not connect with first resistor;
One end of 3rd resistor connects first voltage input terminal, and the other end connects the anode of the light emitting diode in the first optocoupler;
The plus earth of voltage-stabiliser tube, cathode connect the cathode of the light emitting diode in the first optocoupler;
One end of 4th resistance connects second voltage input terminal, the other end current collection with the phototriode in the first optocoupler respectively
Pole is connected with input/output port;
The emitter of phototriode in first optocoupler is grounded.
10. device as claimed in claim 5, which is characterized in that first determining module includes the 5th resistance, the 6th resistance
With the second optocoupler, wherein
One end of 5th resistance connects power supply input terminal, and the other end connects the anode of the light emitting diode in the second optocoupler;
One end of 6th resistance connects tertiary voltage input terminal, the other end current collection with the phototriode in the second optocoupler respectively
Pole is connected with analog-digital converter;
The cathode of light emitting diode in second optocoupler is grounded;
The emitter of phototriode in second optocoupler is grounded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710473956.7A CN107222704B (en) | 2017-06-21 | 2017-06-21 | A kind of video formats switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710473956.7A CN107222704B (en) | 2017-06-21 | 2017-06-21 | A kind of video formats switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107222704A CN107222704A (en) | 2017-09-29 |
CN107222704B true CN107222704B (en) | 2019-09-17 |
Family
ID=59949853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710473956.7A Active CN107222704B (en) | 2017-06-21 | 2017-06-21 | A kind of video formats switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107222704B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108093193B (en) * | 2017-12-28 | 2020-04-03 | 浙江大华技术股份有限公司 | Video format switching method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2139761Y (en) * | 1992-09-22 | 1993-08-04 | 袁正兴 | Double-system satellite T.V. receiver |
CN2240816Y (en) * | 1994-12-22 | 1996-11-20 | 上海无线电六厂 | System and frequency converting device for colour television set |
JPH11136588A (en) * | 1997-10-30 | 1999-05-21 | Matsushita Electric Ind Co Ltd | Television broadcasting terminal device and transmitting device |
JP2000316140A (en) * | 1999-04-30 | 2000-11-14 | Matsushita Electric Ind Co Ltd | Video format converting circuit |
CN1288329A (en) * | 2000-07-05 | 2001-03-21 | 厦门华侨电子企业有限公司 | Image signal pattern conversion and device therefor |
EP1089563A1 (en) * | 1999-10-01 | 2001-04-04 | Matsushita Electric Industrial Co., Ltd. | Motion compensation apparatus for digital video format down-conversion |
CN1698372A (en) * | 2003-05-12 | 2005-11-16 | 索尼株式会社 | Image data conversion method, conversion circuit, and digital camera |
CN1781137A (en) * | 2003-03-26 | 2006-05-31 | 夏普株式会社 | Liquid crystal television receiver, liquid crystal display control method, program thereof, and recording medium |
CN205510281U (en) * | 2016-03-08 | 2016-08-24 | 湖北久之洋红外系统股份有限公司 | Difference digital video changes video video converting circuit of PAL -system formula |
-
2017
- 2017-06-21 CN CN201710473956.7A patent/CN107222704B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2139761Y (en) * | 1992-09-22 | 1993-08-04 | 袁正兴 | Double-system satellite T.V. receiver |
CN2240816Y (en) * | 1994-12-22 | 1996-11-20 | 上海无线电六厂 | System and frequency converting device for colour television set |
JPH11136588A (en) * | 1997-10-30 | 1999-05-21 | Matsushita Electric Ind Co Ltd | Television broadcasting terminal device and transmitting device |
JP2000316140A (en) * | 1999-04-30 | 2000-11-14 | Matsushita Electric Ind Co Ltd | Video format converting circuit |
EP1089563A1 (en) * | 1999-10-01 | 2001-04-04 | Matsushita Electric Industrial Co., Ltd. | Motion compensation apparatus for digital video format down-conversion |
CN1288329A (en) * | 2000-07-05 | 2001-03-21 | 厦门华侨电子企业有限公司 | Image signal pattern conversion and device therefor |
CN1781137A (en) * | 2003-03-26 | 2006-05-31 | 夏普株式会社 | Liquid crystal television receiver, liquid crystal display control method, program thereof, and recording medium |
CN1698372A (en) * | 2003-05-12 | 2005-11-16 | 索尼株式会社 | Image data conversion method, conversion circuit, and digital camera |
CN205510281U (en) * | 2016-03-08 | 2016-08-24 | 湖北久之洋红外系统股份有限公司 | Difference digital video changes video video converting circuit of PAL -system formula |
Also Published As
Publication number | Publication date |
---|---|
CN107222704A (en) | 2017-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102628889B (en) | Voltage sampling circuit | |
US8924604B2 (en) | Systems and methods for data compression and feature extraction for the purpose of disaggregating loads on an electrical network | |
CN102945010B (en) | Method and device for realizing automatic switching of sound source | |
CN106841762A (en) | Zero cross detection circuit and home appliance | |
CN107222704B (en) | A kind of video formats switching method and device | |
CN107222738A (en) | A kind of video formats determine method and device | |
CN202998373U (en) | Audio and video equipment intelligent power supply management system | |
CN105338446B (en) | Audio track control circuit | |
CN207650680U (en) | A kind of constant voltage outputting circuit that can be used in parallel and constant pressure output system | |
CN102931952A (en) | Synchronous signal acquisition system | |
CN201374772Y (en) | Television with set-top box | |
CN208272857U (en) | A kind of inverse-excitation type switch power-supply and power supply system | |
CN101877597A (en) | Simplex communication circuit | |
CN110086143A (en) | Input voltage bleeder circuit and overvoltage protection switch | |
CN103116068A (en) | Control circuit and control method for detecting electricity consumption of washing machine | |
CN202886443U (en) | Voltage sampling circuit | |
CN209642549U (en) | A kind of high-current dc power supply switching circuit | |
CN204855728U (en) | Ageing and test state device of fast switch over semiconductor device | |
CN203056565U (en) | Induction cooker surge protection circuit | |
CN104935993A (en) | WIFI/EOC filtering control circuit and control method for digital television | |
CN105553049A (en) | Charging operation control method and device | |
CN202496002U (en) | Audio signal outputting and processing circuit and television | |
CN205249415U (en) | Cable television signal intensity monitoring devices | |
CN204947892U (en) | A kind of flexible transmission direct current capacitor | |
CN211508626U (en) | Low-voltage reactive power automatic compensator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |