CN108377415A - A kind of determination method and device of video frame rate - Google Patents

A kind of determination method and device of video frame rate Download PDF

Info

Publication number
CN108377415A
CN108377415A CN201810142326.6A CN201810142326A CN108377415A CN 108377415 A CN108377415 A CN 108377415A CN 201810142326 A CN201810142326 A CN 201810142326A CN 108377415 A CN108377415 A CN 108377415A
Authority
CN
China
Prior art keywords
video frame
audio
frame rate
multimedia
video
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
Application number
CN201810142326.6A
Other languages
Chinese (zh)
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201810142326.6A priority Critical patent/CN108377415A/en
Publication of CN108377415A publication Critical patent/CN108377415A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of video frame rates to determine method and device.This method includes:During multimedia, the audio frequency parameter of the multimedia code stream sound intermediate frequency is obtained with predeterminated frequency;The video frame rate of video in the multimedia is determined according to the audio frequency parameter.In this manner, the video frame rate of video is determined by the audio frequency parameter of audio in multimedia, is contributed to during solving multimedia, the nonsynchronous technical problem of audio and video.

Description

A kind of determination method and device of video frame rate
Technical field
The present invention relates to multimedia data processing field more particularly to the determination methods and dress of a kind of video frame rate It sets.
Background technology
With the development of computer technology, the application of multimedia technology is more and more common, existing video in usual multimedia There are audio, such as monitor video again, i.e. video recording equipment recorded video and audio simultaneously during monitoring of a recorded programme video, video With video frame rate, audio has audio frequency parameter, and in the playing process of monitor video, video is broadcast according to video frame rate It puts, audio is played according to audio frequency parameter, and video frame rate and audio frequency parameter fill in multimedia code stream, is referred to as sound Bright frame per second.
In actual mechanical process, since current playback equipment type is more complicated, multimedia is played in playback equipment During, often there is the actual frame per second of the video or audio situation different with frame per second is stated.For example, video in statement frame per second Frame per second is 15fps, but by influences such as the performance of video recording equipment, hardware errors, the video frame rate of actual acquisition is less than statement Video frame rate in frame per second.Therefore, in multimedia playing process, video and the nonsynchronous situation of audio are susceptible to.
Invention content
The present invention provides a kind of determination method and device of video frame rate, to solve to broadcast multimedia in the prior art During putting, it is susceptible to video and the nonsynchronous technical problem of audio.
First aspect present invention provides a kind of determination method of video frame rate, and this method includes:In multimedia process In, the audio frequency parameter of the multimedia code stream sound intermediate frequency is obtained with predeterminated frequency;It is determined according to the audio frequency parameter described more The video frame rate of video in media.
Optionally, the video frame rate of video in the multimedia is determined according to the audio frequency parameter, including:According to the sound Frequency parameter determines the video frame rate correction value of the video;Initial video frame per second is repaiied according to the video frame rate correction value Just, the video frame rate is obtained;Wherein, the initial video frame per second is preset, is carried in the multimedia code stream Video frame rate.
Optionally, the video frame rate correction value of the video is determined according to the audio frequency parameter, including:
Determine the video frame number that the code stream is included in preset time;
Determine the playing duration of code stream audio in the preset time;
The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
Optionally, if in the audio frequency parameter including audio sample rate, it is determined that the code stream is in the preset time The playing duration of audio, including:
Audio sample point number of the code stream in the preset time is determined according to the type of coding of the audio;Institute It is the discrete point acquired from the corresponding waveform of the audio to state audio sample point;
Determine the first ratio between the audio sample point number and the sample frequency, first ratio is described Playing duration;Wherein, the sample frequency is used to indicate the rate for acquiring the audio sample point.
Optionally, the video frame rate correction value is the ratio of the video frame number and the playing duration of the audio.
Second aspect of the present invention provides a kind of determining device of video frame rate, including:
Acquiring unit, for during multimedia, the multimedia code stream sound intermediate frequency to be obtained with predeterminated frequency Audio frequency parameter;
Processing unit, the video frame rate for determining video in the multimedia part according to the audio frequency parameter.
Optionally, the processing unit is specifically used for:
The video frame rate correction value of the video is determined according to the audio frequency parameter;
Initial video frame per second is modified according to the video frame rate correction value, obtains the video frame rate;Wherein, institute It is video frame rate that is preset, being carried in the multimedia code stream to state initial video frame per second.
Optionally, the processing unit is specifically used for:
Determine the video frame number that the code stream is included in preset time;
Determine the playing duration of code stream audio in the preset time;
The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
Optionally, if including audio sample rate in the audio frequency parameter, the processing unit is specifically used for:
Audio sample point number of the code stream in the preset time is determined according to the type of coding of the audio;Institute It is the discrete point acquired from the corresponding waveform of the audio to state audio sample point;
Determine the first ratio between the audio sample point number and the sample frequency, first ratio is described Playing duration;Wherein, the sample frequency is used to indicate the rate for acquiring the audio sample point.
Optionally, the video frame rate correction value is the ratio of the video frame number and the playing duration of the audio.
Third aspect present invention provides a kind of determining device of video frame rate, including:Processor and memory;
The memory is for storing computer executed instructions, when the processor executes described instruction, makes described regard The video frame rate that the determining device of frequency frame per second executes as first aspect present invention provides determines method.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer readable storage medium includes referring to It enables, when described instruction is run on computers so that the computer executes the video frame provided such as first aspect present invention Rate determines method.
Technical solution in the embodiment of the present invention has the advantages that:
In technical solution provided in an embodiment of the present invention, during multimedia, obtained with predeterminated frequency described in The audio frequency parameter of multimedia code stream sound intermediate frequency;The video frame rate of video in the multimedia is determined according to the audio frequency parameter. Therefore, in embodiments of the present invention, the video frame rate of video in multimedia is determined according to the audio frequency parameter of multimedia sound intermediate frequency, i.e., The size of video frame rate is determined by audio frequency parameter, is contributed to during solving multimedia, video, audio are nonsynchronous to ask Topic.
Description of the drawings
Fig. 1 is a kind of flow chart of the determination method of video frame rate in one embodiment of the invention;
Fig. 2 is a kind of structure chart of the determining device of video frame rate in one embodiment of the invention;
Fig. 3 is a kind of structure chart of the determining device of video frame rate in one embodiment of the invention.
Specific implementation mode
The present invention provides a kind of determination method and device of video frame rate, to solve to broadcast multimedia in the prior art During putting, it is susceptible to video and the nonsynchronous technical problem of audio.
Since current playback equipment type is more complicated, during playback equipment plays multimedia, often occur The actual frame per second of the video or audio situation different with statement frame per second.For example, video frame rate is 15fps in statement frame per second, still By influences such as the performance of playback equipment, hardware errors, actual video frame rate is less than the video frame rate in statement frame per second.Cause This is susceptible to video and the nonsynchronous situation of audio in multimedia playing process.
In order to solve this technical problem, the general thought of technical solution provided in an embodiment of the present invention is as follows:
In technical solution provided in an embodiment of the present invention, during multimedia, obtained with predeterminated frequency described in The audio frequency parameter of multimedia code stream sound intermediate frequency;The video frame rate of video in the multimedia is determined according to the audio frequency parameter. Therefore, in embodiments of the present invention, the video frame rate of video in multimedia is determined according to the audio frequency parameter of multimedia sound intermediate frequency, i.e., The size of video frame rate is determined by audio frequency parameter, is contributed to during solving multimedia, video, audio are nonsynchronous to ask Topic.
In order to be better understood by above-mentioned technical proposal, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to technical solution of the present invention Detailed description, rather than to the restriction of technical solution of the present invention, in the absence of conflict, the embodiment of the present invention and implementation Technical characteristic in example can be combined with each other.
Fig. 1 shows a kind of flow chart of the determination method of video frame rate provided in an embodiment of the present invention, and this method can be with Suitable for multimedia playback equipment, such as mobile phone, IPAD, television set, laptop etc..As shown in Figure 1, this method packet It includes:
Step 101:In multimedia playing process, the multimedia code stream sound intermediate frequency is obtained in predeterminated frequency Audio frequency parameter.
Step 102:The video frame rate of video in the multimedia is determined according to the audio frequency parameter.
Optionally, the multimedia in step 101 can be stored in the multimedia file of playback equipment local, can also be remote Journey file, for example, remote-recording video playback (telefile stream), can also be the multimedia that network plays online, such as video flowing Etc., the embodiment of the present invention does not limit this specifically.
Optionally, in step 101, predeterminated frequency can be customized, such as predeterminated frequency can be that every 2s obtains one Secondary audio program parameter can also be to obtain audio frequency parameter etc. in every 1 second.
Optionally, in step 101, multimedia can be separated into multiple and different sections, such as multimedia by playback equipment Total playing duration be 1 minute, can be by divided multimedia at 30 sections, each section is the segment of duration 2s, then With the audio frequency parameter of such as 2 milliseconds acquisition audios of predeterminated frequency in each section, different section predeterminated frequencies can be identical Or it is different.
Optionally, in a step 101, the audio frequency parameter of audio can be in the statement frame per second carried in multimedia code stream Audio frequency parameter, in audio frequency parameter comprising a kind of in audio encoding type, audio sample rate, audio sample depth, channel number or It is a variety of.In introduction below by audio frequency parameter be audio using being illustrated for rate.
Optionally, in actual mechanical process, step 101 can start to play the multimedia moment in playback equipment and hold Row, can also execute after multimedia certain time, for example, playback equipment detects the current reproduction time of multimedia Point is 00:30, playback equipment can carry out subregion, such as 00 to the remaining multimedia not played:30-00:Point between 40 The audio frequency parameter of audio is obtained in area with predeterminated frequency.
According to foregoing teachings:If existing audio also has video in multimedia, the statement in the multimedia code stream Existing audio frequency parameter also has video frame rate in frame per second.In general, the performance of audio frequency parameter in statement frame per second by playback equipment It influences smaller, can be neglected, and state video frame rate in frame per second and be affected by the performance of playback equipment.So The audio frequency parameter obtained in step 101 is accurate, further can determine video frame rate, i.e. step according to audio frequency parameter 102。
Optionally, in step 102, playback equipment determines the process of the video frame rate of video in multimedia according to audio frequency parameter It can be carried out in two steps, the first step, playback equipment determines the video frame rate correction value of video according to audio frequency parameter;Second step, root Initial video frame per second is modified according to the video frame rate correction value, obtains the video frame rate;Here initial video frame Rate is video frame rate that is preset, being carried in the multimedia code stream, i.e. initial video frame per second is statement frame per second above-mentioned In video frame rate.I.e. playback equipment determines video frame rate correction value according to audio frequency parameter, then according to video frame rate correction value It modifies to the video frame rate in statement frame per second, obtains accurate video frame rate.
Optionally, in the first step, playback equipment determines the mode of the video frame rate correction value of video according to audio frequency parameter Can determine code stream video frame number included in video in preset time;Determine audio of the code stream in preset time Playing duration;The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
As described previously, multimedia can be separated into multiple and different sections by playback equipment, and playback equipment can be true The video frame number for including in a fixed multimedia section, i.e. preset time are that multimedia is divided into each area behind different sections Between reproduction time, certain preset time can also be other times made by oneself.Detailed process is that playback equipment determines multimedia Video in include video frame number, and determine audio playing duration, then determine video frame number and audio playing duration Ratio, which is video frame rate correction value.For example, video frame number is indicated with videoframe, video frame rate correction value It is indicated with framerate, the playing duration of audio is time, then formula 1:Framerate=videoframe/time.
Optionally, video frame number is typically to generate the quantity of the image used when video, so video frame number is regarded in making It can be recorded when frequency, i.e. videoframe in formula 1.A kind of determination side of the time in formula 1 is described below Formula.
As an example, determine that the mode of the reproduction time of audio is:Determine the audio sample point number of the audio; The audio sample point is the discrete point acquired from the corresponding waveform of the audio;It determines the audio sample point number and adopts The first ratio between sample frequency, first ratio are the playing duration;Wherein, the sample frequency is used to indicate acquisition The rate of the audio sample point.
It should be noted that playback equipment is when playing multimedia, the broadcasting to audio be to original acoustic waveform into Row sampling obtains audio sample point, then audio sample point is converted into binary data and reproduces original sound.In practical operation Cheng Zhong, the more reduction degrees to original sound of audio sample point are higher, and audio sampling frequency is that the audio obtained the unit interval is adopted The quantity of sampling point, the higher reduction degree to sound of audio sampling frequency is higher, and the size of audio sample rate is by playback equipment The performance of audio collection card determines that the audio sampling frequency of different capture cards is different, and playback equipment can record audio sample The value of frequency.Playback equipment obtains after audio sample point number and audio sample rate, it may be determined that audio sample point number Ratio between sample frequency, the i.e. playing duration of audio.For example, audio sample point number is indicated with AudioSample, Sample frequency is indicated with AudioSampleRate, obtains formula 2:Time=AudioSample/AudioSampleRate. Therefore the formula 2 is combined with above-mentioned formula 1, you can obtain the determination formula of video frame rate correction value, i.e., FrameRate=videoFrame/ (AudioSample/AudioSampleRate) can after obtaining the correction value of video frame rate To execute second step, i.e., initial video frame per second is modified according to the video frame rate correction value.
By taking multimedia is film as an example, in general, a frame audio is corresponding with per frame image in film, in the broadcasting of film While Cheng Zhong, I frame image are playd in order according to certain sequence, audio corresponding with every frame image in I frame images is also successively It plays, when a certain frame image audio sync corresponding with the frame image plays, the best results of presentation.Therefore, playback equipment It after obtaining the video frame rate correction value of video, can be played out according to video frame rate correction value, audio is joined according to corresponding audio Number plays out, you can to achieve the effect that be played simultaneously.
Optionally, in actual mechanical process, if audio can determine audio sample by coding according to coded format Number.Whether audio is encoded, determine that the mode of audio sample point number is different, and the coded format of audio is different, determines The mode of audio sample number also differs.If such as audio does not encode, audio sample number=audio data length (list Position byte) * 8/ sampling depth, coded format is that G711A or G711U is encoded, then audio sample number=audio data length is (single Position byte).Wherein, a byte corresponds to 8bit.If coded format encodes for AAC, adts synchronous head numbers can be checked, Audio sample number=synchronous head number * 1024.
By above description it is found that in technical solution provided in an embodiment of the present invention, during multimedia, The audio frequency parameter of the multimedia code stream sound intermediate frequency is obtained with predeterminated frequency;The multimedia is determined according to the audio frequency parameter The video frame rate of middle video.Therefore, in embodiments of the present invention, determined in multimedia according to the audio frequency parameter of multimedia sound intermediate frequency The size of the video frame rate of video, i.e. video frame rate is determined by audio frequency parameter, is contributed to during solving multimedia, depending on Frequently, the nonsynchronous problem of audio.
Second aspect of the embodiment of the present invention provides a kind of determining device of video frame rate, which can be multimedia Equipment, such as mobile phone, IPAD, television set, laptop etc..It is one kind provided in an embodiment of the present invention shown in please referring to Fig.2 The structure chart of the determining device of video frame rate.The determining device 200 of video frame rate includes:Acquiring unit 201 and processing unit 202。
Acquiring unit 201, for during multimedia, the multimedia code stream middle pitch to be obtained with predeterminated frequency The audio frequency parameter of frequency;
Processing unit 202, the video frame rate for determining video in the multimedia part according to the audio frequency parameter.
Optionally, processing unit 202 is specifically used for:
The video frame rate correction value of the video is determined according to the audio frequency parameter;
Initial video frame per second is modified according to the video frame rate correction value, obtains the video frame rate;Wherein, institute It is video frame rate that is preset, being carried in the multimedia code stream to state initial video frame per second.
Optionally, processing unit 202 is specifically used for:
Determine the video frame number that the code stream is included in preset time;
Determine the playing duration of code stream audio in the preset time;
The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
Optionally, if including audio sample rate in the audio frequency parameter, processing unit 202 is specifically used for:
Audio sample point number of the code stream in the preset time is determined according to the type of coding of the audio;Institute It is the discrete point acquired from the corresponding waveform of the audio to state audio sample point;
Determine the first ratio between the audio sample point number and the sample frequency, first ratio is described Playing duration;Wherein, the sample frequency is used to indicate the rate for acquiring the audio sample point.
Optionally, the video frame rate correction value is the ratio of the video frame number and the playing duration of the audio.
Since the determining device of video frame rate shown in Fig. 2 and the determination method of aforementioned video frame rate shown in FIG. 1 are bases Invention under same design, by aforementioned to the determination method of video frame rate and its detailed description of version, this field Technical staff can be apparent from the implementation process of the determining device of video frame rate in the present embodiment, so in order to illustrate book Succinctly, details are not described herein.
Third aspect present invention provides a kind of determining device of video frame rate, please refer to Fig.3 shown in, be the embodiment of the present invention A kind of structure chart of the determining device of the video frame rate provided.The determining device 300 of video frame rate includes:Memory 301 and place Manage device 302, wherein memory 301 is stored with the instruction that can be executed by processor 302, and processor 302 is by executing memory The instruction of 301 storages, executes the determination method of the video frame rate provided such as first aspect of the embodiment of the present invention.
Optionally, processor 302 can be general central processing unit (CPU) or application-specific integrated circuit (English: Application Specific Integrated Circuit, referred to as:ASIC), can be that one or more is used to control journey The integrated circuit that sequence executes can be use site programmable gate array (English:FieldProgrammable Gate Array, referred to as:FPGA) the hardware circuit developed, can be baseband processor.
Optionally, memory 301 may include read-only memory (English:Read Only Memory, referred to as:ROM), with Machine accesses memory (English:Random Access Memory, referred to as:RAM one or more) and in magnetic disk storage.It deposits Reservoir 301 is used to store data and/or instruction required when processor 302 is run.The quantity of memory 301 can be one or It is multiple.
Since the determining device of video frame rate shown in Fig. 3 and the determination method of aforementioned video frame rate shown in FIG. 1 are bases Invention under same design, by aforementioned to the determination method of video frame rate and its detailed description of version, this field Technical staff can be apparent from the implementation process of the determining device of video frame rate in the present embodiment, so in order to illustrate book Succinctly, details are not described herein.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of determination method of video frame rate, which is characterized in that including:
During multimedia, the audio frequency parameter of the multimedia code stream sound intermediate frequency is obtained with predeterminated frequency;
The video frame rate of video in the multimedia is determined according to the audio frequency parameter.
2. the method as described in claim 1, which is characterized in that determine video in the multimedia according to the audio frequency parameter Video frame rate, including:The video frame rate correction value of the video is determined according to the audio frequency parameter;
Initial video frame per second is modified according to the video frame rate correction value, obtains the video frame rate;Wherein, described first Beginning video frame rate is video frame rate that is preset, being carried in the multimedia code stream.
3. method as claimed in claim 2, which is characterized in that determine the video frame rate of the video according to the audio frequency parameter Correction value, including:
Determine the video frame number that the code stream is included in preset time;
Determine the playing duration of code stream audio in the preset time;
The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
4. method as claimed in claim 3, which is characterized in that if in the audio frequency parameter including audio sample rate, it is determined that The playing duration of code stream audio in the preset time, including:
Audio sample point number of the code stream in the preset time is determined according to the type of coding of the audio;The sound Frequency sampling point is the discrete point acquired from the corresponding waveform of the audio;
Determine that the first ratio between the audio sample point number and the sample frequency, first ratio are the broadcasting Duration;Wherein, the sample frequency is used to indicate the rate for acquiring the audio sample point.
5. method as claimed in claim 3, which is characterized in that the video frame rate correction value be the video frame number with it is described The ratio of the playing duration of audio.
6. a kind of determining device of video frame rate, which is characterized in that including:
Acquiring unit, for during multimedia, the sound of the multimedia code stream sound intermediate frequency to be obtained with predeterminated frequency Frequency parameter;
Processing unit, the video frame rate for determining video in the multimedia part according to the audio frequency parameter.
7. device as claimed in claim 6, which is characterized in that the processing unit is specifically used for:
The video frame rate correction value of the video is determined according to the audio frequency parameter;
Initial video frame per second is modified according to the video frame rate correction value, obtains the video frame rate;Wherein, described first Beginning video frame rate is video frame rate that is preset, being carried in the multimedia code stream.
8. device as claimed in claim 7, which is characterized in that the processing unit is specifically used for:
Determine the video frame number that the code stream is included in preset time;
Determine the playing duration of code stream audio in the preset time;
The video frame rate correction value is determined according to the playing duration of the video frame number and the audio.
9. device as claimed in claim 8, which is characterized in that described if in the audio frequency parameter including audio sample rate Processing unit is specifically used for:
Audio sample point number of the code stream in the preset time is determined according to the type of coding of the audio;The sound Frequency sampling point is the discrete point acquired from the corresponding waveform of the audio;
Determine that the first ratio between the audio sample point number and the sample frequency, first ratio are the broadcasting Duration;Wherein, the sample frequency is used to indicate the rate for acquiring the audio sample point.
10. device as claimed in claim 8, which is characterized in that the video frame rate correction value is the video frame number and institute State the ratio of the playing duration of audio.
11. a kind of determining device of video frame rate, which is characterized in that including:Processor and memory;
The memory, when the processor executes described instruction, makes the video frame for storing computer executed instructions The determining device of rate executes method as described in any one in claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes instruction, works as institute Instruction is stated when running on computers so that the computer executes method as described in any one in claim 1-5.
CN201810142326.6A 2018-02-11 2018-02-11 A kind of determination method and device of video frame rate Pending CN108377415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810142326.6A CN108377415A (en) 2018-02-11 2018-02-11 A kind of determination method and device of video frame rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810142326.6A CN108377415A (en) 2018-02-11 2018-02-11 A kind of determination method and device of video frame rate

