CD audio management method and system, terminal equipment and storage medium
By analyzing and encoding CD audio data on the server side and establishing a connection channel using broadcast tools, the problem of CD audio cannot be shared is solved, and multi-CD optical drive management and efficient audio sharing are realized.
Patent Information
- Application Number
- CN202411121328.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-10
AI Technical Summary
Existing multimedia devices cannot realize direct sharing and transmission of CD audio.
By implementing CD audio management methods on the server side, it includes analyzing the target CD device to obtain audio data, performing encoding processing, and using broadcast tools to establish a connection channel, sending the encoded data to the target client device, supporting audio sharing of multiple network protocols.
It realizes the management and audio sharing of multiple CD drives, providing efficient and convenient audio sharing capabilities.
Smart Images

Figure CN119109909A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of multimedia servers, and in particular to a CD audio management method, system, terminal device and storage medium. Background Art
[0002] Multimedia devices can realize CD ripping function, that is, reading digital signals from CDs and saving them as digital audio files. The files can be in uncompressed format (such as WAV (WAV is a digital audio format that stores sound waveforms)) or compressed format (such as MP3). CD ripping is the process of grabbing CD audio tracks and converting them into audio formats such as MP3 and WAV.
[0003] However, current multimedia devices can only play the audio tracks of CDs directly, but cannot directly share the CD audio tracks. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a CD audio management method, system, terminal device and storage medium, which can effectively solve the problem that CD audio cannot be shared and transmitted in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a CD audio management method, which is applied to a server side, and the method includes:
[0006] After receiving the target selection instruction from the user, analyzing the selected target CD device to obtain the audio data of the target CD device;
[0007] Encoding the audio data to obtain first encoded data;
[0008] Using a broadcast tool to receive a broadcast instruction of a target client device to be connected within a preset range, and establishing a first connection channel to connect to the target client device;
[0009] After the first coded data is processed using the audio data, the obtained second coded data is sent to the target client device.
[0010] In some embodiments, after obtaining the first coded data, the method further includes:
[0011] Establishing a second connection channel to connect to the target client device and sending the first encoded data to the target client device;
[0012] Wherein, the second connection channel includes: a network storage server.
[0013] In some embodiments, after receiving the target selection instruction from the user, analyzing the selected target CD device to obtain the audio data of the target CD device, the method further includes:
[0014] After receiving the mode selection instruction from the user, several CD devices connected to the server are identified and their numbers are recorded.
[0015] In some embodiments, after receiving the target selection instruction from the user, analyzing the selected target CD device to obtain the audio data of the target CD device, further comprising:
[0016] Acquire the track ripping progress of the target CD device and the playing progress of the audio data, and display the track ripping progress and the playing progress;
[0017] After selecting the target CD device from the plurality of CD devices according to the target selection instruction, configuring the rotation speed of the target CD device to control the working mode of the target CD device according to the mode selection instruction of the user;
[0018] The types of the working modes include: a full-speed mode, a normal mode, a power-saving mode and a combination of a high-performance mode.
[0019] In some embodiments, the method of using a broadcast tool to receive a broadcast instruction of a target client device to be connected within a preset range and establishing a first connection channel to connect to the target client device includes:
[0020] Using a multicast domain name resolution protocol, using a network broadcast, or creating a UDP server and then using the UDP server to search for the target client device within the preset range, and receiving a broadcast instruction from the target client device;
[0021] A TCP server is created to establish the first connection channel for connecting the server end with the target client device.
[0022] In some embodiments, after processing the first encoded data using the audio data, sending the obtained second encoded data to the target client device includes:
[0023] Encapsulating the protocol header, the network frame sequence number, the data frame size and the audio data into the first coded data to obtain third coded data;
[0024] Each frame of the third coded data is verified, and the verified third coded data is sent to the target client device using the TCP server.
[0025] In some embodiments, the checking of each frame of the third encoded data further includes:
[0026] If the third coded data of the current frame fails the inspection, the third coded data of the current frame is re-acquired and re-encapsulated.
[0027] In a second aspect, an embodiment of the present application provides a CD audio management system, which is applied to a server, and the system includes: a device management module, a data management module and a multimedia management module;
[0028] The device management module, the data management module and the multimedia management module are connected in sequence, and the device management module is also used to connect to a plurality of CD devices;
[0029] The device management module is used to analyze the selected target CD device after receiving the target selection instruction from the user to obtain the audio data of the target CD device;
[0030] The data management module is used to encode the audio data to obtain first encoded data;
[0031] The multimedia management module is used to use a broadcast tool to receive broadcast instructions from a target client device to be connected within a preset range, and establish a first connection channel to connect to the target client device; and to use the audio data to process the first encoded data and send the obtained second encoded data to the target client device.
[0032] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the CD audio management method as described above.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the CD audio management method as described above.
[0034] The embodiments of the present application have the following beneficial effects:
[0035] 1. The system can mount and manage multiple CD drives at the same time, rip tracks, and then share audio;
[0036] 2. The system can realize efficient and convenient audio sharing of multiple network protocols. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A diagram showing the architecture of the CD audio management system provided by the present invention;
[0039] Figure 2 A framework diagram of the CD audio management system provided by the present invention;
[0040] Figure 3 A flowchart of a preferred embodiment of the CD audio management method provided by the present invention;
[0041] Figure 4 A system flow chart of the CD audio management method provided by the present invention;
[0042] Figure 5 A flowchart of steps S1001 and S1002 in a preferred embodiment of the CD audio management method provided by the present invention;
[0043] Figure 6 A design flow chart of a device management module in a preferred embodiment of the CD audio management method provided by the present invention;
[0044] Figure 7 The present invention provides a CD audio management method of the preferred embodiment of the data management module execution flow chart;
[0045] Figure 8 A coding flow chart of a data management module in a preferred embodiment of the CD audio management method provided by the present invention;
[0046] Fig. 9 A flowchart of step S300 in a preferred embodiment of the CD audio management method provided by the present invention;
[0047] Fig.10 The present invention provides a flow chart of the execution of the multimedia management module in a preferred embodiment of the CD audio management method;
[0048] Fig.11 A flowchart of step S400 in a preferred embodiment of the CD audio management method provided by the present invention;
[0049] Fig.12 This is a flowchart for processing the first encoded data in a preferred embodiment of the CD audio management method provided by the present invention.
[0050] Figure numerals: 10: device management module; 20: data management module; 30: multimedia management module; 40: CD device; 4A: target CD device; 50: target client device. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0052] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0053] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0054] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0055] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0056] The Linux system or Android system expands multiple USB interfaces through USB HUD (USB hub is a USB device used to expand USB interfaces); the CD drive is connected to the device through the USB interface, and then a CD audio management system is developed on the device side to manage the CD audio. The CD drive is selected in the management center, and then the information of the CD drive is obtained through the USB interface, which includes the audio configuration information and audio data of the audio track.
[0057] The network server is designed to manage audio and provide multimedia services to the outside world. Other network devices can access the multimedia resources of the multimedia server through NAS (Network Attached Storage, which is a device connected to the network and has data storage function, so it is also called "network storage"); they can also search for devices through UDP (User Datagram Protocol, which is a connectionless transport layer protocol that provides simple and unreliable transaction-oriented information transmission services) and TCP (Transmission Control Protocol, which is a transmission protocol specially designed to provide reliable end-to-end byte streams on unreliable Internet networks) to connect and obtain real-time audio stream data.
[0058] In the embodiment of the present application, a network multimedia server system based on a USB interface CD drive is proposed, which enables a network device to hang multiple CD drives, and the system manages multiple CD drives at the same time; at the same time, the system manages and captures the audio tracks of multiple drives (capturing the tracks means capturing audio from an audio CD in digital form, also called digital audio extraction (DAE), and then sharing the audio through multiple network protocols).
[0059] The CD audio management method and the CD audio management system are described below in conjunction with some specific embodiments.
[0060] See also Figure 1 An embodiment of the present application provides a CD audio management system, which is applied to a server. The system includes: a device management module 10, a data management module 20 and a multimedia management module 30.
[0061] The device management module 10 , the data management module 20 and the multimedia management module 30 are connected in sequence, and the device management module 10 is also used to connect to a plurality of CD devices 40 .
[0062] The device management module 10 is used to analyze the selected target CD device 4A after receiving the target selection instruction from the user, so as to obtain the audio data of the target CD device 4A.
[0063] The data management module 20 is used to encode the audio data to obtain first encoded data.
[0064] The multimedia management module 30 is used to use a broadcast tool to receive broadcast instructions of a target client device 50 to be connected within a preset range, and establish a first connection channel to connect to the target client device 50; and to use audio data to process the first encoded data and send the obtained second encoded data to the target client device 50.
[0065] In this embodiment, each of the CD devices is marked as 40, but for the sake of distinction, the first CD device is marked as 41, the second CD device is marked as 42, and so on until the nth CD device is marked as 4n.
[0066] Optionally, see also Figure 2 In this embodiment, a CD audio management system is designed on an existing multimedia server to form Figure 2 Network device multimedia server in.
[0067] The management system of CD audio includes: device management module 10, data management module 20 and multimedia management module 30 (or multimedia management center). The multimedia server is connected to several CD optical drives (devices) through interfaces such as USB. The audio data is a CD track, which is a PCM code stream (PCM stands for Pulse-Code Modulation, which is pulse modulation coding in Chinese. PCM code stream is a coding method in digital signal processing, known as lossless coding format); PCM is a digitization method for analog signals, and pulse code modulation is one of the coding methods for digital communication. The main process is to sample analog signals such as voice and images at regular intervals to discretize them, and at the same time round the sampled values to the nearest integer according to the hierarchical unit, and at the same time represent the amplitude of the sampled pulse according to a set of binary codes.
[0068] Then, the implementation process of the CD audio management system is as follows:
[0069] First, after the user selects (at least one) target CD device 4A from the mounted CD devices 40, the device management module 10 will analyze the target CD device 4A according to the received target selection instruction, and obtain the audio data of the target CD device 4A, that is, realize the track capture process.
[0070] Then, the data management module 20 encodes the audio data to obtain first encoded data in a target encoding format.
[0071] Secondly, the multimedia management module 30 uses the broadcast tool to receive the broadcast instruction of the target client device 50 to be connected within the preset range, that is, to find the target client device 50 that can be found within the preset range, and establish a first connection channel to connect to the target client device 50.
[0072] Finally, the multimedia management module 30 processes the first coded data using the audio data to obtain second coded data, and sends the second coded data to the target client device 50 via a wireless network or Ethernet.
[0073] In another embodiment of the present application, the CD audio management system will manage and capture tracks of multiple target CD devices 4A simultaneously in multiple threads, and share the acquired audio data at the same time.
[0074] See also Figure 3 The present application embodiment provides a CD audio management method, which is applied to a server side, and the method includes:
[0075] S100. After receiving the target selection instruction from the user, analyze the selected target CD device 4A to obtain the audio data of the target CD device 4A.
[0076] Optionally, see also Figure 4 , the CD audio management method is applicable to the CD audio management system, then, the specific implementation process of the CD audio management method is as follows:
[0077] First, after the user selects at least one target CD device 4A, the device management module 10 (corresponding to Figure 4 The CD intelligent management module in the system will receive the user's target selection instruction and analyze the target CD device 4A according to the target selection instruction, that is, the target CD device 4A will capture the track and obtain the audio data of the target CD device 4A.
[0078] In the present application, the target CD device 4A is analyzed according to the target selection instruction to obtain audio data, so that efficient multi-device synchronous track grabbing can be achieved, thereby achieving simultaneous management of multiple CD optical drives.
[0079] Furthermore, in step S100, after receiving the target selection instruction from the user, the selected target CD device 4A is analyzed to obtain the audio data of the target CD device 4A, which also includes:
[0080] S000. After receiving the mode selection instruction from the user, identify several CD devices 40 connected to the server and record their numbers.
[0081] Optionally, before receiving the user's target selection instruction, the user first performs a mode selection to generate a mode selection instruction (corresponding to Figure 4 The device management module 10 will identify the CD devices 40 connected to the server according to the received mode selection instruction, that is, detect, enumerate and number the CD devices 40 (corresponding to Figure 4 Detecting CD devices 40 and enumerating CD devices 40), that is, detecting and identifying the type of the insertion event of the USB interface, and after identifying a number of CD devices 40 connected to the USB interface, enumerating and numbering the CD devices 40.
[0082] For further information, see Figure 5 Step S100: after receiving the target selection instruction from the user, the following steps are also included:
[0083] S1001, after selecting a target CD device 4A from a plurality of CD devices 40 according to a target selection instruction, configuring the rotation speed of the target CD device 4A to control the working mode of the target CD device 4A according to the user's mode selection instruction;
[0084] S1002: Obtain the track capture progress and the audio data playback progress of the target CD device 4A, and display the track capture progress and the playback progress.
[0085] The types of working modes include: a full-speed mode, a normal mode, a power-saving mode, and a combination of high-performance modes. Full-speed mode: read the audio data of the current track of the CD device 40, and keep the CD device 40 rotating at high speed until the CD play mode is exited; normal mode: read the audio data of the current track of the CD device 40, and keep the CD device 40 rotating at high speed until the current track is played; power-saving mode: after reading the complete audio data of the current track of the CD device 40, the CD device 40 will no longer rotate at high speed, and the SEEK (pointer movement) operation will not rotate the CD device 40; high-performance mode: after reading the complete audio data of all tracks of the CD device 40, the CD device 40 will no longer rotate at high speed, and the SEEK operation will not rotate the CD device 40.
[0086] Optionally, see also Figure 6 After receiving the target selection instruction from the user, the process of processing the track grabbing of the device management module 10 needs to be designed first:
[0087] First, multithreading is enabled, a call is made to open the CD device 40, a call is made to initialize the CD device 40, and a call is made to configure the CD to configure the rotation speed and working status of the C device.
[0088] Then, the working mode (full-speed mode, normal mode, power-saving mode and high-performance mode) of the target CD device 4A is controlled according to the user's mode selection instruction. Afterwards, if the working mode is switched or the sharing function is turned off, the CD (device) management is released and exited.
[0089] When the device management module 10 analyzes the target CD device 4A to obtain audio data, the device management module 10 will also obtain the track capture progress of the target CD device 4A, and after obtaining the playback progress of the audio data, update the progress bar in real time and display the track capture progress and playback progress.
[0090] For further information, please refer to Figure 3 , S200, encode the audio data to obtain first encoded data.
[0091] Optionally, see also Figure 7 and Figure 8 After analyzing the audio data, the data management module 20 (corresponding to Figure 4 The CD audio data intelligent module in the system first starts multi-threading, selects the encoding type, and encodes and saves the audio data, or directly saves the audio data to obtain the first encoded data, and saves it in the database, and then notifies the multimedia management center (i.e., the multimedia management module 30).
[0092] Among them, the encoding type can be selected, and the encoding types include: (1) lossless encoding: wav, aiff / aif; (2) lossless compression encoding: flac (an audio format used for lossless compression of digital audio files), ape (Mokey's audio, abbreviated as APE, is a digital music compression format), wv (WavPack, an open (BSD license) cross-platform audio compression and decompression algorithm), m4a (is the file extension of the MPEG-4 (a set of video and audio compression standards) audio standard, a digital audio format), Apple Lossless ((Apple Lossless Audio Codec, ALAC) is Apple's lossless audio compression encoding format); (3) lossy compression encoding: for example, mp3 (full name Moving Picture Experts Group Audio Layer Ⅲ, Chinese name Dynamic Image Experts Compression Standard Audio Layer 3), aac (Advanced Audio Coding, Chinese name Advanced Audio Decoding, is a lossy audio compression format defined by the MPEG-4 standard), wma (Windows Media Audio, is a lossy audio compression file format), jpeg (Joint Photographic Experts Group, whose Chinese name is Joint Photographic Experts Group, it is an image storage format, a standard for continuous tone static image compression), rmvb (a multimedia packaging format with dynamic bit rate extension), ogg (OGG Vobis, an open multimedia container format, commonly used to store audio and video files), wmv (Windows Media Video, a general term for a series of video codecs and related video encoding formats developed by Microsoft).
[0093] For further information, please refer to Figure 3 , S300, using a broadcast tool to receive a broadcast instruction of a target client device 50 to be connected within a preset range, and establish a first connection channel to connect to the target client device 50.
[0094] Optionally, in one embodiment of the present application, after encoding the audio data to obtain the first encoded data, the multimedia management module 30 in the management system of the CD audio starts a thread, and uses a broadcast tool, such as a UDP server, etc., to receive broadcast instructions of the target client device 50 to be connected within a preset range, so as to discover and connect to the target client device 50.
[0095] Then, a first connection channel, such as TCP, is established to connect with the target client device 50 .
[0096] Among them, UDP is a datagram-oriented protocol that does not provide connection stability and reliability, but focuses on quickly sending datagrams from one node to another; TCP is a communication protocol for wide area networks, and its purpose is to provide a communication method with the following characteristics between two communication endpoints when communicating across multiple networks.
[0097] In the present application, after using a broadcast tool to receive a broadcast instruction of a target client device 50 to be connected within a preset range, a first connection channel is established to connect with the target client device 50, thereby establishing a connection with the client device and preparing for data sharing.
[0098] For further information, see Fig. 9 Step S300, using a broadcast tool to receive a broadcast instruction of a target client device 50 to be connected within a preset range, and establishing a first connection channel to connect to the target client device 50, including:
[0099] S310, using a multicast domain name resolution protocol, using network broadcasting, or creating a UDP server and then using the UDP server to search for a target client device 50 within a preset range, and receiving a broadcast instruction of the target client device 50;
[0100] S320 , creating a TCP server to establish a first connection channel for connecting the server end and the target client device 50 .
[0101] Optionally, see also Fig.10 After encoding the audio data to obtain the first encoded data, the multimedia management module 30 starts a thread and enters the device discovery phase:
[0102] First, a UDP server is created and then waits for connection, and then the UDP server is created, or a multicast domain name resolution protocol or network broadcast is directly used to search for the target client device 50 within a preset range, and the broadcast instruction of the target client device 50 is received.
[0103] Among them, the heartbeat mechanism can be used to determine whether the target client device 50 is online to determine whether it can be connected; the heartbeat mechanism is a commonly used way for the client to maintain a connection with the server. By regularly sending a heartbeat signal (also known as a heartbeat packet), the client and the server can confirm with each other whether the other party is still online and connected. If no heartbeat response is received for a long time, it can be determined that the connection is disconnected and the reconnection logic is triggered.
[0104] Among them, the heartbeat packet is a self-defined command word that periodically notifies the client and the server of their own status. It is sent at a certain time interval, similar to a heartbeat, so it is called a heartbeat packet.
[0105] Then, enter the device connection stage:
[0106] A TCP server is created to establish a first connection channel for connecting the server end and the target client device 50, and wait for connection. Similarly, a heartbeat packet can be used to determine whether the connection is successful.
[0107] Furthermore, after obtaining the first coded data, the method further includes:
[0108] S10 , establishing a second connection channel to connect to the target client device 50 , and sending the first encoded data to the target client device 50 .
[0109] The second connection channel includes: a network storage server. A network storage server is a NAS server. NAS: Network Attached Storage, which is called network attached storage in Chinese. It is literally a device connected to the network with data storage function, so it is also called "network storage". It is a dedicated data storage server. It is data-centric, completely separates storage devices from servers, and centrally manages data, thereby releasing bandwidth, improving performance, reducing total cost of ownership, and protecting investment.
[0110] Optionally, in another embodiment of the present application, after the audio data is encoded to obtain the first encoded data, a second connection channel can be directly established, such as a NAS server, and the second connection channel is used to connect to the target client device 50. Then, the first encoded data is directly sent to the target client device 50 to achieve data sharing.
[0111] For further information, please refer to Figure 3 , S400, after processing the first encoded data using the audio data, the obtained second encoded data is sent to the target client device 50.
[0112] Optionally, after obtaining the first coded data, the data management module 20 continues to process the first coded data according to the audio data, mainly performing network coding, to obtain second coded data. Network coding is an information exchange technology that combines routing and coding. Its core idea is to perform linear or nonlinear processing on the information received on each channel at each node in the network, and then forward it to the downstream node. The intermediate node plays the role of an encoder or a signal processor.
[0113] Then, the second encoded data is sent to the target client device 50 by using a network communication protocol (eg, wireless network, Ethernet, etc.).
[0114] In this application, efficient and fast CD audio sharing is achieved through multiple network protocols.
[0115] For further information, see Fig.11 Step S400, after processing the first coded data using the audio data, the obtained second coded data is sent to the target client device 50, including:
[0116] S410, encapsulating the protocol header, the network frame sequence number, the data frame size and the audio data into the first coded data to obtain third coded data;
[0117] S420 , verify each frame of the third encoded data, and use the TCP server to send the verified third encoded data to the target client device 50 .
[0118] Optionally, see also Fig.12 , the specific process of processing the first coded data is as follows:
[0119] The protocol header, the network frame sequence number, the data frame size and the audio data are sequentially encapsulated into the first coded data to obtain the third coded data.
[0120] Then, each frame of the third encoded data is verified, for example, a CRC check is performed, and the third encoded data that passes the check is sent to complete the sharing of the CD track data.
[0121] Among them, the protocol header (is the part of the HTTP protocol used to transmit additional information about the request, and the protocol header is the part of the HTTP protocol used to transmit additional information about the request, which contains the metadata required for communication between the client and the server. CRC (Cyclic Redundancy Check), that is, cyclic redundancy check, is a fast algorithm that generates a short fixed-bit check code based on data such as network data packets or computer files. It is mainly used to detect or check errors that may occur after data transmission or storage.
[0122] Furthermore, each frame of the third coded data is verified, and then the following steps are further included:
[0123] S4201: If the third coded data of the current frame fails the inspection, the third coded data of the current frame is re-acquired and re-encapsulated.
[0124] Optionally, when the third coded data is verified, if the third coded data of the current frame fails the verification, it is necessary to re-acquire the third coded data of the current frame and re-encapsulate it.
[0125] It can be understood that the device of this embodiment corresponds to the CD audio management method of the above embodiment, and the optional items in the above embodiment are also applicable to this embodiment, so they will not be repeated here.
[0126] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the functions of each module in the above-mentioned CD audio management method or the above-mentioned CD audio management system.
[0127] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0128] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0129] The present application also provides a computer-readable storage medium for storing the computer program used in the above-mentioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0130] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0131] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0132] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0133] In summary, the present application discloses a CD audio management method, system, terminal device and storage medium. The method includes: after receiving a target selection instruction from a user, analyzing the selected target CD device 4A to obtain audio data of the target CD device 4A; encoding the audio data to obtain first encoded data; using a broadcast tool to receive a broadcast instruction of a target client device 50 to be connected within a preset range, and establishing a first connection channel to connect to the target client device 50; after processing the first encoded data using the audio data, sending the obtained second encoded data to the target client device 50.
[0134] The method obtains audio data by analyzing the target CD device 4A, encodes the audio data to obtain first encoded data, and uses a broadcast tool and a first connection channel to send second encoded data obtained by processing the first encoded data to a target client device 50, which not only realizes the management and track capture analysis of multiple CD devices 40, but also realizes the fast and efficient sharing of the audio data of the CD device 40 through multiple network protocols.
[0135] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for managing CD audio, characterized in that: Applied to the server side, the method includes: After receiving the target selection instruction from the user, analyzing the selected target CD device to obtain the audio data of the target CD device; Encoding the audio data to obtain first encoded data; Using a broadcast tool to receive a broadcast instruction of a target client device to be connected within a preset range, and establishing a first connection channel to connect to the target client device; After the first coded data is processed using the audio data, the obtained second coded data is sent to the target client device.
2. The CD audio management method according to claim 1, characterized in that: After obtaining the first coded data, the method further includes: Establishing a second connection channel to connect to the target client device and sending the first encoded data to the target client device; Wherein, the second connection channel includes: a network storage server.
3. The CD audio management method according to claim 1, characterized in that: After receiving the target selection instruction from the user, the selected target CD device is analyzed to obtain the audio data of the target CD device, and the method also includes: After receiving the mode selection instruction from the user, several CD devices connected to the server are identified and their numbers are recorded.
4. The CD audio management method according to claim 3, characterized in that: After receiving the target selection instruction from the user, the selected target CD device is analyzed to obtain the audio data of the target CD device, and then the method further includes: Acquire the track ripping progress of the target CD device and the playing progress of the audio data, and display the track ripping progress and the playing progress; After selecting the target CD device from the plurality of CD devices according to the target selection instruction, configuring the rotation speed of the target CD device to control the working mode of the target CD device according to the mode selection instruction of the user; The types of the working modes include: a full-speed mode, a normal mode, a power-saving mode and a combination of a high-performance mode.
5. The CD audio management method according to claim 1, characterized in that: The method of using a broadcast tool to receive a broadcast instruction of a target client device to be connected within a preset range and establishing a first connection channel to connect to the target client device includes: Using a multicast domain name resolution protocol, using a network broadcast, or creating a UDP server and then using the UDP server to search for the target client device within the preset range, and receiving a broadcast instruction from the target client device; A TCP server is created to establish the first connection channel for connecting the server end with the target client device.
6. The CD audio management method according to claim 5, characterized in that: The method of processing the first coded data by using the audio data and sending the obtained second coded data to the target client device comprises: Encapsulating the protocol header, the network frame sequence number, the data frame size and the audio data into the first coded data to obtain third coded data; Each frame of the third coded data is verified, and the verified third coded data is sent to the target client device using the TCP server.
7. The CD audio management method according to claim 6, characterized in that: The checking of each frame of the third coded data further comprises: If the third coded data of the current frame fails the inspection, the third coded data of the current frame is re-acquired and re-encapsulated.
8. A CD audio management system, characterized in that: Applied to a server, the system comprises: a device management module, a data management module and a multimedia management module; The device management module, the data management module and the multimedia management module are connected in sequence, and the device management module is also used to connect to a plurality of CD devices; The device management module is used to analyze the selected target CD device after receiving the target selection instruction from the user to obtain the audio data of the target CD device; The data management module is used to encode the audio data to obtain first encoded data; The multimedia management module is used to use a broadcast tool to receive broadcast instructions from a target client device to be connected within a preset range, and establish a first connection channel to connect to the target client device; and to use the audio data to process the first encoded data and send the obtained second encoded data to the target client device.
9. A terminal device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the CD audio management method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the CD audio management method according to any one of claims 1 to 8 is implemented.
