CN111866432B - Non-frame-coding rate conversion method in field mode - Google Patents

Non-frame-coding rate conversion method in field mode Download PDF

Info

Publication number
CN111866432B
CN111866432B CN202010564370.3A CN202010564370A CN111866432B CN 111866432 B CN111866432 B CN 111866432B CN 202010564370 A CN202010564370 A CN 202010564370A CN 111866432 B CN111866432 B CN 111866432B
Authority
CN
China
Prior art keywords
field
target
calculating
refno1
frame
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
CN202010564370.3A
Other languages
Chinese (zh)
Other versions
CN111866432A (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.)
Chengdu Dongfangshengxing Electronics Co ltd
Original Assignee
Chengdu Dongfangshengxing Electronics 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 Chengdu Dongfangshengxing Electronics Co ltd filed Critical Chengdu Dongfangshengxing Electronics Co ltd
Priority to CN202010564370.3A priority Critical patent/CN111866432B/en
Publication of CN111866432A publication Critical patent/CN111866432A/en
Application granted granted Critical
Publication of CN111866432B publication Critical patent/CN111866432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0127Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter

Abstract

The invention discloses a non-frame-coding rate conversion method in a field mode, which comprises the following steps: acquiring frame rate files of a source video and a target video; the nth frame of the target video is calculated. When a non-program is edited in a video, a file is shot by a mobile phone, a camera and an unmanned aerial vehicle, the shot file format comprises 25 frames, 30 frames, 60 frames and the like, and the non-program has low efficiency and unsmooth picture when files with various frame rates are edited. And the conversion efficiency is improved by respectively calculating the top field and the bottom field of the target frame.

Description

Non-frame-coding rate conversion method in field mode
Technical Field
The invention relates to the field of high-definition processing, in particular to a non-coding frame rate conversion method in a field mode.
Background
The field concept is originally applied to televisions, which cannot display one frame of image on a screen simultaneously within the refresh time specified by the formula due to overcoming the limitation of signal frequency bandwidth, but can display the image in two half-frames, one image after the other, and the image cannot be seen by naked eyes due to the high refresh speed. The common television adopts an interlaced scanning mode. The interlaced scanning method divides a frame of television picture into two times of scanning of odd field and even field. Sweeping out an odd field consisting of all odd lines of 1, 3, 5, 7 … and the like for the first time, and sweeping out an even field consisting of all even lines of 2, 4, 6, 8 … and the like for the second time; the even field should be the top field and the odd field should be the bottom field. Thus, each image is scanned over two fields and all pixels are scanned.
In the prior art, when a non-edited video is edited, a file is shot by a mobile phone, a file is shot by a video camera, a file is shot by an unmanned aerial vehicle, the shot file formats include 25 frames, 30 frames, 60 frames and the like, and when the non-edited video is edited, the problems of low efficiency, unsmooth picture and the like exist.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a non-frame-rate conversion method in a field mode.
The invention aims to be realized by the following technical scheme: a non-frame-rate conversion method in field mode includes the following steps:
s1, acquiring frame rate files of the source video and the target video;
s2, converting the nth frame of the target video;
wherein the step S2 includes top field frame rate conversion and bottom field frame rate conversion.
The step S2 of converting the top frame rate of the target frame includes the following sub-steps:
s2011, calculating the sequence numbers of two to-be-referenced fields of the top field, wherein the sequence numbers of the two to-be-referenced fields are marked as RefNo1 and RefNo 2;
s2012, calculating the weight of the RefNo1 field;
s2013, judging whether the RefNo1 field is a bottom field; if yes, executing step S2014, otherwise, executing step S2015;
s2014, converting the RefNo1 field data SrcField1 into a top field to obtain SrcField 1', and calculating a target top field pixel value, wherein the specific calculation formula is as follows:
DstField1=R1*SrcField1’+(1-R1)*SrcField2;
s2015, converting the RefNo2 field data SrcField2 into a top field to obtain SrcField 2', and calculating a target top field pixel value, wherein a specific calculation formula is as follows:
DstField1=R1*SrcField1+(1-R1)*SrcField2’;
wherein the DstField1 represents a target top field pixel value; r1 represents the weight of the RefNo1 field.
The step S2 of converting the bottom field frame rate of the target frame includes the following sub-steps:
s2021, calculating sequence numbers of two field to-be-referenced fields of the bottom field, wherein the sequence numbers of the two field to-be-referenced fields are recorded as RefNo3 and RefNo 4;
s2022, calculating the weight of the RefNo3 field;
s2023, judging whether the RefNo3 field is a bottom field; if yes, go to step S2024, otherwise go to step S2025;
s2024, converting the RefNo4 field data SrcField4 into a bottom field to obtain SrcField 4', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3+(1-R2)*SrcField4’;
s2025, converting the RefNo3 field data SrcField3 into a bottom field to obtain SrcField 3', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3’+(1-R2)*SrcField4;
wherein the DstField2 represents a target bottom field pixel value; r2 represents the weight of the RefNo3 field.
The step S2011 specifically calculates the formula as follows:
RefNo1=floor((2*n-2)*k+1);
RefNo2=RefNo1+1;
where k represents the frame rate ratio of the target video to the source video.
The specific calculation formula of step S2012 is as follows:
R1=RefNo2-((2*n-2)*k+1)。
the step S2021 specifically calculates the formula as follows:
RefNo3=floor((2*n-1)*k+1);
RefNo4=RefNo1+1。
the step S2022 specifically calculates the formula as follows:
R2=RefNo4-((2*n-1)*k。
the invention has the beneficial effects that: according to the method, in the process of converting a source video into a target video, a target frame number conversion method in a field mode is provided, and the pixel value of a target frame can be calculated more accurately by calculating the top field and the bottom field of the target frame respectively. And the conversion efficiency is improved by respectively calculating the top field and the bottom field of the target frame to carry out frame rate conversion.
Drawings
FIG. 1 is a block diagram of the process flow of the present invention.
Detailed Description
In order to more clearly understand the technical features, objects and effects of the present invention, the embodiments of the present invention will be described with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
The specific principle flow of this embodiment is as follows:
referring to fig. 1, a method for non-frame rate conversion in field mode includes the following steps:
s1, acquiring frame rate files of the source video and the target video;
s2, converting the nth frame of the target video;
wherein the step S2 includes top field frame rate conversion and bottom field frame rate conversion.
The step S2 of converting the top frame rate of the target frame includes the following sub-steps:
s2011, calculating the sequence numbers of two to-be-referenced fields of the top field, wherein the sequence numbers of the two to-be-referenced fields are marked as RefNo1 and RefNo 2;
s2012, calculating the weight of the RefNo1 field;
s2013, judging whether the RefNo1 field is a bottom field; if yes, executing step S2014, otherwise, executing step S2015;
s2014, converting the RefNo1 field data SrcField1 into a top field to obtain SrcField 1', and calculating a target top field pixel value, wherein the specific calculation formula is as follows:
DstField1=R1*SrcField1’+(1-R1)*SrcField2;
s2015, converting the RefNo2 field data SrcField2 into a top field to obtain SrcField 2', and calculating a target top field pixel value, wherein a specific calculation formula is as follows:
DstField1=R1*SrcField1+(1-R1)*SrcField2’;
wherein the DstField1 represents a target top field pixel value; r1 represents the weight of the RefNo1 field.
The step S2 of converting the bottom field frame rate of the target frame includes the following sub-steps:
s2021, calculating sequence numbers of two field to-be-referenced fields of the bottom field, wherein the sequence numbers of the two field to-be-referenced fields are recorded as RefNo3 and RefNo 4;
s2022, calculating the weight of the RefNo3 field;
s2023, judging whether the RefNo3 field is a bottom field; if yes, go to step S2024, otherwise go to step S2025;
s2024, converting the RefNo4 field data SrcField4 into a bottom field to obtain SrcField 4', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3+(1-R2)*SrcField4’;
s2025, converting the RefNo3 field data SrcField3 into a bottom field to obtain SrcField 3', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3’+(1-R2)*SrcField4;
wherein the DstField2 represents a target bottom field pixel value; r2 represents the weight of the RefNo3 field.
The step S2011 specifically calculates the formula as follows:
RefNo1=floor((2*n-2)*k+1);
RefNo2=RefNo1+1;
where k represents the frame rate ratio of the target video to the source video.
The specific calculation formula of step S2012 is as follows:
R1=RefNo2-((2*n-2)*k+1)。
the step S2021 specifically calculates the formula as follows:
RefNo3=floor((2*n-1)*k+1);
RefNo4=RefNo1+1。
the step S2022 specifically calculates the formula as follows:
R2=RefNo4-((2*n-1)*k。
the foregoing is illustrative of the preferred embodiments of this invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and that various other combinations, modifications, and environments may be resorted to, falling within the scope of the concept as disclosed herein, either as described above or as apparent to those skilled in the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (1)

1. A method for converting a non-frame-coded rate in a field mode, comprising the steps of:
s1, acquiring frame rate files of the source video and the target video;
s2, converting the nth frame of the target video;
wherein the step S2 includes top field frame rate conversion and bottom field frame rate conversion;
the step S2 of converting the top frame rate of the target frame includes the following sub-steps:
s2011, calculating the sequence numbers of two to-be-referenced fields of the top field, wherein the sequence numbers of the two to-be-referenced fields are marked as RefNo1 and RefNo 2;
s2012, calculating the weight of the RefNo1 field;
s2013, judging whether the RefNo1 field is a bottom field; if yes, executing step S2014, otherwise, executing step S2015;
s2014, converting the RefNo1 field data SrcField1 into a top field to obtain SrcField 1', and calculating a target top field pixel value, wherein the specific calculation formula is as follows:
DstField1=R1*SrcField1’+(1-R1)*SrcField2;
s2015, converting the RefNo2 field data SrcField2 into a top field to obtain SrcField 2', and calculating a target top field pixel value, wherein a specific calculation formula is as follows:
DstField1=R1*SrcField1+(1-R1)*SrcField2’;
wherein the DstField1 represents a target top field pixel value; r1 represents the weight of the RefNo1 field;
the step S2 of converting the bottom field frame rate of the target frame includes the following sub-steps:
s2021, calculating sequence numbers of two field to-be-referenced fields of the bottom field, wherein the sequence numbers of the two field to-be-referenced fields are recorded as RefNo3 and RefNo 4;
s2022, calculating the weight of the RefNo3 field;
s2023, judging whether the RefNo3 field is a bottom field; if yes, go to step S2024, otherwise go to step S2025;
s2024, converting the RefNo4 field data SrcField4 into a bottom field to obtain SrcField 4', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3+(1-R2)*SrcField4’;
s2025, converting the RefNo3 field data SrcField3 into a bottom field to obtain SrcField 3', and calculating a target bottom field pixel value, wherein the specific calculation formula is as follows:
DstField2=R*SrcField3’+(1-R2)*SrcField4;
wherein the DstField2 represents a target bottom field pixel value; r2 represents the weight of the RefNo3 field;
the step S2011 specifically calculates the formula as follows:
RefNo1=floor((2*n-2)*k+1);
RefNo2=RefNo1+1;
wherein k represents the frame rate ratio of the target video to the source video;
the specific calculation formula of step S2012 is as follows:
R1=RefNo2-((2*n-2)*k+1);
step S2021 specifically calculates the formula as follows:
RefNo3=floor((2*n-1)*k+1);
RefNo4=RefNo1+1;
step S2022 specifically calculates the formula as follows:
R2=RefNo4-((2*n-1)*k。
CN202010564370.3A 2020-06-19 2020-06-19 Non-frame-coding rate conversion method in field mode Active CN111866432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010564370.3A CN111866432B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method in field mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010564370.3A CN111866432B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method in field mode

Publications (2)

Publication Number Publication Date
CN111866432A CN111866432A (en) 2020-10-30
CN111866432B true CN111866432B (en) 2022-03-29

Family

ID=72987682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010564370.3A Active CN111866432B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method in field mode

Country Status (1)

Country Link
CN (1) CN111866432B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1260665A (en) * 1998-12-09 2000-07-19 三星电子株式会社 Receiver of synchronously displaying signals of different display form/frame rate and method thereof
WO2002015575A1 (en) * 2000-08-10 2002-02-21 Sony Corporation Video signal processing device and method
CN101246680A (en) * 2008-02-04 2008-08-20 炬力集成电路设计有限公司 Image frame rate conversion method, image zoom conversion device and equipment
EP2106136A1 (en) * 2008-03-28 2009-09-30 Sony Corporation Motion compensated temporal interpolation for frame rate conversion of video signals
CN102137252A (en) * 2011-02-28 2011-07-27 兰州大学 Vehicle-mounted virtual panoramic display device
CN105043283A (en) * 2015-07-08 2015-11-11 山东师范大学 Method for carrying out object deformation phase measurement by using optical flow field

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2947400B2 (en) * 1994-05-31 1999-09-13 日本ビクター株式会社 Frame frequency converter
AU5410298A (en) * 1996-12-12 1998-07-03 Matsushita Electric Industrial Co., Ltd. Picture encoder and picture decoder
CN100584026C (en) * 2006-03-27 2010-01-20 华为技术有限公司 Video layering coding method at interleaving mode
CN101090473A (en) * 2007-07-20 2007-12-19 北京华纬讯电信技术有限公司 Method for raising high clear video image display quality using linear deinterleaving process
JP5003620B2 (en) * 2008-03-11 2012-08-15 富士通株式会社 Video signal processing apparatus and video signal processing method
US8718448B2 (en) * 2011-05-04 2014-05-06 Apple Inc. Video pictures pattern detection
CN102497552B (en) * 2011-12-07 2014-07-02 北京大学 Management control method of decoding buffer zone of video bit stream containing constructed images
CN102769732B (en) * 2012-03-26 2018-06-26 新奥特(北京)视频技术有限公司 A kind of conversion method for realizing video field
CN103702128B (en) * 2013-12-24 2016-11-16 浙江工商大学 A kind of interpolation frame generating method being applied on video frame rate conversion
CN107222758A (en) * 2016-12-16 2017-09-29 深圳市万佳安物联科技股份有限公司 A kind of method for converting video frame rate and device
CN110248132B (en) * 2019-05-31 2020-12-01 成都东方盛行电子有限责任公司 Video frame rate interpolation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1260665A (en) * 1998-12-09 2000-07-19 三星电子株式会社 Receiver of synchronously displaying signals of different display form/frame rate and method thereof
WO2002015575A1 (en) * 2000-08-10 2002-02-21 Sony Corporation Video signal processing device and method
CN101246680A (en) * 2008-02-04 2008-08-20 炬力集成电路设计有限公司 Image frame rate conversion method, image zoom conversion device and equipment
EP2106136A1 (en) * 2008-03-28 2009-09-30 Sony Corporation Motion compensated temporal interpolation for frame rate conversion of video signals
CN102137252A (en) * 2011-02-28 2011-07-27 兰州大学 Vehicle-mounted virtual panoramic display device
CN105043283A (en) * 2015-07-08 2015-11-11 山东师范大学 Method for carrying out object deformation phase measurement by using optical flow field

Also Published As

Publication number Publication date
CN111866432A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN101663885B (en) Image processing device and method, and image display device and method
US20030086498A1 (en) Apparatus and method of converting frame and/or field rate using adaptive motion compensation
CN102045506B (en) Image processing apparatus and image processing method
EP3872744A1 (en) Method and apparatus for obtaining sample image set
CA2139416A1 (en) Motion compensated video processing
US7295245B2 (en) Method and apparatus for converting frame rate using time shifting and motion compensation
US20090153739A1 (en) Method and Apparatus for a Noise Filter for Reducing Noise in a Image or Video
US7679676B2 (en) Spatial signal conversion
CN1914660A (en) Image motion compensation arrangement and method therefor
CN110166798B (en) Down-conversion method and device based on 4K HDR editing
CN111866432B (en) Non-frame-coding rate conversion method in field mode
JP2009164725A (en) Image recording device and image reproduction device
EP1151606B1 (en) Classified adaptive spatio-temporal format conversion method and apparatus
US5430489A (en) Video to film conversion
US8391372B2 (en) Method of doubling frame rate of video signals
US7672914B2 (en) Apparatus and method for generating coefficient data, apparatus and method for generating coefficient-seed data, information-signal processing apparatus, program, and medium having recorded the program thereon
CN111885337B (en) Multi-frame-rate video efficient editing method
JP4310689B2 (en) Signal processing apparatus and method, recording medium, and program
JPH10155139A (en) Image processor and image processing method
JP2005184693A (en) Image signal processing apparatus
KR20080046541A (en) Apparatus and method for deinterlacing
KR101028449B1 (en) Method and apparatus for resizing image
KR102242334B1 (en) Method and Device for High Resolution Video Frame Rate Conversion with Data Augmentation
CN108377353B (en) Video processing method applied to embedded system
KR20060132877A (en) Method and apparatus for deinterlacing of video using motion compensated temporal interpolation

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