CN114679665A - Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium - Google Patents

Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114679665A
CN114679665A CN202210256846.6A CN202210256846A CN114679665A CN 114679665 A CN114679665 A CN 114679665A CN 202210256846 A CN202210256846 A CN 202210256846A CN 114679665 A CN114679665 A CN 114679665A
Authority
CN
China
Prior art keywords
time
information
time information
target
audio
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
CN202210256846.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.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN202210256846.6A priority Critical patent/CN114679665A/en
Publication of CN114679665A publication Critical patent/CN114679665A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the disclosure provides an audio and video synchronization method and device for a Bluetooth headset, electronic equipment and a storage medium, and relates to the technical field of multimedia data processing. The audio and video synchronization method of the Bluetooth headset comprises the following steps: acquiring first time information; the first time information is the time when the playing equipment sends the target audio data; acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data; obtaining target delay information according to the first time information and the second time information; and carrying out audio and video synchronization according to the target delay information, and reducing the delay time of audio and video playing by the technical scheme provided by the embodiment of the disclosure.

Description

Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of multimedia data processing, in particular to an audio and video synchronization method and device for a Bluetooth headset, electronic equipment and a storage medium.
Background
The Bluetooth transmission has a certain time delay, and when the time delay is large, the audio heard by the user earphone and the video picture played in the equipment are asynchronous when the user watches the audio and the video.
Disclosure of Invention
The disclosed embodiments mainly aim to provide a method and a device for synchronizing audio and video of a bluetooth headset, an electronic device and a storage medium, which can reduce delay time of audio and video playing.
In order to achieve the above object, a first aspect of the embodiments of the present disclosure provides an audio and video synchronization method for a bluetooth headset, including:
acquiring first time information; the first time information is the time when the playing equipment sends the target audio data;
acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data;
obtaining target delay information according to the first time information and the second time information;
and carrying out audio and video synchronization according to the target delay information.
In some embodiments, the obtaining first time information comprises:
acquiring the encoding start time of the target audio data in the playing device;
marking the encoding start time as the first time information.
In some embodiments, the obtaining second time information comprises:
acquiring the decoding end time of the target audio data in the Bluetooth headset;
marking the decoding end time as the second time information.
In some embodiments, the obtaining target delay information according to the first time information and the second time information includes:
calculating a difference value between the first time information and the second time information, and storing the difference value as initial delay information;
obtaining the target delay information according to the initial delay information and the delay compensation information; the delay compensation information includes at least any one of: data read latency information, hardware drive latency information.
In some embodiments, the performing audio and video synchronization according to the target delay information includes:
acquiring target video data corresponding to the target audio data in the playing equipment;
and carrying out delayed playing processing on the target video data according to the target delay time.
In some embodiments, the method further comprises:
acquiring a manual audio/video adjusting instruction of a user;
and updating the target delay time according to the manual audio/video adjusting instruction.
In some embodiments, prior to said obtaining first time information, the method further comprises:
establishing a Bluetooth connection between the playing device and the Bluetooth headset;
and performing clock synchronization processing on the playing equipment and the Bluetooth headset.
In order to achieve the above object, a second aspect of the present disclosure provides an audio and video synchronization apparatus for a bluetooth headset, including:
the first time acquisition module is used for acquiring first time information; the first time information is the time when the playing equipment sends the target audio data;
the second time acquisition module is used for acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data;
the delay calculation module is used for obtaining target delay information according to the first time information and the second time information;
and the synchronization module is used for carrying out audio and video synchronization according to the target delay information.
To achieve the above object, a third aspect of the present disclosure provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the program is stored in a memory and a processor executes the at least one program to implement the method of the present disclosure as described in the above first aspect.
To achieve the above object, a fourth aspect of the present disclosure proposes a storage medium that is a computer-readable storage medium storing computer-executable instructions for causing a computer to perform:
The method of the first aspect as described above.
The audio and video synchronization method and device for the Bluetooth headset, the electronic device and the storage medium provided by the embodiment of the disclosure are characterized in that first time information is acquired, the first time information is the time when the playing device sends target audio data, then second time information is acquired, the second time information is the time when the Bluetooth headset receives the target audio data, then target delay information is obtained according to the first time information and the second time information, and finally audio and video synchronization is performed according to the target delay information.
Drawings
Fig. 1 is a flowchart of an audio and video synchronization method for a bluetooth headset according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of step S110 in fig. 1.
Fig. 3 is a flowchart of step S120 in fig. 1.
Fig. 4 is a flowchart of step S130 in fig. 1.
Fig. 5 is a flowchart of step S140 in fig. 1.
Fig. 6 is a partial flowchart of an audio and video synchronization method for a bluetooth headset according to another embodiment of the present disclosure.
Fig. 7 is a partial flowchart of an audio and video synchronization method for a bluetooth headset according to another embodiment of the present disclosure.
Fig. 8 is a block diagram of an audio and video synchronization device of a bluetooth headset according to an embodiment of the present disclosure.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present disclosure.
Reference numerals: a first time acquisition module 810, a second time acquisition module 820, a delay calculation module 830, a synchronization module 840, a processor 901, a memory 902, an input/output interface 903, a communication interface 904, a bus 905.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
The Bluetooth transmission has a certain time delay, and when the time delay is large, the audio heard by the user earphone and the video picture played in the equipment are asynchronous when the user watches the audio and the video.
Based on this, the embodiments of the present disclosure provide a method and an apparatus for audio and video synchronization of a bluetooth headset, an electronic device, and a storage medium, where first time information is obtained first, where the first time information is a time when a playing device sends target audio data, then second time information is obtained, where the second time information is a time when the bluetooth headset receives the target audio data, and then target delay information is obtained according to the first time information and the second time information, and finally audio and video synchronization is performed according to the target delay information.
The embodiments of the present disclosure provide a method and an apparatus for audio and video synchronization of a bluetooth headset, an electronic device, and a storage medium, which are specifically described with reference to the following embodiments, first, an audio and video synchronization method of a bluetooth headset in an embodiment of the present disclosure is described.
The embodiment of the disclosure provides an audio and video synchronization method for a bluetooth headset, which includes: acquiring first time information; the first time information is the time when the playing equipment sends the target audio data; acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data; obtaining target delay information according to the first time information and the second time information; and carrying out audio and video synchronization according to the target delay information.
Fig. 1 is an optional flowchart of an audio and video synchronization method for a bluetooth headset provided in an embodiment of the present disclosure, where the method in fig. 1 may include, but is not limited to, step S110 to step S140, and specifically includes:
s110, acquiring first time information;
s120, acquiring second time information;
s130, obtaining target delay information according to the first time information and the second time information;
and S140, carrying out audio and video synchronization according to the target delay information.
It should be noted that the playing device is a device that plays audio by connecting with a bluetooth headset, the target audio data is any audio data to be sent to the headset or to be played, and the target audio data includes the first byte data of the audio data.
In step S110, the first time information is the time when the playing device transmits the target audio data, specifically, before the playing device encodes the target audio data, the system time at this time is marked and taken as the first time information.
In step S120, the second time information is the time when the bluetooth headset receives the target audio data, specifically, after the bluetooth headset receives the target audio data and completes decoding the target audio data, the system time at this time is marked and is used as the second time information.
In step S130, the time delay of the target audio data in the whole process and transmission process, i.e. the target delay information, is obtained from the time before encoding and the time after decoding of the target audio data.
In step S140, the bluetooth headset reports the target delay information to the playback device, and the playback device adjusts the time for playing the audio in advance, so as to achieve the effect of synchronizing the video with the audio being heard, specifically, the synchronizing process includes: the method comprises the steps of firstly acquiring target video data corresponding to target audio data in playing equipment, then carrying out delayed playing processing on the target video data according to target delay time, wherein the target video data is video data synchronous with the target audio data, firstly positioning to a specific position of a video frame according to timestamp information, and then carrying out delayed playing from the video frame according to the calculated target delay time so as to realize synchronous playing of the target audio data and the target video data.
It should be noted that the target video data and the target audio data in the present application may be any data frame in the video and a section of audio corresponding to the data frame, that is, the whole synchronization process and the audio/video playing process are performed in real time, and the audio/video playing time difference may be dynamically adjusted, so as to achieve the effect of synchronizing the audio and the video. For example, in the process of playing audio and video, if the interference of the wireless environment is large or the distance between the bluetooth headset and the playing device is increased, which results in the increase of the time delay of audio playing in the bluetooth headset at this moment, the detected target delay information will be increased, so that the force for performing delay synchronization will be increased to match the dynamic change of the audio time delay.
The audio and video synchronization method of the bluetooth headset, provided by the embodiment of the disclosure, includes the steps of firstly obtaining first time information, wherein the first time information is the time when the playing device sends target audio data, then obtaining second time information, wherein the second time information is the time when the bluetooth headset receives the target audio data, further obtaining target delay information according to the first time information and the second time information, and finally carrying out audio and video synchronization according to the target delay information.
In some embodiments, obtaining first time information comprises: acquiring the encoding start time of target audio data in the playing equipment; the encoding start time is marked as first time information.
Fig. 2 is a flow chart of step S110 in some embodiments, and step S110 illustrated in fig. 2 includes, but is not limited to, steps S210 to S220:
s210, acquiring the encoding start time of target audio data in the playing equipment;
s220, the encoding start time is marked as the first time information.
In step S210, the encoding start time is a system time before the playing device encodes the target audio data, and in step S220, the system time is marked as first time information for subsequent calculation of the target delay information.
In some embodiments, obtaining the second time information comprises: acquiring the decoding end time of target audio data in the Bluetooth headset; the decoding end time is marked as second time information.
Fig. 3 is a flow chart of step S120 in some embodiments, and step S120 illustrated in fig. 3 includes, but is not limited to, steps S310 to S320:
s310, acquiring the decoding end time of target audio data in the Bluetooth headset;
s320, marking the decoding end time as the second time information.
In step S310, the decoding end time is a system time after the bluetooth headset receives the target audio data and completes decoding of the target audio data, and in step S320, the system time is marked as second time information for subsequent calculation of the target delay information.
In some embodiments, obtaining the target delay information according to the first time information and the second time information includes: calculating a difference value between the first time information and the second time information, and storing the difference value as initial delay information; obtaining target delay information according to the initial delay information and the delay compensation information; the delay compensation information includes at least any one of: data read latency information, hardware drive latency information.
Fig. 4 is a flowchart of step S130 in some embodiments, and step S130 illustrated in fig. 4 includes, but is not limited to, step S410 to step S420:
s410, calculating a difference value between the first time information and the second time information, and storing the difference value as initial delay information;
and S420, obtaining target delay information according to the initial delay information and the delay compensation information.
In step S410, the time difference from before encoding the target audio data to after decoding is the initial delay information, but the delay is not completely equivalent to the theoretical total delay time, i.e., the target delay information, and therefore, in step S420, the initial delay information needs to be compensated by the delay compensation information.
Specifically, the delay compensation information includes, but is not limited to, data read delay information, hardware drive delay information; the data reading delay information is the time length of reading the target audio data from the hard disk, and the hardware driving delay information is the time delay caused by the operation of other hardware and driving devices of the playing device.
It should be noted that the delay compensation information may be obtained through prediction by experience, or may be obtained through information acquisition and calculation in real time, the delay compensation information does not account for the dominant factors in the target delay information, and the magnitude of the delay compensation information is generally in the ms level, but these non-dominant factors are considered and predicted in the target delay information, so that the accuracy of audio and video synchronization is greatly improved.
In some embodiments, audio-video synchronization according to the target delay information includes: acquiring target video data corresponding to the target audio data in the playing equipment; and carrying out delayed play processing on the target video data according to the target delay time.
Fig. 5 is a flowchart of step S140 in some embodiments, and step S140 illustrated in fig. 5 includes, but is not limited to, step S510 to step S520:
s510, acquiring target video data corresponding to the target audio data in the playing equipment;
and S520, performing delayed playing processing on the target video data according to the target delay time.
In step S510, the target video data is video data synchronized with the target audio data, and is first located at a specific position of the video frame according to the timestamp information, and in step S520, the delayed playing is performed from the video frame according to the calculated target delay time, so as to achieve the synchronous playing of the target audio data and the target video data.
In some embodiments, the method further comprises: acquiring a manual audio/video adjusting instruction of a user; and updating the target delay time according to the manual audio/video adjusting instruction.
As shown in fig. 6, fig. 6 is a flowchart of an audio and video synchronization method for a bluetooth headset according to another embodiment, where the audio and video synchronization method for a bluetooth headset further includes:
S610, acquiring a manual audio and video adjusting instruction of a user;
and S620, updating the target delay time according to the manual audio/video adjusting instruction.
In step S610, the user sends a manual audio/video adjustment instruction, such as an adjustment instruction of "advance audio by 3 seconds", "delay audio by 2 seconds", to update the target delay time in step S620, thereby manually controlling the audio/video synchronization process by the user, indirectly making up for possible defects, and enhancing flexibility of audio/video synchronization.
In some embodiments, prior to obtaining the first time information, the method further comprises: establishing Bluetooth connection between the playing device and the Bluetooth headset; and carrying out clock synchronization processing on the playing equipment and the Bluetooth headset.
As shown in fig. 7, fig. 7 is a flowchart of an audio and video synchronization method for a bluetooth headset according to another embodiment, where the audio and video synchronization method for a bluetooth headset further includes:
s710, establishing Bluetooth connection between the playing device and the Bluetooth headset;
and S720, performing clock synchronization processing on the playing device and the Bluetooth headset.
In a specific embodiment, the acquisition of the first time information depends on a system clock of the playing device, and the acquisition of the second time depends on a system clock of the bluetooth headset, so that the playing device and the bluetooth headset need to be bluetooth connected and perform clock synchronization before data acquisition, thereby improving the accuracy of audio and video synchronization.
The embodiment of the present disclosure provides an audio and video synchronization device for a bluetooth headset, including: the first time acquisition module is used for acquiring first time information; the first time information is the time when the playing equipment sends the target audio data; the second time acquisition module is used for acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data; the delay calculation module is used for obtaining target delay information according to the first time information and the second time information; and the synchronization module is used for carrying out audio and video synchronization according to the target delay information.
Referring to fig. 8, fig. 8 illustrates an audio and video synchronization device of a bluetooth headset according to an embodiment, where the audio and video synchronization device of the bluetooth headset includes: a first time obtaining module 810, a second time obtaining module 820, a delay calculating module 830, and a synchronization module 840. The first time obtaining module 810 is connected to the second time obtaining module 820, the second time obtaining module 820 is connected to the delay calculating module 830, and the delay calculating module 830 is connected to the synchronizing module 840.
Specifically, the first time obtaining module 810 obtains first time information, where the first time information is a time when the playing device sends target audio data, the second time obtaining module 820 obtains second time information, where the second time information is a time when the bluetooth headset receives the target audio data, the delay calculating module 830 obtains the target delay information according to the first time information and the second time information, and the synchronizing module 840 performs audio and video synchronization according to the target delay information.
The specific implementation of the audio and video synchronization device of the bluetooth headset of this embodiment is substantially the same as the specific implementation of the audio and video synchronization method of the bluetooth headset, and belongs to the same inventive concept, which is not described herein again.
An embodiment of the present disclosure further provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the programs are stored in the memory, and the processor executes at least one program to realize the Bluetooth headset audio and video synchronization method implemented by the disclosure. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA for short), a vehicle-mounted computer and the like.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 901 may be implemented by a general-purpose CPU (central processing unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided by the embodiment of the present disclosure;
The memory 902 may be implemented in the form of a ROM (read only memory), a static storage device, a dynamic storage device, or a RAM (random access memory). The memory 902 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 902, and the processor 901 calls the method for implementing the audio and video synchronization of the bluetooth headset according to the embodiments of the present disclosure;
an input/output interface 903 for implementing information input and output;
a communication interface 904, configured to implement communication interaction between the device and another device, where communication may be implemented in a wired manner (e.g., USB, network cable, etc.), or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.); and
a bus 905 that transfers information between various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 enable a communication connection within the device with each other through a bus 905.
The embodiment of the present disclosure also provides a storage medium, which is a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned bluetooth headset audio/video synchronization method.
The audio and video synchronization method and device for the Bluetooth headset, the electronic device and the storage medium provided by the embodiment of the disclosure are characterized in that first time information is acquired, the first time information is the time when the playing device sends target audio data, then second time information is acquired, the second time information is the time when the Bluetooth headset receives the target audio data, then target delay information is obtained according to the first time information and the second time information, and finally audio and video synchronization is performed according to the target delay information.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present disclosure are for more clearly illustrating the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation to the technical solutions provided in the embodiments of the present disclosure, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present disclosure are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-7 are not meant to limit the embodiments of the present disclosure, and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like (if any) in the description of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product, which is stored in a storage medium and includes multiple instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present disclosure have been described above with reference to the accompanying drawings, and therefore do not limit the scope of the claims of the embodiments of the present disclosure. Any modifications, equivalents and improvements within the scope and spirit of the embodiments of the present disclosure should be considered within the scope of the claims of the embodiments of the present disclosure by those skilled in the art.

