CN108134938A - Videoscanning mode detects, correcting method and video broadcasting method and device - Google Patents

Videoscanning mode detects, correcting method and video broadcasting method and device Download PDF

Info

Publication number
CN108134938A
CN108134938A CN201611093587.0A CN201611093587A CN108134938A CN 108134938 A CN108134938 A CN 108134938A CN 201611093587 A CN201611093587 A CN 201611093587A CN 108134938 A CN108134938 A CN 108134938A
Authority
CN
China
Prior art keywords
picture frame
field picture
code flow
mode
video code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611093587.0A
Other languages
Chinese (zh)
Other versions
CN108134938B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201611093587.0A priority Critical patent/CN108134938B/en
Publication of CN108134938A publication Critical patent/CN108134938A/en
Application granted granted Critical
Publication of CN108134938B publication Critical patent/CN108134938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/65Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using error resilience
    • 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/44008Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream

Abstract

The present invention provides a kind of videoscanning modes to detect, correcting method, and video broadcasting method, device and computer storage media, picture frame is extracted from video code flow to be detected, then reciprocal cross fault is carried out respectively to the top field picture of picture frame and bottom field picture to manage to obtain top field picture frame and bottom field picture frame, and then calculate the difference value between top field picture frame and bottom field picture frame, it is compared according to the difference value being calculated and default discrepancy threshold, and then determine that the actual scanning mode of video code flow is progressive scan or interlacing scan according to comparison result, the relatively existing coding parameter by video code flow determines the scan mode of video code flow, it can accurately identify the actual scanning mode of video code flow, it avoids identifying erroneous effects video quality because of scan mode, promote satisfaction of users.

Description

