WO2023279326A1 - 音视频传输方法、装置、设备及存储介质 - Google Patents

音视频传输方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023279326A1
WO2023279326A1 PCT/CN2021/105216 CN2021105216W WO2023279326A1 WO 2023279326 A1 WO2023279326 A1 WO 2023279326A1 CN 2021105216 W CN2021105216 W CN 2021105216W WO 2023279326 A1 WO2023279326 A1 WO 2023279326A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
video transmission
video
transmission device
network
Prior art date
Application number
PCT/CN2021/105216
Other languages
English (en)
French (fr)
Inventor
吴嵩
贾正东
周玉龙
陆品李
Original Assignee
深圳爱特天翔科技有限公司
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 深圳爱特天翔科技有限公司 filed Critical 深圳爱特天翔科技有限公司
Priority to PCT/CN2021/105216 priority Critical patent/WO2023279326A1/zh
Publication of WO2023279326A1 publication Critical patent/WO2023279326A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Definitions

  • the present application relates to the communication field, in particular to an audio and video transmission method, device, equipment and storage medium.
  • wireless audio and video transmitters are becoming more and more popular.
  • wireless high-definition video transmitters obtain audio and video data to be transmitted from audio and video source devices through audio and video cables, or through audio and video cables. Output audio and video data to a display device for display.
  • This wireless high-definition video transmitter is not very convenient to use because the audio and video cables are inconvenient to organize and carry.
  • the present application provides at least one audio and video transmission method, device, equipment and storage medium.
  • the application provides an audio and video transmission device, including: at least one first audio and video interface, the first audio and video interface is used to transmit audio and video data; an audio and video transmission circuit, the audio and video transmission circuit is connected to the first audio and video interface, It is used to process audio and video data; wherein, the first audio and video interface is an interface in the form of a male header.
  • the audio and video transmission device includes operation keys, and the operation keys are used to generate at least one selection command, so that the audio and video transmission device responds to the selection command and opens the function mode corresponding to the selection command; wherein, each selection command corresponds to a different function mode .
  • the function mode includes a first setting mode and a second setting mode; wherein, when the audio and video transmission device is in the first setting mode, the audio and video transmission device is used to restore at least part of the working parameters of the audio and video transmission device to the factory The initial state; when the audio and video transmission device is in the second setting mode, the audio and video transmission device is used to adjust the working parameters of the audio and video transmission device according to the user's adjustment instruction.
  • the function mode includes at least one transmission mode; when the audio and video transmission device is in the first transmission mode, the operation key is used to generate the first operation instruction, so that the audio and video transmission device responds to the first operation instruction to suspend the audio and video transmission, or Switch the frequency point for audio and video transmission; and/or, when the audio and video transmission device is in the second transmission mode, the operation key is used to generate a second operation instruction, so that the audio and video transmission device responds to the second operation instruction, switch The status and/or quantity of other audio and video transmission devices connected to the audio and video transmission device; wherein, in the first transmission mode and the second transmission mode, the network access points are different.
  • the audio and video transmission circuit includes: a communication module, which is used to establish a communication connection with other audio and video transmission devices; a media codec processing module, which is used to encode or decode audio and video data; a power supply circuit , for the electronic circuit to supply power to other modules.
  • the audio-video transmission device includes a second audio-video interface, the second audio-video interface is a Micro USB interface, and the first audio-video interface is an HDMI interface.
  • the present application provides an audio and video transmission method, which is applied to the audio and video transmission device described in any one of the above.
  • the audio and video transmission method includes: obtaining preset information of the audio and video transmission device; The communication connection between the video transmission device and other audio and video transmission devices; use the communication connection to perform audio and video transmission with other audio and video transmission devices.
  • the preset information includes a pairing code and at least one key; based on the preset information, constructing a communication connection between the audio and video transmission device and other audio and video transmission devices includes: encrypting the pairing code based on the key to obtain the first network Network parameters, the network parameters of the first network include network name and network password; broadcast the network name of the first network, so that other audio and video transmission devices can search the network name of the first network and join the first network; or, use the network name of the first network Search by network name, and if the first network is found, use the network password of the first network to join the first network.
  • the key includes a first key and a second key; encrypting the pairing code based on the key to obtain network parameters of the first network includes: using the first key to obtain the pairing code according to a first preset encryption algorithm the network name; and, using the second key pair pair code to obtain the network password according to the second preset encryption algorithm.
  • the audio and video transmission with other audio and video transmission devices is carried out by communication connection, including: obtaining the audio and video data to be transmitted and encoding parameters, and the encoding parameters include encoding frame rate, encoding bit rate, bit rate control mode, key frame One or more of the intervals; encoding the audio and video data according to the encoding parameters; sending the encoded audio and video data to other audio and video transmission devices having a communication connection with the audio and video transmission device.
  • the audio and video transmission with other audio and video transmission devices is carried out by using the communication connection, including: obtaining encoded audio and video data and decoding mode, the decoding mode includes smooth mode and low delay mode; according to the decoding mode, the encoded audio and video Decode the video data; output the decoded audio and video data to the display device.
  • the preset information includes an audio and video source table
  • the audio and video source table includes the identification of the audio and video transmission device corresponding to the audio and video data to be transmitted; based on the preset information, the communication between the audio and video transmission device and other audio and video transmission devices is constructed Connecting, including: after receiving the current audio and video data, disconnecting the communication connection between the audio and video transmission devices corresponding to the current audio and video data; communication connection.
  • the present application provides a terminal device, including a memory and a processor, and the processor is used to execute program instructions stored in the memory, so as to realize the above audio and video transmission method.
  • the present application provides a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, the above audio and video transmission method is implemented.
  • the audio and video transmission device does not need to transmit audio and video through bloated audio and video cables, making the audio and video transmission device easy to carry, and improving the convenience of the audio and video transmission process.
  • Fig. 1 is a schematic diagram of the appearance structure of an embodiment of the audio and video transmission device of the present application
  • Fig. 2 is a schematic structural diagram of an audio-video transmission circuit in an embodiment of the audio-video transmission device of the present application
  • FIG. 3 is a schematic structural diagram of an audio and video transmission circuit in another embodiment of the audio and video transmission device of the present application.
  • FIG. 4 is a schematic diagram showing two audio and video transmission devices establishing a communication connection in an embodiment of the audio and video transmission device of the present application
  • Fig. 5 is a schematic diagram showing a plurality of audio and video transmission devices establishing communication connections in another embodiment of the audio and video transmission device of the present application;
  • Fig. 6 is a schematic flow chart of an embodiment of the audio and video transmission method of the present application.
  • FIG. 7 is a schematic structural diagram of an embodiment of a terminal device of the present application.
  • Fig. 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application.
  • the way of transmitting audio and video through the audio and video transmission device may be to use two audio and video transmission devices for audio and video transmission.
  • an audio and video transmission device is used as a sending end, and an audio and video transmission device is used as an output end.
  • the audio and video transmission device as the sending end is connected to the source device, that is, the audio and video transmission device at the sending end obtains the audio and video to be transmitted from the source device
  • the audio and video transmission device as the receiving end is connected to the display device, that is, the audio and video at the receiving end
  • the transmission device receives the audio and video, it can output the received audio and video to the display device, so as to realize the audio and video transmission between the source device and the display device.
  • the source device may be a computer, a tape recorder, a camera, etc.
  • the display device may be a computer, a projector, a TV, a monitor, and the like.
  • the audio and video transmission process can be that the audio and video transmission device as the sending end encodes the audio and video to be transmitted, and then sends the encoded audio and video data to the audio and video transmission device as the receiving end through wireless communication, etc., as a receiving end.
  • the audio and video transmission device at the end decodes the received audio and video data, so as to output the decoded audio and video data to the display device.
  • FIG. 1 is the appearance structural representation of an embodiment of the audio-video transmission device of the present application
  • Fig. 2 is the structural representation of the audio-video transmission circuit in the embodiment of the audio-video transmission device of the present application
  • Fig. 3 is the present application
  • FIG. 2 shows the audio and video transmission circuit when the audio and video transmission device is used as the sending end
  • FIG. 3 shows the audio and video transmission circuit when the audio and video transmission device is used as the receiving end.
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the sending end, please refer to FIG. 2 for the audio and video transmission circuit 102 of the audio and video transmission device 10. Please refer to FIG. 3 for the video transmission circuit 102 .
  • the audio and video transmission device 10 can both send audio and video, and can also receive audio and video.
  • the audio and video transmission device 10 includes at least one first audio and video interface 101 and an audio and video transmission circuit 102 .
  • the audio and video transmitted by the audio and video transmission device 10 may be video data, or separate audio data, and the like.
  • the video data includes a single frame image and a video composed of multiple frames of images, wherein the video composed of multiple frames of images may be audio and video including sound, or audio and video not including sound.
  • Video data and audio data are collectively referred to as audio and video.
  • the first audio and video interface 101 is used for transmitting audio and video data.
  • the first audio and video interface 101 is an HDMI interface.
  • the first audio and video interface 101 is used to obtain audio and video data from the source device, that is, the first audio and video interface 101 realizes the communication between the source device and the audio and video transmission device 10. Audio and video transmission.
  • the first audio and video interface 101 is used to decode the audio and video data received by the audio and video transmission device 10 and output it to the display device, that is, in this case, the first audio and video interface 101
  • the interface 101 is used to implement audio and video transmission between the audio and video transmission device 10 and the display device.
  • the first audio and video interface 101 is a male interface.
  • the first audio-video interface 101 is an HDMI TYPE-A male head.
  • the audio and video transmission device 10 further includes a second audio and video interface 104 .
  • the second audio-video interface 104 is a Micro USB interface.
  • the second audio and video interface 104 can be connected to a power supply device to supply power to the audio and video transmission device 10 .
  • the second audio and video interface 104 can also be used as a compressed audio and video input interface.
  • the second audio and video interface 104 can also serve as an output interface for compressed audio and video data.
  • a third audio-video interface 105 is also included, and the third audio-video interface 105 is used for transmitting analog audio signals.
  • the third audio and video interface 105 is used to input analog audio from the source equipment, and when the audio and video transmission device 10 is used as the receiving end, the third audio and video interface 105 is used to display The device outputs analog audio.
  • the audio and video transmission circuit 102 is connected to the first audio and video interface 101 for processing audio and video data. Wherein, when the audio and video transmission device 10 is used as the sending end, the audio and video transmission circuit 102 is used to encode the audio and video data from the source device. When the audio and video transmission device 10 is used as the receiving end, the audio and video transmission circuit 102 is used for decoding the received audio and video data. The audio and video transmission circuit 102 is set inside the audio and video transmission device 10 .
  • the audio and video transmission circuit 102 includes a communication module 1021 , a media codec processing module 1022 , and a power supply circuit 1023 .
  • the communication module 1021 can be used to establish communication connections with other audio and video transmission devices.
  • the communication module 1021 may be a WIFI module.
  • the media codec processing module 1022 is used for encoding or decoding audio and video data.
  • the media codec processing module 1022 is the media codec processing module 10221 .
  • the media codec processing module 1022 is a media decoding processing module 10222 .
  • the power supply circuit 1023 is used to supply power to other modules.
  • the first audio and video interface 101 can be used as the input end of the electronic power supply circuit 1023
  • the second audio and video interface 104 can also be used as the input end of the electronic power supply circuit 1023 .
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the sending end, if the driving capability of the +5V signal output by the output interface of the source device is strong enough, the power supply circuit 1023 in the audio and video transmission device 10 does not need to use the MicroUSB interface to specifically powered by. And when the audio-video transmission device 10 is the receiving end, the +5V power input through the second audio-video interface 104 is converted into the power required by each circuit.
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the sending end, the audio and video transmission device 10 further includes an audio and video receiving sub-circuit 1024 .
  • the audio and video receiving sub-circuit 1024 is connected to the first audio and video interface 101, and is used for receiving audio and video data from the source device.
  • the purpose of each module of the audio and video transmission circuit 102 in the audio and video transmission process is as follows: the audio and video receiving sub-circuit 1024 receives the signal from the first audio and video interface 101, then converts the received signal into a TTL image signal, and Output to the media encoding processing module 10221.
  • the media encoding processing module 10221 includes a CPU and an H264/H265 encoding engine.
  • the media encoding processing module 10221 collects TTL image signals and digital audio signals from the audio and video receiving sub-circuit 1024, and encodes them into H264/H265 compressed video streams and AAC compressed audio streams, and finally forms compressed audio and video streams to be transmitted and transmits them through the communication module 1021 The output transport device sent to the receiving end.
  • the purposes of each module of the audio and video transmission circuit 102 in the audio and video transmission process are as follows: the communication module 1021 receives the compressed video stream audio and video from the sending end, and the media decoding processing module 10222 includes CPU and H264 /H265 decoding engine, using CPU to run programs to realize audio and video transmission. Specifically, an H264/H265 decoding engine is used to decode the audio and video of the received compressed video stream, and output it through the first audio and video interface 101 .
  • the audio and video transmission circuit 102 includes an antenna 1025 . Both the audio and video transmission device 10 at the sending end and the audio and video transmission device 10 at the receiving end use the built-in antenna 1025 . And the volume of each audio and video transmission device 10 is 30mmx70mmx12mm (LxWxH)). By using the built-in antenna 1025, the audio and video transmission device 10 is portable.
  • the audio and video transmission device 10 includes an operation key 103 .
  • the operation key 103 may be a push type or a knob type physical key.
  • the embodiment of the present disclosure takes a push-type physical key as an example.
  • the quantity of operation key 103 is at least one.
  • the operation keys 103 are used to generate at least one selection instruction, so that the audio-video transmission device 10 responds to the selection instruction and starts the function mode corresponding to the selection instruction.
  • each selection instruction corresponds to a different function mode.
  • the operation key 103 can generate two or more selection instructions. Each selection command corresponds to a different function mode, which specifically means that different selection commands correspond to different function modes.
  • the manner in which the operation key 103 generates different selection instructions may be to generate corresponding selection instructions through the time the user presses the operation key 103, wherein the time of pressing the operation key 103 refers to the time when the operation key 103 is in the pressed state and remains pressed. time.
  • the time that the operation key 103 remains pressed it is divided into three types of operations, short press operation, long press operation and super long press operation.
  • the short press operation refers to pressing and keeping the pressing state for less than 2.5 seconds
  • the long pressing operation refers to pressing and keeping the pressing state for greater than or equal to 2.5 seconds and less than 15 seconds
  • the ultra-long press operation refers to pressing and keeping the pressed state for greater than or equal to 15 seconds.
  • the functional modes may include a first setting mode and a second setting mode.
  • the audio-video transmission device 10 when the audio-video transmission device 10 is in the first setting mode, the audio-video transmission device 10 is used to restore at least part of the working parameters of the audio-video transmission device 10 to the initial state when leaving the factory. Specifically, restore to the initial state of the audio-video transmission device 10 when it leaves the factory. At least some of the operating parameters set in advance by the user can be restored to the initial state, or all operating parameters can be restored to the initial state.
  • the working parameters that are allowed to be restored to the initial state can be saved in the work list, and the working parameters that need to be restored to the initial state in the first setting mode can be found by querying the work list. Wherein, the work list is not restored to the initial state in the first mode.
  • the audio-video transmission device 10 When the audio-video transmission device 10 is in the second setting mode, the audio-video transmission device 10 is configured to adjust the working parameters of the audio-video transmission device 10 according to the user's adjustment instruction. Specifically, in the second setting mode, the user can set the operating parameters of the control device through the built-in webpage, that is, the audio and video transmission device 10 receives the user's adjustment instructions through the built-in webpage.
  • the working parameters may be any parameters that need to be used in the audio and video transmission process, such as encoding parameters or decoding parameters and so on.
  • the functional modes include at least one transmission mode.
  • the audio and video transmission device 10 can perform audio and video transmission.
  • the audio and video transmission device 10 processes and transmits the audio and video data to be transmitted according to the current working parameters set in the first setting mode or the second setting mode.
  • the operation key 103 receives the super long press operation of the user, it is used to generate the corresponding first selection instruction, and the audio and video transmission device 10 enters the first setting mode in response to the first selection instruction.
  • the operation key 103 after entering the first setting mode, after restoring at least part of the operating parameters of the audio and video transmission device 10 to the initial state, exit the first setting mode and enter the transmission mode.
  • the operation key 103 In the transmission mode, if the operation key 103 receives a user's long-press operation, it will generate a corresponding second selection instruction, and the audio-video transmission device 10 will enter the second setting mode in response to the second selection instruction.
  • the working parameters of the audio and video transmission device 10 are adjusted according to the user's adjustment instruction. Wherein, after receiving the instruction to exit the second setting mode, exit the second setting mode and enter the transmission mode. Wherein, if there are multiple transmission modes, enter the transmission mode before the second selection instruction is generated.
  • the functional modes include a first transmission mode and a second transmission mode.
  • the network access points are different in the first transmission mode and the second transmission mode.
  • WIFI wireless transmission technology is used for audio and video transmission between the audio and video transmission devices 10 at the sending end and the receiving end.
  • the network access point is the WIFI-AP.
  • the first transmission mode refers to that the audio and video transmission device 10 is in a one-to-one configuration.
  • the second transmission mode refers to that the audio and video transmission device 10 is in a many-to-many configuration.
  • the one-to-one configuration means that there is only one audio and video transmission device 10 at the sending end, and only one audio and video transmission device 10 at the receiving end.
  • one of the audio and video transmission devices 10 serves as a network access point, that is, as a WIFI-AP device, and the other audio and video transmission device 10 serves as a WIFI-STA.
  • the audio and video transmission device 10 at the receiving end serves as a network access point.
  • the many-to-many configuration refers to adding a router between the audio and video transmission devices 10 at the sending end and the receiving end, wherein each audio and video transmission device 10 serves as a WIFI-STA.
  • the number of the audio-video transmission device 10 at the sending end and the audio-video transmission device 10 at the receiving end may be multiple.
  • the number of audio and video transmission devices 10 at the sending end and the number of audio and video transmission devices 10 at the receiving end are both greater than or equal to 1 and less than or equal to 10.
  • each audio and video transmission device 10 at the sending end is connected to a source device, and each audio and video transmission device 10 at the receiving end is connected to a display device.
  • the operation key 103 is used to generate a first operation instruction, so that the audio and video transmission device 10 responds to the first operation instruction to suspend audio and video transmission or switch for audio and video transmission frequency point.
  • the first operation instruction is generated based on a user's short press operation.
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the sending end, the audio and video transmission device 10 is configured to suspend the audio and video transmission in response to the first operation instruction. And make the receiving end audio and video transmission device 10 connected to it keep outputting the picture. Specifically, the audio and video transmission device 10 at the sending end that responds to the first operation instruction suspends the audio and video transmission with the audio and video transmission device 10 at the receiving end that has established a connection with it, and the audio and video transmission device 10 at the receiving end maintains the output at the moment when the first operation instruction is generated screen content. When the audio and video transmission device 10 is the receiving end, the audio and video transmission device 10 switches the frequency point for audio and video transmission in response to the first operation command. Specifically, the frequency point used for audio and video transmission is the frequency point used by the WIFI connection.
  • the operation key 103 is used to generate a second operation instruction, so that the audio and video transmission device 10 responds to the second operation instruction to switch the audio and video transmission device 10 connected to Status and/or number of other audiovisual transmission devices.
  • both the second operation instruction and the first operation instruction here may be generated based on the user's short press operation on the operation key 103 .
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the sending end, the audio and video transmission device 10 responds to the second operation instruction to switch the number of audio and video transmission devices 10 connected to the audio and video transmission device 10 at the receiving end side. Specifically, the audio-video transmission device 10 at the sending end executes a broadcast process in response to the second operation instruction, so that multiple audio-video transmission devices 10 at the receiving end receive the audio-video data sent by the audio-video transmission device 10 .
  • the audio and video transmission device 10 when the audio and video transmission device 10 is the receiving end, the audio and video transmission device 10 responds to the second operation instruction to switch the state of the audio and video transmission device 10 connected to the receiving end audio and video transmission device 10 .
  • the switching state may be switched from a connected state to an unconnected state, or may be switched from an unconnected state to a connected state.
  • the audio and video transmission device 10 at the receiving end disconnects from one audio and video transmission device 10 at the sending end, and connects to another audio and video transmission device 10 at the sending end.
  • the audio and video transmission device 10 includes an indicator light 106 .
  • the different lighting patterns of the indicator light 106 are used to indicate the operating status of the audio and video transmission device 10 .
  • the indicator light 106 of the audio and video transmission device 10 is a two-color indicator light 106, which can be used to display three colors. For example, three colors of red, green and orange can be presented. Of course, in other embodiments, other colors can also be used, and this is only an example.
  • the audio and video transmission device 10 when the audio and video transmission device 10 is in the first setting mode, the status of the indicator light 106 is alternately blinking red and green. When the audio and video transmission device 10 is in the second setting mode, the status of the indicator light 106 is blinking orange slowly.
  • the audio-video transmission device 10 in the second setting mode is used as a WIFI-AP to start a web service, and the user can use a computer to connect to the WI-FIAP network, open a built-in web page through a browser, and use the audio-video transmission device 10 Adjust working parameters.
  • the video application scenario of the sending device can be set through a web page.
  • the audio and video transmission device 10 can preset several sets of optional encoding parameters, so that the several sets of encoding parameters of the audio and video transmission device 10 respectively correspond to various video application scenarios.
  • several groups can be divided into two groups, and video application scenarios are divided into video mode and demonstration mode.
  • the coding parameters include one or more of the key frame interval, coding rate and rate control mode.
  • the receiving end when the audio and video transmission device 10 is the receiving end, the receiving end can set the video application scene of the audio and video transmission device 10 of the receiving end through the built-in web page.
  • Video application scenarios include smooth mode and low-latency mode.
  • the WI-FIAP network where the audio and video transmission device 10 is located in the second setting mode is different from the WI-FIAP network where the audio and video transmission device 10 is located in other modes, and the audio and video transmission in other modes
  • the device 10 does not provide web services.
  • the status of the indicator light 106 is related to the actual status of the audio and video transmission device 10 .
  • the state of the indicator light 106 is steady red
  • the audio and video data connection is established but the audio and video are not transmitted
  • the state of the indicator light 106 is steady orange or green.
  • the audio-video transmission device 10 is in the first transmission mode, it is always on in orange
  • the audio-video transmission device 10 is in the second transmission mode, it is always on in green.
  • the indicator light 106 flashes quickly in orange or flashes in green.
  • the audio-video transmission device 10 is in the first transmission mode, it is quickly blinking orange
  • the audio-video transmission device 10 is in the second transmission mode, it is green fast blinking.
  • the audio and video transmission device 10 does not need to use a bloated audio and video cable to connect to the audio and video source by using a male interface to transmit audio and video, making the audio and video transmission device 10 easy to carry, and improving the convenience of the audio and video transmission process sex.
  • FIG. 4 is a schematic diagram showing two audio and video transmission devices establishing a communication connection in an embodiment of the audio and video transmission device of the present application
  • Fig. 5 is a schematic diagram showing the establishment of multiple audio and video transmission devices in another embodiment of the audio and video transmission device of the present application Schematic diagram of communication connections.
  • the audio and video transmission device at the sending end is uniformly marked as 10, and the audio and video transmission device at the receiving end is marked as 20.
  • the sending end has only one audio and video transmission device 10
  • the receiving end has only one audio and video transmission device 20
  • the sending end has When there are multiple audio and video transmission devices 10 and multiple audio and video transmission devices 20 at the receiving end, a router can be used to connect them.
  • each audio and video transmission device 10 at the sending end is connected to a source device
  • each audio and video transmission device 20 at the receiving end is connected to a display device.
  • the audio and video transmission device provided by the embodiments of the present disclosure can be used in fields such as video conferencing, home audio and video, and multimedia teaching.
  • FIG. 6 is a schematic flowchart of an embodiment of an audio and video transmission method in the present application.
  • the audio and video transmission method provided by the embodiment of the present disclosure may include the following steps:
  • Step S11 Obtain preset information of the audio and video transmission device.
  • the audio and video transmission method provided by the embodiment of the present disclosure is applied to the audio and video transmission device provided by the embodiment of the audio and video transmission device.
  • the preset information is the information set in advance by the user or set at the factory.
  • the way for the user to set the preset information in advance may be determined through the built-in webpage of the audio and video transmission device.
  • the transmission mode of the audio and video transmission device can be set through the built-in webpage of the audio and video transmission device.
  • the transmission mode of the audio and video transmission device includes the first transmission mode and the second transmission mode.
  • Step S12 Based on the preset information, establish a communication connection between the audio and video transmission device and other audio and video transmission devices.
  • the preset information includes a pairing code and at least one key.
  • the pairing code is encrypted based on the key to obtain network parameters of the first network.
  • the network parameters of the first network include a network name and a network password.
  • the key includes a first key and a second key.
  • the first key and the second key may be the same or different, and in the embodiment of the present disclosure, the first key and the second key are selected to be different.
  • the first key and the second key are preset, and are set to be unreadable when the audio and video transmission device leaves the factory.
  • the method of encrypting the pairing code based on the key to obtain the network parameters of the first network may be to use the first key to obtain the network name according to the first preset encryption algorithm for the pairing code. And use the second key to pair the pairing code to obtain the network password according to the second preset encryption algorithm.
  • the first preset encryption algorithm and the second preset encryption algorithm may be the same or different.
  • both the first preset encryption algorithm and the second preset encryption algorithm may be AES encryption algorithms.
  • obtaining the network name and network password of the first network is obtained through the communication module of the audio and video transmission device. Specifically, according to the connection parameter generation module acquisition in the communication module.
  • the first network here may be a WIFI network formed by the audio and video transmission device at the sending end as a network access point, or a WIFI network formed by an audio and video transmission device at the receiving end as a network access point.
  • the pairing code and key in the audio and video transmission devices of the sending end and the receiving end are the same.
  • the audio and video transmission device at the receiving end is selected as the access point of the first network.
  • both the receiving end and the sending end need to obtain the network name and network password of the first network through the pairing code and the key.
  • the audio and video transmission device at the receiving end obtains the network name and network password of the first network, it broadcasts, so that other audio and video transmission devices can search for the first network and join the first network.
  • the audio and video transmission device performs hidden broadcasting and broadcasts the network name of the first network, so that other audio and video transmission devices search for the network name of the first network and join the first network.
  • the audio and video transmission device at the sending end obtains the network name and network password of the first network, it uses the network name of the first network to search, and if the first network is found, it uses the network password of the first network to join first network.
  • the audio and video transmission device at the sending end establishes a communication connection with the audio and video transmission device at the receiving end.
  • the preset information may also be one or more of the network name and password to be added to the network, group information, the identification of the audio and video transmission device, and the audio and video source table.
  • the audio and video transmission device at the sending end includes the network name and password of the network to be joined, group information, and the identification of the audio and video transmission device.
  • the preset information includes the name and password of the network to be added to the network, group information, the identification of the audio and video transmission device, and the audio and video source list.
  • the audio and video source table includes the audio and video data to be received and the audio and video transmission identification of the sending end corresponding to each audio and video data.
  • the identification of the audio and video transmission device may be a serial number.
  • the network access point to be added to the network is a wireless router, and the audio and video transmission devices at the sending end and the receiving end are both used as STAs to be added to the network.
  • the audio and video transmission devices at the sending end and the receiving end join the WIFI network of the wireless router by searching the network name to be added to the network and using the corresponding password.
  • the audio and video transmission device of each sending end and receiving end generates the IP address of the ontology in the WIFI network by using group information and encoding.
  • the encoding value of the audio and video transmission device is less than or equal to 10.
  • the composition of the IP address of the audio and video transmission device at the sending end may be group information.number+100.
  • the composition of the IP address of the audio and video transmission device at the receiving end may be group information.number+120.
  • the IP address of the audio and video transmission device at the sending end is 192.168.2.101
  • the IP address of the audio and video transmission device at the receiving end is 192.168.2.121.
  • the audio and video transmission devices at the sending end and the receiving end join the WIFI network provided by the same wireless router.
  • audio and video transmission devices at the sending end and receiving end using the same set of information form a device set.
  • multiple device sets may exist under one wireless local area network.
  • the network address part of the IP address of each device in the wireless local area network can be generated from the group information of the device, and the network addresses generated by different group information are different.
  • the audio and video transmission devices at the sending end and the receiving end that are set to the same group information have the same network address, and then the devices that are set to the same group information in the wireless local area network to which each audio and video transmission device belongs can transmit information to each other through IP addresses , the network protocol stack layer of the device ensures that the audio and video data between different device sets are isolated from each other.
  • the audio and video transmission device at the receiving end can only request the audio and video transmission device at the sending end in the same set to send audio and video data to it.
  • Step S13 Using the communication connection to perform audio and video transmission with other audio and video transmission devices.
  • both the sending end and the receiving end have only one audio and video transmission device
  • the audio and video transmission device at the sending end sends audio and video data to the receiving end through TCP
  • the audio and video transmission device at the receiving end receives and decodes the output to the display device.
  • the sending end is connected to the source device
  • the receiving end is connected to the display device.
  • the audio and video signals output by the source device are collected, compressed and encoded into audio and video data to be transmitted by the sending end, and then transmitted to the receiving end through the WIFI connection established between the sending end and the receiving end, and then decoded by the receiving end and finally output to Display device for playback.
  • the audio and video transmission device at the receiving end when at least one of the sending end and the receiving end has two or more audio and video transmission devices, sends an audio and video request to one of the audio and video transmission devices at the sending end, and the audio and video transmission device at the sending end sends an audio and video request.
  • the audio and video transmission device responds to the audio and video request sent by the audio and video transmission device at the receiving end, and sends corresponding audio and video to the audio and video transmission device at the receiving end.
  • the audio and video transmission device at the receiving end includes an audio and video source table.
  • the audio and video source table includes the identification of the audio and video transmission device corresponding to the audio and video data to be transmitted.
  • the audio and video source table can be regarded as a set of numbers of audio and video transmission devices at the sending end.
  • the audio and video transmission device at the receiving end can send an audio and video request to any audio and video transmission device in the audio and video source table.
  • the communication connection between the audio and video transmission devices corresponding to the current audio and video data is disconnected.
  • the communication connection described in the embodiments of the present disclosure may be regarded as a data connection. Then construct a communication connection between audio and video transmission devices corresponding to the audio and video data to be transmitted.
  • the audio and video transmission device when there are two or more audio and video transmission devices at at least one of the sending end and the receiving end, it can be considered that the audio and video transmission device is in the second transmission mode.
  • the audio and video transmission device responds to the second operation instruction and switches the audio and video transmission device connected to the audio and video transmission device.
  • the audio-video transmission device generates IP addresses of all audio-video transmission devices at the receiving end according to the group information, and sends source broadcast request signaling to these IP addresses through UDP, wherein the source broadcast request signaling includes the audio-video The number of the transport device.
  • the audio and video transmission device at the receiving end responds to the source broadcast request signaling.
  • the source broadcast signaling corresponds to the IP address of the audio and video transmission device at the sending end, and saves it. Determine whether the number of the audio-video transmission device contained in the source broadcast request signaling is included in the audio-video source table in the audio-video transmission device, if so, respond to the source broadcast request signaling, and send the audio-video transmission device to the sending end Send an audio and video request to obtain the corresponding audio and video. If the judging result is no, the processing on the source broadcast request signaling ends. In some disclosed embodiments, the process of sending the signaling is one-way, and there is no need to wait for the response and response of any audio and video transmission device at the receiving end.
  • the audio and video transmission device at the receiving end does not need to send a reply signaling for indicating that the signaling has been received to the audio and video transmission device at the sending end, and the audio and video transmission device at the sending end does not need to Wait for the reply of the broadcast request signaling.
  • the audio and video transmission device responds to the second operation instruction and switches the audio and video transmission device connected to the audio and video transmission device. state. Specifically, the audio and video transmission device at the receiving end reads the next entry of the entry corresponding to the audio and video currently being decoded from the audio and video source table, and uses the next entry as the audio and video transmission device at the sending end to be connected number. Then, disconnect the audio and video connection with the audio and video transmission device at the sending end that is currently being decoded, and obtain the corresponding IP address based on the number of the audio and video transmission device corresponding to the audio and video to be transmitted.
  • the received audio and video are decoded and output to the display device, and the number of the new audio and video transmission device at the sending end is displayed on the output screen of the audio and video transmission device through OSD, and the OSD display is turned off after a preset period of time.
  • the preset time period can be set by itself, and the embodiment of the present disclosure chooses to set the preset time period as 10 seconds.
  • the method of using the communication connection to perform audio and video transmission with other audio and video transmission devices may further include: acquiring the audio and video to be transmitted and encoding parameters.
  • the encoding parameters include one or more of encoding frame rate, encoding bit rate, bit rate control mode, and key frame interval.
  • the encoding parameters can be set by itself when the audio and video transmission device is in the second mode.
  • the specific setting method may be to obtain and save the optimal parameter values of the video with emphasis on moving pictures and the video picture with emphasis on definition through experiments. Based on the user's adjustment instruction, the corresponding encoding parameters are selected and applied to the encoding process of the media encoding processing module 10221.
  • the H265 encoding method is preferred to compress and encode the collected video, and AAC compression encoding is used for the collected audio. Then the encoded audio and video data is sent to other audio and video transmission devices having a communication connection with the audio and video transmission device.
  • the method of using the communication connection to perform audio and video transmission with other audio and video transmission devices may further include: acquiring encoded audio and video data and decoding mode.
  • the decoding mode includes smooth mode and low delay mode.
  • the smooth mode and the low-delay mode correspond to different decoding methods, specifically, the receiving end provides different audio and video coding receiving buffer depths in different decoding modes.
  • the audio and video transmission device at the sending end is set with different encoding parameters, so that the user can select appropriate encoding parameters according to specific needs, thereby improving the applicability of the audio and video transmission method in each scene. And, setting different decoding modes in the audio and video transmission device at the receiving end can also improve the applicability of the audio and video transmission method in each scene.
  • the audio and video transmission device provided by the embodiment of the audio and video transmission device uses a male interface to transmit audio and video, there is no need to transmit audio and video through bloated audio and video lines, thereby improving the convenience of the audio and video transmission process.
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • the execution subject of the audio and video transmission method may be an audio and video transmission device, for example, the audio and video transmission method may be executed by a terminal device or a server or other processing equipment.
  • PDA Personal Digital Assistant
  • the audio and video transmission method may be implemented in a manner in which a processor invokes computer-readable instructions stored in a memory.
  • FIG. 7 is a schematic structural diagram of an embodiment of a terminal device according to the present application.
  • the terminal device 70 includes a memory 71 and a processor 72, and the processor 72 is configured to execute program instructions stored in the memory 71, so as to implement the steps in the above audio and video transmission method embodiments.
  • the terminal device 70 may include but not limited to: robots, such as robots used for rehabilitation training, microcomputers, servers, in addition, the terminal device 70 may also include mobile devices such as notebook computers and tablet computers. This is not limited.
  • the processor 72 is used to control itself and the memory 71 to implement the steps in the above audio and video transmission method embodiments.
  • the processor 72 may also be called a CPU (Central Processing Unit, central processing unit).
  • the processor 72 may be an integrated circuit chip with signal processing capability.
  • the processor 72 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor 72 may be jointly implemented by an integrated circuit chip.
  • the convenience in the process of audio and video transmission is improved by using the audio and video transmission device provided by the embodiment of the audio and video transmission device to perform audio and video transmission.
  • FIG. 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application.
  • the computer-readable storage medium 80 stores program instructions 801 that can be executed by the processor, and the program instructions 801 are used to implement the steps in the above audio and video transmission method embodiments.
  • the convenience in the process of audio and video transmission is improved by using the audio and video transmission device provided by the embodiment of the audio and video transmission device to perform audio and video transmission.
  • the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
  • the disclosed methods and devices may be implemented in other ways.
  • the device implementations described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

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

