CN117560459B - Audio/video conversion method based on conversion wire - Google Patents

Audio/video conversion method based on conversion wire Download PDF

Info

Publication number
CN117560459B
CN117560459B CN202410038163.2A CN202410038163A CN117560459B CN 117560459 B CN117560459 B CN 117560459B CN 202410038163 A CN202410038163 A CN 202410038163A CN 117560459 B CN117560459 B CN 117560459B
Authority
CN
China
Prior art keywords
video
audio
preset
conversion
memory
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
CN202410038163.2A
Other languages
Chinese (zh)
Other versions
CN117560459A (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.)
Shenzhen Zhize Technology Co ltd
Original Assignee
Shenzhen Zhize Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhize Technology Co ltd filed Critical Shenzhen Zhize Technology Co ltd
Priority to CN202410038163.2A priority Critical patent/CN117560459B/en
Publication of CN117560459A publication Critical patent/CN117560459A/en
Application granted granted Critical
Publication of CN117560459B publication Critical patent/CN117560459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/06Systems for the simultaneous transmission of one television signal, i.e. both picture and sound, by more than one carrier
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Systems (AREA)

Abstract

The invention relates to the technical field of audio and video conversion, in particular to an audio and video conversion method based on a conversion wire rod, which comprises the steps of obtaining a source audio and video file, and dividing the source audio and video file into a plurality of source audio and video segments of a preset memory; converting the source audio-video segment according to a preset conversion time to obtain a target audio-video segment, and detecting the memory of the target audio-video segment to judge whether the conversion qualification rate of the target audio-video segment meets the standard; calculating the memory average value of the target audio-video frequency band when the conversion qualification rate of the target audio-video frequency band is not in accordance with the standard so as to adjust the working parameters during audio-video conversion; the working parameters comprise preset conversion time, preset memory of a single source audio-video section, code stream of the source audio-video section of a unit memory and frame number of the source audio-video section of the unit memory. The qualification rate of audio-video conversion is improved, and the efficiency of audio-video conversion is further improved.

Description