Videoscanning mode detects, correcting method and video broadcasting method and device
Technical field
The present invention relates to video technique field more particularly to a kind of videoscanning mode detect, correcting method and video are broadcast Put method and apparatus.
Background technology
There are two types of scan modes for source image data acquisition during video record:Interlacing scan and progressive scan, wherein:
Interlacing scan is one field picture of each acquisition, pushes up field (Top Field) image and bottom (Bottom Field) figure It is different at the time of pushing up field picture and the acquisition of bottom field picture, this two combinations are a frame image together as interleaved acquisition.
Progressive scan is one frame image of each acquisition, and pushing up field picture and bottom field picture is acquired in synchronization.For Interleaved video source needs to carry out reciprocal cross fault reason with deinterlace (reciprocal cross fault reason) technology in decoding, it is impossible to The top field picture of one frame and bottom field picture are directly superimposed, the image otherwise finally shown has crenellated phenomena.
For the video source of progressive scan, because top field picture and bottom field picture are synchronizations, do not need to Deinterlace processing.Film source is interlacing scan or progressive scan, has coding parameter that can identify in video code flow.It is and real The scan mode used when the coding parameter of many videos is identified in the application of border scan mode and actual source Image Acquisition is not Unanimously, for example coding parameter mark is progressive scan, and actually video source is interlacing scan acquisition.There is such case Reason is also various, for example to causing during film source progress transcoding, transcoding software default is handled by progressive scan or encoder Parameter configuration error etc., such case can not avoid completely.When general decoder decodes video, joined according to coding Number, if coding parameter mark film source is interlacing scan, will carry out deinterlace processing come what is handled.If coding ginseng Number mark film source is progressive scan, just without deinterlace processing.But if the film source of this progressive scan is actually true Positive scan mode is interlacing scan, that just will appear crenellated phenomena, influence video quality.Therefore video code flow reality how is identified The technical issues of scan mode on border is a urgent need to resolve.
Invention content
The embodiment of the present invention provide a kind of videoscanning mode detect, correcting method and video broadcasting method and device, with It solves the problems, such as existing to accurately identify the actual scanning mode of video code flow.
To solve the above-mentioned problems, the present invention provides a kind of videoscanning mode detection method, including:
Picture frame is extracted from video code flow to be detected;
Top field picture and bottom field picture to described image frame carry out reciprocal cross fault and manage to obtain top field picture frame and bottom respectively Field picture frame;
Calculate the difference value between the top field picture frame and bottom field picture frame;
The difference value and default discrepancy threshold are compared, the scanning of the video code flow is determined according to comparison result Mode.
To solve the above-mentioned problems, the present invention also provides a kind of video broadcasting method, including:
The scan mode of video code flow to be played is carried out by videoscanning mode detection method as described above true It is fixed;
The switch of reciprocal cross mistake processing module is controlled in the video code flow playing process according to determining scan mode.
To solve the above-mentioned problems, the present invention also provides a kind of videoscanning mode correcting method, including:
The scan mode of video code flow to be detected is carried out by videoscanning mode detection method as described above true It is fixed;
Judge whether scan mode and the determining scan mode of the video code flow mark are consistent, if not, being regarded by described in The scan mode of frequency code traffic identifier is updated to the scan mode determined.
To solve the above-mentioned problems, the present invention also provides a kind of videoscanning mode detection device, including:
Image frame extraction module, for extracting picture frame from video code flow to be detected;
Reciprocal cross mistake processing module carries out reciprocal cross fault reason respectively for the top field picture to described image frame and bottom field picture Obtain top field picture frame and bottom field picture frame;
Computing module, for calculating the difference value between the top field picture frame and bottom field picture frame;
Analysis module, for the difference value and default discrepancy threshold to be compared, according to determining comparison result The scan mode of video code flow.
To solve the above-mentioned problems, the present invention also provides a kind of video play devices, which is characterized in that including controlling mould Block and videoscanning mode detection device as described above;
The videoscanning mode detection device is used to be determined the scan mode of video code flow to be played;
The scan mode that the control module is used to be determined according to the videoscanning mode detection device is in the video The switch of the reciprocal cross mistake processing module is controlled in code stream playing process.
To solve the above-mentioned problems, the present invention also provides a kind of videoscanning mode correcting devices, which is characterized in that packet Include update module and videoscanning mode detection device as described above;
The videoscanning mode detection device is used to be determined the scan mode of video code flow to be detected;
The update module is used to judge that the scan mode of the video code flow mark is detected with the videoscanning mode Whether the scan mode that device determines is consistent, if not, the scan mode that the video code flow is identified sweeping of being updated to determine Retouch mode.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media Executable instruction, the computer executable instructions are detected for performing aforementioned videoscanning mode, are corrected and playback method.
Advantageous effect
Videoscanning mode provided in an embodiment of the present invention detects, correcting method and video broadcasting method, device and meter Calculation machine storage medium, extracts picture frame from video code flow to be detected, then to the top field picture of picture frame and bottom field picture Carry out reciprocal cross fault respectively and manage to obtain top field picture frame and bottom field picture frame, so calculate top field picture frame and bottom field picture frame it Between difference value, be compared according to the difference value being calculated and default discrepancy threshold, and then determine to regard according to comparison result The actual scanning mode of frequency code stream is progressive scan or interlacing scan, the relatively existing coding parameter by video code flow come It determines the scan mode of video code flow, can accurately identify the actual scanning mode of video code flow, avoid knowing because of scan mode Other erroneous effects video quality promotes satisfaction of users.
Description of the drawings
Fig. 1 is videoscanning mode detection method flow diagram in the embodiment of the present invention one;
Fig. 2 is video broadcasting method flow diagram in the embodiment of the present invention two;
Fig. 3 is video playing control flow schematic diagram in the embodiment of the present invention two;
Fig. 4 is videoscanning mode correcting method flow diagram in the embodiment of the present invention three;
Fig. 5 is videoscanning mode correction procedure flow diagram in the embodiment of the present invention three;
Fig. 6 is videoscanning mode structure of the detecting device schematic diagram in the embodiment of the present invention four;
Fig. 7 is video play device structure diagram in the embodiment of the present invention four;
Fig. 8 is videoscanning mode correcting device structure diagram in the embodiment of the present invention four.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment in the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
Embodiment one:
In order to solve the problems, such as it is existing the actual scanning mode of video code flow cannot be accurately identified, to be detected Picture frame is extracted in video code flow, reciprocal cross fault reason is then carried out respectively to the top field picture of picture frame and bottom field picture (deinterlace) top field picture frame and bottom field picture frame are obtained, and then is calculated between top field picture frame and bottom field picture frame Difference value is compared according to the difference value being calculated and default discrepancy threshold, and then determines video codes according to comparison result The actual scanning mode of stream is progressive scan or interlacing scan, and the relatively existing coding parameter by video code flow determines The scan mode of video code flow can accurately identify the actual scanning mode of video code flow.Wherein, videoscanning mode detects Method is shown in Figure 1, including:
S101:Picture frame is extracted from video code flow to be detected.
The present embodiment further includes before S101 is performed and first obtains video code flow process to be detected, and acquisition modes can be with It is obtained from far-end server, Video coding code stream can also be read from local memory device.Specific acquisition modes can be according to tool Body application scenarios flexibly select to set.
In the present embodiment, before extracting picture frame from video code flow to be detected, the video code flow to acquisition is further included It is decoded, specifically can the video code flow to be detected of acquisition be injected into Video decoding module is decoded processing.Video solution Code module is decoded the video codeword data stream of injection, generates decoded image.
S102:Top field picture and bottom field picture to the picture frame of extraction carry out reciprocal cross fault reason respectively (deinterlace) it obtains completely pushing up field picture frame and bottom field picture frame.
Reciprocal cross fault reason (deinterlace) is by a kind of side for the video that interleaved Video Quality Metric is progressive scan Method is to eliminate the staggeredly phenomenon that the two field picture of interleaved video merges appearance.Deinterlace algorithms Using the method for dynamic compensation, go to predict neighbouring field using dynamic estimation (motion estimation) according to neighbouring field Between in picture object movement, by dynamic estimation can obtain the dynamic of each macro block (macroblock) in picture to It measures (motion vector), then can reconstruct a new field, that is, polishing using previous field and dynamic vector The image of other one of synchronization, then by this two occasions and complete reciprocal cross mistake and obtain completely pushing up field picture frame (label For Ft) and bottom field picture frame (be labeled as Fb)。
S103:The top field picture frame F being calculatedtWith bottom field picture frame FbBetween difference value.
Difference value in the present embodiment is the various index values for embodying progressive scan mode and interlace mode.
S104:Obtained difference value and default discrepancy threshold are compared, video code flow is determined according to comparison result Scan mode is progressive scan mode or interlace mode.The relatively existing coding parameter by video code flow determines The scan mode of video code flow can accurately identify the actual scanning mode of video code flow, avoid identifying mistake because of scan mode Video quality is accidentally influenced, promotes satisfaction of users.
In the present embodiment, the top field picture frame F of a picture frame is calculatedtWith bottom field picture frame FbBetween difference value calculate Principle can calculate FtAnd FbAll corresponding pixel points (namely same position pixel) difference value summation.One pixel Point represents that Y represents brightness, that is, grayscale value, and U and V represent coloration, for describing color with the colour coding method of YUV And saturation degree.Two pixels of absolute value representation of the difference of the brightness value between two pixels may be used in the present embodiment Diversity factor takes top field picture frame FtWith bottom field picture frame FbThe sum of brightness value difference of all pixels point is top field picture frame FtWith Bottom field picture frame FbBetween difference value, corresponding default discrepancy threshold include luminance difference threshold value.
Such as assume top field picture frame FtWith bottom field picture frame FbPixel number be N, FtAnd FbPixel brightness Value is denoted as Y respectivelytkAnd Ybk.Then FtAnd FbDifference value D can be calculated by formula below:
Then the F being calculated according to diversity factor computing moduletAnd FbDifference value D and preset luminance difference threshold value, sentence The actual scanning mode of the disconnected video code flow.For the video of progressive scan, it is synchronization to push up field picture and bottom field picture, So FtAnd FbIt is substantially identical, therefore the luminance difference value of the two is approximately equal to 0;And for interleaved video, push up field figure As and bottom field picture be different moments, FtAnd FbBrightness value between having has certain diversity factor, therefore can set luminance difference Different threshold value Thr is slightly larger than 0, you can carries out accurate judgement.The setting of occurrence then can flexibly be set according to concrete application scene.
Based on above-mentioned setting, if obtained D<=Thr, the then scan mode for judging the video code flow are progressive scans, If D>Thr, the then scan mode for judging the video code flow are interlacing scans.
In addition, in the present embodiment, it can also be using the absolute value and color of the difference of the brightness value between two pixels The absolute difference of color saturation degree represents the diversity factor of two pixels, comprehensive to take top field picture frame FtWith bottom field picture frame FbInstitute There are the sum of brightness value difference of pixel and the sum of the difference of color saturation as between top field picture frame and bottom field picture frame Difference value.Specifically, the sum of brightness value difference between top field picture frame and bottom field picture frame same position pixel is calculated, and Calculate the sum of difference of color saturation between top field picture frame and bottom field picture frame same position pixel;
Then it calculates the sum of brightness value difference and the integrated value of the sum of color saturation difference is schemed as top field picture frame and bottom As the difference value between frame.When calculating integrated value, the weight of brightness value difference and color saturation difference can be according to concrete application field Scape is flexibly set.
However, it is to be understood that it is identical with bottom field picture frame that top field picture frame can also be directly calculated in the present embodiment The sum of difference of color saturation between the pixel of position is as the difference value stated between top field picture frame and bottom field picture frame.On The calculation for stating three species diversity values can flexibly be selected according to specific requirements.
In addition, due in video it is possible that there is lasting tableaux, even interleaved video, the top of same frame And bottom may also content be identical, in order to improve the accuracy of detection, can continuously detect multiframe, such as detect 10 All frames in second, if each frame is all D<=Thr, it is determined that the video is progressive scan, otherwise then determines the video It is interleaved.That is, in the present embodiment, extraction picture frame can be from video code flow to be detected:From to be detected Continuous N number of picture frame is extracted in video code flow, N is more than or equal to 2, such as equal to 5,10 etc., occurrence can be according to specific Application scenarios are flexibly set.The scan mode for determining video code flow according to comparison result at this time includes:
If the both greater than default difference of difference value between the top field picture frame of N number of picture frame of extraction and bottom field picture frame Threshold value, the scan mode for determining video code flow are interlacing scan;Otherwise, it determines the scan mode of video code flow is progressive scan.
The actual scanning mode detection scheme of above-mentioned video code flow provided in this embodiment, it is relatively existing to pass through video code flow In coding parameter determine the scan mode of video code flow, can accurately identify the actual scanning mode of video code flow, keep away Exempt to identify erroneous effects video quality because of scan mode, promote satisfaction of users.
Embodiment two:
Videoscanning mode detection method of the present embodiment based on embodiment one provides a kind of playback method, referring to Fig. 2 It is shown, including:
S201:By the videoscanning mode detection method shown in embodiment one to the scanning side of video code flow to be played Formula is determined;
S202:The switch of reciprocal cross mistake processing module is controlled in video code flow playing process according to determining scan mode, Including:
When the scan mode for determining video code flow is interlacing scan, the reciprocal cross is controlled in playing process in video code flow Wrong processing module is opened;
When determining the scan mode of video code flow as progressive scan, the reciprocal cross is controlled in playing process in video code flow Wrong processing module is closed.
Various video player devices or software, can be to avoid piece of video sources using playback method provided in this embodiment The crenellated phenomena that interlocks is generated in the case of scan mode mark mistake.The flow for playing control is illustrated below, is joined As shown in Figure 3, including:
S301:Playing device (can be various players) receive the Video coding code stream sent of far-end server or Video coding code stream is read from local memory device, bit stream data is injected into Video decoding module.
S302:Video decoding module is decoded the video codeword data stream of injection, generates decoded image.
S303:The top field picture of N frame images is extracted from decoded image and bottom field picture is passed through respectively Deinterlace processing modules, the top field picture frame Ft at moment and bottom field picture frame Fb where generating respectively.
S304:Ft and Fb calculates the difference value D of the two by diversity factor computing module.
S305:According to difference angle value and luminance difference threshold value Thr, the actual scanning mode of the video is judged, if D<= Thr, then it is assumed that the frame is progressive scan, goes to S306;If D>Thr, then it is assumed that the frame is interlacing scan, continuous detection 10 seconds Interior all frames, if each frame is all D<=Thr, it is determined that the video is progressive scan, otherwise then determines that the video is It is interleaved, go to S307;
S306:It is subsequent to play without deinterlace processing, close reciprocal cross mistake processing module.
S307:Reciprocal cross mistake processing module is opened, subsequent broadcasting continues deinterlace processing.
The present embodiment can re-start one-time detection according to above-mentioned steps automatically at regular intervals, if videoscanning Mode changes, and can be corrected.
It it is interleaved before transcoding it should be strongly noted that somewhat by the video film source of transcoder transcoding Source, coding parameter is identified as the film source of progressive scan after transcoding, and when actually film source carries out Image Acquisition is interlacing Scanning.Can be to progressively scan to handle according to the film source when decoder is decoded according to general way, it directly will be same The two field picture of frame is overlapped, and is then exported.And actually this two field picture is the image of different moments, is directly superimposed upon one It rises, moving object edge just will appear crenellated phenomena.
Using the playback method of the present embodiment, the scan mode of film source reality is detected, is carried out according to practical scan mode Correctly processing.As above-mentioned this film source, decoder detects that practical scan mode is interlacing scan, with regard to carrying out Deinterlace processing can thus eliminate crenellated phenomena, promote the satisfaction of user experience.
Embodiment three:
On the basis of the videoscanning mode detection method that the present embodiment is provided in embodiment one, a kind of videoscanning side is provided Formula correcting method, it is shown in Figure 4, including:
S401:By the videoscanning mode detection method shown in embodiment one to the scanning side of video code flow to be detected Formula is determined;
S402:Judge whether scan mode and the determining scan mode of video code flow mark are consistent, if not, full-time S403;Otherwise, S404 is gone to;
S403:The scan mode that video code flow identifies is updated to the scan mode determined, for example, if determining Scan mode for interlacing scan, and the scan mode that identify and (can identify through but not limited to coding parameter) is to progressively scan When, then it is updated to interlacing scan.
S404:The scan mode of video code flow mark is not updated.
The amending method provided through this embodiment, video content provider can be to the codings of certain videoscanning modes The film source of parameter identification mistake is modified, and reduces terminal device and the bad hidden danger of result of broadcast therefore occurs.Specifically corrected Journey is shown in Figure 5, including:
S501:Some film source in video film source library to be detected is input to Video decoding module and is decoded, generation solution Image after code.
S502:The top field picture and bottom field picture of decoded frame image pass through deinterlace processing modules respectively, Frame the image Ft and Fb at moment where generation respectively.
S503:The difference value D of the two is calculated by diversity factor by Ft and Fb.
S504:According to difference value D and predetermined threshold value Thr, scan mode is determined.If D<=Thr, then it is assumed that the frame be by Row scanning, if D>Thr, then it is assumed that the frame is interlacing scan.In order to ensure higher accuracy in detection, 60 can be continuously detected All frames in second, if each frame is all D<=Thr, it is determined that the video is progressive scan, otherwise then determines the video It is interleaved.
S505:Judge whether the scan mode determined and the scan mode that video code flow identifies are consistent, if so, going to S506;Otherwise, S507 is gone to.
S506:If actual scanning mode identifies consistent with coding parameter, film source remains unchanged.
S507:The scan mode coding parameter corrected mistake.What actual scanning mode and coding parameter identified at this time differs It causes, recompiles and be modified.
Continue to detect and correct subsequent film source according to above-mentioned step, until video film source library to be detected In all film sources detection and amendment finish.
Example IV:
A kind of videoscanning mode detection device is present embodiments provided, it is shown in Figure 6, including:
Image frame extraction module 63, for extracting picture frame from video code flow to be detected.
Videoscanning mode detection device in the present embodiment may also include data acquisition module 61 and Video decoding module 62, data acquisition module 61 is used to obtain video code flow to be detected from far-end server, can also be read from local memory device Take Video coding code stream.Specific acquisition modes can flexibly select to set according to concrete application scene.Data acquisition module 61 has The video code flow to be detected of acquisition can be injected into Video decoding module 62 and be decoded processing by body.Video decoding module 62 is right The video codeword data stream of injection is decoded, and generates decoded image.
Reciprocal cross mistake processing module 64 carries out reciprocal cross fault for the top field picture to picture frame and bottom field picture and manages respectively To top field picture frame and bottom field picture frame;Reciprocal cross fault manages (deinterlace) module 64 Progressive scan is to eliminate the staggeredly phenomenon that the two field picture of interleaved video merges appearance. Deinterlace algorithms use dynamic estimation (motion estimation) using the method for dynamic compensation according to neighbouring field It goes to predict the movement of object in picture between neighbouring field, each macro block in picture can be obtained by dynamic estimation (macroblock) dynamic vector (motion vector), then can be reconstructed using previous field and dynamic vector One new field, that is, the image of other one of polishing synchronization, then by this two occasions and complete reciprocal cross mistake and obtain Complete top field picture frame (is labeled as Ft) and bottom field picture frame (be labeled as Fb)。
Computing module 65, for calculating the difference value between top field picture frame and bottom field picture frame;Difference in the present embodiment Different value is the various index values for embodying progressive scan mode and interlace mode.Computing module 65 calculates the top field figure As the difference value between frame and bottom field picture frame includes:
The conduct of the sum of brightness value difference between the top field picture frame and bottom field picture frame same position pixel is calculated to state Push up the difference value between field picture frame and bottom field picture frame;
Or,
The sum of brightness value difference between top field picture frame and bottom field picture frame same position pixel is calculated, and calculates top field The sum of difference of color saturation between picture frame and bottom field picture frame same position pixel;
The sum of brightness value difference is calculated with the integrated value of the sum of color saturation difference as top field picture frame and bottom field picture frame Between difference value.
Analysis module 66 for difference value and default discrepancy threshold to be compared, is regarded according to determining comparison result The scan mode of frequency code stream.Specifically difference value and default discrepancy threshold are compared, such as larger than default discrepancy threshold determines to regard The scan mode of frequency code stream is interlacing scan;Otherwise, it determines the scan mode of video code flow is progressive scan.
Videoscanning mode detection device in the present embodiment is suitable for any player or scan mode correcting device. And the relatively existing coding parameter by video code flow determines the scan mode of video code flow, can accurately identify video The actual scanning mode of code stream avoids identifying erroneous effects video quality because of scan mode, promotes satisfaction of users.
Embodiment five:
A kind of video play device is present embodiments provided, it is shown in Figure 7, including control module 67 and such as example IV Shown videoscanning mode detection device;
Wherein, it is used to carry out the scan mode of video code flow to be played by videoscanning mode detection device true It is fixed;
The scan mode that control module 67 is used to be determined according to videoscanning mode detection device was played in video code flow The switch of reciprocal cross mistake processing module is controlled in journey, is specifically included:
When control module 67 determines the scan mode of video code flow as interlacing scan, controlled in playing process in video code flow The reciprocal cross mistake processing module is made to open;
When control module 67 determines the scan mode of video code flow as progressive scan, controlled in playing process in video code flow The reciprocal cross mistake processing module is made to close.
Using the video play device of the present embodiment, the scan mode of film source reality can be detected, according to practical scanning Mode is correctly handled.As above-mentioned this film source, decoder detects that practical scan mode is interlacing scan, just into Row deinterlace processing, can thus eliminate crenellated phenomena, promote the satisfaction of user experience.
Embodiment six:
Present embodiments provide a kind of videoscanning mode correcting device, it is shown in Figure 8, including update module 68 and Videoscanning mode detection device as shown in example IV;
Videoscanning mode detection device is used to be determined the scan mode of video code flow to be detected;
What update module 68 determined for judging the scan mode of video code flow mark with videoscanning mode detection device Whether scan mode is consistent, if not, the scan mode that video code flow is identified is updated to the scan mode determined;If so, then It does not do and updates.
For example, if the scan mode determined is interlacing scan, and identify (can be through but not limited to coding parameter Mark) scan mode for progressive scan when, it is then updated to interlacing scan by update module 68.
The videoscanning mode correcting device provided through this embodiment can detect and correct subsequent film source, Until all film sources detection in video film source library to be detected and amendment are finished, ensure the accurate knowledge of videoscanning mode Not, satisfaction of users is promoted.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step can be used General computing device realizes that they can concentrate on single computing device or be distributed in multiple computing device institutes On the network of composition, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by them It is stored in computer storage media (ROM/RAM, magnetic disc, CD) and is performed by computing device, and in some cases, it can With the steps shown or described are performed in an order that is different from the one herein or they are fabricated to each integrated circuit die respectively Multiple modules in them or step are fabricated to single integrated circuit module to realize by block.So the present invention does not limit It is combined in any specific hardware and software.
A kind of display interface zoom control device and the terminal comprising the device are provided in the present embodiment, user is operating During the device, the zoom operations to display screen can be realized by the input finger print information of finger print acquisition module 91, after scaling Display interface is more advantageous to user and carries out one-handed performance, and it is inconvenient to solve user's one-handed performance caused by display screen is excessive The problem of, user experience is promoted, conducive to the popularization and application of product.
The above content is combine specific embodiment further description made for the present invention, it is impossible to assert this hair Bright specific implementation is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, it is not taking off Under the premise of from present inventive concept, several simple deduction or replace can also be made, should all be considered as belonging to the protection of the present invention Range.