Publications (1)

Publication Number Publication Date
CN108377415A true CN108377415A (en) 2018-08-07

Family

ID=63017762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810142326.6A Pending CN108377415A (en) 2018-02-11 2018-02-11 A kind of determination method and device of video frame rate

Country Status (1)

Country Link
CN (1) CN108377415A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944225A (en) * 2019-11-20 2020-03-31 武汉长江通信产业集团股份有限公司 HTML 5-based method and device for synchronizing audio and video with different frame rates

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038807A1 (en) * 2001-08-22 2003-02-27 Demos Gary Alfred Method and apparatus for providing computer-compatible fully synchronized audio/video information
US20030058224A1 (en) * 2001-09-18 2003-03-27 Chikara Ushimaru Moving image playback apparatus, moving image playback method, and audio playback apparatus
CN101640057A (en) * 2009-05-31 2010-02-03 北京中星微电子有限公司 Audio and video matching method and device therefor
CN101964903A (en) * 2010-10-11 2011-02-02 陕西赛瑞德科技发展有限责任公司 Method for synchronously playing audio and video streaming media in wireless environment
CN103391467A (en) * 2013-07-16 2013-11-13 四川省迪特尔电子有限公司 Method for achieving synchronization of decoding and displaying of audio and video of network set-top box
CN104092920A (en) * 2014-07-16 2014-10-08 浙江航天长峰科技发展有限公司 Audio and video synchronizing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038807A1 (en) * 2001-08-22 2003-02-27 Demos Gary Alfred Method and apparatus for providing computer-compatible fully synchronized audio/video information
US20030058224A1 (en) * 2001-09-18 2003-03-27 Chikara Ushimaru Moving image playback apparatus, moving image playback method, and audio playback apparatus
CN101640057A (en) * 2009-05-31 2010-02-03 北京中星微电子有限公司 Audio and video matching method and device therefor
CN101964903A (en) * 2010-10-11 2011-02-02 陕西赛瑞德科技发展有限责任公司 Method for synchronously playing audio and video streaming media in wireless environment
CN103391467A (en) * 2013-07-16 2013-11-13 四川省迪特尔电子有限公司 Method for achieving synchronization of decoding and displaying of audio and video of network set-top box
CN104092920A (en) * 2014-07-16 2014-10-08 浙江航天长峰科技发展有限公司 Audio and video synchronizing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944225A (en) * 2019-11-20 2020-03-31 武汉长江通信产业集团股份有限公司 HTML 5-based method and device for synchronizing audio and video with different frame rates
CN110944225B (en) * 2019-11-20 2022-10-04 武汉长江通信产业集团股份有限公司 HTML 5-based method and device for synchronizing audio and video with different frame rates