Audio/video conversion method based on conversion wire
Technical Field
The invention relates to the technical field of audio and video conversion, in particular to an audio and video conversion method based on a conversion wire.
Background
Different video formats have the purposes and significance of the birth of the video, and the purpose of the audio-video converter is to decode the film source and re-encode the film source according to the encoding specification of the new target video format, so that the purpose of small video is realized. The video downloaded from the network has the common formats of rmvb and flv, and the formats have the characteristics of small volume and are favorable for network propagation, but the hardware compatibility of the formats is low, the formats cannot be played on video disc players such as DVD, and the aim that video resources with the original formats of rmvb and flv are played on the hardware such as DVD video disc players and mobile phones can be achieved through an audio-video converter.
Chinese patent publication No.: CN104252861B discloses a video-voice conversion method, device and server, which relate to the technical field of multimedia processing and are used for reducing the translation cost of voice in video and improving the translation efficiency and accuracy thereof. Extracting a voice signal of a source language in a video, and segmenting the voice signal of the source language to obtain at least one segment of sub-voice signal of the source language; for each segment of the sub-voice signals of the source language, converting the sub-voice signals of the source language into sub-voice signals of the target language according to a pre-established voice model; and combining the obtained sub-voice signals of each section of target language with the video to obtain the video containing the voice signals of the target language.
However, the prior art does not monitor the conversion qualification rate in the audio-video conversion process, which results in uncontrollable audio-video conversion process, and does not perform targeted parameter adjustment for reasons that result in low conversion qualification rate, which results in lower efficiency of audio-video conversion in the prior art.
Disclosure of Invention
Therefore, the invention provides an audio-video conversion method based on a conversion wire rod, which is used for solving the problem of lower audio-video conversion efficiency in the prior art.
In order to achieve the above object, the present invention provides an audio/video conversion method based on a conversion wire, including:
step S1, acquiring a source audio/video file, and dividing the source audio/video file into a plurality of source audio/video segments of a preset memory;
step S2, converting the source audio-video segment according to a preset conversion time to obtain a target audio-video segment, and detecting the memory of the target audio-video segment to judge whether the conversion qualification rate of the target audio-video segment meets the standard;
step S3, when the conversion qualification rate of the target audio-video frequency band is judged to be not in accordance with the standard, calculating the memory average value of the target audio-video frequency band so as to adjust the working parameters during audio-video frequency conversion;
step S4, when the conversion qualification rate is judged to be not in accordance with the standard and the source audio/video segment is not converted completely, calculating a time adjustment parameter, adjusting the preset conversion time of the converted source audio/video segment according to the time adjustment parameter, and adjusting the preset memory of the source audio/video segment when the adjusted preset conversion time exceeds the maximum value of the preset conversion time;
step S5, when the reason that the conversion qualification rate does not meet the standard is determined to be that the converted target audio-video segment data is missing, resetting the code stream of the source audio-video segment of the unit memory or the frame number of the source audio-video segment of the unit memory according to the average value of the memory of the target audio-video segment;
s6, merging the target audio and video segments to obtain a conversion file of the source audio and video after the source audio and video segments are converted;
in the step S3, the working parameters include a preset conversion time, a preset memory of a single source audio-video segment, a code stream of a source audio-video segment in a unit memory, and a frame number of the source audio-video segment in the unit memory.
Further, in the step S2, after the preset conversion time is reached, the memory size of the target audio-video segment is detected to calculate the conversion qualification rate of the target audio-video segment, where the conversion qualification rate is a ratio of the number of target audio-video segments whose memory size meets the standard to the total number of the obtained target audio-video segments, and if the conversion qualification rate does not meet the standard, the memory average value of the target audio-video segment is calculated to determine the reason that the conversion qualification rate does not meet the standard.
Further, the step S3 includes,
step S31, comparing the calculated average value of the memory of the target audio-video segment with a first preset memory value and a second preset memory value respectively to determine the reason that the conversion qualification rate does not accord with the standard, wherein the first preset memory value is smaller than the second preset memory value;
step S32, if the average value of the memory of the target audio-video segment is larger than a second preset memory value, determining that the conversion qualification rate does not meet the standard because the source audio-video segment is not completely converted, otherwise, jumping to step S33;
step S33, if the average value of the memory of the target audio-video segment is smaller than the first preset memory value, determining that the reason that the conversion qualification rate does not meet the standard is that the converted target audio-video segment data is missing.
Further, in the step S4, when it is determined that the conversion qualification rate does not meet the standard because the source audio/video segment is not completely converted, a time adjustment parameter is calculated, and a preset conversion time for converting the source audio/video segment is adjusted according to the time adjustment parameter;
the time adjustment parameter is a difference value between the memory average value of the target audio-video segment and the second preset memory value.
Further, in step S4, a plurality of time adjustment coefficients for the preset conversion time are preset, and different time adjustment coefficients are selected according to the time adjustment parameters to increase the preset conversion time of the audio/video segment of the conversion source.
Further, presetting the preset conversion time maximum value, if the preset conversion time after adjustment is larger than the preset conversion time maximum value, setting the preset conversion time as the preset conversion time maximum value, and adjusting the preset memory of the source audio-video section according to the time difference value;
the time difference value is a difference value between the adjusted preset conversion time and the maximum value of the preset conversion time.
Further, a plurality of memory adjustment coefficients aiming at the preset memory of the source audio-video frequency band are preset, and different memory adjustment coefficients are selected according to the time difference value to reduce the preset memory of the source audio-video frequency band.
Further, the step S5 includes:
step S51, when the reason that the conversion qualification rate does not meet the standard is determined to be the missing of the converted target audio-video frequency band data, calculating an adjustment judgment parameter, and determining an adjustment mode of the working parameter during audio-video conversion according to the adjustment judgment parameter;
step S52, if the adjustment judgment parameter is smaller than or equal to the preset adjustment comparison parameter, adjusting the code stream of the source audio-video section of the unit memory, otherwise, jumping to step S53;
step S53, if the adjustment judgment parameter is greater than the adjustment comparison parameter, adjusting the frame number of the source audio/video segment in the unit memory;
and the adjustment judgment parameter is a difference value between the target audio-video frequency band memory average value and a first preset memory value.
Further, in the step S52, when it is determined to adjust the code stream of the source audio/video segment of the unit memory, a code stream adjustment parameter is calculated, and the code stream of the source audio/video segment of the unit memory is enlarged according to the code stream adjustment parameter;
and the code stream regulating parameter is the difference value between the regulating judging parameter and the regulating contrast parameter.
Further, in the step S53, when it is determined that the frame number of the source audio/video segment in the unit memory is adjusted, a frame number adjustment parameter is calculated, and the frame number of the source audio/video segment in the unit memory is enlarged according to the frame number adjustment parameter;
the frame number adjusting parameter is the difference value between the adjusting judging parameter and the adjusting contrast parameter.
Compared with the prior art, the method has the beneficial effects that in the process of audio/video conversion, the situation of incomplete file conversion or data missing can exist, the method can synchronously convert a plurality of source audio/video segments by dividing the source audio/video into a plurality of source audio/video segments, the efficiency of audio/video conversion is improved, after the preset conversion time is reached, the conversion qualification rate of the target audio/video segment is detected, and if the conversion qualification rate does not meet the standard, the working parameters in the audio/video conversion are regulated, wherein the working parameters comprise the preset conversion time, the preset memory of a single source audio/video segment, the code stream of the source audio/video segment of the unit memory and the frame number of the source audio/video segment of the unit memory. Through the technical scheme, the converted target audio-video frequency band is detected in real time, the working parameters during audio-video conversion are adjusted in real time according to the detection result, and the qualification rate of audio-video conversion is improved, so that the efficiency of audio-video conversion is improved.
Further, when the memory average value of the target audio-video frequency band is larger than the second preset memory value, the invention indicates that the memory of the target audio-video frequency band is larger, the source audio-video frequency band is not completely converted, and when the memory average value of the target audio-video frequency band is smaller than the first preset memory value, the memory of the target audio-video frequency band is smaller, and the converted target audio-video frequency band data is missing.
Further, when the source audio and video segments are judged not to be completely converted, the preset conversion time is increased, gradient adjustment is carried out on the preset conversion time through the time adjustment coefficient, and the preset conversion time is increased, so that the source audio and video segments are completely converted, and the qualification rate of audio and video conversion is improved.
Further, by setting the preset conversion time maximum value, when the adjusted preset conversion time exceeds the preset conversion time maximum value, the method and the device indicate that longer conversion time is needed to convert the source audio and video segments, set the preset conversion time to the preset conversion time maximum value, and adjust the preset memory of the source audio and video segments to enable the source audio and video segments to be converted in the preset conversion time, and by adjusting the preset memory of the source audio and video segments to be reduced, the problem that the source audio and video segments with larger memory spend more time when being converted again after being converted unqualified is avoided, the qualification rate of audio and video conversion is improved, and further the efficiency of audio and video conversion is improved.
Further, when the converted target audio-video segment data is judged to be missing, the method adjusts the code stream of the source audio-video segment of the unit memory and the frame number of the source audio-video segment of the unit memory, avoids data missing in the audio-video conversion process caused by over-small setting of the code stream and the frame number, and improves the qualification rate of audio-video conversion, thereby improving the efficiency of audio-video conversion.
Drawings
Fig. 1 is a flowchart of an audio/video conversion method based on a conversion wire according to an embodiment of the present invention;
FIG. 2 is a flowchart showing the step S3 according to the embodiment of the present invention;
FIG. 3 is a logic diagram of the judgment in step S3 according to the embodiment of the present invention;
fig. 4 is a specific flowchart of step S5 in the embodiment of the present invention.
Detailed Description
In order that the objects and advantages of the invention will become more apparent, the invention will be further described with reference to the following examples; it should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that, in the description of the present invention, terms such as "upper," "lower," "left," "right," "inner," "outer," and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the apparatus or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those skilled in the art according to the specific circumstances.
Referring to fig. 1, which is a flowchart of an audio/video conversion method based on a conversion wire, the audio/video conversion method based on the conversion wire of the present invention includes:
step S1, acquiring a source audio/video file, and dividing the source audio/video file into a plurality of source audio/video segments of a preset memory;
step S2, converting the source audio-video segment according to a preset conversion time to obtain a target audio-video segment, and detecting the memory of the target audio-video segment to judge whether the conversion qualification rate of the target audio-video segment meets the standard;
step S3, when the conversion qualification rate of the target audio-video frequency band is judged to be not in accordance with the standard, calculating the memory average value of the target audio-video frequency band so as to adjust the working parameters during audio-video frequency conversion;
step S4, when the conversion qualification rate is judged to be not in accordance with the standard and the source audio/video segment is not converted completely, calculating a time adjustment parameter, adjusting the preset conversion time of the converted source audio/video segment according to the time adjustment parameter, and adjusting the preset memory of the source audio/video segment when the adjusted preset conversion time exceeds the maximum value of the preset conversion time;
step S5, when the reason that the conversion qualification rate does not meet the standard is determined to be that the converted target audio-video segment data is missing, resetting the code stream of the source audio-video segment of the unit memory or the frame number of the source audio-video segment of the unit memory according to the average value of the memory of the target audio-video segment;
s6, merging the target audio and video segments to obtain a conversion file of the source audio and video after the source audio and video segments are converted;
in the step S3, the working parameters include a preset conversion time, a preset memory of a single source audio-video segment, a code stream of a source audio-video segment in a unit memory, and a frame number of the source audio-video segment in the unit memory.
It can be understood by those skilled in the art that the conversion wire rod with proper specification is determined according to the format of the source audio and video and the format of the converted audio and video.
Specifically, in the step S2, after the preset conversion time is reached, the memory size of the target audio-video segment is detected to calculate the conversion qualification rate of the target audio-video segment, where the conversion qualification rate is a ratio of the number of target audio-video segments whose memory size meets the standard to the total number of the obtained target audio-video segments, and if the conversion qualification rate does not meet the standard, the memory average value of the target audio-video segment is calculated to determine the reason that the conversion qualification rate does not meet the standard.
It will be appreciated by those skilled in the art that the memory size of the target audio-visual segment is related to the preset memory size of the source audio-visual segment and the format of the target audio-visual segment is related to the format of the source audio-visual segment.
In the audio/video conversion process, the situation that the file conversion is incomplete or the data is missing may exist, and the method can synchronously convert a plurality of source audio/video segments by dividing the source audio/video into a plurality of source audio/video segments, so that the audio/video conversion efficiency is improved, after the preset conversion time is reached, the conversion qualification rate of the target audio/video segments is detected, and if the conversion qualification rate does not meet the standard, the working parameters during the audio/video conversion are adjusted, wherein the working parameters comprise the preset conversion time, the preset memory of a single source audio/video segment, the code stream of the source audio/video segment of the unit memory and the frame number of the source audio/video segment of the unit memory. Through the technical scheme, the converted target audio-video frequency band is detected in real time, the working parameters during audio-video conversion are adjusted in real time according to the detection result, and the qualification rate of audio-video conversion is improved, so that the efficiency of audio-video conversion is improved.
In one implementation manner of the embodiment of the present invention, the source audio and video is divided into 10 source audio and video segments, when the audio and video is converted, 4 adjacent source audio and video segments from the initial source audio and video segment can be synchronously converted to obtain the target audio and video segment, after reaching the preset conversion time, the conversion qualification rate of the target audio and video segment is detected, if the conversion qualification rate does not meet the standard, the memory average value of the target audio and video segment is calculated to determine the reason that the conversion qualification rate does not meet the standard.
Referring to fig. 2 and 3, the step S3 includes,
step S31, comparing the calculated average value of the memory of the target audio-video segment with a first preset memory value and a second preset memory value respectively to determine the reason that the conversion qualification rate does not accord with the standard, wherein the first preset memory value is smaller than the second preset memory value;
step S32, if the average value of the memory of the target audio-video segment is larger than a second preset memory value, determining that the conversion qualification rate does not meet the standard because the source audio-video segment is not completely converted, otherwise, jumping to step S33;
step S33, if the average value of the memory of the target audio-video segment is smaller than the first preset memory value, determining that the reason that the conversion qualification rate does not meet the standard is that the converted target audio-video segment data is missing.
It should be understood by those skilled in the art that if the average value of the memory of the target audio-video segment is greater than or equal to the first preset memory value and less than or equal to the second preset memory value, the conversion qualification rate is determined to meet the standard.
The average value of the memory of the target audio-video frequency band is the average value of the memory of each target audio-video frequency band, and the average value calculation is the mature prior art and is not repeated.
According to the invention, when the memory average value of the target audio-video frequency band is larger than the second preset memory value, the memory of the target audio-video frequency band is larger, the source audio-video frequency band is not completely converted, and when the memory average value of the target audio-video frequency band is smaller than the first preset memory value, the memory of the target audio-video frequency band is smaller, and the converted target audio-video frequency band data is missing.
Specifically, in the step S4, when it is determined that the conversion qualification rate does not meet the standard because the source audio and video segment is not completely converted, a time adjustment parameter is calculated, and a preset conversion time for converting the source audio and video segment is adjusted according to the time adjustment parameter;
the time adjustment parameter is a difference value between the memory average value of the target audio-video segment and the second preset memory value.
When the source audio and video segments are judged to be not completely converted, the preset conversion time is increased, gradient adjustment is carried out on the preset conversion time through the time adjustment coefficient, and the preset conversion time is increased, so that the source audio and video segments are completely converted, and the qualification rate of audio and video conversion is improved.
Specifically, in step S4, a plurality of time adjustment coefficients for the preset conversion time are preset, and different time adjustment coefficients are selected according to the time adjustment parameters to increase the preset conversion time of the audio/video segment of the conversion source.
Specifically, a first preset time adjustment parameter and a second preset time adjustment parameter are preset, the first preset time adjustment parameter is smaller than the second preset time adjustment parameter, wherein,
if the time adjustment parameter is smaller than the first preset time adjustment parameter, a first preset conversion time adjustment coefficient alpha 1 is selected to adjust the preset conversion time, and the adjusted preset conversion time=preset conversion time multiplied by alpha 1 is set;
if the time adjustment parameter is greater than or equal to the first preset time adjustment parameter and less than the second preset time adjustment parameter, a second preset conversion time adjustment coefficient alpha 2 is selected to adjust the preset conversion time, and the adjusted preset conversion time=preset conversion time multiplied by alpha 2 is set;
if the time adjustment parameter is greater than or equal to the second preset time adjustment parameter, a third preset conversion time adjustment coefficient alpha 3 is selected to adjust the preset conversion time, and the adjusted preset conversion time=preset conversion time multiplied by alpha 3 is set;
this embodiment sets 1 < α1 < α2 < α3 < 1.3, preferably α1=1.1, α2=1.18, and α3=1.26.
Specifically, presetting the preset conversion time maximum value, if the preset conversion time after adjustment is larger than the preset conversion time maximum value, setting the preset conversion time as the preset conversion time maximum value, and adjusting the preset memory of the source audio-video frequency band according to the time difference value;
the time difference value is a difference value between the adjusted preset conversion time and the maximum value of the preset conversion time.
Specifically, a plurality of memory adjustment coefficients for the preset memory of the source audio-video segment are preset, and different memory adjustment coefficients are selected according to the time difference value to reduce the preset memory of the source audio-video segment.
Specifically, a first preset time difference value and a second preset time difference value are preset, wherein the first preset time difference value is smaller than the second preset time difference value,
if the time difference is smaller than the first preset time difference, a first preset memory adjusting coefficient beta 1 is selected to adjust the preset memory, and the adjusted preset memory=preset memory×beta 1 is set;
if the time difference value is greater than or equal to the first preset time difference value and less than the second preset time difference value, a second preset memory adjusting coefficient beta 2 is selected to adjust the preset memory, and the adjusted preset memory=preset memory×beta 2 is set;
if the time difference value is greater than or equal to the second preset time difference value, a third preset memory adjusting coefficient beta 3 is selected to adjust the preset memory, and the adjusted preset memory=preset memory×beta 3 is set;
this embodiment sets 0.8 < β3 < β2 < β1 < 1, preferably β1=0.95, β2=0.9, β3=0.85.
According to the invention, the preset conversion time maximum value is set, when the adjusted preset conversion time exceeds the preset conversion time maximum value, the condition that the source audio and video segments are converted by longer conversion time is indicated, the preset conversion time is set to be the preset conversion time maximum value, and the preset memory of the source audio and video segments is reduced, so that the conversion of the source audio and video segments in the preset conversion time is completed, and the preset memory of the source audio and video segments is reduced, so that the condition that the source audio and video segments with larger memory spend more time when being converted again after being converted disqualified is avoided, the qualification rate of audio and video conversion is improved, and the efficiency of audio and video conversion is improved.
Referring to fig. 4, the step S5 includes:
step S51, when the reason that the conversion qualification rate does not meet the standard is determined to be the missing of the converted target audio-video frequency band data, calculating an adjustment judgment parameter, and determining an adjustment mode of the working parameter during audio-video conversion according to the adjustment judgment parameter;
step S52, if the adjustment judgment parameter is smaller than or equal to the preset adjustment comparison parameter, adjusting the code stream of the source audio-video section of the unit memory, otherwise, jumping to step S53;
step S53, if the adjustment judgment parameter is greater than the adjustment comparison parameter, adjusting the frame number of the source audio/video segment in the unit memory;
and the adjustment judgment parameter is a difference value between the target audio-video frequency band memory average value and a first preset memory value.
When the converted target audio-video frequency band data is judged to be missing, the method adjusts the code stream of the source audio-video frequency band of the unit memory and the frame number of the source audio-video frequency band of the unit memory, avoids the data missing in the audio-video frequency conversion process caused by the over-small setting of the code stream and the frame number, and improves the qualification rate of audio-video frequency conversion, thereby improving the efficiency of audio-video frequency conversion.
In this embodiment, the adjustment comparison parameters are set according to the actual memory size, format, conversion time and converted format of the source audio and video.
Specifically, in the step S52, when it is determined to adjust the code stream of the source audio/video segment in the unit memory, a code stream adjustment parameter is calculated, and the code stream of the source audio/video segment in the unit memory is enlarged according to the code stream adjustment parameter;
and the code stream regulating parameter is the difference value between the regulating judging parameter and the regulating contrast parameter.
Specifically, a first preset code stream adjustment parameter and a second preset code stream adjustment parameter are preset, the first preset code stream adjustment parameter is smaller than the second preset code stream adjustment parameter, wherein,
if the code stream adjusting parameter is smaller than the first preset code stream adjusting parameter, a first preset code stream adjusting coefficient e1 is selected to adjust the code stream of the source audio-video frequency band of the unit memory, and the adjusted code stream of the source audio-video frequency band of the unit memory is set to be =the code stream of the source audio-video frequency band of the unit memory×e1;
if the code stream adjusting parameter is larger than or equal to the first preset code stream adjusting parameter and smaller than the second preset code stream adjusting parameter, selecting a second preset code stream adjusting coefficient e2 to adjust the code stream of the source audio-video frequency band of the unit memory, and setting the adjusted code stream of the source audio-video frequency band of the unit memory = the code stream of the source audio-video frequency band of the unit memory x e2;
if the code stream adjusting parameter is greater than or equal to the second preset code stream adjusting parameter, a third preset code stream adjusting coefficient e3 is selected to adjust the code stream of the source audio-video section of the unit memory, and the adjusted code stream of the source audio-video section of the unit memory=the code stream of the source audio-video section of the unit memory×e3 is set;
in this embodiment, 1 < e2 < e3 < 1.2, preferably e1=1.06, e2=1.11, and e3=1.15.
Specifically, in the step S53, when it is determined to adjust the frame number of the source audio/video segment in the unit memory, a frame number adjustment parameter is calculated, and the frame number of the source audio/video segment in the unit memory is increased according to the frame number adjustment parameter;
the frame number adjusting parameter is the difference value between the adjusting judging parameter and the adjusting contrast parameter.
Specifically, a first preset frame number adjustment parameter and a second preset frame number adjustment parameter are preset, the first preset frame number adjustment parameter being smaller than the second preset frame number adjustment parameter, wherein,
if the frame number adjusting parameter is smaller than the first preset frame number adjusting parameter, selecting a first preset frame number adjusting coefficient f1 to adjust the frame number of the source audio-video frequency band of the unit memory, and setting the adjusted frame number of the source audio-video frequency band of the unit memory = the frame number of the source audio-video frequency band of the unit memory x f1;
if the frame number adjusting parameter is greater than or equal to the first preset frame number adjusting parameter and less than the second preset frame number adjusting parameter, selecting a second preset frame number adjusting coefficient f2 to adjust the frame number of the source audio-video frequency section of the unit memory, and setting the adjusted frame number of the source audio-video frequency section of the unit memory = the frame number of the source audio-video frequency section of the unit memory x f2;
if the frame number adjusting parameter is greater than or equal to the second preset frame number adjusting parameter, selecting a third preset frame number adjusting coefficient f3 to adjust the frame number of the source audio-video frequency segment of the unit memory, and setting the adjusted frame number of the source audio-video frequency segment of the unit memory = the frame number of the source audio-video frequency segment of the unit memory x f3;
in this embodiment, 1 < f2 < f3 < 1.25, preferably f1=1.08, f2=1.16, and f3=1.22.
It should be noted that, the data in this embodiment are obtained by comprehensively analyzing the historical audio-video conversion data and the data statistics result in the corresponding historical audio-video conversion process before the audio-video conversion is performed by the audio-video conversion method based on the conversion wire rod; the invention relates to an audio-video conversion method based on a conversion wire, which integrates 1560 cases of conversion source audio-video frequency segments, the memory size of the source audio-video frequency segments, the code stream of the source audio-video frequency segments in a unit memory and the frame number of the source audio-video frequency segments in the unit memory and comprehensively determines the numerical value of each preset parameter standard aiming at the audio-video frequency conversion method based on the conversion wire before the current audio-video frequency conversion is carried out. It can be understood by those skilled in the art that the method for determining the parameters of the audio/video conversion method based on the conversion wire rod according to the present invention may select the value with the highest duty ratio as the preset standard parameter according to the data distribution, as long as the conversion method according to the present invention can clearly define different specific conditions in the single item determination process through the obtained value.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.
The foregoing description is only of the preferred embodiments of the invention and is not intended to limit the invention; various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An audio/video conversion method based on a conversion wire is characterized by comprising the following steps:
step S1, acquiring a source audio/video file, and dividing the source audio/video file into a plurality of source audio/video segments of a preset memory;
step S2, converting the source audio-video segment according to a preset conversion time to obtain a target audio-video segment, and detecting the memory of the target audio-video segment to judge whether the conversion qualification rate of the target audio-video segment meets the standard;
step S3, when the conversion qualification rate of the target audio-video frequency band is judged to be not in accordance with the standard, calculating the memory average value of the target audio-video frequency band so as to adjust the working parameters during audio-video frequency conversion;
step S4, when the conversion qualification rate is judged to be not in accordance with the standard and the source audio/video segment is not converted completely, calculating a time adjustment parameter, adjusting the preset conversion time of the converted source audio/video segment according to the time adjustment parameter, and adjusting the preset memory of the source audio/video segment when the adjusted preset conversion time exceeds the maximum value of the preset conversion time;
step S5, when the reason that the conversion qualification rate does not meet the standard is determined to be that the converted target audio-video segment data is missing, resetting the code stream of the source audio-video segment of the unit memory or the frame number of the source audio-video segment of the unit memory according to the average value of the memory of the target audio-video segment;
s6, merging the target audio and video segments to obtain a conversion file of the source audio and video after the source audio and video segments are converted;
in the step S3, the working parameters include a preset conversion time, a preset memory of a single source audio-video segment, a code stream of a source audio-video segment in a unit memory, and a frame number of the source audio-video segment in the unit memory;
in the step S2, after reaching a preset conversion time, detecting the memory size of the target audio-video segment to calculate a conversion qualification rate of the target audio-video segment, where the conversion qualification rate is a ratio of the number of target audio-video segments whose memory size meets a standard to the total number of the obtained target audio-video segments, and if the conversion qualification rate does not meet the standard, calculating a memory average value of the target audio-video segment to determine a reason that the conversion qualification rate does not meet the standard;
the step S3 of this method comprises the steps of,
step S31, comparing the calculated average value of the memory of the target audio-video segment with a first preset memory value and a second preset memory value respectively to determine the reason that the conversion qualification rate does not accord with the standard;
step S32, if the average value of the memory of the target audio-video segment is larger than a second preset memory value, determining that the conversion qualification rate does not meet the standard because the source audio-video segment is not completely converted, otherwise, jumping to step S33;
step S33, if the average value of the memory of the target audio-video segment is smaller than a first preset memory value, determining that the reason that the conversion qualification rate does not meet the standard is that the converted target audio-video segment data is missing;
the first preset memory value is smaller than the second preset memory value.
2. The method for converting audio and video based on the converted wire according to claim 1, wherein in the step S4, when it is determined that the conversion qualification rate does not meet the standard because the source audio and video segment is not completely converted, calculating a time adjustment parameter and adjusting a preset conversion time for converting the source audio and video segment according to the time adjustment parameter;
the time adjustment parameter is a difference value between the memory average value of the target audio-video segment and the second preset memory value.
3. The method for converting audio and video signals based on the converted wire according to claim 2, wherein in the step S4, a plurality of time adjustment coefficients for the preset converting time are preset, and different time adjustment coefficients are selected according to the time adjustment parameters to increase the preset converting time of the audio and video signals of the converting source.
4. The method for converting audio and video based on a converted wire according to claim 3, wherein the preset conversion time maximum value is preset, if the adjusted preset conversion time is greater than the preset conversion time maximum value, the preset conversion time is set as the preset conversion time maximum value, and the preset memory of the source audio and video segment is adjusted according to the time difference value;
the time difference value is a difference value between the adjusted preset conversion time and the maximum value of the preset conversion time.
5. The method for converting audio and video signals based on a converted wire according to claim 4, wherein a plurality of memory adjustment coefficients for a preset memory of the source audio and video segment are preset, and different memory adjustment coefficients are selected according to the time difference value to reduce the preset memory of the source audio and video segment.
6. The method for converting wire-based audio/video according to claim 1, wherein the step S5 comprises:
step S51, when the reason that the conversion qualification rate does not meet the standard is determined to be the missing of the converted target audio-video frequency band data, calculating an adjustment judgment parameter, and determining an adjustment mode of the working parameter during audio-video conversion according to the adjustment judgment parameter;
step S52, if the adjustment judgment parameter is smaller than or equal to the preset adjustment comparison parameter, adjusting the code stream of the source audio-video section of the unit memory, otherwise, jumping to step S53;
step S53, if the adjustment judgment parameter is greater than the adjustment comparison parameter, adjusting the frame number of the source audio/video segment in the unit memory;
and the adjustment judgment parameter is a difference value between the target audio-video frequency band memory average value and a first preset memory value.
7. The method for converting audio and video signals based on the converted wire according to claim 6, wherein in the step S52, when it is determined that the code stream of the source audio and video segment in the unit memory is adjusted, a code stream adjustment parameter is calculated, and the code stream of the source audio and video segment in the unit memory is enlarged according to the code stream adjustment parameter;
and the code stream regulating parameter is the difference value between the regulating judging parameter and the regulating contrast parameter.
8. The method according to claim 6, wherein in the step S53, when it is determined that the number of frames of the source audio/video segment in the unit memory is adjusted, a frame number adjustment parameter is calculated, and the number of frames of the source audio/video segment in the unit memory is increased according to the frame number adjustment parameter;
the frame number adjusting parameter is the difference value between the adjusting judging parameter and the adjusting contrast parameter.
CN202410038163.2A 2024-01-11 2024-01-11 Audio/video conversion method based on conversion wire Active CN117560459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410038163.2A CN117560459B (en) 2024-01-11 2024-01-11 Audio/video conversion method based on conversion wire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410038163.2A CN117560459B (en) 2024-01-11 2024-01-11 Audio/video conversion method based on conversion wire