Claims (10)

1. a kind of videoscanning mode detection method, including:
Picture frame is extracted from video code flow to be detected;
Top field picture and bottom field picture to described image frame carry out reciprocal cross fault and manage to obtain top field picture frame and bottom figure respectively As frame;
Calculate the difference value between the top field picture frame and bottom field picture frame;
The difference value and default discrepancy threshold are compared, the scanning side of the video code flow is determined according to comparison result Formula.
2. videoscanning mode detection method as described in claim 1, which is characterized in that calculate the top field picture frame and bottom Difference value between field picture frame includes:
It calculates the conduct of the sum of brightness value difference between the top field picture frame and bottom field picture frame same position pixel and states top field Difference value between picture frame and bottom field picture frame;
Or,
Calculate the conduct of the sum of the difference of color saturation between the top field picture frame and bottom field picture frame same position pixel State the difference value between top field picture frame and bottom field picture frame;
Or
The sum of brightness value difference between the top field picture frame and bottom field picture frame same position pixel is calculated, and described in calculating Push up the sum of difference of color saturation between field picture frame and bottom field picture frame same position pixel;
The integrated value of the sum of the sum of described brightness value difference and the color saturation difference is calculated as the top field picture frame and bottom Difference value between field picture frame.
3. videoscanning mode detection method as claimed in claim 1 or 2, which is characterized in that by the difference value with presetting Discrepancy threshold is compared, and the scan mode for determining the video code flow according to comparison result includes:
The difference value and default discrepancy threshold are compared, such as larger than described default discrepancy threshold determines the video codes The scan mode of stream is interlacing scan;Otherwise, it determines the scan mode of the video code flow is progressive scan.
4. videoscanning mode detection method as claimed in claim 1 or 2, which is characterized in that from video code flow to be detected It is middle extraction picture frame be:Continuous N number of picture frame is extracted from video code flow to be detected, the N is more than or equal to 2;
The scan mode for determining the video code flow according to comparison result includes:
If the difference value between the top field picture frame of N number of picture frame and bottom field picture frame is both greater than the default difference threshold Value, the scan mode for determining the video code flow are interlacing scan;Otherwise, it determines the scan mode of the video code flow is line by line Scanning.
5. a kind of video broadcasting method, including:
Pass through such as scanning of claim 1-4 any one of them videoscanning mode detection method to video code flow to be played Mode is determined;
The switch of reciprocal cross mistake processing module is controlled in the video code flow playing process according to determining scan mode.
6. video broadcasting method as claimed in claim 5, which is characterized in that the video is controlled according to determining scan mode Code stream switch of reciprocal cross mistake processing module in playing process includes:
Determine the video code flow scan mode be interlacing scan when, controlled in playing process in the video code flow described in Reciprocal cross mistake processing module is opened;
When determining the scan mode of the video code flow as progressive scan, controlled in playing process in the video code flow described in Reciprocal cross mistake processing module is closed.
7. a kind of videoscanning mode correcting method, including:
Pass through such as scanning of claim 1-4 any one of them videoscanning mode detection method to video code flow to be detected Mode is determined;
Judge whether scan mode and the determining scan mode of the video code flow mark are consistent, if not, by the video codes The scan mode of traffic identifier is updated to the scan mode determined.
8. a kind of videoscanning mode detection device, including:
Image frame extraction module, for extracting picture frame from video code flow to be detected;
Reciprocal cross mistake processing module carries out reciprocal cross fault for the top field picture to described image frame and bottom field picture and manages to obtain respectively Push up field picture frame and bottom field picture frame;
Computing module, for calculating the difference value between the top field picture frame and bottom field picture frame;
For the difference value and default discrepancy threshold to be compared, the video is determined according to comparison result for analysis module The scan mode of code stream.
9. a kind of video play device, which is characterized in that including control module and videoscanning mode as claimed in claim 8 Detection device;
The videoscanning mode detection device is used to be determined the scan mode of video code flow to be played;
The scan mode that the control module is used to be determined according to the videoscanning mode detection device is in the video code flow The switch of the reciprocal cross mistake processing module is controlled in playing process.
10. a kind of videoscanning mode correcting device, which is characterized in that including update module and as claimed in claim 8 Videoscanning mode detection device;
The videoscanning mode detection device is used to be determined the scan mode of video code flow to be detected;
The update module is used to judge the scan mode of the video code flow mark and the videoscanning mode detection device Whether determining scan mode is consistent, if not, the scan mode that the video code flow is identified is updated to the scanning side determined Formula.
CN201611093587.0A 2016-12-01 2016-12-01 Video scanning mode detection and correction method, video playing method and device Active CN108134938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611093587.0A CN108134938B (en) 2016-12-01 2016-12-01 Video scanning mode detection and correction method, video playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611093587.0A CN108134938B (en) 2016-12-01 2016-12-01 Video scanning mode detection and correction method, video playing method and device

