CN110225399A - Streaming Media processing method, device, computer equipment and storage medium - Google Patents

Streaming Media processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110225399A
CN110225399A CN201910532893.7A CN201910532893A CN110225399A CN 110225399 A CN110225399 A CN 110225399A CN 201910532893 A CN201910532893 A CN 201910532893A CN 110225399 A CN110225399 A CN 110225399A
Authority
CN
China
Prior art keywords
files
cache unit
stream media
condition
stream
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.)
Granted
Application number
CN201910532893.7A
Other languages
Chinese (zh)
Other versions
CN110225399B (en
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 Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201910532893.7A priority Critical patent/CN110225399B/en
Publication of CN110225399A publication Critical patent/CN110225399A/en
Application granted granted Critical
Publication of CN110225399B publication Critical patent/CN110225399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of Streaming Media processing method, device, computer equipment and storage mediums.Streaming Media processing method includes obtaining an at least files in stream media, the files in stream media is sent to the first cache unit, judge whether first cache unit meets the condition of data write-in, if the condition judging result of said write is yes, files in stream media all in first cache unit is exported to the second cache unit, and judge whether second cache unit meets the condition of reading data, if the condition judging result of the reading is yes, open files in stream media all in second cache unit, files in stream media of the output with default encapsulation format.It solves the files in stream media that reference format is cached and be converted into the source file of different-format, improves the efficiency of stream medium data processing.

Description

Streaming Media processing method, device, computer equipment and storage medium
Technical field
The present invention relates to the information processing technology more particularly to a kind of Streaming Media processing method, device, computer equipment and deposit Storage media.
Background technique
Streaming cache proxy server refers to Usage data collection function to acquire different encapsulation format audio-video numbers on network The caching of data is carried out according to storage to flow medium buffer module, then by video encapsulation function to cache module middle pitch video counts According to progress secondary encapsulation at the RTSP (Real Time Streaming Protocol) or HTTP (HyperText of standard Transfer Protocol) audio-video network transmission format protocol.Due to video and audio collection process it is unavoidable can encounter it is each Family's different audio-video stream encapsulation format will lead to user in this way and need to install different video according to these different encapsulation format Playout software carries out video playing, and in some scenes, user plays different-format by the streaming cache proxy server Occur Caton, waiting time long problem when audio-video document, declines user experience.
Summary of the invention
In view of this, the present invention provides a kind of Streaming Media processing method, device, computer equipment and storage medium, with reality The source file of different encapsulation format is now simply and efficiently generated to the files in stream media for meeting default encapsulation format, and is able to achieve Normal play.
In a first aspect, the present invention provides a kind of Streaming Media processing method, comprising:
Obtain an at least files in stream media;
The files in stream media is sent to the first cache unit;
Judge whether first cache unit meets the condition of data write-in;
If the condition judging result of said write be it is yes, all files in stream media in first cache unit is exported To the second cache unit, and judge whether second cache unit meets the condition of reading data;
If the condition judging result of the output is yes, all files in stream media in opening second cache unit;
Files in stream media of the output with default encapsulation format.
As a further improvement of the above technical scheme, at least one files in stream media with default encapsulation format is being obtained Before, further includes:
An at least source file is received, the encapsulation format of the source file is obtained;
Judge whether the encapsulation format is identical as the default encapsulation format;
If it is different, the encapsulation format is converted into default encapsulation format, the stream with default encapsulation format mark is obtained Media file.
As a further improvement of the above technical scheme, described to judge whether first cache unit meets data write-in Condition include:
Judge whether the capability value of the files in stream media is less than first threshold;
If so, determining that first cache unit meets the condition of data write-in;
If it is not, the same data message for removing the files in stream media obtains the first file and is stored in first caching Unit.
As a further improvement of the above technical scheme, further includes:
When the judgment result is no, it compresses the files in stream media to obtain the second file and is stored in first caching Unit.
As a further improvement of the above technical scheme, described to judge whether second cache unit meets reading data Condition include:
Judge whether the remaining memory space of two cache units is greater than second threshold, if so, determining that described second is slow Memory cell meets the condition of reading data.
Second aspect, the present invention also provides a kind of Streaming Media processing units, comprising:
Data acquisition module, for obtaining an at least files in stream media;
Data cache module, for the files in stream media to be sent to the first cache unit;
Data control block, for judging whether first cache unit meets the condition of data write-in, if judgement knot Fruit be it is yes, files in stream media all in first cache unit is exported to the second cache unit, and judge described second Whether cache unit meets the condition of reading data, if the determination result is YES, opens stream all in second cache unit Media file, files in stream media of the output with default encapsulation format.
The third aspect, the present invention also provides a kind of computer equipment, including processor and memory, the memory storage There is the step of computer program, the processor realizes above-mentioned Streaming Media processing method when executing the computer program.
Fourth aspect, the present invention also provides a kind of storage medium, the storage medium is set for storing the computer The computer program of standby middle execution.
A kind of Streaming Media processing method provided by the invention, device, computer equipment and storage medium have the beneficial effect that By obtaining multiple files in stream media, judge that the capability value of the files in stream media and first threshold carry out in the first cache unit Compare, can determine whether the files in stream media meets the condition of write-in, the caching of Lai Shixian files in stream media is slow second Memory cell judges that buffered good files in stream media can be opened when the files in stream media reaches second threshold, passes through two Secondary caching streaming media files are handled, and the fluency that the files in stream media plays can be improved, and also save system money Source improves the experience of user.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as to the present invention The restriction of protection scope.In various figures, part is similarly comprised using similar number.
Fig. 1 shows the flow chart of the Streaming Media processing method of the embodiment of the present invention;
Fig. 2 shows the flow charts of the Streaming Media processing method of the first embodiment of the present invention;
Fig. 3 shows the flow chart of the Streaming Media processing method of the second embodiment of the present invention;
Fig. 4 is the structural block diagram of the Streaming Media processing unit of the embodiment of the present invention;
Fig. 5 is the structural block diagram of the computer equipment of the embodiment of the present invention.
Main element symbol description:
100- Streaming Media processing unit;110- data acquisition module;120- data cache module;130- data control mould Block;200- computer equipment;210- processor;220- memory;230- computer program.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
The component of embodiments of the present invention, which are generally described and illustrated herein in the accompanying drawings can be come with a variety of different configurations Arrangement and design.Therefore, requirement is not intended to limit to the detailed description of the embodiment of the present invention provided in the accompanying drawings below The scope of the present invention of protection, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, this field skill Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
Hereinafter, term " includes ", " having " and its cognate that can be used in various embodiments of the present invention are only It is intended to mean that special characteristic, number, step, operation, the combination of element, component or aforementioned item, and is understood not to first Exclude the combined presence or increase by one of one or more other features, number, step, operation, element, component or aforementioned item A or more feature, number, step, operation, element, component or aforementioned item combination a possibility that.
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, it is not understood to indicate or imply Relative importance.
Unless otherwise defined, otherwise all terms (including technical terms and scientific terms) used herein have and this The identical meaning of the various normally understood meanings of embodiment one skilled in the art of invention.The term (such as exists The term limited in the dictionary generally used) it is to be interpreted as that there is contain identical with situational meaning in the related technical field Justice and Utopian meaning or meaning too formal will be interpreted as having, unless in various embodiments of the present invention It is clearly defined.
Refering to fig. 1, in a first aspect, the present invention provides a kind of Streaming Media processing method, comprising the following specific steps
Step S10: an at least files in stream media is obtained;
Step S20: the files in stream media is sent to the first cache unit;
Step S30: judge whether first cache unit meets the condition of data write-in;
Step S40: if the condition judging result of said write be it is yes, by Streaming Media all in first cache unit File is exported to the second cache unit, and judges whether second cache unit meets the condition of reading data;
Step S50: if the condition judging result of the output is yes, all stream matchmakers in opening second cache unit Body file;
Step S60: files in stream media of the output with default encapsulation format.
In the present embodiment, the default encapsulation format may include stream media format FLV (Flash Video), move State motion picture expert group version MP4 (Moving Picture Experts Group 4), transmitting stream TS (transport stream) or The formats such as program stream PS (Program Stream), the default encapsulation format mainly pass through the standard agreement of RSTP and HTTP into Row is converted to.Wherein, the files in stream media may include audio file, video file, document and the sound view of reference format One or more of frequency file, corresponding, the default encapsulation format can be one, or and it is multiple, according to client Depending on the quantity and encapsulation format of the file that end is sent.
Described can be sent to by way of multidiameter delay according to the encapsulation format of the files in stream media and quantity The size of one cache unit, first cache unit can be pre-defined according to the default encapsulation format, and such as described first Cache unit 150M in total, the audio-video document size in first cache unit are 100M, but in client downloads or The possible size of the audio-video document of upload is 500M, and the document size in first cache unit is 10M, under client The size for the document for carrying or uploading may be 10M.The files in stream media is sent to the first cache unit.
Embodiment 1
Referring to Fig.2, judging whether first cache unit meets the condition of data write-in, comprising the following steps:
Step S101: judge whether the capability value of the files in stream media is less than first threshold;
Step S102: if so, determining that first cache unit meets the condition of data write-in;
Step S103: if it is not, the same data message for removing the files in stream media obtains the first file and is stored in institute State the first cache unit.
It is compared according to the capability value of the files in stream media with the first threshold, for example, the flow problem file It is described with reference format or the entitled TXT document of extension, then to obtain the capability value i.e. size of file of prime number TXT document First threshold is the maximum capacity of document of the caching with reference format or extension name, exceeds the first threshold, can be with Determine whether the files in stream media meets write-in to first cache unit, i.e., when the capability value of the TXT document is less than When first cache unit, then it can be written into first cache unit;The files in stream media is the sound of reference format Video file or the entitled MP4 file of extension, the MP4 file include 1080P display format, and screen resolution is 1920 × 1080, the capability value of the MP4 file is greater than or equal to the first threshold, removes the same data message of the MP4 file Display format can be reduced to 720P obtain the first file, it should be noted that first file is relative to the stream matchmaker The display resolution decline of body file and capability value reduce, and the files in stream media is enable to be buffered in the first unit.
Further, when the judgment result is no, it compresses the files in stream media to obtain the second file and is stored in institute State the first cache unit.
When executing above-mentioned steps S103, the capability value of the files in stream media is more than first cache unit, is used H.264 compress technique has low bit- rate, the image of high quality, the feature that fault-tolerant ability is strong and network adaptability is strong, H.264 maximum advantage is that have very high data compression ratio, under conditions of same picture quality, compression ratio H.264 It is the 2 times or more of MPEG-2, is 1.5~2 times of MPEG-4.For example, the size of original document is used if it is 88GB Become 3.5GB, compression ratio 25:1 after the compression of MPEG-2 compression standard, and becomes after using H.264 compression standard compression 879MB, from 88GB to 879MB, compression ratio H.264 reaches surprising 102:1.Low bit- rate (Low Bit Rate) is to H.264 High compression ratio play an important role, it is available in this way to be compressed into the files in stream media for meeting the requirements capability value.
It is stored by carrying out compression to the files in stream media to first cache unit, output is with described pre- later If the files in stream media of encapsulation format, at this point, second cache unit there remains part memory space, can continue to cache it His files in stream media, improves the Buffer Utilization of system in this way, also ensures the reliability of stream medium data processing.
In addition, when the files in stream media includes multiple files, such as two audio-video documents, the big first-class matchmaker of capability value Body file and small the second files in stream media of capability value are needed at this time using being handled with the first cache unit distribution The second cache unit, first files in stream media is preferentially written in first cache unit, if first Streaming Media File exceeds the first threshold, removes the same data message of first files in stream media, makes the first Streaming Media text Part can be buffered in first cache unit, and the same data message be cached to second cache unit, described It is handled after one files in stream media caching by first cache unit and the second cache unit integration.Judge described second Whether the storing data of cache unit reaches the size of output, while second files in stream media write-in has been discharged part First cache unit of memory space can also be executed according to above-mentioned steps S101.Described is only gived in present embodiment It is single that multiple cachings can be set in the quantity and/or more format of source file in one cache unit and second cache unit First parallel processing.
It should be noted that first cache unit can also first handle second files in stream media, in the stream It, can be using described in multiple cache unit distributed treatments in one timing of cache unit capacity when the quantity of media file is more Files in stream media, the first cache unit uses the mode of first in first out, by stream matchmaker treated in first cache unit Body file exports (broadcasting) to second cache unit in write-in, and second cache unit also may be implemented when reading Release, the files in stream media exported in this way have the default encapsulation format, the files in stream media can be improved just The efficiency often exported ensure that the integrality of data storage, also improve the utilization rate of system resource.
Further, the condition for judging whether second cache unit meets reading data includes:
Judge whether the remaining memory space of the second cache unit is greater than second threshold, if so, determining described second Storage unit meets the condition of reading data.
In the present embodiment, the files in stream media is handled to obtain stream medium data, the stream medium data is being deposited The rate that will appear write-in during storage is greater than the rate read, goes out in the single caching block for storing the stream medium data When now inadequate situation, the caching block of same size is needed to be cached, the second threshold is that can store the stream matchmaker The capability value that volume data is read, Lai Shixian are discharged when reading.It is appreciated that when the stream medium data of second cache unit When reaching the capacity that can be played, handles and be re-packaged into the stream medium data default by second cache unit The files in stream media of encapsulation format makes the files in stream media reference format of output in this way, can also need according to the user's choice The files in stream media is Resealed into the processing such as specific encapsulation format and encryption, also improves the files in stream media Safety, also improve the application portability of the files in stream media.
Embodiment 2
It is further comprising the steps of before exporting the files in stream media with default encapsulation format refering to Fig. 3:
Step S201: an at least source file is received, the encapsulation format of the source file is obtained;
Step S202: judge whether the encapsulation format is identical as the default encapsulation format;
Step S203: it if it is different, the encapsulation format is converted into default encapsulation format, obtains with default encapsulation format The files in stream media of mark.
In the present embodiment, if the files in stream media has been the compressed format of single or multiple files, elder generation is needed The files in stream media is decompressed, the small source file of capacity executes above-mentioned Streaming Media processing method after being extracted.It is obtaining Before the files in stream media of the default encapsulation format, it can identify that the suffix of source file or extension name are carried out by photographic device Acquisition and matching treatment, when the source file is standard packaging format, by source file processing with default encapsulation format The files in stream media of mark;When the format for judging the source file is different from the default encapsulation format, need to assist by RTSP View or http protocol carry out reference format conversion to audio-video document and document respectively, so no matter in which kind of website or broadcasting It is played on device and is attained by compatible effect, improve the application range of the files in stream media.
By obtaining multiple files in stream media with default encapsulation format mark, the stream is judged in the first cache unit The capability value of media file is compared with first threshold, can determine whether the files in stream media meets the condition of write-in, Realize the caching of the files in stream media, it when the second cache unit judges that the files in stream media reaches second threshold can To open buffered good files in stream media, is handled by caching streaming media files twice, Streaming Media can be improved The fluency that file plays, also saves system resource, improves the experience of user.
Refering to Fig. 4, second aspect, the present invention also provides a kind of Streaming Media processing units 100, comprising:
Data acquisition module 110, for obtaining an at least files in stream media;
Data cache module 120, for the files in stream media to be sent to the first cache unit;
Data control block 130, for judging whether first cache unit meets the condition of data write-in, if judgement As a result be it is yes, files in stream media all in first cache unit is exported to the second cache unit, and judge described Whether two cache units meet the condition of reading data, if the determination result is YES, open all in second cache unit Files in stream media, files in stream media of the output with default encapsulation format.
In the present embodiment, the data acquisition module 110 can be multiple photographing modules, and the photographing module can be with Obtain the encapsulation format of the files in stream media or the source file of extension name or compressed format, the data cache module 120 It can be static random access memory (Static Random-Access Memory, SRAM), be also possible to dynamic random and deposit Access to memory (Dynamic Random Access Memory, DRAM), what can be met the requirements according to actual needs sets It sets, the data control block 130 can be CPU, and MCU etc. has the processor of processing function.The data acquisition module 110 By the operation of client, the source file for such as uploading or shooting is also possible to be uploaded to by the file that web camera is shot The Streaming Media processing unit 100 is also possible to the data information of web camera typing being arranged on webpage.The data Control module 130 includes comparing unit, adjustment unit and output unit, and the comparing unit is used for the files in stream media Capability value is compared with the first threshold, is determined whether the files in stream media meets and is write direct the first caching list Member, the comparing unit is also used to for the remaining memory space of the second cache unit being compared with second threshold, to sentence Whether the data cached in second cache unit of breaking reach the condition of output, to improve the processing of the files in stream media Efficiency also ensures the normal operation of the files in stream media.When the files in stream media is high-resolution display format When file, the files in stream media can be reduced resolution ratio by the adjustment unit, but not loss of data occurs, only broadcast The clarity of image reduces when putting, but the data cached can be played with low resolution, and the output unit is for exporting The stream medium data of caching is thus not in that the files in stream media of large capacity occurs asking for Caton in caching and broadcasting Topic improves files in stream media of the output with the default encapsulation format by multi-level buffer come process flow media data Reliability.
It should be noted that the Streaming Media processing unit 100 can be software code composition, it is also possible to be embedded into In some equipment with display screen, such as mobile phone, PAD etc. can obtain reticle using above-mentioned Streaming Media processing method The files in stream media of formula.The data control block 130 have data buffer storage and forwarding control function, initialization when according to The format of audio, video data dynamically distributes different size of caching block and (is such as divided according to the resolution ratio of video data, sound The sound quality of frequency evidence divides etc.), and the part is cached the data block that block is split into several equal portions, the number According to root tuber being successively ranked up according to data entry time, can also successively be located according to the size of the stream medium data Reason keeps the stream medium data faster simple in storage and reading.
Refering to Fig. 5, the third aspect, the present invention also provides a kind of computer equipments 200, including processor 210 and memory 220, the memory 220 is stored with computer program 230, the realization when processor 210 executes the computer program 230 The step of above-mentioned Streaming Media processing method.
The computer equipment 200 can be flush type stream media server, and the flush type stream media server can be with It establishes in webpage or catenet media platform, player etc., is also possible to portable with playing audio-video document or document Formula equipment, the flush type stream media server and client can be established by wireless WIFI, bluetooth isotype and be communicated to connect, The client can upload source file to the flush type stream media server, realize that the source file is shared, by described Flush type stream media server processing, can with while caching while plays, and the client present standard have RTSP or The file of HTTP reference format, the client is not necessarily to download other softwares for having conversion function, especially in no network, It can achieve above-mentioned purpose, the operating mode of the flush type stream media server can be set according to the demand of user, it can also Identical with above-mentioned Streaming Media processing method with the source file for caching reference format to be converted, details are not described herein again.
Fourth aspect, the present invention also provides a kind of storage medium, the storage medium is set for storing the computer The computer program 230 executed in standby 200.
Storage medium of the invention can be and any type of be deposited by the processor 210 of computer equipment 200 is read Storage media, including but not limited to nonvolatile memory, volatile memory, ferroelectric memory etc., are stored on storage medium Computer program 230 is stored in the memory 220 when the processor 210 of the computer equipment 200 reads and executes , it can be achieved that each step of above-mentioned each Streaming Media processing method when computer program 230.
A kind of Streaming Media processing method, device, computer equipment and storage medium provided by the invention, it is multiple by obtaining Files in stream media judges that the capability value of the files in stream media is compared with first threshold in the first cache unit, can be true Whether the fixed files in stream media meets the condition of write-in, and the caching of Lai Shixian files in stream media judges in the second cache unit The files in stream media can open buffered good files in stream media when reaching second threshold, by caching convection current twice Media file is handled, and the fluency that the files in stream media plays can be improved, also save system resource, improve use The experience at family.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code A part, a part of the module, section or code includes one or more for implementing the specified logical function Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence Can mobile phone, personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.

Claims (10)

1. a kind of Streaming Media processing method characterized by comprising
Obtain an at least files in stream media;
The files in stream media is sent to the first cache unit;
Judge whether first cache unit meets the condition of data write-in;
If the condition judging result of said write be it is yes, files in stream media all in first cache unit is exported to Two cache units, and judge whether second cache unit meets the condition of reading data;
If the condition judging result of the reading is yes, all files in stream media in opening second cache unit;
Files in stream media of the output with default encapsulation format.
2. Streaming Media processing method according to claim 1, which is characterized in that in stream of the output with default encapsulation format Before media file, further includes:
An at least source file is received, the encapsulation format of the source file is obtained;
Judge whether the encapsulation format is identical as the default encapsulation format;
If it is different, the encapsulation format is converted into default encapsulation format, the Streaming Media with default encapsulation format mark is obtained File.
3. Streaming Media processing method according to claim 1, which is characterized in that described to judge that first cache unit is It is no meet data write-in condition include:
Judge whether the capability value of the files in stream media is less than first threshold;
If so, determining that first cache unit meets the condition of data write-in;
If it is not, the same data message for removing the files in stream media obtains the first file and is stored in the first caching list Member.
4. Streaming Media processing method according to claim 3, which is characterized in that further include:
When the judgment result is no, it compresses the files in stream media to obtain the second file and is stored in the first caching list Member.
5. Streaming Media processing method according to claim 1, which is characterized in that described to judge that second cache unit is The no condition for meeting reading data includes:
Judge whether the remaining memory space of two cache units is greater than second threshold, if so, determining that second caching is single Member meets the condition of reading data.
6. a kind of Streaming Media processing unit characterized by comprising
Data acquisition module, for obtaining an at least files in stream media;
Data cache module, for the files in stream media to be sent to the first cache unit;
Data control block, for judging whether first cache unit meets the condition of data write-in, if judging result is It is to export files in stream media all in first cache unit to the second cache unit, and judge second caching Whether unit meets the condition of reading data, if the determination result is YES, opens Streaming Media all in second cache unit File, files in stream media of the output with default encapsulation format.
7. Streaming Media processing unit according to claim 6, which is characterized in that described to judge that first cache unit is It is no meet data write-in condition include:
Judge whether the capability value of the files in stream media is less than first threshold;
If so, determining that first cache unit meets the condition of data write-in;
If it is not, the same data message for removing the files in stream media obtains the first file and is stored in the first caching list Member.
8. Streaming Media processing unit according to claim 6, which is characterized in that described to judge that second cache unit is The no condition for meeting reading data includes:
Judge whether the remaining memory space of two cache units is greater than second threshold, if so, determining that second caching is single Member meets the condition of reading data.
9. a kind of computer equipment, which is characterized in that including processor and memory, the memory is stored with computer journey Sequence, the processor realize the Streaming Media processing method as described in any one of claims 1 to 5 when executing the computer program The step of.
10. a kind of storage medium, which is characterized in that the storage medium is for storing computer according to claim 9 The computer program executed in equipment.
CN201910532893.7A 2019-06-19 2019-06-19 Streaming media processing method and device, computer equipment and storage medium Active CN110225399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532893.7A CN110225399B (en) 2019-06-19 2019-06-19 Streaming media processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532893.7A CN110225399B (en) 2019-06-19 2019-06-19 Streaming media processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110225399A true CN110225399A (en) 2019-09-10
CN110225399B CN110225399B (en) 2021-11-23

Family

ID=67814017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532893.7A Active CN110225399B (en) 2019-06-19 2019-06-19 Streaming media processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110225399B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432384A (en) * 2020-03-18 2020-07-17 合肥讯飞读写科技有限公司 Large data volume audio Bluetooth real-time transmission method for equipment with recording function
CN114968102A (en) * 2022-05-27 2022-08-30 广州安凯微电子股份有限公司 Data caching method, device and system, computer equipment and storage medium
CN114996203A (en) * 2022-05-19 2022-09-02 中诚华隆计算机技术有限公司 SOC chip, capsule endoscope robot and capsule endoscope system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957469A (en) * 2014-05-21 2014-07-30 百视通网络电视技术发展有限责任公司 Internet video on demand method and system based on real-time packaging switching
WO2015027882A1 (en) * 2013-08-28 2015-03-05 Tencent Technology (Shenzhen) Company Limited Method, apparatus and terminal for image processing
CN105045846A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Image storage method and terminal
CN108415855A (en) * 2018-03-06 2018-08-17 珠海全志科技股份有限公司 It makes video recording file memory method and device, computer installation and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015027882A1 (en) * 2013-08-28 2015-03-05 Tencent Technology (Shenzhen) Company Limited Method, apparatus and terminal for image processing
CN103957469A (en) * 2014-05-21 2014-07-30 百视通网络电视技术发展有限责任公司 Internet video on demand method and system based on real-time packaging switching
CN105045846A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Image storage method and terminal
CN108415855A (en) * 2018-03-06 2018-08-17 珠海全志科技股份有限公司 It makes video recording file memory method and device, computer installation and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432384A (en) * 2020-03-18 2020-07-17 合肥讯飞读写科技有限公司 Large data volume audio Bluetooth real-time transmission method for equipment with recording function
CN114996203A (en) * 2022-05-19 2022-09-02 中诚华隆计算机技术有限公司 SOC chip, capsule endoscope robot and capsule endoscope system
CN114996203B (en) * 2022-05-19 2023-06-27 中诚华隆计算机技术有限公司 SOC chip, capsule endoscope robot and capsule endoscope system
CN114968102A (en) * 2022-05-27 2022-08-30 广州安凯微电子股份有限公司 Data caching method, device and system, computer equipment and storage medium
CN114968102B (en) * 2022-05-27 2023-10-13 广州安凯微电子股份有限公司 Data caching method, device, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110225399B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN102740159B (en) Media file storage format and self-adaptation transfer system
CN102439578B (en) Dynamic variable rate media delivery system
CN106464945B (en) Method, system and the computer-readable medium of enhanced stream media playback
CN104412253B (en) The method of self adaptation stream transmission is known for the quality in hypertext transfer protocol
EP2908535A1 (en) Content transmission device, content playback device, content distribution system, method for controlling content transmission device, method for controlling content playback device, control program, and recording medium
WO2021159770A1 (en) Video playback method, device, apparatus, and storage medium
US11218703B2 (en) Systems and methods for adaptively encoding video stream
CN110225399A (en) Streaming Media processing method, device, computer equipment and storage medium
US20220303328A1 (en) Systems and methods for cloud storage direct streaming
US20160029079A1 (en) Method and Device for Playing and Processing a Video Based on a Virtual Desktop
US10277911B2 (en) Video processing workload management
CN105556922B (en) DASH in network indicates adaptive
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
US9866602B2 (en) Adaptive bit rates during broadcast transmission in distributed content delivery networks
KR101472032B1 (en) Method of treating representation switching in HTTP streaming
CN103843358A (en) Contents distribution system, cache server, and contents distribution method
US9665646B1 (en) Method and system for providing bit rate adaptaion to video files having metadata
Chen et al. Optimized viewport‐adaptive 360‐degree video streaming
CN105978955A (en) Mobile video synchronization system, method and mobile terminal
CN108810468B (en) Video transmission device and method for optimizing display effect
CN108702542A (en) Client operation method for streaming service
US9237178B2 (en) Combined binary string for signaling byte range of media fragments in adaptive streaming
US20220272394A1 (en) Systems and methods for improved adaptive video streaming
US11336902B1 (en) Systems and methods for optimizing video encoding
US10652296B2 (en) Method and apparatus to efficiently smooth adaptive content playback in HTTP live streaming

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
GR01 Patent grant
GR01 Patent grant