Automobile central control screen projection playing method and device and electronic equipment
Through intelligent identification and hardware-level conversion, it solves the problems of poor media format compatibility and low conversion efficiency of automotive screen projection systems, achieving efficient and compatible media format support and smooth user experience.
Patent Information
- Application Number
- CN202411195450.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Automotive screen projection systems have problems with poor media format compatibility and low conversion efficiency. As a result, external devices may fail or have poor results when playing video, audio, or pictures on the central control screen, and traditional software-level conversion affects system performance.
By intelligently identifying the screen casting request of the external device, the media format is determined and the corresponding access interface is called for transmission. The hardware conversion chip is used to convert the media object. It supports multiple media formats and transmits the signal through transmission interfaces of different protocol types. Go to the central control screen main control chip.
It improves the compatibility and conversion efficiency of the system, reduces the conversion time, avoids the occupation of system resources by software conversion, ensures the smooth operation of the automotive system, supports signal transmission in multiple media forms, and allows users to achieve automatic operation without complicated settings. Cast screen playback.
Smart Images

Figure CN118714385A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle-machine interaction technology, and in particular to a method, device and electronic device for projection and playback of a central control screen of an automobile. Background Art
[0002] At present, car projection systems often have problems such as poor media format compatibility and low conversion efficiency. For example, when an external device tries to play video, audio or pictures on the car's central control screen through projection, if the central control screen does not support the media format, it may cause playback failure or poor playback effect. In addition, traditional projection systems often rely on software-level processing when converting media formats, which not only has low conversion efficiency, but may also affect the overall performance of the car system. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device and electronic device for projection and playback of a car's central control screen, aiming to solve the technical problems of poor compatibility and low conversion efficiency of car projection in related scenarios.
[0004] In order to achieve the above-mentioned purpose, a first aspect of the embodiments of the present disclosure provides a method for casting and playing a car central control screen, comprising: In response to an external device sending a screen projection and playback request to the automobile central control screen, the screen projection and playback request sent by the external device is parsed and identified, and a media format of an object to be played cast by the external device is determined; Calling an access interface corresponding to the media format to transmit the object to be played on the screen of the external device, and determining whether the object to be played needs to be converted according to the media format of the object to be played; In the case where it is determined that the object to be played needs to be converted, calling a conversion chip to convert the object to be played to obtain signals in multiple different media formats; Calling the protocol type transmission interface of the signal in different media formats, and transmitting the signals in different media formats after the conversion of the to-be-played object to the main control chip of the car central control screen through the protocol type transmission interface corresponding to the media format; The signals in different media formats transmitted to the main control chip are projected and played on the display screen of the car's central control screen.
[0005] In a possible implementation, determining whether the object to be played needs to be converted according to the media format of the object to be played includes: When the media format of the object to be played is a video format, determining that the object to be played needs to be converted; When the media format of the object to be played is in audio format, it is determined that the object to be played does not need to be converted.
[0006] In a possible implementation, when it is determined that the object to be played needs to be converted, calling a conversion chip to convert the object to be played to obtain signals in multiple different media formats includes: When it is determined that the object to be played is in the video format and needs to be converted, a conversion chip is called to convert the object to be played to obtain an audio signal and a video signal, and the signals in different media formats include the audio signal and the video signal.
[0007] In a possible implementation, the calling of the conversion chip to convert the object to be played to obtain an audio signal and a video signal includes: Calling the hardware interface of the conversion chip to allocate memory for the video data and the audio data in the object to be played; After the memory is allocated, communication parameters are set, including baud rate, data bit, and stop bit; After the communication parameters are set, audio input format information of the audio input and video input format information of the video input are set, wherein the audio input format information includes sampling rate, bit depth, and number of channels, and the video input format information includes resolution, frame rate, and color space; After the input format information is set, configure the audio output format information of the audio output and the video output format information of the video output, wherein the audio output format information includes selecting the clock rate, word length, and channel order, and the video output format information includes the resolution, frame rate, and data format; After the output format information is configured, the video data and audio data in the object to be played are converted to obtain an audio signal and a video signal.
[0008] In a possible implementation, after configuring the output format information, converting the video data and audio data in the to-be-played object to obtain an audio signal and a video signal includes: After configuring the output format information, call the specific function or interface in the SDK or API to establish the audio stream path and the video stream path; Setting path parameters of the audio stream path and the video stream path, wherein the path parameters include an identifier, a resolution, and a frame rate; When the path parameters of the audio stream path and the video stream path are verified to be passed, the video data and the audio data in the object to be played are converted based on the audio stream path and the video stream path to obtain an audio signal and a video signal.
[0009] In a possible implementation, the calling of the protocol type transmission interface of the signal in different media formats, and transmitting the signals in different media formats converted from the to-be-played objects to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format, respectively, includes: Calling a CSI protocol type transmission interface to transmit the video signal converted from the to-be-played object to the main control chip of the central control screen of the car; The I2S protocol type transmission interface is called to transmit the audio signal converted from the object to be played to the main control chip of the car's central control screen.
[0010] In a possible implementation, the method further includes: When it is determined that the media format of the object to be played is in audio format and does not need to be converted, the I2S protocol type transmission interface is called to transmit the object to be played to the main control chip of the car's central control screen.
[0011] In a second aspect of the embodiments of the present disclosure, a device for casting and playing a screen on a central control screen of a car is provided, the device comprising: A first determination module is configured to, in response to an external device sending a screen projection and playback request to the automobile central control screen, parse and identify the screen projection and playback request sent by the external device, and determine a media format of an object to be played on the screen projected by the external device; A second determination module is configured to call an access interface corresponding to the media format to transmit the object to be played on the screen of the external device, and determine whether the object to be played needs to be converted according to the media format of the object to be played; A calling module is configured to call a conversion chip to convert the object to be played, when it is determined that the object to be played needs to be converted, to obtain signals in multiple different media formats; A transmission module is configured to call a protocol type transmission interface of the signal in different media formats, and transmit the signals in different media formats converted by the to-be-played objects to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format; The playback module is configured to project and play the signals of different media formats transmitted to the main control chip onto the display screen of the central control screen of the car.
[0012] According to a third aspect of the present disclosure, an electronic device is provided, including: processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions stored in the memory to perform the method described in any one of the first aspects.
[0013] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions executable by a processor are stored. When the computer program instructions are executed by the processor, the steps of any one of the methods described in the first aspect are implemented.
[0014] The present invention provides a method, device and electronic device for projecting and playing a car central control screen. Compared with the prior art, it has the following beneficial effects: By intelligently identifying the screen projection request of the external device and determining the media format, the system can automatically call the access interface corresponding to the media format for transmission, thereby achieving support for multiple media formats and improving the compatibility of the system. A hardware-level conversion chip is used to convert the playback object. Compared with the traditional software conversion method, the method of this patent has higher conversion efficiency, can significantly reduce the conversion time, and improve the conversion efficiency and user experience. The hardware-level conversion of the conversion chip is adopted to avoid excessive occupation of system resources by software conversion, thereby ensuring the overall performance of the car system, so that the car can still maintain a smooth operation state while projecting and playing. It supports signal transmission in multiple media formats, and can support more media formats by adding protocol type transmission interfaces, with good scalability. Users only need to connect the external device to the car's central control screen, which can automatically identify and cast the screen for playback without complicated settings and operations, greatly facilitating user use.
[0015] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings: Figure 1 It is a flow chart of a method for casting and playing on a car's central control screen according to an embodiment of the specification.
[0017] Figure 2 It is a block diagram of a car central control screen projection and playback device according to an embodiment of the specification. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0020] In order to achieve the above-mentioned purpose, the present invention provides a method for casting and playing a car central control screen. Figure 1 As shown, the following steps are included.
[0021] In step S11, in response to an external device sending a screen projection and playback request to the automobile central control screen, the screen projection and playback request sent by the external device is parsed and identified to determine the media format of the object to be played by the external device; The screen projection request is sent by an external device (such as a mobile phone or tablet computer) to the car's central control screen, requesting that the content (such as video, audio, picture, etc.) on the device be projected onto the central control screen for playback. The external device (such as a mobile phone or tablet computer) can be connected to the car's central control screen through, for example, a USB interface or a type-c interface.
[0022] In the disclosed embodiment, when an external device sends a screen projection playback request to the car's central control screen, the built-in system of the central control screen will first capture the request. The system will then parse the request and extract key information, such as the media format and source address of the object to be played. For example: Suppose you use a mobile phone to watch a video in MP4 format and project it to the car's central control screen. After the user clicks the cast button on the phone, the phone will send a screen projection playback request containing the video source address and media format (MP4) to the car's central control screen.
[0023] In step S12, an access interface corresponding to the media format is called to transmit the object to be played on the screen of the external device, and according to the media format of the object to be played, it is determined whether the object to be played needs to be converted; The media format refers to the encoding format of multimedia data (such as video, audio, and pictures), which determines how the data is stored and the type of decoder required for playback. The access interface is an interface used to connect different devices or components in the system to achieve data exchange or function call.
[0024] In the disclosed embodiment, after determining the media format of the object to be played on the screen of the external device, the system will look for an access interface corresponding to the media format. This interface is used to receive data of the object to be played from the external device. Next, the system will check whether the media format of the object to be played is compatible with the format supported by the car's central control screen. If it is incompatible, it needs to be converted. For example: If the media format of the object to be played is MP4, and the car's central control screen supports playback in MP4 format, the system will call the access interface corresponding to the MP4 format to receive video data. If the central control screen does not support the MP4 format, the system will need to call the conversion chip for format conversion.
[0025] In step S13, when it is determined that the object to be played needs to be converted, a conversion chip is called to convert the object to be played to obtain signals in multiple different media formats; Among them, the conversion chip is a hardware device that can handle digital signal conversion and can convert data in one format into data in another format. Detailed implementation principle: When it is determined that the object to be played needs to be converted into a media format, the system will call the conversion chip. The conversion chip will convert the original media format of the object to be played into the media format supported by the central control screen according to the preset conversion rules. The conversion process may include operations such as decoding, re-encoding, adjusting resolution and frame rate. For example: If the media format of the object to be played is AVI, and the car's central control screen only supports MP4 format, the system will call the conversion chip to convert the video in AVI format into MP4 format. The converted video will have the same content as the original video, but the format and encoding method have changed.
[0026] Among them, in the embodiment of the present disclosure, the car central control screen may include a conversion chip, a main control chip connected to the conversion chip, and a central control screen connected to the main control chip.
[0027] In step S14, the protocol type transmission interface of the signal in different media formats is called, and the signals in different media formats converted from the to-be-played objects are respectively transmitted to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format; The protocol type is a set of rules and standards that both parties need to follow to ensure the integrity and consistency of data during data transmission. These rules define aspects such as the data format, transmission method, and error handling. The transmission interface is an interface used to transmit data between different devices or components, and it is usually associated with a specific protocol type.
[0028] In the disclosed embodiment, after the object to be played is converted into a media format supported by the central control screen, the system will call the corresponding protocol type transmission interface according to the converted media format. These interfaces are used to transmit the converted data to the main control chip of the central control screen according to a specific protocol format. For example: Assume that the converted media format is MP4, and the corresponding protocol type is HTTP. Then the system will call the transmission interface associated with the HTTP protocol type, and transmit the video data in MP4 format to the main control chip of the central control screen through the HTTP protocol.
[0029] In step S15, the signals in different media formats transmitted to the main control chip are projected and played on the display screen of the central control screen of the car.
[0030] When the converted data is successfully transmitted to the main control chip of the central control screen, the main control chip will decode the data and send it to the display screen for playback. If the central control screen supports the playback of multiple media formats, the main control chip will select the appropriate decoder for decoding according to the media format of the data. The decoded data will be presented to the user on the display screen in the form of video, audio or pictures.
[0031] For example: In the above example, after the MP4 format video data is successfully transmitted to the main control chip of the central control screen, the main control chip will call the corresponding decoder to decode the video data. The decoded video will be played in full screen on the display screen of the central control screen for users to watch.
[0032] The above technical solution can intelligently identify the screen projection request of the external device and determine the media format. The system can automatically call the access interface corresponding to the media format for transmission, thereby realizing support for multiple media formats and improving the compatibility of the system. A hardware-level conversion chip is used to convert the object to be played. Compared with the traditional software conversion method, the method of this patent has higher conversion efficiency, can significantly reduce the conversion time, and improve the conversion efficiency and user experience. The hardware-level conversion of the conversion chip is adopted to avoid excessive occupation of system resources by software conversion, thereby ensuring the overall performance of the automobile system, so that the car can still maintain a smooth operation state while projecting and playing. It supports signal transmission in multiple media formats, and can support more media formats by adding protocol type transmission interfaces, and has good scalability. Users only need to connect the external device to the car's central control screen, which can automatically identify and cast the screen for playback without complicated settings and operations, which greatly facilitates user use.
[0033] In a possible implementation, in step S12, determining whether the object to be played needs to be converted according to the media format of the object to be played includes: In step S121, when the media format of the object to be played is a video format, it is determined that the object to be played needs to be converted; In this step, first check whether the media format of the object to be played is a video. Since the car's central control screen may only support a limited number of video formats, or in order to achieve better compatibility and playback effects between different devices, some video formats may need to be converted to formats supported by the central control screen. Therefore, when it is detected that the object to be played is in video format, the system will consider that format conversion is required.
[0034] For example, suppose a user tries to use the mobile phone screen projection function to project an AVI movie onto the car's central control screen for playback. Since the car's central control screen only supports MP4 format video playback, when the system detects that the media format of the object to be played is AVI, it will determine that the video needs to be converted to a different format so that it can be played normally on the central control screen.
[0035] In step S122, when the media format of the object to be played is in audio format, it is determined that the object to be played does not need to be converted.
[0036] The object to be played in audio format refers to the media content to be played being in an audio format, such as MP3, WAV, AAC, etc.
[0037] In the disclosed embodiment, in this step, it is checked whether the media format of the object to be played is in audio format. Since the compatibility of audio formats is usually higher than that of video formats, many audio formats can be played directly on the car's central control screen without conversion. Therefore, when the system detects that the object to be played is in audio format, it will consider that no format conversion is required.
[0038] For example, if a user wants to use the mobile phone screen projection function to cast an MP3 song to the car's central control screen for playback, since MP3 is a widely supported audio format, most car central control screens can directly play MP3 format songs. Therefore, when the system detects that the media format of the object to be played is MP3, it will assume that the audio does not need to be converted to a format and can be played directly on the central control screen.
[0039] In a possible implementation, in step S13, when it is determined that the object to be played needs to be converted, calling a conversion chip to convert the object to be played to obtain signals in multiple different media formats includes: When it is determined that the object to be played is in the video format and needs to be converted, a conversion chip is called to convert the object to be played to obtain an audio signal and a video signal, and the signals in different media formats include the audio signal and the video signal.
[0040] Among them, audio signal is an electrical signal or digital signal representing sound information. Video signal is an electrical signal or digital signal representing image information, usually containing image sequence and sound (if it is composite video).
[0041] In the disclosed embodiment, when it is determined that the object to be played is in the form of a video and needs to be converted, the system will call the conversion chip to perform the conversion operation. The conversion chip decodes the original video file into its original audio stream and video stream according to the preset conversion rules, and then may re-encode these streams to adapt to the media format supported by the central control screen. The conversion process may involve adjustments to video and audio parameters, such as resolution, bit rate, frame rate, sampling rate, etc., to optimize the playback effect or adapt to a specific playback environment.
[0042] The output of the conversion chip is usually separated audio and video signals, which can be in digital or analog format, depending on the needs of the conversion chip and subsequent processing. These signals are then transmitted to the main control chip of the central control screen for playback on the display and audio system.
[0043] For example, suppose a user wants to use the screen projection function to project an AVI format movie onto the car's central control screen for playback, but the central control screen only supports MP4 format videos. In this case, the system determines that format conversion is required. After calling the conversion chip, the conversion chip decodes the AVI format movie into the original audio and video streams. The conversion chip then re-encodes these streams into MP4 format and generates the corresponding audio and video signals. These signals are then transmitted to the main control chip of the central control screen and played on the display and audio system of the central control screen. In this way, users can watch the converted MP4 format movie on the car's central control screen.
[0044] The above technical solution greatly improves the ability of playback devices to support different media files by generating signals in a variety of different media formats. This means that no matter what the original format of the object to be played is, users can play it smoothly on the target device without worrying about compatibility issues. By ensuring the accurate conversion of audio and video signals, the technology provides a more stable, clear and high-quality media playback experience. Users no longer need to manually adjust or convert file formats, saving a lot of time and energy. Using efficient conversion chips, the technology can complete a large number of media format conversion tasks in a short time. This not only improves processing efficiency, but also reduces the waiting time for users. Users can set different input and output format information as needed to meet specific playback requirements. This makes the technology extremely flexible and scalable. By optimizing the conversion algorithm and the use of hardware resources, the technology can reduce the consumption of system resources while ensuring the quality of conversion, thereby extending the service life of the device.
[0045] In other words, by calling the conversion chip to convert the media format of the object to be played, an efficient, flexible and highly compatible solution is provided. It not only ensures the accurate conversion of audio and video signals, but also provides an optimized user experience and efficient processing speed. In the current media playback environment, this technology has important application value.
[0046] In a possible implementation, the calling of the conversion chip to convert the object to be played to obtain an audio signal and a video signal includes: Calling the hardware interface of the conversion chip to allocate memory for the video data and the audio data in the object to be played; Among them, the hardware interface connects the software and hardware devices for data transmission and control. Memory allocation: In a computer system, a certain amount of memory space is allocated to different programs or data blocks.
[0047] In the disclosed embodiment, before converting the video and audio data, it is necessary to allocate corresponding space for these data in the memory of the conversion chip. This is usually done by calling the hardware interface of the conversion chip to ensure that there is enough memory to store and process the video and audio data in the object to be played.
[0048] For example: the computer's hardware resources (such as CPU, GPU and memory) are called to process the video. Similarly, in this technical content, the conversion chip is equivalent to a "hardware editor" that needs to allocate memory through its hardware interface in order to process video and audio data.
[0049] After the memory is allocated, communication parameters are set, including baud rate, data bit, and stop bit; The communication parameters are set to ensure that the conversion chip can correctly and efficiently transmit data to the data source (such as storage device) or target device (such as central control screen). The setting of these parameters is usually based on the communication protocol and hardware specifications of the two devices.
[0050] For example: in serial communication, the baud rate defines the number of bits transmitted per second, the data bits define the number of bits in each data byte, and the stop bit is used to mark the end of the data packet. The setting of these parameters is critical to ensure the integrity and accuracy of the data.
[0051] After the communication parameters are set, audio input format information of the audio input and video input format information of the video input are set, wherein the audio input format information includes sampling rate, bit depth, and number of channels, and the video input format information includes resolution, frame rate, and color space; The audio input format information includes sampling rate, bit depth, number of channels, etc., which is used to define the characteristics and format of audio data. The video input format information includes resolution, frame rate, color space, etc., which is used to define the characteristics and format of video data.
[0052] Before conversion, you need to know the original audio and video formats of the object to be played. This format information is necessary for the conversion chip because it needs to decode and process the data correctly based on this information. For example: suppose the original format of a video is 4K 60fps (frame rate 60 frames per second) and stereo audio. Before conversion, the conversion chip needs to know this format information so that it can correctly decode the video and audio data.
[0053] After the input format information is set, configure the audio output format information of the audio output and the video output format information of the video output, wherein the audio output format information includes selecting the clock rate, word length, and channel order, and the video output format information includes the resolution, frame rate, and data format; The audio output format information includes the selection of clock rate, word length, channel order, etc., which is used to define the characteristics and format of the converted audio data. The video output format information includes resolution, frame rate, data format, etc., which is used to define the characteristics and format of the converted video data.
[0054] In the disclosed embodiment, during the conversion process, the conversion chip needs to understand not only the format of the input data, but also the format of the output data. These output format information are usually set based on the specifications and requirements of the target device (such as the central control screen). For example: Assume that the maximum video resolution supported by the target central control screen is 1080p 30fps. When configuring the output format information, the conversion chip will use these restrictions as a reference to ensure that the output video signal meets the specifications of the central control screen.
[0055] After the output format information is configured, the video data and audio data in the object to be played are converted to obtain an audio signal and a video signal.
[0056] The conversion may decode, re-encode or adjust the format of the original audio and video data of the object to be played to adapt to the specifications and requirements of the target device.
[0057] In the disclosed embodiment, based on the previously set input and output format information and communication parameters, the conversion chip begins to convert the audio and video data in the object to be played. This process may include steps such as decoding, re-encoding, format adjustment, color space conversion, etc., depending on the differences in the input and output formats and the functions of the conversion chip. For example: In this step, the conversion chip is like a "translator", which "translates" the original video and audio data into a format that the central control screen can understand. In this way, the user can watch and hear the converted video and audio content on the central control screen.
[0058] The above technical solution allocates appropriate memory space for the video data and audio data in the object to be played by calling the hardware interface of the conversion chip, ensuring the stability and integrity of the data during the conversion process. After the memory allocation is completed, the communication parameters such as baud rate, data bit, stop bit, etc. are set. These parameters provide standards for the transmission of data between the conversion chip and other devices, ensuring the accuracy and efficiency of data transmission. Then, the technology sets the format information of audio input and video input, including sampling rate, bit depth, number of channels, resolution, frame rate, color space, etc. This information accurately describes the original media format of the object to be played, providing an important reference for subsequent conversion.
[0059] Then, according to the specifications and requirements of the target device, the format information of audio output and video output is configured, including clock rate, word length, channel order, resolution, frame rate, data format, etc. These configurations ensure that the converted media signals are compatible with the target device, thus providing high-quality playback effects.
[0060] Finally, after configuring the output format information, the technology converts the video data and audio data in the playback object to obtain audio and video signals that meet the requirements of the target device. This process not only ensures the accuracy and integrity of the data, but also improves the efficiency and effect of the conversion. Thus, through reasonable memory allocation, communication parameter settings, input and output format configuration, and data conversion, the technology provides users with a high-quality media playback experience.
[0061] In a possible implementation, after configuring the output format information, converting the video data and audio data in the to-be-played object to obtain an audio signal and a video signal includes: After configuring the output format information, call the specific function or interface in the SDK or API to establish the audio stream path and the video stream path; Among them, SDK (Software Development Kit): Software Development Kit is a collection of tools provided by third-party developers for specific software packages, hardware platforms, operating systems, etc., usually including API functions, library files, documents, etc., to help developers create applications. API (Application Programming Interface): Application Programming Interface is a set of definitions, protocols and tools that allow different software applications or components to communicate and interact with each other. Audio stream path: In media processing, the audio stream path refers to the path or process that audio data passes through from input to output. Video stream path: Similarly, the video stream path refers to the path or process that video data passes through from input to output.
[0062] In the disclosed embodiment, after configuring the output format information, the system needs to establish an audio stream path and a video stream path through a specific function or interface in the SDK or API. These paths define the flow direction and processing method of audio and video data during the conversion process.
[0063] Establish audio and video streaming paths: By calling functions or interfaces in the SDK or API, the system creates two independent streaming paths, one for audio data and the other for video data. These paths are responsible for transmitting data from the source to the target, and may perform operations such as decoding, conversion, and encoding in the process.
[0064] Setting path parameters of the audio stream path and the video stream path, wherein the path parameters include an identifier, a resolution, and a frame rate; Among them, path parameters: a series of parameters that need to be set when configuring the flow path. These parameters define the behavior and characteristics of the data flow.
[0065] In the disclosed embodiment, for each stream path, corresponding path parameters need to be set. These parameters may include an identifier (for uniquely identifying the stream path), resolution (for video streams), frame rate (for video streams), etc. The setting of these parameters ensures the correct processing and transmission of the data stream in the path.
[0066] When the path parameters of the audio stream path and the video stream path are verified to be passed, the video data and the audio data in the object to be played are converted based on the audio stream path and the video stream path to obtain an audio signal and a video signal.
[0067] Before starting the conversion process, the system verifies that the path parameters of the audio stream path and the video stream path are correct. This is to ensure that the data can be transferred and processed in the path as expected.
[0068] If the verification is passed, the system converts the video data and audio data in the object to be played based on the established audio stream path and video stream path. This process may include decoding the original data, re-encoding according to the output format information, and adjusting data parameters (such as resolution, frame rate, sampling rate, etc.). Finally, audio and video signals that meet the output format requirements are obtained. For example, suppose a user wants to convert an MP4 video file to a format suitable for playback on a smart TV. In this process, the system will first configure the output format information, such as the sampling rate, bit depth, number of channels of the audio, and the resolution, frame rate, data format, etc. of the video.
[0069] Then, the system establishes the audio stream path and the video stream path by calling the functions or interfaces in the SDK or API. For the audio stream path, the system sets the sampling rate, bit depth, number of channels and other parameters; for the video stream path, the system sets the resolution, frame rate and other parameters.
[0070] After verifying that these path parameters are passed, the system starts to convert the MP4 video file according to the audio stream path and the video stream path. In this process, the system first decodes the audio and video data in the MP4 file, then re-encodes these data according to the output format requirements and adjusts the corresponding parameters. Finally, the system obtains audio and video signals that meet the smart TV playback requirements and transmits these signals to the smart TV for playback.
[0071] In a possible implementation, the calling of the protocol type transmission interface of the signal in different media formats, and transmitting the signals in different media formats converted from the to-be-played objects to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format, respectively, includes: Calling a CSI protocol type transmission interface to transmit the video signal converted from the to-be-played object to the main control chip of the central control screen of the car; The I2S protocol type transmission interface is called to transmit the audio signal converted from the object to be played to the main control chip of the car's central control screen.
[0072] Among them, CSI (Camera Serial Interface) is a serial interface that can be used to connect to the main control chip interface and can be used for the central control screen data transmission of the car high-definition video.
[0073] I2S (Inter-IC Sound Bus) is an audio bus that provides a digital audio serial interface standard that can transmit uncompressed pulse code modulation (PCM) audio data. The I2S interface usually includes three signals: word select (WS), word clock (WCK) and audio data (SD).
[0074] The main control chip is the core chip responsible for processing and controlling various functions. It may integrate multiple functions such as multimedia decoding, display control, and audio processing.
[0075] In the disclosed embodiment, in the media playback system of the central control screen of the car, when the object to be played (such as a video file) is processed by the conversion chip, signals of different media formats (such as video signals and audio signals) will be obtained. These signals need to be transmitted to the main control chip of the central control screen through an appropriate protocol type transmission interface for further processing and playback. The CSI protocol type transmission interface is an interface designed specifically for the camera and the image processor, which supports high-speed and stable data transmission. In the media playback system, when the video signal conversion is completed, the system will call the CSI protocol type transmission interface to transmit the video signal to the main control chip of the central control screen of the car. For example: Assume that the central control screen of the car is playing a high-definition dashcam video. This video signal is first processed by the conversion chip and converted into a format that can be recognized by the main control chip of the central control screen. Then, the system calls the CSI protocol type transmission interface to transmit the converted video signal to the main control chip at a high speed and stably, and finally displays it on the screen under the control of the main control chip.
[0076] The I2S protocol type transmission interface is designed for audio data transmission, and it supports high-quality PCM audio data transmission. In the media playback system, when the audio signal conversion is completed, the system will call the I2S protocol type transmission interface to transmit the audio signal to the main control chip of the car's central control screen. For example: when playing music on the car's central control screen, the audio file is first processed by the conversion chip and converted into an audio format that can be recognized by the central control screen main control chip. Then, the system calls the I2S protocol type transmission interface to transmit the converted audio signal to the main control chip in high-quality PCM format. The main control chip decodes and processes the audio signal, and finally plays it through the car audio system.
[0077] Through the above steps, the media playback system of the car's central control screen can ensure the efficiency and stability of video and audio signals during transmission, thereby providing a high-quality media playback experience.
[0078] In a possible implementation, the method further includes: When it is determined that the media format of the object to be played is in audio format and does not need to be converted, the I2S protocol type transmission interface is called to transmit the object to be played to the main control chip of the car's central control screen.
[0079] When it is determined that the media format of the object to be played is audio and does not need to be converted, the system will use an efficient direct transmission method to play the audio content. In this process, the I2S protocol type transmission interface is called because it provides high-quality, low-latency digital audio transmission capabilities.
[0080] The I2S protocol uses three wires to synchronously transmit audio data: the clock line is used to determine the data transmission rate; the word select line is used to distinguish between left and right channels or stereo / mono data; and the data line is used to transmit the actual audio data. This transmission method ensures the integrity and accuracy of the audio data while reducing the sound quality loss that may be introduced by conversion or compression.
[0081] The present disclosure also provides a car central control screen projection and playback device, see Figure 2 As shown, the device comprises: The first determination module 210 is configured to, in response to an external device sending a screen projection and playback request to the automobile central control screen, parse and identify the screen projection and playback request sent by the external device, and determine the media format of the object to be played by the external device; The second determination module 220 is configured to call the access interface corresponding to the media format to transmit the object to be played cast by the external device, and determine whether the object to be played needs to be converted according to the media format of the object to be played; The calling module 230 is configured to call the conversion chip to convert the object to be played when it is determined that the object to be played needs to be converted, so as to obtain signals in multiple different media formats; The transmission module 240 is configured to call the protocol type transmission interface of the signal in different media formats, and transmit the signals in different media formats converted by the to-be-played objects to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format; The playback module 250 is configured to project and play the signals of different media formats transmitted to the main control chip onto the display screen of the central control screen of the car.
[0082] In a possible implementation, the second determining module 220 is configured to: When the media format of the object to be played is a video format, determining that the object to be played needs to be converted; When the media format of the object to be played is in audio format, it is determined that the object to be played does not need to be converted.
[0083] In a possible implementation, the calling module 230 is configured to: When it is determined that the object to be played is in the video format and needs to be converted, a conversion chip is called to convert the object to be played to obtain an audio signal and a video signal, and the signals in different media formats include the audio signal and the video signal.
[0084] In a possible implementation, the calling module 230 is configured to: Calling the hardware interface of the conversion chip to allocate memory for the video data and the audio data in the object to be played; After the memory is allocated, communication parameters are set, including baud rate, data bit, and stop bit; After the communication parameters are set, audio input format information of the audio input and video input format information of the video input are set, wherein the audio input format information includes sampling rate, bit depth, and number of channels, and the video input format information includes resolution, frame rate, and color space; After the input format information is set, configure the audio output format information of the audio output and the video output format information of the video output, wherein the audio output format information includes selecting the clock rate, word length, and channel order, and the video output format information includes the resolution, frame rate, and data format; After the output format information is configured, the video data and audio data in the object to be played are converted to obtain an audio signal and a video signal.
[0085] In a possible implementation, the calling module 230 is configured to: After configuring the output format information, call the specific function or interface in the SDK or API to establish the audio stream path and the video stream path; Setting path parameters of the audio stream path and the video stream path, wherein the path parameters include an identifier, a resolution, and a frame rate; When the path parameters of the audio stream path and the video stream path are verified to be passed, the video data and the audio data in the object to be played are converted based on the audio stream path and the video stream path to obtain an audio signal and a video signal.
[0086] In a possible implementation, the transmission module 240 is configured to: Calling a CSI protocol type transmission interface to transmit the video signal converted from the to-be-played object to the main control chip of the central control screen of the car; The I2S protocol type transmission interface is called to transmit the audio signal converted from the object to be played to the main control chip of the car's central control screen.
[0087] In a possible implementation, the transmission module is further configured to: When it is determined that the media format of the object to be played is in audio format and does not need to be converted, the I2S protocol type transmission interface is called to transmit the object to be played to the main control chip of the car's central control screen.
[0088] The present disclosure also provides an electronic device, including: processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions stored in the memory to perform the method described in any one of the aforementioned embodiments.
[0089] The embodiments of the present disclosure further provide a computer-readable storage medium on which are stored computer program instructions executable by a processor. When the computer program instructions are executed by the processor, the steps of the method described in any one of the aforementioned embodiments are implemented.
[0090] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments; within the technical concept of the present disclosure, various changes, modifications, substitutions and variations may be made to these embodiments, and these changes, modifications, substitutions and variations all fall within the protection scope of the present disclosure.
[0091] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction, and they should also be regarded as the contents disclosed in this disclosure. In order to avoid unnecessary repetition, this disclosure will not further describe various possible combinations. The technical scope of this application is not limited to the contents in the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for casting and playing a car central control screen, characterized in that: The method comprises: In response to an external device sending a screen projection and playback request to the automobile central control screen, the screen projection and playback request sent by the external device is parsed and identified, and a media format of an object to be played cast by the external device is determined; Calling an access interface corresponding to the media format to transmit the object to be played on the screen of the external device, and determining whether the object to be played needs to be converted according to the media format of the object to be played; In the case where it is determined that the object to be played needs to be converted, calling a conversion chip to convert the object to be played to obtain signals in multiple different media formats; Calling the protocol type transmission interface of the signal in different media formats, and transmitting the signals in different media formats after the conversion of the to-be-played object to the main control chip of the car central control screen through the protocol type transmission interface corresponding to the media format; The signals in different media formats transmitted to the main control chip are projected and played on the display screen of the car's central control screen.
2. The method according to claim 1, characterized in that The determining whether the object to be played needs to be converted according to the media format of the object to be played includes: When the media format of the object to be played is a video format, determining that the object to be played needs to be converted; When the media format of the object to be played is in audio format, it is determined that the object to be played does not need to be converted.
3. The method according to claim 2, characterized in that In the case where it is determined that the object to be played needs to be converted, calling a conversion chip to convert the object to be played to obtain signals in multiple different media formats, including: When it is determined that the object to be played is in the video format and needs to be converted, a conversion chip is called to convert the object to be played to obtain an audio signal and a video signal, and the signals in different media formats include the audio signal and the video signal.
4. The method according to claim 3, characterized in that The calling conversion chip converts the to-be-played object to obtain an audio signal and a video signal, including: Calling the hardware interface of the conversion chip to allocate memory for the video data and the audio data in the object to be played; After the memory is allocated, communication parameters are set, including baud rate, data bit, and stop bit; After the communication parameters are set, audio input format information of the audio input and video input format information of the video input are set, wherein the audio input format information includes sampling rate, bit depth, and number of channels, and the video input format information includes resolution, frame rate, and color space; After the input format information is set, configure the audio output format information of the audio output and the video output format information of the video output, wherein the audio output format information includes selecting the clock rate, word length, and channel order, and the video output format information includes the resolution, frame rate, and data format; After the output format information is configured, the video data and audio data in the object to be played are converted to obtain an audio signal and a video signal.
5. The method according to claim 4, characterized in that After configuring the output format information, converting the video data and audio data in the to-be-played object to obtain an audio signal and a video signal includes: After configuring the output format information, call the specific function or interface in the SDK or API to establish the audio stream path and the video stream path; Setting path parameters of the audio stream path and the video stream path, wherein the path parameters include an identifier, a resolution, and a frame rate; When the path parameters of the audio stream path and the video stream path are verified to be passed, the video data and the audio data in the object to be played are converted based on the audio stream path and the video stream path to obtain an audio signal and a video signal.
6. The method according to claim 3, characterized in that The calling of the protocol type transmission interface of the signal in different media formats, and transmitting the signals in different media formats converted by the to-be-played objects to the main control chip of the automobile central control screen through the protocol type transmission interface corresponding to the media format, respectively, includes: Calling a CSI protocol type transmission interface to transmit the video signal converted from the to-be-played object to the main control chip of the central control screen of the car; The I2S protocol type transmission interface is called to transmit the audio signal converted from the object to be played to the main control chip of the car's central control screen.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When it is determined that the media format of the object to be played is in audio format and does not need to be converted, the I2S protocol type transmission interface is called to transmit the object to be played to the main control chip of the car's central control screen.
8. A car central control screen projection and playback device, characterized in that: The device comprises: A first determination module is configured to, in response to an external device sending a screen projection and playback request to the automobile central control screen, parse and identify the screen projection and playback request sent by the external device, and determine a media format of an object to be played on the screen projected by the external device; A second determination module is configured to call an access interface corresponding to the media format to transmit the object to be played on the screen of the external device, and determine whether the object to be played needs to be converted according to the media format of the object to be played; A calling module is configured to call a conversion chip to convert the object to be played, when it is determined that the object to be played needs to be converted, to obtain signals in multiple different media formats; A transmission module is configured to call a protocol type transmission interface of the signal in different media formats, and transmit the signals in different media formats converted by the to-be-played objects to the main control chip of the central control screen of the car through the protocol type transmission interface corresponding to the media format; The playback module is configured to project and play the signals of different media formats transmitted to the main control chip onto the display screen of the central control screen of the car.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions stored in the memory to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer program instructions executable by a processor, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Audio / video playing equipment
CN105657485A
Screen projection processing method and device
CN110784758A
Video transcoding screen projection method, device and system
CN112672212A
The method which trancodes digital multimediabroadcasing for retransmitting and the mobile terminal
KR1020070048095A
Device and method for converting format in digital TV receiver
US20030206242A1