Publications (2)

Publication Number Publication Date
CN108134938A true CN108134938A (en) 2018-06-08
CN108134938B CN108134938B (en) 2021-08-06

Family

ID=62388203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611093587.0A Active CN108134938B (en) 2016-12-01 2016-12-01 Video scanning mode detection and correction method, video playing method and device

Country Status (1)

Country Link
CN (1) CN108134938B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885335A (en) * 2020-06-19 2020-11-03 成都东方盛行电子有限责任公司 Ultrahigh-definition down-conversion rendering method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585456A (en) * 2003-08-20 2005-02-23 上海乐金广电电子有限公司 Scanning mode converting method for TV-set
CN101159838A (en) * 2007-11-14 2008-04-09 北京华纬讯电信技术有限公司 Method of improving video image display quality using separation processing
US20090016618A1 (en) * 2007-07-11 2009-01-15 Samsung Electronics Co., Ltd. System and method for detecting scrolling text in mixed mode film and video
US20090219439A1 (en) * 2008-02-28 2009-09-03 Graham Sellers System and Method of Deinterlacing Interlaced Video Signals to Produce Progressive Video Signals
CN102104712A (en) * 2009-12-22 2011-06-22 华为终端有限公司 Video data processing method, central processing unit and terminal
CN103563354A (en) * 2011-04-11 2014-02-05 英特尔公司 Detecting video formats
US20140307790A1 (en) * 2011-11-02 2014-10-16 Nec Corporation Video encoding device, video decoding device, video encoding method, video decoding method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585456A (en) * 2003-08-20 2005-02-23 上海乐金广电电子有限公司 Scanning mode converting method for TV-set
US20090016618A1 (en) * 2007-07-11 2009-01-15 Samsung Electronics Co., Ltd. System and method for detecting scrolling text in mixed mode film and video
CN101159838A (en) * 2007-11-14 2008-04-09 北京华纬讯电信技术有限公司 Method of improving video image display quality using separation processing
US20090219439A1 (en) * 2008-02-28 2009-09-03 Graham Sellers System and Method of Deinterlacing Interlaced Video Signals to Produce Progressive Video Signals
CN102104712A (en) * 2009-12-22 2011-06-22 华为终端有限公司 Video data processing method, central processing unit and terminal
CN103563354A (en) * 2011-04-11 2014-02-05 英特尔公司 Detecting video formats
US20140307790A1 (en) * 2011-11-02 2014-10-16 Nec Corporation Video encoding device, video decoding device, video encoding method, video decoding method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885335A (en) * 2020-06-19 2020-11-03 成都东方盛行电子有限责任公司 Ultrahigh-definition down-conversion rendering method