Publications (2)

Publication Number Publication Date
CN117560459A CN117560459A (en) 2024-02-13
CN117560459B true CN117560459B (en) 2024-04-16

Family

ID=89820837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410038163.2A Active CN117560459B (en) 2024-01-11 2024-01-11 Audio/video conversion method based on conversion wire

Country Status (1)

Country Link
CN (1) CN117560459B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1488813A (en) * 2003-08-13 2004-04-14 沈阳工业学院 Automatic checking system for expressway surface
CN104252861A (en) * 2014-09-11 2014-12-31 百度在线网络技术(北京)有限公司 Video voice conversion method, video voice conversion device and server
CN113647950A (en) * 2021-08-23 2021-11-16 北京图安世纪科技股份有限公司 Psychological emotion detection method and system
CN116932230A (en) * 2023-09-15 2023-10-24 湖南马栏山视频先进技术研究院有限公司 Video rendering method based on dynamic task scheduling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1488813A (en) * 2003-08-13 2004-04-14 沈阳工业学院 Automatic checking system for expressway surface
CN104252861A (en) * 2014-09-11 2014-12-31 百度在线网络技术(北京)有限公司 Video voice conversion method, video voice conversion device and server
CN113647950A (en) * 2021-08-23 2021-11-16 北京图安世纪科技股份有限公司 Psychological emotion detection method and system
CN116932230A (en) * 2023-09-15 2023-10-24 湖南马栏山视频先进技术研究院有限公司 Video rendering method based on dynamic task scheduling