Abstract

一种音视频传输方法、装置(10)、设备及存储介质,该音视频传输装置(10)包括:至少一个第一音视频接口(101),第一音视频接口(101)用于传输音视频数据;音视频传输电路,音视频传输电路与第一音视频接口(101)连接,用于对音视频数据进行处理;其中,第一音视频接口(101)为公头形式的接口,用于直接与其他音视频传输装置连接。通过使用公头形式的接口进行音视频传输,无需使用音视频线,提高了音视频传输装置的便捷性。

Description

音视频传输方法、装置、设备及存储介质 【技术领域】
本申请涉及通信领域,特别是涉及一种音视频传输方法、装置、设备及存储介质。
【背景技术】
随着科技的发展,无线音视频传输器越来越普及,但是,无线高清视频传输器是通过音视频线的方式从音视频源设备获取需要传输的音视频数据,或通过音视频线的方式将音视频数据输出至显示设备进行显示。这种无线高清视频传输器因为音视频线不方便整理,也不方便携带,导致无线音视频传输器使用起来并不是很方便。
【发明内容】
本申请至少提供一种音视频传输方法、装置、设备及存储介质。
本申请提供了一种音视频传输装置,包括:至少一个第一音视频接口,第一音视频接口用于传输音视频数据;音视频传输电路,音视频传输电路与第一音视频接口连接,用于对音视频数据进行处理;其中,第一音视频接口为公头形式的接口。
其中,音视频传输装置包括操作键,操作键用于产生至少一种选择指令,以便音视频传输装置响应选择指令,开启与选择指令对应的功能模式;其中,每种选择指令对应不同的功能模式。
其中,功能模式包括第一设置模式和第二设置模式;其中,在音视频传输装置处于第一设置模式下时,音视频传输装置用于将音视频传输装置的至少部分工作参数恢复至出厂时的初始状态;在音视频传输装置处于第二设置模式下时,音视频传输装置用于根据用户的调整指令对音视频传输装置的工作参数进行调整。
其中,功能模式包括至少一种传输模式;在音视频传输装置处于第一传输模式下时,操作键用于产生第一操作指令,以便音视频传输装置响应第一操作指令暂停音视频传输,或切换用于进行音视频传输的频点;和/或,在音视频传输装置处于第二传输模式下时,操作键用于产生第二操作指令,以便音视频传 输装置响应第二操作指令,切换与音视频传输装置连接的其他音视频传输装置的状态和/或数量;其中,第一传输模式和第二传输模式下,网络接入点不同。
其中,音视频传输电路包括:通信模块,通信模块用于与其他音视频传输装置建立通信连接;媒体编解码处理模块,媒体编解码处理模块用于对音视频数据进行编码或解码;供电子电路,供电子电路用于对其他模块进行供电。
其中,音视频传输装置包括第二音视频接口,第二音视频接口为Micro USB接口,第一音视频接口为HDMI接口。
本申请提供了一种音视频传输方法,该方法应用于上述任一项所述的音视频传输装置,音视频传输方法包括:获取音视频传输装置的预设信息;基于预设信息,构建音视频传输装置与其他音视频传输装置的通信连接;利用通信连接进行与其他音视频传输装置之间的音视频传输。
其中,预设信息包括配对码以及至少一个密钥;基于预设信息,构建音视频传输装置与其他音视频传输装置的通信连接,包括:基于密钥对配对码进行加密,得到第一网络的网络参数,第一网络的网络参数包括网络名称以及网络密码;广播第一网络的网络名称,以便其他音视频传输装置搜索第一网络的网络名称并加入第一网络;或,使用第一网络的网络名称进行搜索,在搜索到第一网络的情况下,利用第一网络的网络密码加入第一网络。
其中,密钥包括第一密钥和第二密钥;基于密钥对配对码进行加密,得到第一网络的网络参数,包括:使用第一密钥对配对码按照第一预设加密算法得到网络名称;以及,使用第二密钥对配对码按照第二预设加密算法得到网络密码。
其中,利用通信连接进行与其他音视频传输装置之间的音视频传输,包括:获取待传输的音视频数据以及编码参数,编码参数包括编码帧率、编码码率、码率控制方式、关键帧间隔中的一者或多者;按照编码参数对音视频数据进行编码;将编码之后的音视频数据发送至与音视频传输装置具备通信连接的其他音视频传输装置。
其中,利用通信连接进行与其他音视频传输装置之间的音视频传输,包括:获取已编码的音视频数据以及解码模式,解码模式包括流畅模式和低延迟模式;按照解码模式对已编码的音视频数据进行解码;将解码后的音视频数据输出至显示设备。
其中,预设信息包括音视频源表,音视频源表中包括待传输的音视频数据 对应的音视频传输装置的标识;基于预设信息,构建音视频传输装置与其他音视频传输装置的通信连接,包括:在接收完当前的音视频数据之后,断开与当前的音视频数据对应的音视频传输装置之间的通信连接;构建与待传输的音视频数据对应的音视频传输装置之间的通信连接。
本申请提供了一种终端设备,包括存储器和处理器,处理器用于执行存储器中存储的程序指令,以实现上述音视频传输的方法。
本申请提供了一种计算机可读存储介质,其上存储有程序指令,程序指令被处理器执行时实现上述音视频传输方法。
上述方案,通过使用公头形式的接口传输音视频使得音视频传输装置无需经过臃肿的音视频线传输音视频,使得音视频传输装置便于携带,以及提高了音视频传输过程的便捷性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本申请。
【附图说明】
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本申请的实施例,并与说明书一起用于说明本申请的技术方案。
图1是本申请音视频传输装置一实施例的外观结构示意图;
图2是本申请音视频传输装置一实施例中音视频传输电路的结构示意图;
图3是本申请音视频传输装置另一实施例中音视频传输电路的结构示意图;
图4是本申请音视频传输装置一实施例中示出两个音视频传输装置建立通信连接的示意图;
图5是本申请音视频传输装置另一实施例中示出多个音视频传输装置建立通信连接的示意图;
图6是本申请音视频传输方法一实施例的流程示意图;
图7是本申请终端设备一实施例的结构示意图;
图8是本申请计算机可读存储介质一实施例的结构示意图。
【具体实施方式】
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,以下各实施例中不冲突的可以相互结合。显然,所描述的实 施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。此外,本文中的“多”表示两个或者多于两个。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。
一些具体应用场景中,通过音视频传输装置传输音视频的方式可以是使用两个音视频传输装置进行音视频传输。具体地,使用一个音视频传输装置作为发送端,一个音视频传输装置作为输出端。作为发送端的音视频传输装置与源设备连接,也就是发送端的音视频传输装置从源设备获取需要传输的音视频,以及作为接收端的音视频传输装置与显示设备连接,也就是作为接收端的音视频传输装置在接收到音视频之后,可以将接收到的音视频输出至显示设备,从而实现源设备与显示设备之间的音视频传输。其中,源设备可以是电脑、录音机、相机等,显示设备可以是电脑、投影仪、电视、显示器等。
具体地,音视频传输过程可以是作为发送端的音视频传输装置对需要传输的音视频进行编码,然后将编码之后的音视频数据通过无线通信等方式发送至作为接收端的音视频传输装置,作为接收端的音视频传输装置对接收到的音视频数据进行解码,从而将解码之后的音视频数据输出至显示设备。
请参阅图1至图3,图1是本申请音视频传输装置一实施例的外观结构示意图,图2是本申请音视频传输装置一实施例中音视频传输电路的结构示意图,图3是本申请音视频传输装置另一实施例中音视频传输电路的结构示意图。其中,发送端的音视频传输装置与接收端的音视频传输装置的外观整体结构一致,均可参考图1。其中,图2所示的是音视频传输装置作为发送端的音视频传输电路,图3所示的是音视频传输装置作为接收端时的音视频传输电路。以下实施例中,在音视频传输装置10为发送端时,音视频传输装置10的音视频传输电路102请参考图2,在音视频传输装置10为接收端时,音视频传输装置10的音视频传输电路102请参考图3。另一些公开实施例中,音视频传输装置10既可以发送音视频,也可以接收音视频。
具体而言,音视频传输装置10包括至少一个第一音视频接口101以及音视频传输电路102。
一些应用场景中,音视频传输装置10传输的音视频可以是视频数据、也可以是单独的音频数据等等。其中,视频数据包括单帧图像、多帧图像构成的视频,其中多帧图像构成的视频可以是包括声音的音视频,也可以是不包括声音的音视频。将视频数据和音频数据统称为音视频。
其中,至少一个可以是一个及以上。第一音视频接口101用于传输音视频数据。第一音视频接口101为HDMI接口。其中,在音视频传输装置10作为发送端时,第一音视频接口101用于从源设备获取音视频数据,也就是第一音视频接口101实现源设备和音视频传输装置10二者之间的音视频传输。在音视频传输装置10作为接收端时,第一音视频接口101用于将音视频传输装置10接收到的音视频数据解码并输出至显示设备,也就是在这种情况下,第一音视频接口101用于实现音视频传输装置10至显示设备之间的音视频传输。其中,第一音视频接口101为公头式的接口。具体地,第一音视频接口101为HDMI TYPE-A公头。
一些公开实施例中,音视频传输装置10还包括第二音视频接口104。具体地,第二音视频接口104为Micro USB接口。其中,第二音视频接口104可以接入供电设备,以对音视频传输装置10进行供电。当音视频传输装置10作为发送端时,第二音视频接口104还可以作为压缩音视频输入接口。当音视频传输装置10作为接收端时,第二音视频接口104还可以作为压缩音视频数据输出接口。还包括第三音视频接口105,第三音视频接口105用于传输模拟音频信号。其中,在音视频传输装置10作为发送端时,第三音视频接口105用于输入来自源设备的模拟音频,在音视频传输装置10作为接收端时,第三音视频接口105用于向显示设备输出模拟音频。
音视频传输电路102与第一音视频接口101连接,用于对音视频数据进行处理。其中,在音视频传输装置10作为发送端时,音视频传输电路102用于对来自与源设备的音视频数据进行编码处理。在音视频传输装置10作为接收端时,音视频传输电路102用于对接收到的音视频数据进行解码处理。音视频传输电路102设置在音视频传输装置10的内部。
其中,音视频传输电路102包括通信模块1021、媒体编解码处理模块1022、以及供电子电路1023。
其中,通信模块1021可以用于与其他音视频传输装置建立通信连接。具体地,通信模块1021可以是WIFI模块。媒体编解码处理模块1022,用于对音视频数据进行编码或解码。其中,音视频传输装置10为发送端时,媒体编解码处理模块1022为媒体编码处理模块10221。在音视频传输装置10为接收端时,媒体编解码处理模块1022为媒体解码处理模块10222。供电子电路1023用于对其他模块进行供电。其中,可以通过第一音视频接口101作为供电子电路1023的输入端,也可以使用第二音视频接口104作为供电子电路1023的输入端。
具体地,音视频传输装置10为发送端时,在源设备的输出接口所输出的+5V信号驱动能力足够强的情况下,音视频传输装置10中的供电子电路1023不需要通过MicroUSB接口专门供电。而在音视频传输装置10为接收端时,通过第二音视频接口104输入的+5V电源转换为各电路所需的电源。
其中,在音视频传输装置10为发送端时,音视频传输装置10还包括音视频接收子电路1024。音视频接收子电路1024与第一音视频接口101连接,用于接收来自于源设备的音视频数据。具体地,音视频传输电路102各模块在音视频传输过程中的用途如下:音视频接收子电路1024接收来自第一音视频接口101的信号,然后将接收到的信号转换为TTL图像信号,并输出至媒体编码处理模块10221。其中,媒体编码处理模块10221中包括CPU以及H264/H265编码引擎。媒体编码处理模块10221采集来自音视频接收子电路1024的TTL图像信号及数字音频信号,并编码为H264/H265压缩视频流及AAC压缩音频流,最终形成待传输压缩音视频流并通过通信模块1021发送到接收端的输出传输装置。
在音视频传输装置10为接收端时,音视频传输电路102各模块在音视频传输过程中的用途如下:通信模块1021接收来自发送端的压缩视频流音视频,媒体解码处理模块10222包含CPU以及H264/H265解码引擎,利用CPU运行程序实现音视频传输。具体地,利用H264/H265解码引擎对接收到的压缩视频流音视频进行解码,并通过第一音视频接口101输出。
一些公开实施例中,音视频传输电路102包括天线1025。无论是发送端的音视频传输装置10还是接收端的音视频传输装置10均采用内置天线1025。且各音视频传输装置10的体积为30mmx70mmx12mm(LxWxH))。通过使用内置天线1025,使得音视频传输装置10便于携带。
一些公开实施例中,音视频传输装置10包括操作键103。其中,操作键103可以是按压式或旋钮式的实体键。本公开实施例以按压式的实体键为例。其中 操作键103的数量为至少一个。操作键103用于产生至少一种选择指令,以便音视频传输装置10响应选择指令,开启与选择指令对应的功能模式。其中,每种选择指令对应不同的功能模式。
具体地,操作键103可以产生两个及两个以上的选择指令。每种选择指令对应不同的功能模式,具体指的是不同的选择指令对应不同的功能模式。其中,操作键103产生不同选择指令的方式可以是,通过用户按压操作键103的时间产生对应的选择指令,其中,按压操作键103的时间指的是操作键103处于按压状态并保持按压状态的时间。本公开实施例中,根据操作键103保持按压状态的时间分为三类操作,短按操作、长按操作以及超长按操作。其中,短按操作指的是按下并保持按下的状态少于2.5秒,长按操作指的是按下并保持按下的状态大于或等于2.5秒且小于15秒。超长按操作指的是按下并保持按下的状态大于或等于15秒。
可选地,功能模式可以包括第一设置模式和第二设置模式。其中,在音视频传输装置10处于第一设置模式下时,音视频传输装置10用于将音视频传输装置10的至少部分工作参数恢复至出厂时的初始状态。具体地,恢复至音视频传输装置10出厂时的初始状态。至少部分可以是用户提前设置的部分可以恢复至初始状态的工作参数,也可以是对全部工作参数恢复至初始状态。一些公开实施例中,可以将允许恢复至初始状态的工作参数保存至工作列表中,通过查询工作列表查找第一设置模式下需要恢复至初始状态的工作参数。其中,工作列表在第一模式下不恢复至初始状态。
在音视频传输装置10处于第二设置模式下时,音视频传输装置10用于根据用户的调整指令对音视频传输装置10的工作参数进行调整。具体地,在第二设置模式下,用户可通过内置网页来设置控制设备的运行参数,即音视频传输装置10通过内置网页接收用户的调整指令。
其中,工作参数可以是音视频传输过程中任意需要使用的参数,例如编码参数或解码参数等等。
一些公开实施例中,功能模式包括至少一种传输模式。其中,在传输模式下,音视频传输装置10能够进行音视频传输。具体地,在传输模式下,音视频传输装置10根据第一设置模式或第二设置模式下设置的当前的工作参数对待传输的音视频数据进行处理,并进行传输。
其中,在传输模式下,操作键103若接收到了用户的超长按操作,则用于 产生对应的第一选择指令,音视频传输装置10响应第一选择指令进入第一设置模式。其中,在进入第一设置模式之后,将音视频传输装置10的至少部分工作参数恢复至初始状态后,退出第一设置模式并进入传输模式。其中,在存在多种传输模式的情况下,进入产生第一选择指令之前的传输模式。
在传输模式下,操作键103若接收到用户的长按操作,则产生对应的第二选择指令,音视频传输装置10响应第二选择指令进入第二设置模式。在第二设置模式下根据用户的调整指令对音视频传输装置10的工作参数进行调整。其中,在接收到退出第二设置模式的指令后,退出第二设置模式并进入传输模式。其中,在存在多种传输模式的情况下,进入产生第二选择指令之前的传输模式。
一些公开实施例中,功能模式包括第一传输模式和第二传输模式。其中,第一传输模式和第二传输模式下,网络接入点不同。本公开实施例中,发送端和接收端的音视频传输装置10之间采用WIFI无线传输技术进行音视频传输。其中,网络接入点即为WIFI-AP。其中,第一传输模式指的是音视频传输装置10处于一对一组态。第二传输模式指的是音视频传输装置10处于多对多组态。其中,一对一组态指的是发送端只有一个音视频传输装置10,接收端只有一个音视频传输装置10。并且,其中一个音视频传输装置10作为网络接入点,即作为WIFI–AP设备,另一音视频传输装置10作为WIFI-STA。本公开实施例中,接收端的音视频传输装置10作为网络接入点。多对多组态指的是在发送端和接收端的音视频传输装置10之间加入路由器,其中,每个音视频传输装置10均作为WIFI-STA。其中,在多对多组态中,发送端的音视频传输装置10和接收端的音视频传输装置10的数量可以是多个。本公开实施例中,发送端的音视频传输装置10和接收端的音视频传输装置10的数量均大于或等于1,且小于或等于10。其中,在多对多组态中,每个发送端的音视频传输装置10与一个源设备连接,每个接收端的音视频传输装置10与一个显示设备连接。
在音视频传输装置10处于第一传输模式下时,操作键103用于产生第一操作指令,以便所述音视频传输装置10响应第一操作指令暂停音视频传输或切换用于进行音视频传输的频点。第一操作指令是基于用户的短按操作生成。
一些公开实施例中,在音视频传输装置10为发送端时,音视频传输装置10用于响应第一操作指令暂停音视频传输。并使与其连接的接收端音视频传输装置10保持输出画面。具体地,响应第一操作指令的发送端音视频传输装置10暂停与其已建立连接的接收端音视频传输装置10的音视频传输,接收端音视频 传输装置10保持第一操作指令生成时刻的输出画面内容。在音视频传输装置10为接收端时,音视频传输装置10响应第一操作指令切换用于进行音视频传输的频点。具体地,用于进行音视频传输的频点为WIFI连接使用的频点。
在音视频传输装置10处于第二传输模式下时,所述操作键103用于产生第二操作指令,以便音视频传输装置10响应第二操作指令,切换与所述音视频传输装置10连接的其他音视频传输装置的状态和/或数量。其中,这里的第二操作指令与第一操作指令均可以是基于用户对操作键103的短按操作生成。
一些公开实施例中,在音视频传输装置10为发送端时,音视频传输装置10响应第二操作指令,切换与该音视频传输装置10连接的接收端侧的音视频传输装置10的数量。具体地,发送端侧的音视频传输装置10响应第二操作指令,执行广播过程,使得多个接收端的音视频传输装置10接收该音视频传输装置10发送的音视频数据。
一些公开实施例中,在音视频传输装置10为接收端时,音视频传输装置10响应第二操作指令,切换与接收端的音视频传输装置10连接的发送端的音视频传输装置10的状态。其中,切换状态可以是由已连接状态切换为未连接状态,也可以是由未连接状态切换为已连接状态。具体地,接收端音视频传输装置10断开与一个发送端音视频传输装置10的连接,并与另一个发送端音视频传输装置10进行连接。
一些公开实施例中,音视频传输装置10包括指示灯106。指示灯106不同的点亮模式用于指示音视频传输装置10的运行状态。例如,音视频传输装置10的指示灯106为双色指示灯106,可用于呈现三种颜色。例如,可呈现红、绿、橙三种颜色。当然,在其他实施例中,还可使用其他颜色,此处仅为举例。
一些应用场景中,音视频传输装置10处于第一设置模式下时,指示灯106的状态为红、绿交替闪烁。音视频传输装置10处于第二设置模式下时,指示灯106的状态为橙色慢速闪烁。其中,处于第二设置模式下的音视频传输装置10作为WIFI–AP,启动web服务,用户可以使用计算机连接到该WI-FIAP网络,通过浏览器打开内置web网页,对音视频传输装置10的工作参数进行调整。一些应用场景中,音视频传输装置10为发送端时,通过web网页可设置该发送设备的视频应用场景。音视频传输装置10可预先设置若干组可选编码参数,使得音视频传输装置10的若干组编码参数分别对应各种视频应用场景。例如,若干组可以为两组,视频应用场景分为视频模式、演示模式。其中,编码参数包括 关键帧间隔、编码码率以及码率控制方式中的一种或多种。一些应用场景中,音视频传输装置10为接收端时,接收端通过内置web网页可设置该接收端的音视频传输装置10的视频应用场景。视频应用场景有流畅模式及低延迟模式。
一些公开实施例中,第二设置模式下音视频传输装置10所在的WI-FIAP网络与音视频传输装置10的其他模式下所在的WI-FIAP网络并不相同,且其他模式下的音视频传输装置10不提供web服务。
在音视频传输装置10处于传输模式下时,指示灯106的状态与音视频传输装置10的实际状态有关。具体地,未建立音视频数据连接时,指示灯106的状态为红色常亮,已建立音视频数据连接但未传输音视频时,指示灯106的状态为橙色常亮或绿色常亮。具体地,在音视频传输装置10为第一传输模式下时,为橙色常亮,在音视频传输装置10为第二传输模式下时,为绿色常亮。正在传输音视频数据时,指示灯106为橙色快速闪烁或绿色快速闪烁。具体地,在音视频传输装置10为第一传输模式下时,为橙色快速闪烁,在音视频传输装置10为第二传输模式下时,为绿色快速闪烁。
上述方案,通过使用公头形式的接口传输音视频使得音视频传输装置10无需使用臃肿的音视频线与音视频源连接,使得音视频传输装置10便于携带,以及提高了音视频传输过程的便捷性。
为更好地理解由发送端和接收端均只有一个音视频传输装置,以及各方具有多个音视频传输装置的情况,请参见图4和图5。图4是本申请音视频传输装置一实施例中示出两个音视频传输装置建立通信连接的示意图,图5是本申请音视频传输装置另一实施例中示出多个音视频传输装置建立通信连接的示意图。
为区分发送端和接收端,本公开实施例中,统一将发送端的音视频传输装置标记为10,接收端的音视频传输装置标记为20。如图4和5所示,发送端只有一个音视频传输装置10,接收端只有一个音视频传输装置20时,音视频传输装置10与音视频传输装置20之间不用路由器连接,而发送端有多个音视频传输装置10,接收端有多个音视频传输装置20时,可以使用路由器连接。并且,每个发送端的音视频传输装置10与一个源设备连接,每个接收端的音视频传输装置20与一个显示设备连接。
本公开实施例提供的音视频传输装置可以用于视频会议、家庭影音、多媒体教学等领域。
请参阅图6,图6是本申请音视频传输方法一实施例的流程示意图。如图6 所示,本公开实施例提供的音视频传输方法可以包括以下步骤:
步骤S11:获取音视频传输装置的预设信息。
其中,本公开实施例提供的音视频传输方法应用于音视频传输装置实施例提供的音视频传输装置。
其中,预设信息为用户提前设置或出厂时设置的信息。其中,用户提前设置预设信息的方式可以是通过音视频传输装置的内置网页确定。并且,通过音视频传输装置的内置网页,可以设置音视频传输装置的传输模式,如上一实施例所述,音视频传输装置的传输模式包括第一传输模式和第二传输模式。其中,第一传输模式和第二传输模式的具体形式请参见音视频传输装置实施例所述,此处不再赘述。
步骤S12:基于预设信息,构建音视频传输装置与其他音视频传输装置的通信连接。
一些公开实施例中,预设信息包括配对码以及至少一个密钥。基于密钥对配对码进行加密,得到第一网络的网络参数。其中,第一网络的网络参数包括网络名称以及网络密码。
一些公开实施例中,密钥包括第一密钥和第二密钥。其中,第一密钥和第二密钥可以相同也可以不同,本公开实施例中,选择第一密钥和第二密钥不同。具体地,第一密钥和第二密钥为预设,且在音视频传输装置出厂时被设定并不可读。
其中,基于密钥对配对码进行加密,得到第一网络的网络参数的方式可以是,使用第一密钥对配对码按照第一预设加密算法得到网络名称。以及使用第二密钥对配对码按照第二预设加密算法得到网络密码。其中,第一预设加密算法和第二预设加密算法可以相同,也可以不同。本公开实施例中,第一预设加密算法和第二预设加密算法可以均为AES加密算法。其中,获取第一网络的网络名称以及网络密码是通过音视频传输装置的通信模块获取。具体地,根据通信模块中的连接参数生成模块获取。
其中,这里的第一网络可以是发送端的音视频传输装置作为网络接入点形成的WIFI网络,也可以是接收端的音视频传输装置作为网络接入点形成的WIFI网络。
进一步地,发送端和接收端的音视频传输装置中的配对码和密钥相同。本公开实施例中,选择将接收端的音视频传输装置作为第一网络的接入点。其中, 接收端和发送端均需要通过配对码和密钥获取第一网络的网络名称和网络密码。
其中,在接收端的音视频传输装置获取到第一网络的网络名称和网络密码之后,进行广播,使得其他音视频传输装置能够搜索到该第一网络,并加入第一网络。具体地,音视频传输装置进行隐藏广播,以及广播第一网络的网络名称,以使其他音视频传输装置搜索第一网络的网络名称并加入第一网络。
其中,在发送端的音视频传输装置获取到第一网络的网络名称和网络密码之后,使用第一网络的网络名称进行搜索,在搜索到第一网络的情况下,利用第一网络的网络密码加入第一网络。
由此,发送端的音视频传输装置和接收端的音视频传输装置建立的通信连接。
一些公开实施例中,预设信息还可以是待加入网络的网络名称和密码、组信息、本音视频传输装置的标识、音视频源表中的一者或多者。一些公开实施例中,发送端的音视频传输装置中包括待加入网络的网络名称和密码、组信息、本音视频传输装置的标识。而在接收端的音视频传输装置中,预设信息包括待加入网络的网络名称和密码、组信息、本音视频传输装置的标识、音视频源表。其中,音视频源表中包括需要接收的音视频数据以及发送各个音视频数据对应的发送端的音视频传输标识。其中,音视频传输装置的标识可以是编号。
一些应用场景中,待加入网络的网络接入点为无线路由器,且发送端和接收端的音视频传输装置均作为待加入网络中的STA。其中,发送端和接收端的音视频传输装置通过搜索待加入网络的网络名称,并使用对应的密码,加入无线路由器的WIFI网络。
每个发送端和接收端的音视频传输装置通过使用组信息以及编码来生成本体在WIFI网络中的IP地址。其中,音视频传输装置的编码取值小于或等于10。本公开实施例中,将发送端的音视频传输装置的IP地址的构成可以是组信息.编号+100。接收端的音视频传输装置的IP地址的构成可以是组信息.编号+120。例如,组信息为192.168.2,发送端和接收端的音视频传输装置的编号均为1,则发送端的音视频传输装置的IP地址为192.168.2.101,而接收端的音视频传输装置的IP地址为192.168.2.121。
由此,各发送端和接收端的音视频传输装置加入了同一无线路由器提供的WIFI网络中。
一些公开实施例中,使用同一组信息的发送端和接收端的音视频传输装置 构成装置集合。其中,一个无线局域网下可以允许存在多个装置集合。其中,每个装置在无线局域网中的IP地址的网络地址部分可以由装置的组信息生成,不同的组信息所生成的网络地址不同。被设置为相同组信息的发送端和接收端的音视频传输装置具有相同的网络地址,进而在各音视频传输装置所属无线局域网中被设置为相同组信息之间的装置才能通过IP地址相互传输信息,由装置的网络协议栈层面保证不同装置集合之间音视频数据相互隔离。其中,一个装置集合中,接收端的音视频传输装置只能请求同一个集合中的发送端音视频传输装置向其发送音视频数据。
步骤S13:利用通信连接进行与其他音视频传输装置之间的音视频传输。
一些公开实施例中,若发送端和接收端均只有一个音视频传输装置时,发送端的音视频传输装置通过TCP方式向接收端发送音视频数据,并由接收端的音视频传输装置接收并解码输出至显示设备。具体地,发送端与源设备连接,接收端与显示设备连接。源设备输出的音视频信号被发送端采集、压缩并编码为待传输的音视频数据,然后通过发送端与接收端之间建立的WIFI连接传输到接收端,再经过接收端的解码并最终输出到显示设备进行播放。
一些公开实施例中,在发送端和接收端中的至少一端存在两个及以上的音视频传输装置时,接收端的音视频传输装置向其中一个发送端的音视频传输装置发送音视频请求,发送端的音视频传输装置响应接收端的音视频传输装置发送的音视频请求,向接收端的音视频传输装置发送对应的音视频。如上述,接收端的音视频传输装置中包括音视频源表。其中,音视频源表中包括待传输的音视频数据对应的音视频传输装置的标识。一些应用场景中,音视频源表可以认为是发送端音视频传输装置的编号集合。接收端的音视频传输装置可以向音视频源表中的任意一个音视频传输装置发送音视频请求。一些应用场景中,在接收完当前的音视频数据之后,断开与当前的音视频数据对应的音视频传输装置之间的通信连接。其中,本公开实施例所述的通信连接可以认为是数据连接。然后构建于待传输的音视频数据对应的音视频传输装置之间的通信连接。
一些公开实施例中,在发送端和接收端中的至少一端存在两个及以上的音视频传输装置时,可以认为是音视频传输装置处于第二传输模式。
若发送端的音视频传输装置中的操作键基于用户的短按操作产生第二操作指令时,则该音视频传输装置响应第二操作指令,切换与本音视频传输装置连接的其他音视频传输装置的数量。具体地,音视频传输装置根据组信息,生成 所有的接收端的音视频传输装置的IP地址,并通过UDP方式向这些IP地址发送源广播请求信令,其中,源广播请求信令中包含本音视频传输装置的编号。由此,在接收端的音视频传输装置接收到源广播请求信令后,响应该源广播请求信令。具体地,取出源广播信令对应发送端的音视频传输装置的IP地址,并保存。判断源广播请求信令所包含的音视频传输装置的编号是否包括在本音视频传输装置中的音视频源表中,若是,则响应该源广播请求信令,并向该发送端的音视频传输装置发送音视频请求,以获取对应的音视频。若判断结果为否,则结束关于源广播请求信令的处理。一些公开实施例中,该信令发送的过程为单向,且无需等待任何接收端的音视频传输装置的响应及应答。也就是说,接收端的音视频传输装置在接收到该信令之后,无需向发送端的音视频传输装置发送用于表示已收到该信令的答复信令,而发送端的音视频传输装置也无需等待广播请求信令的应答。
若接收端的音视频传输装置中的操作键基于用户的短按操作产生第二操作指令时,则该音视频传输装置响应第二操作指令,切换与本音视频传输装置连接的其他音视频传输装置的状态。具体地,接收端的音视频传输装置从音视频源表中读取当前正在解码的音视频对应的表项的下一个表项,并将该下一个表项作为待连接的发送端的音视频传输装置的编号。然后,断开与当前正在解码的发送端音视频传输装置的音视频连接,并基于待传输音视频对应的音视频传输装置编号,得到对应的IP地址。并向该IP地址发送音视频请求,以获取对应的音视频。最后,将接收到的音视频进行解码输出至显示设备,在音视频传输装置的输出画面上通过OSD显示新的发送端音视频传输装置的编号,并在预设时间段后关闭OSD显示。其中,预设时间段可以自行设置,本公开实施例选择将预设时间段设置为10秒。
一些公开实施例中,音视频传输装置为发送端时,利用通信连接进行与其他音视频传输装置之间的音视频传输的方式还可包括:获取待传输的音视频以及编码参数。其中,编码参数包括编码帧率、编码码率、码率控制方式、关键帧间隔中的一者或多者。其中,编码参数可在音视频传输装置位于第二模式下,自行设置。具体设置方式可以是通过实验方式取得运动画面偏重的视频、清晰度偏重的视频画面的最优参数值并保存。基于用户的调整指令,选择对应的编码参数应用于媒体编码处理模块10221的编码过程中。
然后,按照编码参数对音视频数据进行编码。其中,本公开实施例中优选 H265编码方式对采集到的视频进行压缩并编码,对采集到的音频采用AAC压缩编码。再将编码之后的音视频数据发送至与音视频传输装置具备通信连接的其他音视频传输装置。
一些公开实施例中,音视频传输装置为接收端时,利用通信连接进行与其他音视频传输装置之间的音视频传输的方式还可包括:获取已编码的音视频数据以及解码模式。其中,解码模式包括流畅模式和低延迟模式。其中,流畅模式和低延迟模式对应的解码方式不同,具体地,不同解码模式下接收端的提供音视频编码接收缓冲的深度不同。
不同的应用场景中,使用者对所观察的视频图像质量有不同的偏重,例如在播放视频节目时使用者更关注视频的流畅性,但在静止画面偏重的PPT演示或图片展示时使用者更偏重于画面清晰度。因此,通过发送端的音视频传输装置设置有不同的编码参数,使得用户可以根据具体需求,选择合适的编码参数,从而提高各场景中音视频传输方法的适用度。以及,在接收端的音视频传输装置中设置不同的解码模式,同样能够提高各场景中音视频传输方法的适用度。
上述方案,因为音视频传输装置实施例提供的音视频传输装置使用公头形式的接口传输音视频,无需经过臃肿的音视频线传输音视频,从而提高了音视频传输过程中的便捷性。
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。
音视频传输方法的执行主体可以是音视频传输装置,例如,音视频传输方法可以终端设备或服务器或其它处理设备执行。移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该音视频传输方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。
请参阅图7,图7是本申请终端设备一实施例的结构示意图。终端设备70包括存储器71和处理器72,处理器72用于执行存储器71中存储的程序指令,以实现上述音视频传输方法实施例中的步骤。在一个具体的实施场景中,终端设备70可以包括但不限于:机器人,例如用于康复训练的机器人,微型计算机、服务器,此外,终端设备70还可以包括笔记本电脑、平板电脑等移动设备,在此不做限定。
具体而言,处理器72用于控制其自身以及存储器71以实现上述音视频传输方法实施例中的步骤。处理器72还可以称为CPU(Central Processing Unit,中央处理单元)。处理器72可能是一种集成电路芯片,具有信号的处理能力。处理器72还可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。另外,处理器72可以由集成电路芯片共同实现。
上述方案,通过使用音视频传输装置实施例提供的音视频传输装置进行音视频传输,提高了音视频传输过程中的便捷性。
请参阅图8,图8为本申请计算机可读存储介质一实施例的结构示意图。计算机可读存储介质80存储有能够被处理器运行的程序指令801,程序指令801用于实现上述音视频传输方法实施例中的步骤。
上述方案,通过使用音视频传输装置实施例提供的音视频传输装置进行音视频传输,提高了音视频传输过程中的便捷性。
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。

