CN118018668A - Video data transmission method, device, equipment and storage medium - Google Patents
Video data transmission method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN118018668A CN118018668A CN202410209763.0A CN202410209763A CN118018668A CN 118018668 A CN118018668 A CN 118018668A CN 202410209763 A CN202410209763 A CN 202410209763A CN 118018668 A CN118018668 A CN 118018668A
- Authority
- CN
- China
- Prior art keywords
- video data
- clock
- blanking
- resolution
- image data
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000005540 biological transmission Effects 0.000 title claims description 34
- 238000004590 computer program Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 abstract description 13
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 14
- 230000006835 compression Effects 0.000 description 6
- 238000007906 compression Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present application relates to the field of video processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for transmitting video data. According to the method, firstly, original uncompressed video data with the resolution of a first resolution is obtained, each frame of image in the original uncompressed video data is in a YUV422 format, secondly, output parameters are configured according to the original uncompressed video data and a second resolution, image data corresponding to a target format image is adjusted based on the output parameters, so that converted image data is obtained, the target format image is any frame of image in the original uncompressed video data, and finally, the converted image data is output.
Description
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for transmitting video data.
Background
As the popularity of high definition video content and the demand of users for high quality video increases, the demand for high speed transmission also becomes more and more stringent. User expectations for high definition video are not only reflected in image quality, but also include fast loading speed, seamless playback experience, and minimal buffering time. This requires that the network transport speed be fast enough to support instant play and high quality streaming media experience.
However, at present, video is transmitted by adopting a compression coding mode, the compression coding not only can bring different degrees of loss to video information, but also needs to store multi-frame images when in compression and decompression, and the process is long. Particularly, in the case that the chip can only output low resolution and the resolution of the video source is high, resolution conversion is required in the decoding process, which increases the computational complexity of decoding and requires more time. This situation is to be further improved.
Disclosure of Invention
In order to solve the problem of long time consumption for resolution switching in the video transmission process, the application provides a video data transmission method, a device, equipment and a storage medium, which adopt the following technical scheme:
In a first aspect, the present application provides a method for transmitting video data, including:
Acquiring original uncompressed video data with a first resolution, wherein each frame of image in the original uncompressed video data is in a YUV422 format;
Configuring output parameters according to the original non-compressed video data and the second resolution;
Adjusting image data corresponding to a target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in the original non-compressed video data;
outputting the converted image data.
Optionally, the configuring the output parameter according to the original non-compressed video data and the second resolution includes: determining a first clock according to a frame rate, a blanking parameter and the second resolution corresponding to the original non-compressed video data; determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
The blanking parameter and the frequency dividing parameter of the PLL are configured so that the first clock and the second clock are the same.
Optionally, the determining the second clock according to the frequency division parameter of the phase-locked loop PLL corresponding to the original uncompressed video data includes:
the second clock is calculated by the formula:
FREF x(fbdiv+frac/2^24)/refdiv=clock2;
The FREF is an input reference clock of the PLL, fbdiv is an integer multiple frequency division coefficient of the PLL, frac is a fractional frequency division coefficient, refdiv is a reference clock frequency division coefficient of the PLL, and clock2 is the second clock.
Optionally, the determining the first clock according to the frame rate, the blanking parameter and the second resolution corresponding to the original uncompressed video data includes:
clock 1= (effective wide+horizontal rear blanking+horizontal front blanking)/(effective high+vertical rear blanking+vertical front blanking)/(effective high+vertical front blanking)/(frame rate);
clock1 is the first clock, the effective width and the effective height are the width and the height of the second resolution, and the horizontal rear blanking, the horizontal front blanking, the vertical rear blanking, and the vertical front blanking are display parameters.
Optionally, after the adjusting the image data corresponding to the target format image based on the output parameter to obtain the converted image data, the method further includes:
Marking the image data with a target timestamp;
and storing the image data to a designated memory area according to the target timestamp.
Optionally, the outputting the converted image data:
acquiring the image data carrying the target time stamp from the appointed memory region;
Outputting the image data based on the target timestamp.
In a second aspect, the present application provides a transmission apparatus for video data, comprising:
The acquisition module is used for acquiring original non-compressed video data with a first resolution, wherein each frame of image in the original non-compressed video data is in a YUV422 format;
the configuration module is used for configuring output parameters according to the original non-compressed video data and the second resolution;
The adjusting module is used for adjusting the image data corresponding to the target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in the original non-compressed video data;
And the output module is used for outputting the converted image data.
The configuration module is specifically configured to:
Determining a first clock according to a frame rate, a blanking parameter and the second resolution corresponding to the original non-compressed video data; determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
The blanking parameter and the frequency dividing parameter of the PLL are configured so that the first clock and the second clock are the same.
In a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above-described method of transmitting video data when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described video data transmission method.
In summary, it can be seen that in the embodiment provided by the present application, first, original uncompressed video data with a resolution of a first resolution is obtained, in order to prevent color shift of images in the original uncompressed video data, each frame of image in the original uncompressed video data is in YUV422 format; configuring output parameters according to the original non-compressed video data and the second resolution, adjusting image data corresponding to the target format image based on the output parameters to obtain converted image data, and finally outputting the converted image data, wherein the resolution of the converted image data is the second resolution; in order to facilitate video transmission, the scheme of the application adopts a non-compression mode to carry out data transmission, and omits the processes of encoding and decoding; because the time of encoding and decoding is not involved, the method can respond to the request of resolution switching more quickly, reduces processing steps when the resolution switching is needed, only needs to determine output parameters, and converts image data based on the output parameters, thereby being beneficial to solving the problem of long time consumption of the resolution switching in the video transmission process.
Drawings
Fig. 1 is a schematic diagram of a virtual structure of a chip according to an embodiment of the present application;
fig. 2 is a flowchart of a method for transmitting video data according to an embodiment of the present application;
fig. 3 is a YUV422 format image and a YUV420 format image provided by an embodiment of the present application;
Fig. 4 is a schematic diagram of a virtual structure of a video data transmission device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of an embodiment of a computer readable storage medium according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure is intended to encompass any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
As shown in fig. 1, fig. 1 is a schematic diagram of a virtual structure of a chip according to an embodiment of the present application, where the chip 100 includes: VI video input, VPSS video processing, VO video output. And the VI stores the received data into a designated memory area, and in the process, the VI can process the received original video image data to realize the acquisition of the video image data. VPSS performs a series of processes, such as image enhancement, sharpening, etc., on the video image data, and homologously outputs multiple paths of image data of different resolutions. The VO actively reads the video and graphic data from the corresponding position of the memory, and outputs the video and graphic through the corresponding display device.
The method for transmitting video data according to the embodiment of the present application is described below from the perspective of a device for transmitting video data, where the device for transmitting video data may be a server, or may be a service module in the server, and is not specifically limited.
Referring to fig. 2, fig. 2 is a flowchart of a method for transmitting video data according to an embodiment of the present application, where the method includes the following steps:
s10, acquiring original uncompressed video data with a first resolution, wherein each frame of image in the original uncompressed video data is in a YUV422 format;
In this embodiment, the video data transmission device may acquire original non-compressed video data with a resolution of a first resolution, where each frame image in the original non-compressed video data is in YUV422 format; the method of acquiring the original uncompressed video data of the first resolution is not particularly limited, and may be, for example, acquiring the original uncompressed video data of the first resolution from a device that generates the original uncompressed video data of the first resolution according to an operation instruction of a user, or may be, of course, triggered to transmit the original uncompressed video data to a transmission device of the video data by other means, for example, after other devices generate the original uncompressed video data of the first resolution.
It should be noted that, in order to prevent the color shift of the image in the original uncompressed video data, each frame of image in the original uncompressed video data is in YUV422 format. For ease of understanding, the YUV422 format image is described below in conjunction with fig. 3:
As shown in fig. 3, fig. 3 is a YUV422 format image and a YUV420 format image provided in an embodiment of the present application. 301 in fig. 3 is a YUV422 format image, and 302 in fig. 3 is a YUV420 format image. Among them, YUV420 is a format of color sub-sampling in which resolution of luminance (Y) components is highest and resolution of chrominance (U and V) components is lower, which may lead to degradation of color resolution in some cases. YUV422 provides higher chroma resolution, sharing one chroma sample per two pixels. This format has less loss of color information than YUV 420. The problem of color shift can be reduced to a certain extent by selecting YUV422, and particularly, for application scenes with high requirements on color accuracy, it is to be noted that video is a dynamic visual presentation composed of continuous image frames (frames). Video may be rendered as a continuous visual animation by rapidly playing a series of image frames in a certain order. Thus, the image is static, while the video is dynamic. Video can be seen as a series of sequential changes in time, each image frame can be seen as an independent image, but their sequential playback enables us to perceive the motion and changes of visual content.
S20, configuring output parameters according to the original non-compressed video data and the second resolution;
In this embodiment, after the transmission device of video data obtains the original uncompressed video data with the resolution of the first resolution, the transmission device of video data may configure the output parameters according to the original uncompressed video data and the second resolution. The first resolution and the second resolution are typically in pixels, for example, the second resolution is 1920x1920, representing a width of 1920 pixels, and a height of 1920 pixels.
When the color format of the original uncompressed video data is YUV422 format, in order to ensure the consistency of the format of the converted video data and the original video data during video resolution conversion, the transmission device of the video data can configure output parameters according to the original uncompressed video data and the second resolution, and then adjust the original uncompressed video data according to the configured output parameters.
In one embodiment, a transmission apparatus for video data configures output parameters according to original non-compressed video data and a second resolution includes:
determining a first clock according to a frame rate, a blanking parameter and a second resolution corresponding to the original non-compressed video data;
determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
the blanking parameter and the frequency dividing parameter of the PLL are configured such that the first clock is identical to the second clock.
In this embodiment, first, the first clock is determined according to a frame rate corresponding to the original non-compressed video data (the frame rate refers to a frame number displayed per second, a common frame rate includes 30 frames per second (fps) or 60 frames per second), a blanking parameter, and a second resolution, and specifically, the transmission device of the video data may determine the first clock according to the frame rate corresponding to the original non-compressed video data, the blanking parameter, and the second resolution by the following formula:
clock 1= (effective wide+horizontal rear blanking+horizontal front blanking)/(effective high+vertical rear blanking+vertical front blanking)/(effective high+vertical front blanking)/(frame rate);
Wherein clock1 is the first clock, the effective width and the effective height are the width and the height of the second resolution, and the horizontal rear blanking, the horizontal front blanking, the vertical rear blanking and the vertical front blanking are the display parameters. It will be appreciated that when the second resolution is 1920×1920, the effective width of the output in this scheme is 1920, and the effective height is 1920, and the blanking parameter is configured based thereon. Next, a frame rate corresponding to the original uncompressed video data is determined, and then, horizontal rear blanking, horizontal front blanking, vertical rear blanking, and vertical front blanking are determined. Horizontal blanking and vertical blanking are described below: the horizontal blanking includes a horizontal post blanking and a horizontal pre blanking, wherein the horizontal post blanking (Horizontal Back Porch): at the end of each line of images, the time after the end of the horizontal synchronization signal until the start of the next line of images. Horizontal front blanking (Horizontal Front Porch): at the beginning of each line of images, the time from the end of the last line of images to the beginning of the horizontal synchronization signal. Vertical blanking includes vertical post blanking and vertical pre blanking, wherein vertical post blanking (Vertical Back Porch): at the end of each frame, the time after the end of the vertical synchronization signal until the start of the next frame. Vertical front blanking (Vertical Front Porch): at the beginning of each frame, the time from the end of the previous frame to the start of the vertical synchronization signal.
Secondly, determining the second clock according to the frequency division parameter of the PLL corresponding to the original uncompressed video data, specifically, the video data transmission device may calculate the second clock according to the frequency division parameter of the PLL corresponding to the original uncompressed video data by the following formula:
FREF x(fbdiv+frac/2^24)/refdiv=clock2;
Wherein FREF is the input reference clock of the PLL, fbdiv is the integer multiple frequency division coefficient of the PLL, frac is the fractional frequency division coefficient, refdiv is the reference clock frequency division coefficient of the PLL, and clock2 is the second clock.
Finally, the output parameters are configured such that the second clock is equal to the first clock, so the first clock Zhong Dengyu can be the second clock by configuring the blanking parameters and the frequency dividing parameters of the PLL. It should be noted that configuring the output parameters is equivalent to configuring the blanking parameters and the frequency dividing parameters of the PLL. The configuration blanking parameter and the frequency division parameter of the PLL here refer to: fbdiv, frac, and refdiv are adjusted within the chip-allowed range while adjusting the horizontal rear blanking, horizontal front blanking, vertical rear blanking, and vertical front blanking in order to equalize the second clock with the first clock and determine fbdiv, frac, refdiv, horizontal rear blanking, horizontal front blanking, vertical rear blanking, and vertical front blanking when the first clock is equalized with the second clock as configured output parameters.
For ease of understanding, the formulas for the first clock and the formulas for the second clock are illustrated:
Taking the standard 1080p60hz as an example:
it is known that: the total horizontal pixels are 2200, 1125 and the pixel clock frequency (clock) is 148.5Mhz;
Effective width + horizontal rear blanking + horizontal front blanking = 2200;
effective high+vertical post blanking+vertical pre blanking=1125;
The frame rate=2200×1125×60= 148500000 =148.5 Mhz, satisfying clock 1= (effective wide+horizontal rear blanking+horizontal front blanking) ×effective high+vertical rear blanking+vertical front blanking).
In the formula for the second clock:
limiting the FREF frequency by the chip to make the FREF be 24Mhz;
setting fbdiv =99, refdiv =8, frac=0;
I.e. the formula for the second clock:
Clock2=FREF x(fbdiv+frac/2^24)/refdiv=(24M x 99)/16=148.5Mhz;
The first clock is equal to the second clock.
It should be noted that the specific clock size range and the FREF size are chip dependent.
S30, adjusting image data corresponding to a target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in original non-compressed video data;
When the transmission device of the video data performs resolution conversion on the original non-compressed video data, the image data of each frame of image in the original non-compressed video data needs to be adjusted. Therefore, the video data transmission device needs to adjust the image data corresponding to the target format image based on the output parameter to obtain the converted image data, and the resolution of the converted image data is the second resolution.
In one embodiment, after step S30, the following steps are specifically performed:
Marking the image data with a target timestamp;
and storing the image data to the appointed memory area according to the target time stamp.
In this embodiment, a system clock or other time source is used to obtain a target timestamp, the target timestamp is associated with the image data, then a designated memory area is determined, the designated memory area may be a system memory, a buffer area, a disk, etc., and finally the image data is stored in the designated memory area according to the target timestamp.
S40, outputting the converted image data.
The converted image data is output, which may be stored in a file, transmitted to a network, displayed on a screen, or the like.
In one embodiment, after step S40, the following steps are specifically performed:
acquiring image data carrying a target time stamp from a designated memory area;
The image data is output based on the target timestamp.
In this embodiment, since the target timestamp is already associated with the image data, when receiving the instruction for outputting the image data corresponding to the target timestamp, the video data transmission device searches the designated memory area for the image data carrying the target timestamp, and outputs the image data based on the target timestamp.
In summary, it can be seen that, in the embodiment provided by the present application, in order to facilitate video transmission, the scheme of the present application adopts a non-compression manner to perform data transmission, so as to omit encoding and decoding processes; because the time of encoding and decoding is not involved, the method can respond to the request of resolution switching more quickly, reduces processing steps when the resolution switching is needed, only needs to determine output parameters, and converts image data based on the output parameters, thereby being beneficial to solving the problem of long time consumption of the resolution switching in the video transmission process.
The embodiments of the present application are described above from the perspective of a video data transmission method, and the embodiments of the present application are described below from the perspective of a video data transmission device, referring to fig. 4, fig. 4 is a schematic diagram of a virtual structure of a video data transmission device according to an embodiment of the present application, where the video data transmission device 400 includes:
an obtaining module 401, configured to obtain original uncompressed video data with a resolution of a first resolution, where each frame of image in the original uncompressed video data is in YUV422 format;
a configuration module 402, configured to configure output parameters according to the original uncompressed video data and the second resolution;
An adjustment module 403, configured to adjust image data corresponding to a target format image based on the output parameter, so as to obtain converted image data, where the target format image is any frame format image in the original non-compressed video data;
an output module 404 for outputting the converted image data.
In this embodiment, the acquiring module acquires the original uncompressed video data with the resolution of the first resolution, so as to prevent the color shift of the image in the original uncompressed video data, and each frame of image in the original uncompressed video data is in YUV422 format; according to the method, a configuration module configures output parameters according to original non-compressed video data and a second resolution, an adjustment module adjusts image data corresponding to a target format image based on the output parameters to obtain converted image data, and finally, an output module outputs the converted image data, wherein the resolution of the converted image data is the second resolution; in order to facilitate video transmission, the scheme of the application adopts a non-compression mode to carry out data transmission, and omits the processes of encoding and decoding; because the time of encoding and decoding is not involved, the method can respond to the request of resolution switching more quickly, reduces processing steps when the resolution switching is needed, only needs to determine output parameters, and converts image data based on the output parameters, thereby being beneficial to solving the problem of long time consumption of the resolution switching in the video transmission process.
In a possible implementation manner, the configuration module 402 is specifically configured to:
determining a first clock according to a frame rate, a blanking parameter and a second resolution corresponding to the original non-compressed video data;
determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
the blanking parameter and the frequency dividing parameter of the PLL are configured such that the first clock is identical to the second clock.
In a possible implementation manner, the configuration module 402 is further specifically configured to:
The second clock is calculated by the following formula:
FREF x(fbdiv+frac/2^24)/refdiv=clock2;
Wherein FREF is the input reference clock of the PLL, fbdiv is the integer multiple frequency division coefficient of the PLL, frac is the fractional frequency division coefficient, refdiv is the reference clock frequency division coefficient of the PLL, and clock2 is the second clock.
In a possible implementation manner, the configuration module 402 is further specifically configured to:
clock 1= (effective wide+horizontal rear blanking+horizontal front blanking)/(effective high+vertical rear blanking+vertical front blanking)/(effective high+vertical front blanking)/(frame rate); clock1 is the first clock, the effective width and the effective height are the width and the height of the second resolution, and the horizontal rear blanking, the horizontal front blanking, the vertical rear blanking, and the vertical front blanking are display parameters.
In a possible implementation manner, the adjusting module 403 is specifically configured to:
Marking the image data with a target timestamp;
and storing the image data to the appointed memory area according to the target time stamp.
In a possible implementation manner, the output module 404 is specifically configured to:
acquiring image data carrying a target time stamp from a designated memory area;
The image data is output based on the target timestamp.
Referring to fig. 5, fig. 5 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the application.
As shown in fig. 5, an embodiment of the present application provides an electronic device, including a memory 510, a processor 520, and a computer program 511 stored on the memory 510 and executable on the processor 520, wherein the processor 520 executes the computer program 511 to implement the following steps:
Acquiring original uncompressed video data with a first resolution, wherein each frame of image in the original uncompressed video data is in YUV422 format;
configuring output parameters according to the original non-compressed video data and the second resolution;
adjusting image data corresponding to a target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in original non-compressed video data;
outputting the converted image data.
In a specific implementation, when the processor 520 executes the computer program 511, any implementation of the embodiment corresponding to fig. 2 may be implemented.
Since the electronic device described in this embodiment is a device adopted by the monitoring device for implementing a control in the embodiment of the present application, based on the method described in the embodiment of the present application, those skilled in the art can understand the specific implementation manner of the electronic device in this embodiment and various modifications thereof, so how to implement the method in the embodiment of the present application in this electronic device will not be described in detail herein, and only those devices adopted by those skilled in the art to implement the method in the embodiment of the present application are included in the scope of the present application.
Referring to fig. 6, fig. 6 is a schematic diagram of an embodiment of a computer readable storage medium according to an embodiment of the application.
As shown in fig. 6, the present embodiment provides a computer-readable storage medium 600 having stored thereon a computer program 611, which computer program 611 when executed by a processor implements the steps of:
Acquiring original uncompressed video data with a first resolution, wherein each frame of image in the original uncompressed video data is in YUV422 format;
configuring output parameters according to the original non-compressed video data and the second resolution;
adjusting image data corresponding to a target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in original non-compressed video data;
outputting the converted image data.
In a specific implementation, the computer program 611 may implement any of the embodiments corresponding to fig. 2 when executed by a processor.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Embodiments of the present application also provide a computer program product comprising computer software instructions which, when run on a processing device, cause the processing device to perform the flow as in the corresponding embodiment of fig. 1.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Drive (SSD)), etc.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some of the technical features thereof can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A method of transmitting video data, comprising:
Acquiring original uncompressed video data with a first resolution, wherein each frame of image in the original uncompressed video data is in a YUV422 format;
Configuring output parameters according to the original non-compressed video data and the second resolution;
Adjusting image data corresponding to a target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in the original non-compressed video data;
outputting the converted image data.
2. The method of claim 1, wherein configuring output parameters according to the original non-compressed video data and a second resolution comprises:
Determining a first clock according to a frame rate, a blanking parameter and the second resolution corresponding to the original non-compressed video data;
determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
The blanking parameter and the frequency dividing parameter of the PLL are configured so that the first clock and the second clock are the same.
3. The method of claim 2, wherein determining the second clock based on the frequency division parameters of the phase-locked loop PLL corresponding to the original uncompressed video data comprises:
the second clock is calculated by the formula:
FREF x(fbdiv+frac/2^24)/refdiv=clock2;
The FREF is an input reference clock of the PLL, fbdiv is an integer multiple frequency division coefficient of the PLL, frac is a fractional frequency division coefficient, refdiv is a reference clock frequency division coefficient of the PLL, and clock2 is the second clock.
4. The method of claim 2, wherein determining the first clock based on the frame rate, the blanking parameter, and the second resolution corresponding to the original uncompressed video data comprises:
clock 1= (effective wide+horizontal rear blanking+horizontal front blanking)/(effective high+vertical rear blanking+vertical front blanking)/(effective high+vertical front blanking)/(frame rate);
Wherein clock1 is the first clock, the effective width and the effective height are the width and the height of the second resolution, and the horizontal rear blanking, the horizontal front blanking, the vertical rear blanking, and the vertical front blanking are display parameters.
5. The method according to any one of claims 1 to 4, wherein after adjusting the image data corresponding to the target format image based on the output parameter to obtain the converted image data, the method further comprises:
Marking the image data with a target timestamp;
and storing the image data to a designated memory area according to the target timestamp.
6. The method of claim 5, wherein after the outputting of the converted image data, the method further comprises:
acquiring the image data carrying the target time stamp from the appointed memory region;
Outputting the image data based on the target timestamp.
7. A transmission apparatus for video data, comprising:
The acquisition module is used for acquiring original non-compressed video data with a first resolution, wherein each frame of image in the original non-compressed video data is in a YUV422 format;
the configuration module is used for configuring output parameters according to the original non-compressed video data and the second resolution;
The adjusting module is used for adjusting the image data corresponding to the target format image based on the output parameters to obtain converted image data, wherein the target format image is any frame format image in the original non-compressed video data;
And the output module is used for outputting the converted image data.
8. The apparatus of claim 7, wherein the configuration module is specifically configured to:
Determining a first clock according to a frame rate, a blanking parameter and the second resolution corresponding to the original non-compressed video data; determining a second clock according to frequency division parameters of a phase-locked loop (PLL) corresponding to the original non-compressed video data;
The blanking parameter and the frequency dividing parameter of the PLL are configured so that the first clock and the second clock are the same.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of transmitting video data according to any one of claims 1 to 6 when the computer program is executed.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the video data transmission method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410209763.0A CN118018668A (en) | 2024-02-26 | 2024-02-26 | Video data transmission method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410209763.0A CN118018668A (en) | 2024-02-26 | 2024-02-26 | Video data transmission method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118018668A true CN118018668A (en) | 2024-05-10 |
Family
ID=90948199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410209763.0A Pending CN118018668A (en) | 2024-02-26 | 2024-02-26 | Video data transmission method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118018668A (en) |
-
2024
- 2024-02-26 CN CN202410209763.0A patent/CN118018668A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11812191B2 (en) | Display system, display method, and display apparatus | |
US11588998B2 (en) | Conversion method and conversion apparatus | |
CN109640167B (en) | Video processing method and device, electronic equipment and storage medium | |
EP3503570A1 (en) | Method of transmitting video frames from a video stream to a display and corresponding apparatus | |
JP2008228282A (en) | Image processing device | |
WO2012166512A2 (en) | Video compression implementing resolution tradeoffs and optimization | |
US20070217505A1 (en) | Adaptive Decoding Of Video Data | |
US7646929B2 (en) | Signal-transmitting system, data-transmitting apparatus and data-receiving apparatus | |
CN109379619B (en) | Sound and picture synchronization method and device | |
CN113747240B (en) | Video processing method, apparatus and storage medium | |
CN112752038B (en) | Background replacement method, device, electronic equipment and computer readable storage medium | |
JP2015513717A (en) | Data, multimedia and video transmission update system | |
CN118018668A (en) | Video data transmission method, device, equipment and storage medium | |
US20190342628A1 (en) | Communication device and method | |
JP7321961B2 (en) | Image processing device and image processing method | |
CN111699672B (en) | Video control device and video control method | |
CN116847150A (en) | Ultrahigh-definition multimedia playing method and device, computer equipment and storage medium | |
AU2005248864A1 (en) | Adaptive decoding of video data |
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 |