Claims (10)

1. An audio and video synchronization method for a Bluetooth headset is characterized by comprising the following steps:
acquiring first time information; the first time information is the time when the playing equipment sends the target audio data;
acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data;
obtaining target delay information according to the first time information and the second time information;
and carrying out audio and video synchronization according to the target delay information.
2. The method of claim 1, wherein obtaining the first time information comprises:
acquiring the encoding start time of the target audio data in the playing device;
marking the encoding start time as the first time information.
3. The method of claim 1, wherein obtaining the second time information comprises:
acquiring the decoding end time of the target audio data in the Bluetooth headset;
marking the decoding end time as the second time information.
4. The method of claim 1, wherein obtaining target delay information according to the first time information and the second time information comprises:
Calculating a difference value between the first time information and the second time information, and storing the difference value as initial delay information;
obtaining the target delay information according to the initial delay information and the delay compensation information; the delay compensation information includes at least any one of: data read latency information, hardware drive latency information.
5. The method of claim 1, wherein the performing audio-video synchronization according to the target delay information comprises:
acquiring target video data corresponding to the target audio data in the playing equipment;
and carrying out delayed play processing on the target video data according to the target delay time.
6. The method of claim 1, further comprising:
acquiring a manual audio/video adjusting instruction of a user;
and updating the target delay time according to the manual audio/video adjusting instruction.
7. The method according to any of claims 1 to 6, wherein prior to said obtaining first time information, the method further comprises:
establishing a Bluetooth connection between the playing device and the Bluetooth headset;
and performing clock synchronization processing on the playing equipment and the Bluetooth headset.
8. The utility model provides a bluetooth headset audio frequency and video synchronizer which characterized in that includes:
the first time acquisition module is used for acquiring first time information; the first time information is the time when the playing equipment sends the target audio data;
the second time acquisition module is used for acquiring second time information; the second time information is the time when the Bluetooth headset receives the target audio data;
the delay calculation module is used for obtaining target delay information according to the first time information and the second time information;
and the synchronization module is used for carrying out audio and video synchronization according to the target delay information.
9. An electronic device, comprising:
at least one memory;
at least one processor;
at least one program;
the programs are stored in a memory, and a processor executes the at least one program to implement:
the method of any one of claims 1 to 7.
10. A storage medium that is a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform:
the method of any one of claims 1 to 7.
CN202210256846.6A 2022-03-16 2022-03-16 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium Pending CN114679665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210256846.6A CN114679665A (en) 2022-03-16 2022-03-16 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210256846.6A CN114679665A (en) 2022-03-16 2022-03-16 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114679665A true CN114679665A (en) 2022-06-28

