CN109743573A - Media playing method, device, intelligent terminal and computer readable storage medium - Google Patents

Media playing method, device, intelligent terminal and computer readable storage medium Download PDF

Info

Publication number
CN109743573A
CN109743573A CN201811654427.8A CN201811654427A CN109743573A CN 109743573 A CN109743573 A CN 109743573A CN 201811654427 A CN201811654427 A CN 201811654427A CN 109743573 A CN109743573 A CN 109743573A
Authority
CN
China
Prior art keywords
compression
stream
original
usbcam
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811654427.8A
Other languages
Chinese (zh)
Inventor
李宏强
徐挺铁
曾建武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201811654427.8A priority Critical patent/CN109743573A/en
Publication of CN109743573A publication Critical patent/CN109743573A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of media playing methods, device, intelligent terminal and computer readable storage medium, it is flowed this method comprises: obtaining original TS by host, when receiving the first compression instruction, according to default compression algorithm, original TS stream is subjected to the first compression, original TS flows after obtaining the first compression, and it is sent to USBCAM card, USBCAM card is according to default compression algorithm, TS stream original after first compression is subjected to the first decompression, TS flows after obtaining the first decompression, USBCAM, which is stuck in, receives descrambling instruction, execute descrambling operation, TS flows after being descrambled, TS stream carries out the second compression after USBCAM card will descramble, TS flows after obtaining the second compression, and it is sent to host, host is when TS after receiving the second compression flows, TS stream after second compression is carried out the Two decompressions, TS flows after obtaining the second decompression.Present invention reduces the bandwidth of intelligent terminal, reduce the consumption of intelligent terminal resource.

Description

