CN112135176B - Video processing method, device and system and computer readable storage medium - Google Patents

Video processing method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN112135176B
CN112135176B CN201910552244.3A CN201910552244A CN112135176B CN 112135176 B CN112135176 B CN 112135176B CN 201910552244 A CN201910552244 A CN 201910552244A CN 112135176 B CN112135176 B CN 112135176B
Authority
CN
China
Prior art keywords
frame
state
input
current
video source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910552244.3A
Other languages
Chinese (zh)
Other versions
CN112135176A (en
Inventor
吴郎
周晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201910552244.3A priority Critical patent/CN112135176B/en
Publication of CN112135176A publication Critical patent/CN112135176A/en
Application granted granted Critical
Publication of CN112135176B publication Critical patent/CN112135176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Abstract

The embodiment of the invention discloses a video processing method, which comprises the following steps: when the current state of the input video source is marked as a first state and M continuous input frames are detected to have the same frame parameters, changing to a second state and taking the same frame parameters as reference frame parameters; and then detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result, setting a frame mark of the current input frame according to the detection result, and judging whether to change the current state mark of the input video source from the second state to the first state. The embodiment of the invention also discloses a video processing device, a video processing system and a computer readable storage medium, and can still ensure that the output display picture is normal, smooth and not twinkling under the condition of interference in the video playing process.

Description

Video processing method, device and system and computer readable storage medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video processing method, a video processing apparatus, a video processing system, and a computer-readable storage medium.
Background
Different coping processes can be carried out on different states of an input video source in the video processing process. Specifically, the method comprises the following steps: for an input video source in an unstable state, for example, without stable access, all frames transmitted from the video source occasionally need to be deleted during use; for an incoming video source in a steady state, e.g., steady access, all frames are normally received and then displayed normally. The primary task of video processing for an input video source is to determine whether it is stably connected.
The existing scheme for judging whether an input video source is stably accessed is to count resolution information (including line width, column width and frame frequency) of continuous frames of the input video source, and if the resolution information of the continuous frames is stable and equal, judge that the input video source is in a stable state; and if the resolution information of any frame is unequal to the resolution information of the previous frame, judging that the input video source is in an unstable state. Similarly, when the input video source is judged to be in the stable state, the input video source is changed to be in the unstable state as long as the resolution information of one frame is detected to be inconsistent with the resolution information of the previous frame; however, when the current state of the input video source is determined to be an unstable state, resolution information of consecutive frames needs to be equal again to determine that the current state of the input video source is a stable state.
Therefore, the existing scheme can normally judge whether the input video source is normally accessed, and can avoid repeated jumping of the current state mark of the input video source in the process of just manually accessing the input video source. However, when one or two unstable frames occur due to even interference when the state of the actual input video source is a stable state, the state of the input video source for several consecutive frames is determined as an unstable state, and a several-frame no-output state (for example, a black screen) occurs. Therefore, in the video playing process, no output is generated in a short time, and very poor user experience can be generated; especially in the environment of strong electrostatic interference, the output image can frequently flicker black screen.
Disclosure of Invention
Embodiments of the present invention provide a video processing method, a video processing apparatus, a video processing system, and a computer-readable storage medium, which can solve technical problems of existing video processing schemes.
In one aspect, an embodiment of the present invention provides a video processing method, including: when the current state of the input video source is marked as a first state, detecting whether continuous M input frames have the same frame parameters, wherein M is a positive integer greater than 1; when detecting that M input frames have the same frame parameter, changing the current state flag of the input video source from the first state to a second state, and taking the same frame parameter as a reference frame parameter; and after changing the current state flag of the input video source from the first state to the second state, detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result, and setting the frame flag of the current input frame according to the detection result and judging whether to change the current state flag of the input video source from the second state to the first state.
Although it can be normally determined whether an input video source is normally accessed in the prior art, when an unstable frame of one or two frames occurs due to even interference when the state of an actual input video source is a stable state, the state of the input video source of consecutive frames is determined to be an unstable state, and thus a state of no output of frames (for example, a black screen) is generated. According to the embodiment of the invention, the judgment standard of the current state mark of the input video source is modified and whether the frame mark of the input frame is an effective frame or not is set, so that the output display picture is ensured to be normal, smooth and not flicker under the condition that interference exists in the video playing processing process, and the user experience is improved.
In one embodiment of the present invention, the setting of the frame flag of the current input frame according to the detection result and the determination of whether to change the current state flag of the input video source from the second state to the first state comprises: when the frame parameters of the current input frame are different from the reference frame parameters, setting the frame of the current input frame as an invalid frame, and counting the number of the invalid frames which continuously appear to obtain a count value; changing a current state flag of the input video source from the second state to the first state when a frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
In one embodiment of the present invention, the setting of the frame flag of the current input frame according to the detection result and the determination of whether to change the current state flag of the input video source from the second state to the first state comprises: setting a frame flag of the current input frame as a valid frame when the frame parameter of the current input frame is identical to the reference frame parameter, and changing the count value to an initial value.
In one embodiment of the present invention, the first state is an unstable state and the second state is a stable state; the reference frame parameters include a line width, a column width, and a frame rate.
In one embodiment of the present invention, the video processing method includes: when the current state of the input video source is marked as the first state, outputting a preset picture; when the frame of the current input frame is marked as a valid frame, outputting the current input frame; and outputting a last valid frame that is closest in temporal distance to the current input frame when the frame of the current input frame is marked as an invalid frame.
In one embodiment of the present invention, the video processing method includes: and when the current state of the input video source is marked as the first state, if the frame parameters of the current input frame and the last input frame are different or the number of the input frames with continuously same frame parameters is less than M, keeping the current state of the input video source marked as the first state.
In a further aspect, an embodiment of the present invention provides a video processing apparatus, including: the device comprises a detection module, a judgment module and a display module, wherein the detection module is used for detecting whether continuous M input frames have the same frame parameters when the current state of an input video source is marked as a first state, and M is a positive integer greater than 1; a setting module, configured to change a current state flag of the input video source from the first state to the second state when it is detected that consecutive M input frames have the same frame parameter, and take the same frame parameter as a reference frame parameter; and the detection setting module is used for detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result after the current state mark of the input video source is changed from the first state to the second state, setting the frame mark of the current input frame according to the detection result and judging whether the current state mark of the input video source is changed from the second state to the first state.
Although it can be normally determined whether an input video source is normally accessed in the prior art, when an unstable frame of one or two frames occurs due to even interference when the state of an actual input video source is a stable state, the state of the input video source of consecutive frames is determined to be an unstable state, and thus a state of no output of frames (for example, a black screen) is generated. According to the embodiment of the invention, the judgment standard of the current state mark of the input video source is modified and whether the frame mark of the input frame is an effective frame or not is set, so that the output display picture is ensured to be normal, smooth and not flicker under the condition that interference exists in the video playing processing process, and the user experience is improved.
In one embodiment of the present invention, the detection setting module includes: an invalid frame setting unit configured to set a frame of the current input frame as an invalid frame when the frame parameter of the current input frame is different from the reference frame parameter, and count the number of consecutive occurrences of the invalid frame to obtain a count value; and a state change unit for changing a current state flag of the input video source from the second state to the first state when a frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
In one embodiment of the present invention, the detection setting module includes: an effective frame setting unit for setting a frame flag of the current input frame as an effective frame and changing the count value to an initial value when the frame parameter of the current input frame is identical to the reference frame parameter.
In one embodiment of the present invention, the first state is an unstable state and the second state is a stable state; the frame parameters include a line width, a column width, and a frame rate.
In one embodiment of the present invention, the video processing apparatus further includes: an output module to: when the current state of the input video source is marked as the first state, outputting a preset picture; when the frame of the current input frame is a valid frame, outputting the current input frame; or when the frame of the current input frame is marked as an invalid frame, outputting the last valid frame which is closest to the current input frame in terms of time distance.
In one embodiment of the present invention, the video processing apparatus further includes: and the state keeping module is used for keeping the current state of the input video source to be the first state if the frame parameters of the current input frame and the last input frame are different or the number of the input frames with the continuously same frame parameters is less than M when the current state of the input video source is marked as the first state.
In another aspect, an embodiment of the present invention provides a video processing system, including: a memory storing computer program code and one or more processors coupled to the memory, the processors being configured to execute the computer program code to implement a video processing method as in any of the preceding embodiments.
In still another aspect, the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores computer program codes, where the computer program codes are used to implement the video processing method according to any one of the foregoing embodiments.
In the embodiment of the invention, the judgment standard of the current state mark of the input video source is modified and whether the frame mark of the current input frame is an effective frame or not is set, so that the normal, smooth and non-flickering output display picture can be ensured even under the condition that interference exists in the video playing process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a flowchart illustrating a video processing method according to an embodiment of the present invention.
Fig. 1B is a flowchart illustrating a video processing method according to another embodiment of the present invention.
Fig. 1C is a schematic flowchart of a video processing method according to still another implementation manner of the first embodiment of the present disclosure.
Fig. 2A is a block diagram of an embodiment of a video processing apparatus according to a second embodiment of the present invention.
Fig. 2B is a schematic unit diagram of a detection setting module according to a second embodiment of the present invention.
Fig. 2C is a block diagram of another embodiment of a video processing apparatus according to a second embodiment of the present invention.
Fig. 2D is a block diagram illustrating a video processing apparatus according to still another embodiment of the present invention.
Fig. 3 is a schematic diagram of a video processing system according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
As shown in fig. 1A, a video processing method 101 according to a first embodiment of the present invention mainly includes:
step S110: when the current state of the input video source is marked as a first state, it is detected whether there are consecutive M input frames having the same frame parameters, where M is a positive integer greater than 1.
Step S120: when it is detected that consecutive M input frames have the same frame parameter, the current state flag of the input video source is changed from the first state to a second state, and the same frame parameter is taken as a reference frame parameter.
Step S130: after the current state flag of the input video source is changed from the first state to the second state, detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result, setting the frame flag of the current input frame according to the detection result, and judging whether the current state flag of the input video source is changed from the second state to the first state.
Specifically, the step S130 includes, for example:
when the frame parameters of the current input frame are different from the reference frame parameters, setting the frame of the current input frame as an invalid frame, and counting the number of the invalid frames which continuously appear to obtain a count value; and
changing a current state flag of the input video source from the second state to the first state when a frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
Further, the step S130 may further include, for example:
setting a frame flag of the current input frame as a valid frame when the frame parameter of the current input frame is identical to the reference frame parameter, and changing the count value to an initial value.
Specifically, the first state is, for example, an unstable state, and the second state is, for example, a stable state; the reference frame parameters include, for example, a line width, a column width, and a frame rate.
In some other embodiments, for example, in the video processing method 102 shown in fig. 1B, in addition to the steps S110, S120, and S130, the method may further include: step S140, step S150, and step S160.
Specifically, step S140: and outputting a preset picture when the current state of the input video source is marked as the first state. Specifically, when the current status flag of the input video source is in the first state, for example, a black screen is output for display to indicate that the current status flag of the input video source is in an unstable state or the input video source is not connected. Of course, in other embodiments, other pictures may be output as the preset picture, and the scope of the present invention is not limited to the black picture herein.
Step S150: outputting the current input frame when a frame of the current input frame is marked as a valid frame.
Step S160: outputting a last valid frame temporally closest to the current input frame when the frame of the current input frame is marked as an invalid frame. Specifically, when the frame of the current input frame is marked as an invalid frame, the frame picture of the last valid frame closest in time distance is actively called to output and display, that is, when the current state of the input video source is marked as a stable state, the last valid frame closest in time distance to the invalid frame is used for replacing the invalid frame to output, so that the normal and smooth output display picture can be ensured when individual interference occurs in the normal playing process of the video.
In some embodiments, for example, as in the video processing method 103 shown in fig. 1C, in addition to the steps S110, S120, and S130, the method may further include: step S170: and when the current state of the input video source is marked as the first state, if the frame parameters of the current input frame and the last input frame are different or the number of the input frames with continuously same frame parameters is less than M, keeping the current state of the input video source marked as the first state.
Of course, the embodiment of the present invention is not limited thereto, and other combinations of steps may also be used to form the technical solutions.
The video processing methods 101, 102, and 103 according to the first embodiment of the present invention can ensure that the output display screen is normal, smooth, and not flickering even under the condition of interference in the video playing process by modifying the judgment standard of the current status flag of the input video source and setting whether the frame flag of the current input frame is an effective frame.
Second embodiment
As shown in fig. 2A, a video processing apparatus 201 according to a second embodiment of the present invention is provided, for example, the video processing apparatus 201 may be used to implement the video processing method according to any one of the foregoing embodiments, and for details of the specific functions and implementation of the video processing method, reference is made to the description of the foregoing embodiments, which are not repeated herein.
The video processing apparatus 201 mainly includes, for example: a detection module 210, a setting module 220, and a detection setting module 230.
The detection module 210 is configured to detect whether M consecutive input frames have the same frame parameter when the current state of the input video source is marked as the first state, where M is a positive integer greater than 1. That is, the detecting module 210 is used to execute step S110.
The setting module 220 is for example configured to change the current state flag of the input video source from the first state to the second state when it is detected that consecutive M input frames have the same frame parameter, and to take the same frame parameter as the reference frame parameter. I.e. the setting module 220 is used to execute step S120.
The detection setting module 230 is configured to, for example, detect whether a frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result after the current state flag of the input video source is changed from the first state to the second state, set the frame flag of the current input frame according to the detection result, and determine whether to change the current state flag of the input video source from the second state to the first state. That is, the detection setting module 230 is used to execute step S130.
Specifically, as shown in fig. 2B, the detection setting module 230 includes, for example: an invalid frame setting unit 231, a state change unit 233, and a valid frame setting unit 235.
Here, the invalid frame setting unit 231 is configured to, for example, set a frame flag of the current input frame as an invalid frame when the frame parameter of the current input frame is different from the reference frame parameter, and count the number of consecutive occurrences of the invalid frame to obtain a count value.
The state change unit 233 is, for example, configured to change the current state flag of the input video source from the second state to the first state when the frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
The valid frame setting unit 235 is, for example, configured to set a frame flag of the current input frame as a valid frame and change the count value to an initial value when the frame parameter of the current input frame is identical to the reference frame parameter.
Specifically, the first state is, for example, an unstable state, and the second state is, for example, a stable state; the reference frame parameters include, for example, a line width, a column width, and a frame rate.
In some other embodiments, for example, as shown in fig. 2C, the video processing apparatus 202 may further include, in addition to the detection module 210, the setting module 220, and the detection setting module 230: an output module 240, configured to output a preset picture when the current state of the input video source is marked as the first state; when the frame of the current input frame is a valid frame, outputting the current input frame; or when the frame of the current input frame is marked as an invalid frame, outputting the last valid frame which is closest to the current input frame in terms of time distance. That is, the output module 240 is used for executing step S140, step S150 and step S160.
In some other embodiments, for example, as shown in fig. 2D, in the video processing apparatus 203, in addition to the detection module 210, the setting module 220, and the detection setting module 230, the method may further include: a state keeping module 270, configured to, when the current state of the input video source is marked as the first state, keep the current state of the input video source marked as the first state if frame parameters of a current input frame and a last input frame are different or the number of input frames having continuously the same frame parameters is less than M. I.e., the state keeping module 270 is used to execute step S170.
Of course, the embodiment of the present invention is not limited to this, and other technical solutions formed by combining modules also belong to the scope of the embodiment of the present invention.
The video processing apparatuses 201, 202, and 203 according to the second embodiment of the present invention can ensure that the output display screen is normal, smooth, and not flickering even in the presence of interference during video playback by modifying the criterion of the current status flag of the input video source and setting whether the frame flag of the current input frame is an effective frame.
Third embodiment
As shown in fig. 3, a video processing system 300 according to a third embodiment of the present invention includes: a memory 310 and one or more processors 330 coupled to the memory 310. The memory 310 stores, for example, a computer program code, and the processor 330 is configured to execute the computer program code to implement the video processing method according to any one of the foregoing embodiments, for example. For details of the specific functions and implementation of the video processing method, reference is made to the description of the foregoing embodiments, which are not repeated herein.
The video processing system 300 according to the third embodiment of the present invention can ensure that the output display screen is normal, smooth and not flickering even under the condition of interference in the video playing process by modifying the judgment standard of the current status flag of the input video source and setting whether the frame flag of the current input frame is an effective frame.
Fourth embodiment
As shown in fig. 4, a fourth embodiment of the present invention provides a computer-readable storage medium 400, for example, a non-volatile memory, and a computer program code is stored in the computer-readable storage medium 400, for example, the computer program code is used for implementing the video processing method according to any one of the foregoing embodiments. For details of the specific functions and implementation of the video processing method, reference is made to the description of the foregoing embodiments, which are not repeated herein.
The computer-readable storage medium 400 according to the fourth embodiment of the present invention can ensure that the output display screen is normal, smooth and not flickering even under the condition of interference in the video playing process by modifying the judgment criteria of the current status flag of the input video source and setting whether the frame flag of the current input frame is an effective frame.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments can be modified, or some technical features can be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A video processing method, comprising:
when the current state of an input video source is marked as a first state, detecting whether M continuous input frames have the same frame parameters, wherein M is a positive integer greater than 1;
when detecting that M input frames have the same frame parameter, changing the current state flag of the input video source from the first state to a second state, and taking the same frame parameter as a reference frame parameter; and
after the current state flag of the input video source is changed from the first state to the second state, detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result, setting the frame flag of the current input frame according to the detection result, and judging whether the current state flag of the input video source is changed from the second state to the first state;
wherein the first state is an unstable state and the second state is a stable state;
wherein the setting of the frame flag of the current input frame and the determination of whether to change the current state flag of the input video source from the second state to the first state according to the detection result includes:
when the frame parameters of the current input frame are different from the reference frame parameters, setting the frame of the current input frame as an invalid frame, and counting the number of the invalid frames which continuously appear to obtain a count value; and
changing a current state flag of the input video source from the second state to the first state when a frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
2. The video processing method of claim 1, wherein said setting a frame flag of a current input frame and determining whether to change a current state flag of the input video source from the second state to the first state according to the detection result comprises:
setting a frame flag of the current input frame as a valid frame when the frame parameter of the current input frame is identical to the reference frame parameter, and changing the count value to an initial value.
3. The video processing method of claim 1, wherein the reference frame parameters include a line width, a column width, and a frame rate.
4. The video processing method of claim 1, comprising:
when the current state of the input video source is marked as the first state, outputting a preset picture;
outputting the current input frame when the frame of the current input frame is marked as a valid frame; and
outputting a last valid frame temporally closest to the current input frame when the frame of the current input frame is marked as an invalid frame.
5. The video processing method of claim 1, comprising:
and when the current state of the input video source is marked as the first state, if the frame parameters of the current input frame and the last input frame are different or the number of the input frames with continuously same frame parameters is less than M, keeping the current state of the input video source to be marked as the first state.
6. A video processing apparatus, comprising:
the device comprises a detection module, a judgment module and a display module, wherein the detection module is used for detecting whether continuous M input frames have the same frame parameters when the current state of an input video source is marked as a first state, and M is a positive integer greater than 1;
a setting module, configured to change a current state flag of the input video source from the first state to a second state when it is detected that consecutive M input frames have the same frame parameter, and take the same frame parameter as a reference frame parameter; and
the detection setting module is used for detecting whether the frame parameter of the current input frame is the same as the reference frame parameter to obtain a detection result after the current state flag of the input video source is changed from the first state to the second state, setting the frame flag of the current input frame according to the detection result and judging whether the current state flag of the input video source is changed from the second state to the first state;
wherein the first state is an unstable state and the second state is a stable state;
wherein, the detection setting module comprises:
an invalid frame setting unit, configured to set, when a frame parameter of the current input frame is different from the reference frame parameter, a frame flag of the current input frame as an invalid frame, and count a number of consecutive occurrences of the invalid frame to obtain a count value; and
a state change unit for changing a current state flag of the input video source from the second state to the first state when a frame parameter of the current input frame is different from the reference frame parameter and the count value is equal to N, where N is a positive integer greater than 1.
7. The video processing apparatus of claim 6, wherein the detection setup module comprises:
an active frame setting unit for setting a frame flag of the current input frame as an active frame and changing the count value to an initial value when the frame parameter of the current input frame is the same as the reference frame parameter.
8. The video processing apparatus of claim 6, wherein the reference frame parameters include a line width, a column width, and a frame rate.
9. The video processing apparatus of claim 6, comprising: an output module to:
when the current state of the input video source is marked as the first state, outputting a preset picture;
when the frame of the current input frame is marked as a valid frame, outputting the current input frame; or
Outputting a last valid frame that is closest in temporal distance to the current input frame when a frame of the current input frame is marked as an invalid frame.
10. The video processing apparatus of claim 6, comprising:
and the state keeping module is used for keeping the current state of the input video source to be marked as the first state if the frame parameters of the current input frame and the last input frame are different or the number of the input frames with continuously same frame parameters is less than M when the current state of the input video source is marked as the first state.
11. A video processing system, comprising: a memory storing computer program code and one or more processors coupled to the memory, the processors being configured to execute the computer program code to implement the video processing method of any of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium is a non-volatile memory and stores computer program code, which is executed by a processor to implement the video processing method according to any one of claims 1 to 5.
CN201910552244.3A 2019-06-25 2019-06-25 Video processing method, device and system and computer readable storage medium Active CN112135176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910552244.3A CN112135176B (en) 2019-06-25 2019-06-25 Video processing method, device and system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910552244.3A CN112135176B (en) 2019-06-25 2019-06-25 Video processing method, device and system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112135176A CN112135176A (en) 2020-12-25
CN112135176B true CN112135176B (en) 2022-09-13

Family

ID=73849839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910552244.3A Active CN112135176B (en) 2019-06-25 2019-06-25 Video processing method, device and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112135176B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534840A (en) * 2016-10-31 2017-03-22 青岛海信电器股份有限公司 Video signal detection method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120207386A1 (en) * 2011-02-11 2012-08-16 Microsoft Corporation Updating A Low Frame Rate Image Using A High Frame Rate Image Stream
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
US8818171B2 (en) * 2011-08-30 2014-08-26 Kourosh Soroushian Systems and methods for encoding alternative streams of video for playback on playback devices having predetermined display aspect ratios and network connection maximum data rates
CN103475842B (en) * 2013-09-25 2017-01-04 武汉精立电子技术有限公司 LVDS video signal is converted to MIPI video signal method
CN105100644A (en) * 2015-07-15 2015-11-25 西安诺瓦电子科技有限公司 Seamless switching method for video source
US9967465B2 (en) * 2016-05-18 2018-05-08 Realtek Singapore Pte Ltd Image frame processing method
CN107592522A (en) * 2017-07-31 2018-01-16 郑州云海信息技术有限公司 A kind of method and device for detecting video resolution
CN107734362B (en) * 2017-10-11 2020-07-28 咪咕视讯科技有限公司 Video source determination method and device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534840A (en) * 2016-10-31 2017-03-22 青岛海信电器股份有限公司 Video signal detection method and device

Also Published As

Publication number Publication date
CN112135176A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112988303B (en) Electronic ink screen refreshing method and device, electronic equipment and storage medium
CN108733291B (en) Notification message processing method and device
CN106155263B (en) Parameter adjusting method and device
EP2701386A1 (en) Video processing apparatus and method
US20050190843A1 (en) Image block error concealing apparatus and method in mobile communication system
CN109005283A (en) Show method, apparatus, terminal and the storage medium of notification message
EP2846548A1 (en) Multi-level bidirectional motion estimation method and device
JP2010206801A (en) Method and system for providing reliable motion vectors
CN107436658B (en) Method for reducing temperature rise, computer readable storage medium and mobile terminal
CN108600675B (en) Channel path number expansion method, device, network video recorder and storage medium
CN113055742A (en) Video display method, device, terminal and storage medium
CN111128082B (en) Backlight adjusting method, display and storage medium
CN112135176B (en) Video processing method, device and system and computer readable storage medium
CN105338281B (en) A kind of image display method and device
CN114217759A (en) Screen projection method and device, storage medium and electronic equipment
KR100472461B1 (en) Display device for discriminating abnormal image signal and method thereof
US8903223B1 (en) Video driver over a network
CN113766315A (en) Display device and video information processing method
CN112887708A (en) Video jitter detection method and device, video jitter detection equipment and storage medium
CN113031895A (en) Screen projection control method and device and electronic equipment
CN112675535A (en) Display interface adjusting method and device, network equipment and storage medium
CN110572411A (en) Method and device for testing video transmission quality
US20160071483A1 (en) Image color correction for electronic displays
JP2008187638A (en) Camera shake correcting apparatus
JP2008035436A (en) Pull-down sequence detecting apparatus and method

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