Family

ID=82074732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210256846.6A Pending CN114679665A (en) 2022-03-16 2022-03-16 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114679665A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038162A (en) * 2022-08-12 2022-09-09 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
CN115175159A (en) * 2022-09-06 2022-10-11 荣耀终端有限公司 Bluetooth headset playing method and equipment
CN115426514A (en) * 2022-07-22 2022-12-02 北京罗克维尔斯科技有限公司 Cross-device audio and video synchronization method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100295993A1 (en) * 2009-05-20 2010-11-25 Samsung Electronics Co., Ltd. Apparatus and method for synchronization between video and audio in mobile communication terminal
CN107734378A (en) * 2017-10-31 2018-02-23 维沃移动通信有限公司 A kind of audio and video synchronization method, device and mobile terminal
US20180167149A1 (en) * 2016-12-09 2018-06-14 Arris Enterprises Llc Calibration device, method and program for achieving synchronization between audio and video data when using bluetooth audio devices
CN114040237A (en) * 2021-09-30 2022-02-11 茂佳科技(广东)有限公司 Audio and video synchronous playing method, terminal, multimedia playing system and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100295993A1 (en) * 2009-05-20 2010-11-25 Samsung Electronics Co., Ltd. Apparatus and method for synchronization between video and audio in mobile communication terminal
US20180167149A1 (en) * 2016-12-09 2018-06-14 Arris Enterprises Llc Calibration device, method and program for achieving synchronization between audio and video data when using bluetooth audio devices
CN107734378A (en) * 2017-10-31 2018-02-23 维沃移动通信有限公司 A kind of audio and video synchronization method, device and mobile terminal
CN114040237A (en) * 2021-09-30 2022-02-11 茂佳科技(广东)有限公司 Audio and video synchronous playing method, terminal, multimedia playing system and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426514A (en) * 2022-07-22 2022-12-02 北京罗克维尔斯科技有限公司 Cross-device audio and video synchronization method, device, equipment and medium
CN115038162A (en) * 2022-08-12 2022-09-09 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
CN115038162B (en) * 2022-08-12 2022-11-18 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
CN115175159A (en) * 2022-09-06 2022-10-11 荣耀终端有限公司 Bluetooth headset playing method and equipment
CN115175159B (en) * 2022-09-06 2023-01-13 荣耀终端有限公司 Bluetooth headset playing method and equipment

Similar Documents

Publication Publication Date Title
CN114679665A (en) Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium
CN106658133B (en) Audio and video synchronous playing method and terminal
US10734032B2 (en) Method, device, and system of synchronously playing media file
CN106454434B (en) Bullet screen playing method and device
US11812103B2 (en) Dynamic playout of transition frames while transitioning between playout of media streams
CN109819303B (en) Data output method and related equipment
CN103475939A (en) Method, device and server for processing play record
CN112039623B (en) Audio synchronous playing method, device, equipment and storage medium
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
CN109379619A (en) Sound draws synchronous method and device
CN109144463A (en) Transfer control method, device and electronic equipment
CN108156509A (en) Video broadcasting method, device and user terminal
CN108156500B (en) Multimedia data time correction method, computer device and computer readable storage medium
CN110519627B (en) Audio data synchronization method and device
CN114699767A (en) Game data processing method, device, medium and electronic equipment
CN111182302B (en) Video image encoding method, terminal device, and storage medium
CN109040819A (en) Playback progress synchronous method, device, equipment and storage medium
CN104837046A (en) Multi-media file processing method and device
CN107710754B (en) Audio and video data synchronization method and device
CN113050904A (en) Screen sharing method and device
JP2018074480A (en) Reception terminal and program
CN113473191B (en) Multi-device advertisement synchronous playing method and device, computer device and storage medium
CN112995699B (en) Online live broadcast method, live broadcast equipment, live broadcast system and electronic equipment
CN112118473B (en) Video bullet screen display method and device, computer equipment and readable storage medium
CN110856028B (en) Media data playing method, equipment and storage medium

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: 20220628