Also Published As

Publication number Publication date
CN108134938B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
KR102004637B1 (en) Segment detection of video programs
TWI555392B (en) Systems and methods for generating scene-stabilized metadata
TWI375469B (en) A method and apparatus for decoding/encoding a video signal
CN103841389B (en) A kind of video broadcasting method and player
CA2903898C (en) Decoding and display delay error correction in a spliced video when pictures have been discarded
US20160100161A1 (en) Decoder, encoder, decoding method, encoding method, and codec system
CN111327959A (en) Video frame insertion method and related device
EP2713620B1 (en) Video decoding apparatus
US20140056354A1 (en) Video processing apparatus and method
CN104717509B (en) A kind of video encoding/decoding method and device
US9386326B2 (en) Video decoding error concealment techniques
CN106470291A (en) Recover in the interruption in time synchronized from audio/video decoder
CN116170650A (en) Video frame inserting method and device
CN108134938A (en) Videoscanning mode detects, correcting method and video broadcasting method and device
CN103530895A (en) Method and device for detecting mosaic
CN102695052A (en) Image processing device, image processing method, and program
KR20120019872A (en) A apparatus generating interpolated frames
CN105872667A (en) Method for playing advertisement by smart terminal and the smart terminal
CN103139524B (en) Method for optimizing video and messaging device
CN112584093A (en) Video data processing method and device, terminal equipment and storage medium
CN109819343A (en) A kind of method for processing caption, device and electronic equipment
CN116958331B (en) Sound and picture synchronization adjusting method and device and electronic equipment
CN101572816A (en) Video processing method and film mode detection method
WO2023198144A1 (en) Inter-frame prediction method and terminal
CN114679620A (en) Video playing method and device with alpha channel and electronic equipment

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