Media playing method, device, intelligent terminal and computer readable storage medium
Technical field
This disclosure relates to video stream technology field more particularly to a kind of media playing method, device, intelligent terminal and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of high quality multimedia video technique and the promotion of user's viewing experience, TS flows more and more common, mesh Before, (Universal Serial Bus Conditional AccessModule, general serial are total using USBCAM card for host Line regards close card) descrambling when, need flow complete TS by controller usb-controller (Transport Stream, TS flow) Copy USBCAM card to, then data copy come out again by usb-controller, therefore, the write-in of USBCAM card and reading TS Stream requires to carry out data copy, increasing so as to cause host bandwidth, and host machine part hardware platform is made to reach bandwidth bottleneck, It is unfavorable for the saving of host resource.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of media playing method, device, intelligent terminal and computer-readable deposit Storage media, it is intended to solve host tape when intelligent terminal is descrambled using USBCAM card and be wider than height, cause intelligent terminal resource consumption big The problem of.
To achieve the above object, the present invention propose media playing method, the media playing method the following steps are included:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, original TS stream after first compression is sent to described USBCAM card;
The USBCAM card carries out the first decompression according to compression algorithm is preset, by original TS stream after first compression, TS flows after obtaining the first decompression;
The USBCAM is stuck in when receiving descrambling instruction, is executed the corresponding descrambling operation of descrambling instruction, is solved Disturb rear TS stream;
TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and will be described TS stream is sent to the host after second compression;
The host carries out the second decompression when TS flows after receiving second compression, by TS stream after second compression Contracting, TS flows after obtaining the second decompression.
Optionally, the host obtains original TS stream, and when receiving the first compression instruction, foundation presets compression algorithm, The original TS stream is subjected to the first compression, obtains original TS stream after the first compression, by original TS stream hair after first compression It send to the step of USBCAM card and includes:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, from original TS It is obtained in stream corresponding to the original TS stream of the first compression;
Described the first squeeze operation will be carried out to the original TS stream of the first compression, display is described to the original TS stream pair of the first compression The the first compression processing process display interface answered;
Original TS flows after obtaining the first compression, by TS stream write-in data input node original after first compression, and will The data input node is sent to the USBCAM card.
Optionally, the host obtains original TS stream, and when receiving the first compression instruction, foundation presets compression algorithm, The original TS stream is subjected to the first compression, obtains original TS stream after the first compression, by original TS stream hair after first compression It send to the step of USBCAM card and includes:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, and the first decompression that triggering starts the USBCAM card refers to It enables, so that the USBCAM card executes corresponding first decompression operation of first decompressed instruction;
When receiving the corresponding feedback information of first decompressed instruction that the USBCAM card is sent, by described the Original TS stream is sent to the USBCAM card after one compression.
Optionally, original TS stream after first compression is carried out first according to compression algorithm is preset by the USBCAM card Decompression, obtain first decompression after TS flow the step of include:
The USBCAM card obtains the corresponding decompression sequence of the default compression algorithm according to compression algorithm is preset;
Corresponding first decompression operation, display are flowed according to original TS after the first compression described in the decompression sequence starting The corresponding first decompression process display interface of first decompression operation;
TS flows after obtaining the first decompression.
Optionally, the USBCAM is stuck in when receiving descrambling instruction, executes the corresponding descrambling operation of descrambling instruction, TS flow step includes: after being descrambled
The USBCAM be stuck in receive descrambling instruction when, start descrambler;
The descrambler obtains the TS after first decompression descrambled and flows, and TS flows after extracting first decompression Coded sequence, and judge the scrambling mode of the coded sequence;
The coded sequence is descrambled according to the scrambling mode of the coded sequence, TS flows after being descrambled.
Optionally, TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and By it is described second compression after TS stream be sent to the host the step of include:
According to presetting compression algorithm, the corresponding compression sequence of the USBCAM card acquisition default compression algorithm and described TS flows after descrambling;
TS flows corresponding second squeeze operation after starting the descrambling, and shows the second compression behaviour of TS stream after the descrambling Make corresponding second compression processing process display interface, TS flows after obtaining the second compression;
TS stream after second compression is written to the output node of the Intelligent terminal data, and by the intelligent terminal number According to output node be sent to the corresponding host.
Optionally, the host obtains original TS stream, and when receiving the first compression instruction, foundation presets compression algorithm, The original TS stream is subjected to the first compression, obtains original TS stream after the first compression, by original TS stream hair after first compression Before the step of sending to the USBCAM card, further includes:
The host obtains the setting and instructs corresponding default pressure in the setting instruction for receiving default compression algorithm The setting is instructed corresponding default compression algorithm and the USBCAM card to carry out default compression algorithm and negotiated by compression algorithm;
The host is receiving when passing through information of the default compression algorithm negotiation, saves the default compression algorithm To local.
In addition, to achieve the above object, the present invention also proposes a kind of media playing apparatus, the media playing apparatus packet It includes: memory, processor and being stored in the media play procedure that can be run on the memory and on the processor, it is described Media play procedure realizes the step of media playing method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of intelligent terminal, the intelligent terminal include: memory, Processor and it is stored in the media play procedure that can be run on the memory and on the processor, the media play journey Sequence realizes the step of media playing method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Media play procedure is stored on storage medium, the media play procedure realizes matchmaker as described above when being executed by processor The step of body playback method.
In technical solution of the present invention, original TS is obtained by host and is flowed, when receiving the first compression instruction, according to default Original TS stream is carried out the first compression by compression algorithm, obtains original TS stream after the first compression, by TS stream hair original after the first compression It send to USBCAM card, USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression, obtains TS flows after first decompression, and USBCAM is stuck in when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, is solved Rear TS stream is disturbed, TS stream carries out the second compression after USBCAM card will descramble, and TS flows after obtaining the second compression, and TS after second is compressed Stream is sent to host, and host carries out the second decompression when TS after receiving the second compression flows, by TS stream after the second compression, obtains TS flows after second decompression.Present invention reduces the bandwidth of intelligent terminal, reduce the consumption of intelligent terminal resource.
Detailed description of the invention
Fig. 1 is the media playing apparatus structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of media playing method first embodiment of the present invention;
Fig. 3 is the flow diagram of media playing method second embodiment of the present invention;
Fig. 4 is the flow diagram of media playing method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of media playing method fourth embodiment of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of media playing method of the present invention;
Fig. 7 is the flow diagram of media playing method sixth embodiment of the present invention;
Fig. 8 is the schematic diagram that the optional intelligent terminal that the embodiment of the present invention is related to reduces bandwidth;
Fig. 9 is the flow diagram of the 7th embodiment of media playing method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: obtaining original TS by host and flows, refers to receiving the first compression When enabling, according to compression algorithm is preset, original TS stream is subjected to the first compression, original TS stream after the first compression is obtained, by the first pressure Original TS stream is sent to USBCAM card after contracting, and USBCAM card carries out TS stream original after the first compression according to compression algorithm is preset First decompression, obtain first decompression after TS flow, USBCAM be stuck in receive descrambling instruction when, execute descrambling instruction it is corresponding Descrambling operation, TS flows after being descrambled, and TS stream carries out the second compression after USBCAM card will descramble, and TS flows after obtaining the second compression, And TS stream after the second compression is sent to host, host flows into TS after the second compression when TS after receiving the second compression flows Row second decompresses, and TS flows after obtaining the second decompression.Technical solution through the embodiment of the present invention, solving intelligent terminal makes Host tape is wider than height when being descrambled with USBCAM card, the problem for causing intelligent terminal resource consumption big.
The embodiment of the present invention proposes a kind of media playing apparatus.
Referring to Fig.1, Fig. 1 is the media playing apparatus structural representation for the hardware running environment that the embodiment of the present invention is related to Figure.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
As shown in Figure 1, the media playing apparatus may include: processor 1001, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that media playing apparatus structure shown in Fig. 1 is not constituted to media play The restriction of device may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module and media play procedure.
In the present invention, media playing apparatus calls the media play journey stored in memory 1005 by processor 1001 Sequence, and execute following operation:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, original TS stream after first compression is sent to described USBCAM card;
The USBCAM card carries out the first decompression according to compression algorithm is preset, by original TS stream after first compression, TS flows after obtaining the first decompression;
The USBCAM is stuck in when receiving descrambling instruction, is executed the corresponding descrambling operation of descrambling instruction, is solved Disturb rear TS stream;
TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and will be described TS stream is sent to the host after second compression;
The host carries out the second decompression when TS flows after receiving second compression, by TS stream after second compression Contracting, TS flows after obtaining the second decompression.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, from original TS It is obtained in stream corresponding to the original TS stream of the first compression;
Described the first squeeze operation will be carried out to the original TS stream of the first compression, display is described to the original TS stream pair of the first compression The the first compression processing process display interface answered;
Original TS flows after obtaining the first compression, by TS stream write-in data input node original after first compression, and will The data input node is sent to the USBCAM card.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, and the first decompression that triggering starts the USBCAM card refers to It enables, so that the USBCAM card executes corresponding first decompression operation of first decompressed instruction;
When receiving the corresponding feedback information of first decompressed instruction that the USBCAM card is sent, by described the Original TS stream is sent to the USBCAM card after one compression.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
The USBCAM card obtains the corresponding decompression sequence of the default compression algorithm according to compression algorithm is preset;
Corresponding first decompression operation, display are flowed according to original TS after the first compression described in the decompression sequence starting The corresponding first decompression process display interface of first decompression operation;
TS flows after obtaining the first decompression.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
The USBCAM be stuck in receive descrambling instruction when, start descrambler;
The descrambler obtains the TS after first decompression descrambled and flows, and TS flows after extracting first decompression Coded sequence, and judge the scrambling mode of the coded sequence;
The coded sequence is descrambled according to the scrambling mode of the coded sequence, TS flows after being descrambled.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
According to presetting compression algorithm, the corresponding compression sequence of the USBCAM card acquisition default compression algorithm and described TS flows after descrambling;
TS flows corresponding second squeeze operation after starting the descrambling, and shows the second compression behaviour of TS stream after the descrambling Make corresponding second compression processing process display interface, TS flows after obtaining the second compression;
TS stream after second compression is written to the output node of the Intelligent terminal data, and by the intelligent terminal number According to output node be sent to the corresponding host.
Further, processor 1001 can call the media play procedure stored in memory 1005, also execute following Operation:
The host obtains the setting and instructs corresponding default pressure in the setting instruction for receiving default compression algorithm The setting is instructed corresponding default compression algorithm and the USBCAM card to carry out default compression algorithm and negotiated by compression algorithm;
The host is receiving when passing through information of the default compression algorithm negotiation, saves the default compression algorithm To local.
The present embodiment through the above scheme, obtains original TS by host and flows, when receiving the first compression instruction, foundation Original TS stream is carried out the first compression by default compression algorithm, obtains original TS stream after the first compression, by original TS after the first compression Stream is sent to USBCAM card, and USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression, TS flows after obtaining the first decompression, and USBCAM is stuck in when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, obtains TS flows after must descrambling, and the second compression of TS stream progress after USBCAM card will descramble, TS flows after obtaining the second compression, and second is compressed TS stream is sent to host afterwards, and host carries out the second decompression when TS after receiving the second compression flows, by TS stream after the second compression, TS flows after obtaining the second decompression.Present invention reduces the bandwidth of intelligent terminal, reduce the consumption of intelligent terminal resource.
Based on above-mentioned hardware configuration, media playing method embodiment of the present invention is proposed.
It is the flow diagram of media playing method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the first embodiment, the media playing method the following steps are included:
Step S10, the host obtain original TS stream, and when receiving the first compression instruction, foundation presets compression algorithm, The original TS stream is subjected to the first compression, obtains original TS stream after the first compression, by original TS stream hair after first compression It send to the USBCAM card;
In the present embodiment, intelligent terminal includes host and USBCAM card, wherein USB be (UniversalSerial Bus, Universal serial bus), CAM card is (Conditional Access Module, depending on close card), and host and USBCAM card are handed over Mutually, host obtains original TS stream (Transport Stream, TS stream), and according to presetting compression algorithm, original TS stream is carried out the One compression, obtains original TS stream after the first compression, and original TS stream after the first compression is sent to USBCAM card.
It should be noted that in one embodiment, intelligent terminal is descrambled using USBCAM card, host bandwidth reaches bottle Neck usually cuts down other function, such as speech recognition, the functions such as MEMC, to reduce under conditions of CPU usage is not high The resource consumption of host.
Specifically, in one embodiment, compression algorithm is preset, needs executing to the original TS stream operation of the first compression Before, it is preset in the host of intelligent terminal and USBCAM card, wherein default compression algorithm includes default compression code. For example, default compression algorithm is DEFLATE algorithm.In the application, presetting compression algorithm is a kind of data compression algorithm, specifically may be used Any suitable compression algorithm is thought, for the technical effect generated, the preferably higher compression algorithm of compression ratio, the application couple This is with no restrictions.
Specifically, in one embodiment, it presets in compression algorithm implementation procedure, has in the compression and decompression file of source At least one is compressed to all or part of by tune file by tune file, using default compression algorithm, can will specifically be adjusted Compressing file is one or more compressed files, and the application can be with no restriction to this.
Step S20, the USBCAM card carry out first according to compression algorithm is preset, by original TS stream after first compression Decompression, TS flows after obtaining the first decompression;
In the present embodiment, USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression Contracting, TS flows after obtaining the first decompression.
Further, in one embodiment, USBCAM is stuck in after reception first is compressed before original TS stream, with host It is connected, the operation that USBCAM card is connected with host includes: host when detecting the connection request of USBCAM card, obtains connection and asks Corresponding link information in asking is associated with and saves the link information, USBCAM card in connection, and exports comprising having connected USBCAM The prompt information of card, wherein the way of output of prompt information of the output comprising having connected USBCAM card includes lighting standby signal The default text of default speech prompt information and output comprising having connected USBCAM card of lamp, output comprising having connected USBCAM card Prompt information.
It should be noted that in one embodiment, USBCAM card, will be former after the first compression according to compression algorithm is preset Beginning TS stream carries out the first decompression, wherein the first compression corresponding with host acquisition of the default compression algorithm of USBCAM card foundation The default compression algorithm that original TS stream is carried out the first compression when original TS flows afterwards is consistent.
Further, in one embodiment, it presets in compression algorithm implementation procedure, in the compression and decompression file of source There is at least one by tune file, unziped it to all or part of by tune file using default compression algorithm, can specifically be incited somebody to action It is one or more decompression files by tune file decompression, the application can be with no restriction to this.
Step S30, the USBCAM are stuck in when receiving descrambling instruction, execute the descrambling and corresponding descrambling is instructed to grasp Make, TS flows after being descrambled;
In the present embodiment, USBCAM is stuck in when receiving descrambling instruction, is executed descrambling and is instructed corresponding descrambling operation, obtains TS flows after descrambling.
Further, in one embodiment, USBCAM is stuck in front of receiving descrambling instruction, descrambles the triggering of instruction Mode include USBCAM be stuck in receive the first decompression after TS flow when, automatic trigger descrambling instruction and user be based on USBCAM card Triggering descrambling instruction.
It should be noted that USBCAM card includes descrambler, descrambler descrambles TS stream to be descrambled, after output descrambling TS stream, wherein flow-disturbing to be solved includes clear stream and close stream.
TS stream after the descrambling is carried out the second compression by step S40, the USBCAM card, and TS flows after obtaining the second compression, And TS stream after second compression is sent to the host;
In the present embodiment, TS stream carries out the second compression after USBCAM card will descramble, and TS flows after obtaining the second compression, and by the TS stream is sent to host after two compressions.
Further, in one embodiment, USBCAM, which is stuck in receive, carries out the second compression for TS stream after descrambling When instruction, TS flows after obtaining descrambling, according to compression algorithm is preset, TS stream after the descrambling is carried out the second compression, after being descrambled TS flows after corresponding second compression of TS stream, and TS stream after corresponding second compression of TS stream after the descrambling is sent to corresponding master Machine, wherein the default compression algorithm that the default compression algorithm carries out the original TS stream of the first compression with host is consistent.
Step S50, the host carry out TS stream after second compression when TS flows after receiving second compression Second decompression, TS flows after obtaining the second decompression.
In the present embodiment, host is when TS after receiving the second compression flows, according to default compression algorithm, after the second compression TS stream carries out the second decompression, and TS flows after obtaining the second decompression, wherein the default compression algorithm and host are carried out to the first pressure The default compression algorithm that original TS flows that contracts is consistent.
What the present embodiment proposed, original TS is obtained by host and is flowed, when receiving the first compression instruction, according to default pressure Original TS stream is carried out the first compression by compression algorithm, obtains original TS stream after the first compression, and TS stream original after the first compression is sent To USBCAM card, USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression, obtains the TS flows after one decompression, and USBCAM is stuck in when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, is descrambled TS flows afterwards, and TS stream carries out the second compression after USBCAM card will descramble, and TS flows after obtaining the second compression, and TS after the second compression is flowed It is sent to host, host carries out the second decompression when TS after receiving the second compression flows, by TS stream after the second compression, obtains the TS flows after two decompressions, to reduce the bandwidth of intelligent terminal, reduces the consumption of intelligent terminal resource.
Further, described as shown in figure 3, Fig. 3 is the flow diagram of media playing method second embodiment of the present invention Step S10 includes:
Step S101, the host obtains original TS stream, when receiving the first compression instruction, calculates according to default compression Method obtains corresponding to the original TS stream of the first compression from original TS stream;
Step S102 described will carry out the first squeeze operation to the original TS stream of the first compression, and display is described to the first compression Original TS flows corresponding first compression processing process display interface;
Step S103 obtains original TS stream after the first compression, by TS stream write-in data input original after first compression Node, and the data input node is sent to the USBCAM card.
In the present embodiment, host obtains original TS stream, and when receiving the first compression instruction, foundation presets compression algorithm, It is obtained from original TS stream corresponding to the first compression original TS stream, the first compression behaviour will be carried out to the original TS stream of the first compression Make, display flows corresponding first compression processing process display interface to the first original TS of compression, obtains original TS after the first compression Stream by TS stream write-in data input node original after the first compression, and enters data into node and is sent to USBCAM card.
Specifically, in one embodiment, host is to receive original TS stream corresponding to the original TS stream of the first compression The first compression instruction when, it includes flowing from original TS that original TS, which flows corresponding the first compression instruction to the first compression original TS stream, The middle finger for obtaining the command information to the original TS stream of the first compression and the first squeeze operation being carried out to the original TS stream of the first compression Enable information.
Further, in one embodiment, display to the first original TS of compression flow corresponding first compression processing into Journey display interface, wherein the first compression processing process cardon includes laterally dynamically filling bar chart and corresponding dynamic percentage, Laterally dynamic filling bar chart may include color filling.
What the present embodiment proposed, original TS is obtained by host and is flowed, when receiving the first compression instruction, according to default pressure Compression algorithm, obtains corresponding to the first compression original TS stream from original TS stream, will carry out first to the original TS stream of the first compression Squeeze operation, display flows corresponding first compression processing process display interface to the first original TS of compression, after obtaining the first compression Original TS stream by TS stream write-in data input node original after the first compression, and enters data into node and is sent to USBCAM card, Technical support is provided for the decompression and squeeze operation of subsequent USBCAM card.
Further, described as shown in figure 4, Fig. 4 is the flow diagram of media playing method 3rd embodiment of the present invention Step S10 further include:
Step S104, the host obtains original TS stream, when receiving the first compression instruction, calculates according to default compression The original TS stream is carried out the first compression by method, obtains original TS stream after the first compression, and triggering starts the of the USBCAM card One decompressed instruction, so that the USBCAM card executes corresponding first decompression operation of first decompressed instruction;
Step S105, in the corresponding feedback information of first decompressed instruction for receiving the USBCAM card transmission When, original TS stream after first compression is sent to the USBCAM card.
In the present embodiment, the host obtains original TS stream, when receiving the first compression instruction, calculates according to default compression Original TS stream is carried out the first compression by method, obtains original TS stream after the first compression, the first decompression of triggering starting USBCAM card Instruction sends so that USBCAM card executes corresponding first decompression operation of the first decompressed instruction receiving USBCAM card The first decompressed instruction corresponding feedback information when, original TS stream after the first compression is sent to USBCAM card.
Further, in one embodiment, host obtains original TS stream, corresponding to the receiving original TS stream When the first compression instruction of the original TS stream of one compression, according to compression algorithm is preset, the compression obtained in the default compression algorithm is compiled Original TS stream is carried out the first compression according to the compressed encoding by code, obtains original TS stream after the first compression, and trigger starting First decompressed instruction of USBCAM card, so that USBCAM card executes corresponding first decompression operation of the first decompressed instruction, When receiving the corresponding feedback information of the first decompressed instruction of USBCAM card transmission, TS stream original after the first compression is sent To USBCAM card.
Further, in one embodiment, host obtains original TS stream, corresponding to the receiving original TS stream When the first compression instruction of one compression original TS stream, according to compression algorithm is preset, original TS stream is subjected to the first compression, obtains the Original TS stream, display include the prompting interface of original TS stream information after having obtained the first compression after one compression, are receiving user When the decompressed instruction of the starting USBCAM card based on prompting interface triggering, the decompressed instruction of starting USBCAM card is sent USBCAM is being received to USBCAM card so that USBCAM card executes corresponding first decompression operation of the first decompressed instruction When blocking the corresponding feedback information of the first decompressed instruction sent, original TS stream after the first compression is sent to USBCAM card.
Specifically, in one embodiment, corresponding anti-in the first decompressed instruction for receiving the transmission of USBCAM card When feedforward information, wherein the corresponding feedback information of the first decompressed instruction that USBCAM card is sent includes having received starting The confirmation message of the decompressed instruction of USBCAM card.
What the present embodiment proposed, original TS is obtained by the host and is flowed, when receiving the first compression instruction, according to pre- If compression algorithm, original TS stream is subjected to the first compression, obtains original TS stream after the first compression, the of triggering starting USBCAM card One decompressed instruction is receiving so that USBCAM card executes corresponding first decompression operation of the first decompressed instruction When the corresponding feedback information of the first decompressed instruction that USBCAM card is sent, original TS stream after the first compression is sent to USBCAM Card, provides technical support for the decompression and squeeze operation of subsequent USBCAM card.
Further, described as shown in figure 5, Fig. 5 is the flow diagram of media playing method fourth embodiment of the present invention Step S20 includes:
Step S201, the USBCAM card obtain the corresponding decompression of the default compression algorithm according to compression algorithm is preset Contracting sequence;
Step S202, according to corresponding first decompression of TS stream original after the first compression described in the decompression sequence starting Operation shows the corresponding first decompression process display interface of first decompression operation;
Step S203, TS flows after obtaining the first decompression.
In the present embodiment, USBCAM card obtains the corresponding decompression sequence of default compression algorithm according to compression algorithm is preset, Original TS flows corresponding first decompression operation after compressing according to decompression sequence starting first, shows the first decompression operation pair The the first decompression process display interface answered, TS flows after obtaining the first decompression.
Further, in one embodiment, the corresponding decompression sequence of default compression algorithm is obtained, wherein decompression Contracting sequence carries out different definition by different default compression algorithms, is not construed as limiting in the present embodiment.
Further, in one embodiment, the corresponding first decompression process of the first decompression operation is shown Interface, wherein the first decompression process display interface includes laterally dynamically filling bar chart and corresponding dynamic percentage, Laterally dynamic filling bar chart may include color filling.
What the present embodiment proposed, by USBCAM card according to compression algorithm is preset, obtain the default corresponding solution of compression algorithm Compression sequence, original TS flows corresponding first decompression operation, the first solution of display after compressing according to decompression sequence starting first The corresponding first decompression process display interface of squeeze operation, TS flows after obtaining the first decompression, to realize First decompression of the USBCAM card to TS stream original after the first compression, provides technology branch for subsequent compression and decompression operation It holds.
Further, described as shown in fig. 6, Fig. 6 is the flow diagram of the 5th embodiment of media playing method of the present invention Step S30 includes:
Step S301, the USBCAM are stuck in when receiving descrambling instruction, start descrambler;
Step S302, the descrambler obtain the TS after first decompression descrambled and flow, and extract first solution The coded sequence that TS flows after compression, and judge the scrambling mode of the coded sequence;
Step S303 descrambles the coded sequence according to the scrambling mode of the coded sequence, after being descrambled TS stream.
In the present embodiment, USBCAM is stuck in when receiving descrambling instruction, starts descrambler, and descrambler obtains to be descrambled the TS flows after one decompression, extracts the coded sequence of TS stream after the first decompression, and judges the scrambling mode of coded sequence, root Coded sequence is descrambled according to the scrambling mode of coded sequence, TS flows after being descrambled.
Further, in one embodiment, start descrambler, light descrambler indicator light, descrambler is obtained wait solve TS flows after the first decompression disturbed, and extracts the coded sequence of TS stream after the first decompression, and judges the scrambling of coded sequence Mode descrambles coded sequence according to the scrambling mode of coded sequence, after being descrambled TS flow, wherein scrambling mode because The difference of video broadcasting specification and be different, therefore different scrambling mode corresponds to different descrambling modes.
Specifically, in one embodiment, firstly, receiving the coded sequence after scrambling.Then, to the coding after scrambling N number of descrambling mode of at least one pilot blocks in sequence is descrambled, obtain N number of descrambling corresponding to N number of descrambling mode to Amount group, wherein each descrambling Vector Groups include and at least one descrambling vector corresponding to an at least pilot blocks.Thereafter, for N number of Descramble at least one descrambling vector included by each of Vector Groups and carry out auto-correlation computation, generates and at least one descrambling vector pair The L 1-L rank auto-correlation functions answered, wherein 1^L < S, S are the maximum length of at least one descrambling vector and are integer.Then, Operation is carried out to L 1-L rank auto-correlation function auto-correlation functions corresponding to each of N number of descrambling Vector Groups, is obtained N number of Descramble the first positive real number numerical value corresponding to each of Vector Groups.N number of first positive real number corresponding to N number of descrambling Vector Groups Maximum value is determined in numerical value, chooses the descrambling mode corresponding to it.Finally, received to subsequent institute in the way of the descrambling chosen Another coded sequence after scrambling is descrambled.
The present embodiment propose, be stuck in by USBCAM receive descrambling instruction when, start descrambler, descrambler obtain to TS flows after first decompression of descrambling, extracts the coded sequence of TS stream after the first decompression, and judges adding for coded sequence Mode is disturbed, coded sequence is descrambled according to the scrambling mode of coded sequence, TS flows after being descrambled, and realizes USBCAM card Allay sorrow to TS stream.
Further, described as shown in fig. 7, Fig. 7 is the flow diagram of media playing method sixth embodiment of the present invention Step S40 includes:
Step S401, according to compression algorithm is preset, the USBCAM card obtains the corresponding compression of the default compression algorithm TS flows after sequence and the descrambling;
Step S402 starts TS after the descrambling and flows corresponding second squeeze operation, and shows that TS after the descrambling flows The corresponding second compression processing process display interface of second squeeze operation, TS flows after obtaining the second compression;
The output node of the Intelligent terminal data is written in TS stream after second compression by step S403, and will be described The output node of Intelligent terminal data is sent to the corresponding host.
In the present embodiment, according to preset compression algorithm, USBCAM card obtain preset the corresponding compression sequence of compression algorithm and TS stream after descrambling, TS flows corresponding second squeeze operation after starting descrambles, and shows the second squeeze operation pair of TS stream after descrambling The the second compression processing process display interface answered, TS flows after obtaining the second compression, by TS stream write-in intelligent terminal after the second compression The output node of data, in the transmission command node for receiving the output node by Intelligent terminal data and being sent to corresponding host When, the output node of Intelligent terminal data is sent to corresponding host.
Further, in one embodiment, corresponding second compression of the second squeeze operation that TS flows after display descrambling Treatment progress display interface, wherein the second compression processing process display interface includes lateral dynamic filling bar chart and corresponding Dynamic percentage, laterally dynamic filling bar chart may include color filling.
Specifically, in one embodiment, USBCAM card obtains the default corresponding compression sequence of compression algorithm and descrambling TS flows afterwards, wherein default compression algorithm and default compression algorithm when the original TS stream of the first compression and the first decompression TS stream It is consistent.
It should be noted that in one embodiment, being sent to receiving the output node by Intelligent terminal data When the transmission command node of corresponding host, the output node of Intelligent terminal data is sent to corresponding host, wherein will be intelligent whole The triggering mode that the output node of end data is sent to the transmission command node of corresponding host includes that user is touched based on USBCAM card The output node of Intelligent terminal data is sent to the transmission command node of corresponding host to hair and USBCAM is stuck in and receives intelligence The automatic trigger when output node of terminal data.
Specifically, implement in example one, as shown in figure 8, Fig. 8 is the embodiment of the present invention be related to one optional Intelligent terminal reduces the schematic diagram of bandwidth, and intelligent terminal includes host and USBCAM card, and host and USBCAM card interact, and leads to It crosses host and obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, original TS stream is carried out first Compression, obtains original TS stream after the first compression, original TS stream after the first compression is sent to USBCAM card, USBCAM card is according to pre- If compression algorithm, TS stream original after the first compression is subjected to the first decompression, TS flows after obtaining the first decompression, and USBCAM is stuck in It when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, TS flows after being descrambled, TS after USBCAM card will descramble Stream carries out the second compression, and TS flows after obtaining the second compression, and TS stream after the second compression is sent to host, and host is receiving the When TS flows after two compressions, TS stream after the second compression is subjected to the second decompression, TS flows after obtaining the second decompression.
What the present embodiment proposed, by presetting compression algorithm, it is suitable that USBCAM card obtains the corresponding compression of default compression algorithm TS flows after sequence and descrambling, and TS flows corresponding second squeeze operation after starting descrambling, and shows the second compression behaviour that TS flows after descrambling Make corresponding second compression processing process display interface, TS flows after obtaining the second compression, by TS stream write-in intelligence after the second compression The output node of terminal data, in the transmission order section for receiving the output node by Intelligent terminal data and being sent to corresponding host When point, the output node of Intelligent terminal data is sent to corresponding host, realizes the compression that USBCAM card flows TS after descrambling, And corresponding host is sent to by the output node of Intelligent terminal data, technology branch is provided for the decompression operation of subsequent host It holds.
Further, described as shown in figure 9, Fig. 9 is the flow diagram of the 7th embodiment of media playing method of the present invention Before step S10, the media playing method further include:
Step S60, the host obtain the setting instruction and correspond in the setting instruction for receiving default compression algorithm Default compression algorithm, instruct corresponding default compression algorithm and the USBCAM card to carry out presetting compression algorithm the setting Negotiate;
Step S70, the host are receiving when passing through information of the default compression algorithm negotiation, are saving described default Compression algorithm is to local.
In the present embodiment, it is corresponding pre- to obtain setting instruction in the setting instruction for receiving default compression algorithm for host If compression algorithm, instructs corresponding default compression algorithm and USBCAM card to carry out default compression algorithm setting and negotiate, host exists When passing through information of default compression algorithm negotiation is received, saves default compression algorithm to local.
Further, in one embodiment, host is in the setting instruction for receiving default compression algorithm, display packet Editing interface containing text and Code Edit frame, when obtaining the default compression algorithm of user's input based on the editing interface, to USBCAM card sends the default corresponding negotiation packet of compression algorithm, so that whether the negotiation of USBCAM card is agreed to support the default pressure Compression algorithm, after USBCAM clamping receives the default corresponding negotiation packet of compression algorithm, if detection is agreed to support the default compression Algorithm then sends the corresponding response message of negotiation packet for corresponding to the default compression algorithm, wherein the response message to host Responder USBCAM card is carried to preset the mark for the targeted compression algorithm selected in compression algorithm from this and correspond to the target Responder's cipher generating parameter of compression algorithm, host obtain the targeted compression algorithm carried in the response message mark and Responder's cipher generating parameter, then host completes default compression algorithm negotiation, and this is preset compression algorithm and is stored in host sheet Ground.
Further, in one embodiment, USBCAM, which is stuck in, receives corresponding negotiations of the default compression algorithm and reports Wen Hou sends the negotiation packet for corresponding to the default compression algorithm to host if detection is agreed to support the default compression algorithm Corresponding response message, and this is preset into compression algorithm and is stored in USBCAM card locally.
It should be noted that presetting compression algorithm is a kind of data compression algorithm in the application, it is specifically as follows any suitable Compression algorithm, for the technical effect generated, the preferably higher compression algorithm of compression ratio, the application does not limit this System.
What the present embodiment proposed, through host when the setting for receiving default compression algorithm instructs, obtain setting instruction Setting is instructed corresponding default compression algorithm and USBCAM card to carry out default compression algorithm association by corresponding default compression algorithm Quotient, host are receiving when passing through information of default compression algorithm negotiation, save default compression algorithm to local, to realize Setting to the default compression algorithm of host in intelligent terminal and USBCAM card is the completion compression of subsequent host and USBCAM card Technical support is provided with decompression operation.
The present invention also provides a kind of intelligent terminal, the intelligent terminal includes: memory, processor and is stored in described On memory and the media play procedure that can run on the processor, the media play procedure are executed by the processor To be used for:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, original TS stream after first compression is sent to described USBCAM card;
The USBCAM card carries out the first decompression according to compression algorithm is preset, by original TS stream after first compression, TS flows after obtaining the first decompression;
The USBCAM is stuck in when receiving descrambling instruction, is executed the corresponding descrambling operation of descrambling instruction, is solved Disturb rear TS stream;
TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and will be described TS stream is sent to the host after second compression;
The host carries out the second decompression when TS flows after receiving second compression, by TS stream after second compression Contracting, TS flows after obtaining the second decompression.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, from original TS It is obtained in stream corresponding to the original TS stream of the first compression;
Described the first squeeze operation will be carried out to the original TS stream of the first compression, display is described to the original TS stream pair of the first compression The the first compression processing process display interface answered;
Original TS flows after obtaining the first compression, by TS stream write-in data input node original after first compression, and will The data input node is sent to the USBCAM card.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, and the first decompression that triggering starts the USBCAM card refers to It enables, so that the USBCAM card executes corresponding first decompression operation of first decompressed instruction;
When receiving the corresponding feedback information of first decompressed instruction that the USBCAM card is sent, by described the Original TS stream is sent to the USBCAM card after one compression.
Further, following operation is also realized when the media play procedure is executed by processor:
The USBCAM card obtains the corresponding decompression sequence of the default compression algorithm according to compression algorithm is preset;
Corresponding first decompression operation, display are flowed according to original TS after the first compression described in the decompression sequence starting The corresponding first decompression process display interface of first decompression operation;
TS flows after obtaining the first decompression.
Further, following operation is also realized when the media play procedure is executed by processor:
The USBCAM be stuck in receive descrambling instruction when, start descrambler;
The descrambler obtains the TS after first decompression descrambled and flows, and TS flows after extracting first decompression Coded sequence, and judge the scrambling mode of the coded sequence;
The coded sequence is descrambled according to the scrambling mode of the coded sequence, TS flows after being descrambled.
Further, following operation is also realized when the media play procedure is executed by processor:
According to presetting compression algorithm, the corresponding compression sequence of the USBCAM card acquisition default compression algorithm and described TS flows after descrambling;
TS flows corresponding second squeeze operation after starting the descrambling, and shows the second compression behaviour of TS stream after the descrambling Make corresponding second compression processing process display interface, TS flows after obtaining the second compression;
TS stream after second compression is written to the output node of the Intelligent terminal data, and by the intelligent terminal number According to output node be sent to the corresponding host.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains the setting and instructs corresponding default pressure in the setting instruction for receiving default compression algorithm The setting is instructed corresponding default compression algorithm and the USBCAM card to carry out default compression algorithm and negotiated by compression algorithm;
The host is receiving when passing through information of the default compression algorithm negotiation, saves the default compression algorithm To local.
Intelligent terminal specific embodiment of the present invention and each embodiment of above-mentioned media playing method are essentially identical, herein no longer It repeats.
The present embodiment through the above scheme, obtains original TS by host and flows, when receiving the first compression instruction, foundation Original TS stream is carried out the first compression by default compression algorithm, obtains original TS stream after the first compression, by original TS after the first compression Stream is sent to USBCAM card, and USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression, TS flows after obtaining the first decompression, and USBCAM is stuck in when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, obtains TS flows after must descrambling, and the second compression of TS stream progress after USBCAM card will descramble, TS flows after obtaining the second compression, and second is compressed TS stream is sent to host afterwards, and host carries out the second decompression when TS after receiving the second compression flows, by TS stream after the second compression, TS flows after obtaining the second decompression.Present invention reduces the bandwidth of intelligent terminal, reduce the consumption of intelligent terminal resource.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has media Playing program, the media play procedure can be executed by one or more than one processor to be used for:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, original TS stream after first compression is sent to described USBCAM card;
The USBCAM card carries out the first decompression according to compression algorithm is preset, by original TS stream after first compression, TS flows after obtaining the first decompression;
The USBCAM is stuck in when receiving descrambling instruction, is executed the corresponding descrambling operation of descrambling instruction, is solved Disturb rear TS stream;
TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and will be described TS stream is sent to the host after second compression;
The host carries out the second decompression when TS flows after receiving second compression, by TS stream after second compression Contracting, TS flows after obtaining the second decompression.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, from original TS It is obtained in stream corresponding to the original TS stream of the first compression;
Described the first squeeze operation will be carried out to the original TS stream of the first compression, display is described to the original TS stream pair of the first compression The the first compression processing process display interface answered;
Original TS flows after obtaining the first compression, by TS stream write-in data input node original after first compression, and will The data input node is sent to the USBCAM card.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original Beginning TS stream carries out the first compression, obtains original TS stream after the first compression, and the first decompression that triggering starts the USBCAM card refers to It enables, so that the USBCAM card executes corresponding first decompression operation of first decompressed instruction;
When receiving the corresponding feedback information of first decompressed instruction that the USBCAM card is sent, by described the Original TS stream is sent to the USBCAM card after one compression.
Further, following operation is also realized when the media play procedure is executed by processor:
The USBCAM card obtains the corresponding decompression sequence of the default compression algorithm according to compression algorithm is preset;
Corresponding first decompression operation, display are flowed according to original TS after the first compression described in the decompression sequence starting The corresponding first decompression process display interface of first decompression operation;
TS flows after obtaining the first decompression.
Further, following operation is also realized when the media play procedure is executed by processor:
The USBCAM be stuck in receive descrambling instruction when, start descrambler;
The descrambler obtains the TS after first decompression descrambled and flows, and TS flows after extracting first decompression Coded sequence, and judge the scrambling mode of the coded sequence;
The coded sequence is descrambled according to the scrambling mode of the coded sequence, TS flows after being descrambled.
Further, following operation is also realized when the media play procedure is executed by processor:
According to presetting compression algorithm, the corresponding compression sequence of the USBCAM card acquisition default compression algorithm and described TS flows after descrambling;
TS flows corresponding second squeeze operation after starting the descrambling, and shows the second compression behaviour of TS stream after the descrambling Make corresponding second compression processing process display interface, TS flows after obtaining the second compression;
TS stream after second compression is written to the output node of the Intelligent terminal data, and by the intelligent terminal number According to output node be sent to the corresponding host.
Further, following operation is also realized when the media play procedure is executed by processor:
The host obtains the setting and instructs corresponding default pressure in the setting instruction for receiving default compression algorithm The setting is instructed corresponding default compression algorithm and the USBCAM card to carry out default compression algorithm and negotiated by compression algorithm;
The host is receiving when passing through information of the default compression algorithm negotiation, saves the default compression algorithm To local.
Computer readable storage medium specific embodiment of the present invention and the basic phase of each embodiment of above-mentioned media playing method Together, details are not described herein.
The present embodiment through the above scheme, obtains original TS by host and flows, when receiving the first compression instruction, foundation Original TS stream is carried out the first compression by default compression algorithm, obtains original TS stream after the first compression, by original TS after the first compression Stream is sent to USBCAM card, and USBCAM card carries out the first decompression according to compression algorithm is preset, by TS stream original after the first compression, TS flows after obtaining the first decompression, and USBCAM is stuck in when receiving descrambling instruction, executes descrambling and instructs corresponding descrambling operation, obtains TS flows after must descrambling, and the second compression of TS stream progress after USBCAM card will descramble, TS flows after obtaining the second compression, and second is compressed TS stream is sent to host afterwards, and host carries out the second decompression when TS after receiving the second compression flows, by TS stream after the second compression, TS flows after obtaining the second decompression.Present invention reduces the bandwidth of intelligent terminal, reduce the consumption of intelligent terminal resource.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of media playing method is met the tendency of in intelligent terminal, the intelligent terminal includes that host and universal serial bus view are close Block USBCAM card, which is characterized in that the media playing method the following steps are included:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original TS Stream carries out the first compression, obtains original TS stream after the first compression, original TS stream after first compression is sent to described USBCAM card;
The USBCAM card carries out the first decompression according to compression algorithm is preset, by original TS stream after first compression, obtains TS flows after first decompression;
The USBCAM is stuck in when receiving descrambling instruction, the corresponding descrambling operation of descrambling instruction is executed, after being descrambled TS stream;
TS stream after the descrambling is carried out the second compression by the USBCAM card, and TS flows after obtaining the second compression, and by described second TS stream is sent to the host after compression;
The host carries out the second decompression when TS flows after receiving second compression, by TS stream after second compression, TS flows after obtaining the second decompression.
2. media playing method as described in claim 1, which is characterized in that the host obtains original TS stream, is receiving When the first compression instruction, foundation presets compression algorithm, and the original TS stream is carried out the first compression, original after the first compression of acquisition TS stream, by it is described first compression after original TS stream be sent to the USBCAM card the step of include:
The host obtains original TS stream, when receiving the first compression instruction, according to default compression algorithm, from original TS stream It obtains corresponding to the original TS stream of the first compression;
Described the first squeeze operation will be carried out to the original TS stream of the first compression, display is described corresponding to the original TS stream of the first compression First compression processing process display interface;
Original TS flows after obtaining the first compression, by TS stream write-in data input node original after first compression, and will be described Data input node is sent to the USBCAM card.
3. media playing method as described in claim 1, which is characterized in that the host obtains original TS stream, is receiving When the first compression instruction, foundation presets compression algorithm, and the original TS stream is carried out the first compression, original after the first compression of acquisition TS stream, by it is described first compression after original TS stream be sent to the USBCAM card the step of include:
The host obtains original TS stream, when receiving the first compression instruction, according to compression algorithm is preset, by the original TS Stream carries out the first compression, obtains original TS stream after the first compression, and triggering starts the first decompressed instruction of the USBCAM card, with Corresponding first decompression operation of first decompressed instruction is executed for the USBCAM card;
When receiving the corresponding feedback information of first decompressed instruction that the USBCAM card is sent, described first is pressed Original TS stream is sent to the USBCAM card after contracting.
4. media playing method as described in claim 1, which is characterized in that the USBCAM card foundation presets compression algorithm, Original TS stream after first compression is subjected to the first decompression, obtaining the step of TS after the first decompression flows includes:
The USBCAM card obtains the corresponding decompression sequence of the default compression algorithm according to compression algorithm is preset;
Corresponding first decompression operation is flowed according to original TS after the first compression described in the decompression sequence starting, described in display The corresponding first decompression process display interface of first decompression operation;
TS flows after obtaining the first decompression.
5. media playing method as described in claim 1, which is characterized in that the USBCAM, which is stuck in, receives descrambling instruction When, it executes the descrambling and instructs corresponding descrambling operation, TS flow step includes: after being descrambled
The USBCAM be stuck in receive descrambling instruction when, start descrambler;
The descrambler obtains the TS after first decompression descrambled and flows, and extracts the volume of TS stream after first decompression Code sequence, and judge the scrambling mode of the coded sequence;
The coded sequence is descrambled according to the scrambling mode of the coded sequence, TS flows after being descrambled.
6. media playing method as described in claim 1, which is characterized in that the USBCAM card flows into TS after the descrambling Row second compresses, and TS flows after obtaining the second compression, and the step of TS stream after second compression is sent to the host includes:
According to compression algorithm is preset, the USBCAM card obtains the default corresponding compression sequence of compression algorithm and the descrambling TS flows afterwards;
TS flows corresponding second squeeze operation after starting the descrambling, and shows the second squeeze operation pair of TS stream after the descrambling The the second compression processing process display interface answered, TS flows after obtaining the second compression;
TS stream after second compression is written to the output node of the Intelligent terminal data, and by the Intelligent terminal data Output node is sent to the corresponding host.
7. such as media playing method as claimed in any one of claims 1 to 6, which is characterized in that the host obtains original TS stream, When receiving the first compression instruction, according to compression algorithm is preset, the original TS stream is subjected to the first compression, obtains the first pressure Before the step of original TS stream after contracting, original TS stream is sent to the USBCAM card after described first is compressed, further includes:
The host obtains the corresponding default compression of the setting instruction and calculates in the setting instruction for receiving default compression algorithm The setting is instructed corresponding default compression algorithm and the USBCAM card to carry out default compression algorithm and negotiated by method;
The host is receiving when passing through information of the default compression algorithm negotiation, saves the default compression algorithm to originally Ground.
8. a kind of media playing apparatus, which is characterized in that the media playing apparatus includes: memory, processor and is stored in On the memory and the media play procedure that can run on the processor, the media play procedure is by the processor It realizes when execution such as the step of media playing method of any of claims 1-7.
9. a kind of intelligent terminal, which is characterized in that the intelligent terminal includes: memory, processor and is stored in the storage It is real when the media play procedure is executed by the processor on device and the media play procedure that can run on the processor Now such as the step of media playing method of any of claims 1-7.
10. a kind of computer readable storage medium, which is characterized in that be stored with media on the computer readable storage medium and broadcast Program is put, such as media play of any of claims 1-7 is realized when the media play procedure is executed by processor Method and step.
CN201811654427.8A 2018-12-29 2018-12-29 Media playing method, device, intelligent terminal and computer readable storage medium Pending CN109743573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811654427.8A CN109743573A (en) 2018-12-29 2018-12-29 Media playing method, device, intelligent terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811654427.8A CN109743573A (en) 2018-12-29 2018-12-29 Media playing method, device, intelligent terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109743573A true CN109743573A (en) 2019-05-10