Claims (14)

  1. 一种音视频传输装置,其特征在于,包括:
    至少一个第一音视频接口,所述第一音视频接口用于传输音视频数据;
    音视频传输电路,所述音视频传输电路与所述第一音视频接口连接,用于对所述音视频数据进行处理;
    其中,所述第一音视频接口为公头形式的接口。
  2. 根据权利要求1所述的音视频传输装置,其特征在于,
    所述音视频传输装置包括操作键,所述操作键用于产生至少一种选择指令,以便所述音视频传输装置响应所述选择指令,开启与所述选择指令对应的功能模式;
    其中,每种选择指令对应不同的功能模式。
  3. 根据权利要求2所述的音视频传输装置,其特征在于,
    所述功能模式包括第一设置模式和第二设置模式;
    其中,在所述音视频传输装置处于第一设置模式下时,所述音视频传输装置用于将所述音视频传输装置的至少部分工作参数恢复至出厂时的初始状态;
    在所述音视频传输装置处于第二设置模式下时,所述音视频传输装置用于根据用户的调整指令对所述音视频传输装置的工作参数进行调整。
  4. 根据权利要求2所述的音视频传输装置,其特征在于,所述功能模式包括至少一种传输模式;
    在所述音视频传输装置处于第一传输模式下时,所述操作键用于产生第一操作指令,以便所述音视频传输装置响应所述第一操作指令暂停音视频传输,或切换用于进行音视频传输的频点;和/或,
    在所述音视频传输装置处于第二传输模式下时,所述操作键用于产生第二操作指令,以便所述音视频传输装置响应所述第二操作指令,切换与所述音视频传输装置连接的其他音视频传输装置的状态和/或数量;
    其中,所述第一传输模式和所述第二传输模式下,网络接入点不同。
  5. 根据权利要求1所述的音视频传输装置,其特征在于,所述音视频传输电路包括:
    通信模块,所述通信模块用于与其他音视频传输装置建立通信连接;
    媒体编解码处理模块,所述媒体编解码处理模块用于对所述音视频数据进 行编码或解码;
    供电子电路,所述供电子电路用于对其他模块进行供电。
  6. 根据权利要求1所述的音视频传输装置,其特征在于,
    所述音视频传输装置包括第二音视频接口,所述第二音视频接口为Micro USB接口,所述第一音视频接口为HDMI接口。
  7. 一种音视频传输方法,应用于如权利要求1-6任一项所述的音视频传输装置,其特征在于,包括:
    获取音视频传输装置的预设信息;
    基于所述预设信息,构建所述音视频传输装置与其他音视频传输装置的通信连接;
    利用所述通信连接进行与所述其他音视频传输装置之间的音视频传输。
  8. 根据权利要求7所述的方法,其特征在于,所述预设信息包括配对码以及至少一个密钥;
    所述基于所述预设信息,构建所述音视频传输装置与其他音视频传输装置的通信连接,包括:
    基于所述密钥对所述配对码进行加密,得到第一网络的网络参数,所述第一网络的网络参数包括网络名称以及网络密码;
    广播所述第一网络的网络名称,以便其他音视频传输装置搜索所述第一网络的网络名称并加入所述第一网络;或,使用所述第一网络的网络名称进行搜索,在搜索到所述第一网络的情况下,利用所述第一网络的网络密码加入所述第一网络。
  9. 根据权利要求8所述的方法,其特征在于,所述密钥包括第一密钥和第二密钥;
    所述基于所述密钥对所述配对码进行加密,得到第一网络的网络参数,包括:
    使用所述第一密钥对所述配对码按照第一预设加密算法得到所述网络名称;以及,
    使用所述第二密钥对所述配对码按照第二预设加密算法得到所述网络密码。
  10. 根据权利要求7所述的方法,其特征在于,所述利用所述通信连接进行与所述其他音视频传输装置之间的音视频传输,包括:
    获取待传输的音视频数据以及编码参数,所述编码参数包括编码帧率、编 码码率、码率控制方式、关键帧间隔中的一者或多者;
    按照所述编码参数对所述音视频数据进行编码;
    将所述编码之后的音视频数据发送至与所述音视频传输装置具备通信连接的其他音视频传输装置。
  11. 根据权利要求7所述的方法,其特征在于,所述利用所述通信连接进行与所述其他音视频传输装置之间的音视频传输,包括:
    获取已编码的音视频数据以及解码模式,所述解码模式包括流畅模式和低延迟模式;
    按照所述解码模式对所述已编码的音视频数据进行解码;
    将解码后的音视频数据输出至显示设备。
  12. 根据权利要求7所述的方法,其特征在于,所述预设信息包括音视频源表,音视频源表中包括待传输的音视频数据对应的音视频传输装置的标识;
    所述基于所述预设信息,构建所述音视频传输装置与其他音视频传输装置的通信连接,包括:
    在接收完当前的音视频数据之后,断开与所述当前的音视频数据对应的音视频传输装置之间的通信连接;
    构建与所述待传输的音视频数据对应的音视频传输装置之间的通信连接。
  13. 一种终端设备,其特征在于,包括存储器和处理器,所述处理器用于执行所述存储器中存储的程序指令,以实现权利要求7至12任一项所述的方法。
  14. 一种计算机可读存储介质,其上存储有程序指令,其特征在于,所述程序指令被处理器执行时实现权利要求7至12任一项所述的方法。