Similar Documents

Publication Publication Date Title
JP7424420B2 (en) Information processing device and information processing method
US7500175B2 (en) Aspects of media content rendering
CN104253999B (en) Apparatus and method for transmission content
CN105100963A (en) Audio-video media file synthetic method and service system
CN108111997A (en) Bluetooth equipment audio synchronization method and system
CN101232611B (en) Image process apparatus and method thereof
US20210074327A1 (en) Methods and apparatus to perform speed-enhanced playback of recorded media
CN104185088B (en) A kind of method for processing video frequency and device
CN110505498A (en) Processing, playback method, device and the computer-readable medium of video
CN104104900B (en) A kind of data playing method
CN101383961B (en) Content reproduction appratus, content reproduction method, and content reproduction system
CN104935975B (en) A kind of gasket playback method and device
CN106060628A (en) DirectShow-based method and system supporting variable coding
KR102683551B1 (en) Decryption device and method, and computer-readable recording medium recording the program
CN108377415A (en) A kind of determination method and device of video frame rate
CN104104901B (en) A kind of data playing method and device
CN109688430A (en) A kind of court trial file playback method, system and storage medium
CN107580264A (en) Multimedia resource play handling method and device
JP2016072858A (en) Media data generation method, media data reproduction method, media data generation device, media data reproduction device, computer readable recording medium and program
CN107135407B (en) Synchronous method and system in a kind of piano video teaching
CN106792219B (en) It is a kind of that the method and device reviewed is broadcast live
CN104202321B (en) A kind of method and device of sound recording
US20200105286A1 (en) Methods and systems for suppressing vocal tracks
CN102572339A (en) Decoding apparatus for encoded video signals
CN116233411A (en) Method, device, equipment and computer storage medium for audio and video synchronous test

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180807

RJ01 Rejection of invention patent application after publication