Family

ID=66363098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811654427.8A Pending CN109743573A (en) 2018-12-29 2018-12-29 Media playing method, device, intelligent terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109743573A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003036975A1 (en) * 2001-10-19 2003-05-01 Scm Microsystems Gmbh Conditional access system and copy protection
CN1889639A (en) * 2005-06-29 2007-01-03 上海广电(集团)有限公司中央研究院 Digital TV receiver and signal transmitting method thereof
KR20080065068A (en) * 2007-01-08 2008-07-11 엘지전자 주식회사 Apparatus for receiving digital broadcasting and method of transmitting data
CN103686185A (en) * 2013-11-28 2014-03-26 成都时代星光科技有限公司 Method for increasing transmission capacity of valid data of wireless image transmission COFDM (coded orthogonal frequency division multiplexing) modulation module
CN103763579A (en) * 2014-01-22 2014-04-30 深圳国微技术有限公司 Method for recognizing multichannel transmission streams based on USB interface
CN105657501A (en) * 2016-01-28 2016-06-08 深圳国微技术有限公司 Digital television direct broadcasting system and digital television direct broadcasting method
CN108153873A (en) * 2017-12-22 2018-06-12 深圳Tcl新技术有限公司 Compression method, television set and the readable storage medium storing program for executing of recorded file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003036975A1 (en) * 2001-10-19 2003-05-01 Scm Microsystems Gmbh Conditional access system and copy protection
CN1889639A (en) * 2005-06-29 2007-01-03 上海广电(集团)有限公司中央研究院 Digital TV receiver and signal transmitting method thereof
WO2007000084A1 (en) * 2005-06-29 2007-01-04 Central Research Academy Of Sva Group Digital television receiver and signal transmission method thereof
KR20080065068A (en) * 2007-01-08 2008-07-11 엘지전자 주식회사 Apparatus for receiving digital broadcasting and method of transmitting data
CN103686185A (en) * 2013-11-28 2014-03-26 成都时代星光科技有限公司 Method for increasing transmission capacity of valid data of wireless image transmission COFDM (coded orthogonal frequency division multiplexing) modulation module
CN103763579A (en) * 2014-01-22 2014-04-30 深圳国微技术有限公司 Method for recognizing multichannel transmission streams based on USB interface
CN105657501A (en) * 2016-01-28 2016-06-08 深圳国微技术有限公司 Digital television direct broadcasting system and digital television direct broadcasting method
CN108153873A (en) * 2017-12-22 2018-06-12 深圳Tcl新技术有限公司 Compression method, television set and the readable storage medium storing program for executing of recorded file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘海客等: "基于头部压缩的MPEG-2 TS编解码软件", 《计算机工程》 *
罗影等: "一种可伸缩的传输流收录方法", 《通信技术》 *

Similar Documents

Publication Publication Date Title
CN104917764B (en) A kind of multimedia service method for pushing and system based on Quick Response Code
CN110430441B (en) Cloud mobile phone video acquisition method, system, device and storage medium
CN107465954A (en) The generation method and Related product of dynamic thumbnail
US20220303544A1 (en) Http streaming apparatus and system with pseudo manifest file and just-in-time encoding
WO2021168649A1 (en) Multifunctional receiving device and conference system
CN105721934A (en) Video wireless transmission device and method, video play device and method, and system
CN103634556A (en) Information transmission method, information receiving method and electronic apparatus
CN107040825B (en) Terminal, television, multi-screen interaction system and screen capture parameter setting method
CN110418209B (en) Information processing method applied to video transmission and terminal equipment
CN102915290B (en) Realize method, adapter and system that mobile terminal is connected with human interface device
CN107229516B (en) Data processing method and device
CN205105347U (en) Video wireless transmission equipment, video playback devices and system
CN110198427A (en) Video call method and device
CN109743573A (en) Media playing method, device, intelligent terminal and computer readable storage medium
CN113141352B (en) Multimedia data transmission method and device, computer equipment and storage medium
CN113326019B (en) Volume control method and device, electronic equipment and storage medium
CN111432271B (en) Multi-screen interaction method and system
CN113596583A (en) Video stream bullet time data processing method and device
CN106804012A (en) The information notifying system and Notification Method of a kind of intelligent television
CN113709493A (en) Video stream data encryption device, method and equipment of KVM system
CN112422961A (en) Data transmission method and device, display equipment and computer readable storage medium
CN107454462B (en) Data transmission method, device and system
CN110851155A (en) Method and device for changing theme colors of set top box interface
CN115037732B (en) Method, device, equipment and medium for remote real machine debugging through streaming media
CN115965616B (en) Iris image processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190510