PCT/CN2021/105216 2021-07-08 2021-07-08 音视频传输方法、装置、设备及存储介质 WO2023279326A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/105216 WO2023279326A1 (zh) 2021-07-08 2021-07-08 音视频传输方法、装置、设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/105216 WO2023279326A1 (zh) 2021-07-08 2021-07-08 音视频传输方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023279326A1 true WO2023279326A1 (zh) 2023-01-12

Family

ID=84800156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/105216 WO2023279326A1 (zh) 2021-07-08 2021-07-08 音视频传输方法、装置、设备及存储介质

Country Status (1)

Country Link
WO (1) WO2023279326A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070286275A1 (en) * 2004-04-01 2007-12-13 Matsushita Electric Industrial Co., Ltd. Integated Circuit For Video/Audio Processing
CN203243443U (zh) * 2013-03-04 2013-10-16 深圳视腾达科技有限公司 无线音视频远距离传输的发射器及接收器
CN205566499U (zh) * 2016-03-18 2016-09-07 深圳市金峰数码通讯有限公司 一种音视频双通道输入处理电路及其视频会议设备
CN111343479A (zh) * 2020-03-04 2020-06-26 深圳市朗强科技有限公司 远距离传输场景中音视频数据的发送、接收方法及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070286275A1 (en) * 2004-04-01 2007-12-13 Matsushita Electric Industrial Co., Ltd. Integated Circuit For Video/Audio Processing
CN203243443U (zh) * 2013-03-04 2013-10-16 深圳视腾达科技有限公司 无线音视频远距离传输的发射器及接收器
CN205566499U (zh) * 2016-03-18 2016-09-07 深圳市金峰数码通讯有限公司 一种音视频双通道输入处理电路及其视频会议设备
CN111343479A (zh) * 2020-03-04 2020-06-26 深圳市朗强科技有限公司 远距离传输场景中音视频数据的发送、接收方法及设备