Also Published As

Publication number Publication date
CN117560459A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
EP1771945B1 (en) Method for correcting metadata affecting the playback loudness and dynamic range of audio information
US20130148741A1 (en) Method, System and Apparatus for Enhanced Video Transcoding
US9208789B2 (en) Reduced complexity converter SNR calculation
US10061634B2 (en) Methods and apparatus to detect transport faults in media presentation systems
US8086587B2 (en) Information processing apparatus, method, and program
US20130322633A1 (en) Methods and systems for identifying content types
US6680753B2 (en) Method and apparatus for skipping and repeating audio frames
EP2693430A1 (en) Encoding apparatus and method, and program
CN110996038B (en) Adaptive code rate adjusting method for multi-person interactive live broadcast
KR20160032252A (en) Audio encoder and decoder with program loudness and boundary metadata
CN110545418B (en) Self-adaptive video coding method based on scene
US20160373762A1 (en) Methods of and arrangements for processing an encoded bit stream
US20180270524A1 (en) Cloud dvr storage
WO2012100117A1 (en) System and method for enhanced remote transcoding using content profiling
CN117560459B (en) Audio/video conversion method based on conversion wire
CN114885252A (en) Volume detection method and detection system for digital sound console
KR20230104553A (en) Method for controll loudness level of audio signl using metadata and apparatus using the same
JPWO2014196113A1 (en) Time-series data encoding apparatus, method and program, and time-series data re-encoding apparatus, method and program
MXPA04002957A (en) System and method for testing the compliance of a digital decoding device.
US20090185620A1 (en) Video encoding apparatus and method for the same
CN112533074A (en) Data transmission method and device
Li et al. A real-time QoE methodology for AMR codec voice in mobile network
CN116405621B (en) Online and offline linkage learning system based on big data cloud platform
KR101415429B1 (en) Method for determining bitrate for video quality optimization based on block artifact
CN105376561B (en) The method and apparatus being improved to Video Coding quality

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