CN111885336B - Non-frame-coding rate conversion method under frame mode - Google Patents

Non-frame-coding rate conversion method under frame mode Download PDF

Info

Publication number
CN111885336B
CN111885336B CN202010564820.9A CN202010564820A CN111885336B CN 111885336 B CN111885336 B CN 111885336B CN 202010564820 A CN202010564820 A CN 202010564820A CN 111885336 B CN111885336 B CN 111885336B
Authority
CN
China
Prior art keywords
frame
target
calculating
refno1
weight
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
CN202010564820.9A
Other languages
Chinese (zh)
Other versions
CN111885336A (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 CN202010564820.9A priority Critical patent/CN111885336B/en
Publication of CN111885336A publication Critical patent/CN111885336A/en
Application granted granted Critical
Publication of CN111885336B publication Critical patent/CN111885336B/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 under a frame mode, which comprises the following steps: collecting source video file information and target video file information; calculating the nth frame of the target; wherein the calculating the target nth frame comprises the following substeps: calculating the sequence numbers of two frames to be referred of the target frame, and respectively marking as RefNo1 and RefNo 2; calculating the weight of the RefNo1 frame; the target frame is calculated by taking the reference frame number and the weight. According to the method, in the process of converting a source video into a target video, a target frame number calculating method in a frame mode is provided, two frames and weight of a frame to be referred are calculated, the target frame is calculated, conversion efficiency is improved, and the problem that the conversion rate of the conventional frame mode is low is solved.

Description

Non-frame-coding rate conversion method under frame 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 frame mode.
Background
Data is transmitted du over the network in very small units known as frames (frames) of bai, which are composed of several parts, different parts performing different functions. The frames are shaped by a special software called network driver and then sent via a network card onto the network cable, through the network cable to their destination machine, the reverse process being performed at one end of the destination machine. The ethernet card of the receiving end machine captures these frames and tells the operating system that the frame has arrived and then stores it. It is during this transmission and reception that the sniffer may cause security problems. The "frame" data consists of two parts: frame header and frame data. The header includes the location of the physical address of the recipient host and other network information. The frame data region contains a data volume. To ensure that the computers can interpret the data in the data frame, the two computers use a common communication protocol. The communication protocol used by the internet is called IP for short, i.e. internet protocol. The IP data body consists of two parts: a data body header and a data area of the data body. The data body header includes an IP source address and an IP destination address, as well as other information. The data area of the data body includes User Data Protocol (UDP), Transmission Control Protocol (TCP), and other information of the data packet. These data packets contain additional process information as well as actual data.
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-coding rate conversion method in a frame mode.
The invention aims to be realized by the following technical scheme: a non-frame-rate conversion method under a frame mode comprises the following steps:
s1, collecting source video file information and target video file information;
s2, performing frame rate conversion on the nth frame of the target;
wherein the step S2 includes the following substeps:
s201, calculating the sequence numbers of two frames to be referred to of the target frame, and respectively marking as RefNo1 and RefNo 2;
s202, calculating the weight of a RefNo1 frame;
s203, obtaining the serial number of the reference frame and the weight obtained in the step S202 through the step S201, and calculating a target frame;
and S204, performing frame rate conversion on the target frame.
In step S201, the sequence numbers of two frames to be referred to of the target frame are calculated by the following specific calculation formula:
RefNo1=floor((n-1)*k+1);
RefNo2=RefNo1+1;
the specific calculation formula of step S202 is:
R=RefNo2-((n-1)*k+1);
where k represents the multiple of the target video as the source video.
The step S203 specifically includes the following substeps:
s2031, collecting frame information of the two frame serial numbers RefNo1 and RefNo2 obtained by calculation in the step S201, wherein the collected information is SrcFrame1 and SrcFrame2 respectively;
s2032, calculating the target frame by the two frame numbers and the weight of the RefNo1 frame, wherein the specific calculation formula is as follows:
DstFrame=R*SrcFrame1+(1-R)*SrcFrame2;
where DsrFrame represents the target frame and R represents the weight of the RefNo1 th frame.
A frame mode frame number calculation system, comprising: an acquisition module: acquiring information of a source video and a target frame video; a data processing module: processing the data information obtained by the acquisition module and calculating a target frame; a conversion module: and converting the number of the source video frames into the number of the target video frames by receiving the data information obtained by the data processing module.
The data processing module comprises the following sub-modules: a frame number calculation module: the frame sequence number calculating device is used for calculating the sequence numbers of two frames to be referred of a target frame; a weight calculation module: calculating the weight of the serial number of the frame to be referred calculated by the frame serial number calculating module; a target frame calculation module: and calculating the target frame through the frame number to be referred obtained by the frame number calculating module and the weight obtained by the weight calculating module.
A frame mode frame number calculation terminal device, the terminal device includes: one or more processors; storage means for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a non-frame rate conversion method in a frame mode.
A frame mode frame number computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a non-frame rate conversion method in a frame mode.
The invention has the beneficial effects that: in the process of converting a source video into a target video, the scheme provides a non-frame-coding rate conversion method in a frame mode, calculates two frames and weight of a frame to be referenced, converts the frame rate by calculating the target frame, improves the conversion efficiency, and solves the problem that the rate of frame rate conversion in the conventional frame mode is low.
Drawings
FIG. 1 is a block flow diagram of the method of the present invention;
FIG. 2 is a flowchart of the step S2 method 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.
Referring to fig. 1, a method for non-frame rate conversion in frame mode includes the following steps:
s1, collecting source video file information and target video file information;
s2, performing frame rate conversion on the nth frame of the target;
as shown in fig. 2, the step S2 includes the following sub-steps:
s201, calculating the sequence numbers of two frames to be referred to of the target frame, and respectively marking as RefNo1 and RefNo 2;
s202, calculating the weight of a RefNo1 frame;
s203, obtaining the serial number of the reference frame and the weight obtained in the step S202 through the step S201, and calculating a target frame;
and S204, performing frame rate conversion on the target frame.
In step S201, the sequence numbers of two frames to be referred to of the target frame are calculated by the following specific calculation formula:
RefNo1=floor((n-1)*k+1);
RefNo2=RefNo1+1;
the specific calculation formula of step S202 is:
R=RefNo2-((n-1)*k+1);
where k represents the multiple of the target video as the source video.
The step S203 specifically includes the following substeps:
s2031, collecting frame information of the two frame serial numbers RefNo1 and RefNo2 obtained by calculation in the step S201, wherein the collected information is SrcFrame1 and SrcFrame2 respectively;
s2032, calculating the target frame by the two frame numbers and the weight of the RefNo1 frame, wherein the specific calculation formula is as follows:
DstFrame=R*SrcFrame1+(1-R)*SrcFrame2;
where DsrFrame represents the target frame and R represents the weight of the RefNo1 th frame.
A frame mode frame number calculation system, comprising: an acquisition module: acquiring information of a source video and a target frame video; a data processing module: processing the data information obtained by the acquisition module and calculating a target frame; a conversion module: and converting the number of the source video frames into the number of the target video frames by receiving the data information obtained by the data processing module.
The data processing module comprises the following sub-modules: a frame number calculation module: the frame sequence number calculating device is used for calculating the sequence numbers of two frames to be referred of a target frame; a weight calculation module: calculating the weight of the serial number of the frame to be referred calculated by the frame serial number calculating module; a target frame calculation module: and calculating the target frame through the frame number to be referred obtained by the frame number calculating module and the weight obtained by the weight calculating module.
A frame mode frame number calculation terminal device, the terminal device includes: one or more processors; storage means for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a non-frame rate conversion method in a frame mode.
A frame mode frame number computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a non-frame rate conversion method in a frame mode.
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 non-frame-rate conversion method under a frame mode is characterized by comprising the following steps:
s1, collecting source video file information and target video file information;
s2, performing frame rate conversion on the nth frame of the target;
wherein the step S2 includes the following substeps:
s201, calculating the sequence numbers of two frames to be referred to of the target frame, and respectively marking as RefNo1 and RefNo 2;
s202, calculating the weight of a RefNo1 frame;
s203, obtaining the serial number of the frame to be referred to and the weight obtained in the step S202 through the step S201, and calculating a target frame;
s204, performing frame rate conversion on the target frame;
step S201 calculates the serial numbers of two frames to be referenced of the target frame, and the specific calculation formula is:
RefNo1=floor((n-1)*k+1);
RefNo2=RefNo1+1;
wherein k represents the frame rate ratio of the target video frame rate and the source video frame rate;
the specific calculation formula of step S202 is:
R=RefNo2-((n-1)*k+1);
wherein, the ratio of the frame rate of the target video frame rate and the frame rate of the source video frame rate, and R represents the weight of the RefNo1 frame;
step S203 specifically includes the following substeps:
s2031, collecting frame information of the two frame serial numbers RefNo1 and RefNo2 obtained by calculation in the step S201, wherein the collected information is SrcFrame1 and SrcFrame2 respectively;
s2032, calculating the target frame by the two frame numbers and the weight of the RefNo1 frame, wherein the specific calculation formula is as follows:
DstFrame=R*SrcFrame1+(1-R)*SrcFrame2;
where DsrFrame represents the target frame and R represents the weight of the RefNo1 th frame.
CN202010564820.9A 2020-06-19 2020-06-19 Non-frame-coding rate conversion method under frame mode Active CN111885336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010564820.9A CN111885336B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method under frame mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010564820.9A CN111885336B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method under frame mode

Publications (2)

Publication Number Publication Date
CN111885336A CN111885336A (en) 2020-11-03
CN111885336B true CN111885336B (en) 2022-03-29

Family

ID=73157271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010564820.9A Active CN111885336B (en) 2020-06-19 2020-06-19 Non-frame-coding rate conversion method under frame mode

Country Status (1)

Country Link
CN (1) CN111885336B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227928A (en) * 2007-03-13 2008-09-25 Sanyo Electric Co Ltd Frame rate converter and video display device
CN105578207A (en) * 2015-12-18 2016-05-11 无锡天脉聚源传媒科技有限公司 Video frame rate conversion method and device
CN105828106A (en) * 2016-04-15 2016-08-03 山东大学苏州研究院 Non-integral multiple frame rate improving method based on motion information
CN107222758A (en) * 2016-12-16 2017-09-29 深圳市万佳安物联科技股份有限公司 A kind of method for converting video frame rate and device
CN111263193A (en) * 2020-01-21 2020-06-09 北京三体云联科技有限公司 Video frame up-down sampling method and device, and video live broadcasting method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266150B2 (en) * 2001-07-11 2007-09-04 Dolby Laboratories, Inc. Interpolation of video compression frames
CN105282547B (en) * 2014-07-03 2019-06-25 深圳市腾讯计算机系统有限公司 A kind of bit rate control method and device of Video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227928A (en) * 2007-03-13 2008-09-25 Sanyo Electric Co Ltd Frame rate converter and video display device
CN105578207A (en) * 2015-12-18 2016-05-11 无锡天脉聚源传媒科技有限公司 Video frame rate conversion method and device
CN105828106A (en) * 2016-04-15 2016-08-03 山东大学苏州研究院 Non-integral multiple frame rate improving method based on motion information
CN107222758A (en) * 2016-12-16 2017-09-29 深圳市万佳安物联科技股份有限公司 A kind of method for converting video frame rate and device
CN111263193A (en) * 2020-01-21 2020-06-09 北京三体云联科技有限公司 Video frame up-down sampling method and device, and video live broadcasting method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
帧速率上变换算法研究;任政;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130715;全文 *

Also Published As

Publication number Publication date
CN111885336A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US20210360004A1 (en) Detection of malware and malicious applications
WO2021000874A1 (en) Service flow identification method and apparatus, and model generation method and apparatus
CN107483370B (en) Method for transmitting IP and CAN service on FC network
CN102468987B (en) NetFlow characteristic vector extraction method
US20060271680A1 (en) Method For Transmitting Window Probe Packets
CN103024598A (en) Device and method for acquiring network video playing fluency
US9848067B2 (en) Managing sequence values with added headers in computing devices
CN110011935A (en) Data flow processing method and relevant device
CN103327129B (en) For the domain name analytic method of more WAN mouthfuls of gateway devices
CN113452676A (en) Detector allocation method and Internet of things detection system
CN110233856B (en) Message processing method and device and computer readable storage medium
EP2933963A1 (en) Offload method, device and system
CN111885336B (en) Non-frame-coding rate conversion method under frame mode
CN110691007A (en) Method for accurately measuring QUIC connection packet loss rate
CN102917212A (en) 3G (The 3rd Generation Telecommunication) wireless video monitoring implementation method and 3G wireless video monitoring system based on RTP (Real Time Protocol) and RTSP (Real Time Streaming Protocol)
CN115913473B (en) Data selective retransmission method and system, storage medium and electronic equipment thereof
CN109951458B (en) RapidIO/FC protocol conversion system and method applied to simulation ICP environment
CN109756498B (en) NAT ALG conversion method and system of TCP protocol on communication equipment
CN108462590A (en) The monitoring method and device of network flow, terminal
CN114422425B (en) Method, system, device and storage medium for transmitting multilink aggregated data
US9264939B2 (en) Communication over a wireless connection
CN110690980A (en) Sending algorithm of market data
CN114598675A (en) Control method, device, equipment and medium for realizing host blocking based on ARP
CN109379342B (en) UDP network protocol-based upper computer and DSP data transmission method
CN103348740A (en) Access processing method, apparatus and system

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