Similar Documents

Publication Publication Date Title
US8300079B2 (en) Apparatus and method for transferring video
CN108259813B (zh) 多功能传屏装置、系统及方法
KR102157634B1 (ko) 영상 획득 방법 및 로컬 엔드포인트 호스트 장치
US20080025414A1 (en) Apparatus and method for transmitting moving picture stream using bluetooth
US8749611B2 (en) Video conference system
WO2008071110A1 (fr) Procédé et système de lecture simultanée de signal de télévision multicanal
EP3253066B1 (en) Information processing device
WO2016110169A1 (zh) 一种显示处理方法及装置
WO2014090040A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
US10425758B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
WO2017090076A1 (ja) 情報処理システム、無線端末、及び情報処理方法
WO2021168649A1 (zh) 多功能接收设备和会议系统
WO2014161403A1 (zh) 视频会议电视终端视频源的接入方法和系统
WO2011140774A1 (zh) 实现移动终端与pc交互的方法、装置和系统
CN101841639A (zh) 多媒体信号处理装置及多媒体影音系统
US9088690B2 (en) Video conference system
US9521467B2 (en) Method and apparatus for program information exchange and communications system using a program comment instruction
JP3137353U (ja) マルチメディアデータストリームをリモート装置に伝送するためのテレビ、テレビボックスおよび装置
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
WO2014075229A1 (zh) 智能家居接入装置
WO2023279326A1 (zh) 音视频传输方法、装置、设备及存储介质
CN112087591A (zh) 一种视频会议的交互系统及方法
WO2023231668A1 (zh) 投屏数据的处理方法、电子设备及存储介质
JP2019213180A (ja) 無線画像音声送受信システム及び方法
US20070195962A1 (en) Apparatus and method for outputting audio data using wireless terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21948822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE