CN108810557A - A kind of method for processing video frequency, device, electronic equipment and storage medium - Google Patents
A kind of method for processing video frequency, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108810557A CN108810557A CN201710558145.7A CN201710558145A CN108810557A CN 108810557 A CN108810557 A CN 108810557A CN 201710558145 A CN201710558145 A CN 201710558145A CN 108810557 A CN108810557 A CN 108810557A
- Authority
- CN
- China
- Prior art keywords
- video
- thread
- suspend mode
- video flowing
- processing
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 58
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 230000008569 process Effects 0.000 claims description 15
- 230000002618 waking effect Effects 0.000 claims description 5
- 229920006395 saturated elastomer Polymers 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 9
- 238000005111 flow chemistry technique Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 5
- 230000006855 networking Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000005059 dormancy Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23406—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving management of server-side video buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234336—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/241—Operating system [OS] processes, e.g. server setup
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention provides a kind of video processing schemes, method includes:A plurality of thread is created in thread pool;When the video for receiving multiple client transmission simultaneously retrieves for examination request, obtains each video and retrieve for examination the corresponding video flowing of request;Suspend mode thread is searched from thread pool, and each video flowing is handled using suspend mode thread;Will treated each video stream to corresponding client.Video processing schemes provided in an embodiment of the present invention, when the video for receiving multiple client transmission simultaneously retrieves for examination request, each video flowing is handled using suspend mode thread, will treated each video stream to corresponding client, and be not limited to carry out video stream using the corresponding particular thread of video flowing.It uses one-to-one model, the embodiment of the present invention to be handled video flowing using the model of multi-to-multi compared with prior art, can be efficiently pushes customer video flowing when video uses peak period, user can retrieve for examination the video of clear and smooth.
Description
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of method for processing video frequency and device, electronic equipment
And computer readable storage medium.
Background technology
Currently, with the widespread development regarding networking service in China, connection interaction technique is regarded in political affairs depending on networking high definition
Mansion department plays very important effect in other industries.It is real-time using the state-of-the-art VisionVera in the whole world depending on networking
HD video switching technology realizes the whole network HD video real-time Transmission that current internet cannot achieve.It will depending on networked platforms
HD video meeting, video monitoring, remote training, Intellectualized monitoring analysis, emergency command, visual telephone, live broadcast, TV
It is flat that the services such as tens of kinds of videos, voice, picture, word, communication, the data such as mail, information publication are all incorporated into a system
Platform realizes that high-definition quality video communication is interconnected in real time by multiple terminal equipment.
It retrieves for examination video request to user using management platform depending on networking at present to handle, due to management platform
Using one-to-one pattern, and it is limited to forward video fluxion, when video uses peak period, video flowing to be treated
Quantity can be more than to reach the standard grade, and cannot normally be forwarded beyond part, it will cause the performances such as congestion, packet loss, Hua Ping, interim card are low
Under problem.
Invention content
The present invention provides a kind of method for processing video frequency, device, electronic equipment and computer scale storage mediums, to solve
The problem of causing in time to handle video flowing using one-to-one model in the prior art.
To solve the above-mentioned problems, the invention discloses a kind of method for processing video frequency, the method includes:In thread pool
Create a plurality of thread;When the video for receiving multiple client transmission simultaneously retrieves for examination request, obtains each video and retrieve for examination request pair
The video flowing answered;Suspend mode thread is searched from the thread pool, and each video flowing is handled using the suspend mode thread;
Will treated each video stream to corresponding client.
Preferably, described the step of being handled each video flowing using the suspend mode thread, includes:Wake up first
Suspend mode thread is handled the video flowing of preset quantity by the suspend mode thread being waken up;When the suspend mode line being waken up
After journey saturation, the second suspend mode thread is waken up, and returns and executes the video by the suspend mode thread that is waken up to preset quantity
The step of stream is handled.
Preferably, the step of being handled video flowing by thread include:For each v2v format videos stream, by institute
State the video flowing that video flowing is converted to rpt formats by thread.
Preferably, it is described will treated each video stream to corresponding client the step of after, the method
Further include:Judge whether pending video flowing;If it is not, then the thread is set as suspend mode thread.
To solve the above-mentioned problems, the invention also discloses a kind of video process apparatus, described device includes:Thread creation
Module, for creating a plurality of thread in thread pool;Acquisition module, the video for multiple client transmission ought to be received simultaneously
When retrieving for examination request, obtains each video and retrieve for examination the corresponding video flowing of request;Searching module, for searching suspend mode from the thread pool
Thread is handled each video flowing using the suspend mode thread;Sending module, for each video flowing to be sent out by treated
It send to corresponding client.
Preferably, the searching module includes:First wakes up submodule, for waking up the first suspend mode thread, by being called out
Awake suspend mode thread handles the video flowing of preset quantity;Second wakes up submodule, for when the suspend mode being waken up
After thread saturation, the second suspend mode thread is waken up, and returns and preset quantity is regarded by the suspend mode thread being waken up described in execution
The step of frequency stream is handled.
Preferably, carrying out processing to video flowing by thread includes:For each v2v format videos stream, by the video
Stream is converted to the video flowing of rpt formats by thread.
Preferably, described device further includes:Judgment module, for each video flowing to be sent out by treated in the sending module
It send to after the step of corresponding client, judges whether pending video flowing;Setup module, for working as the judgement
The judging result of module is no, then the thread is set as suspend mode thread.
To solve the above-mentioned problems, the invention also discloses a kind of electronic equipment, the electronic equipment includes:Memory,
Processor and it is stored in the video processing program that can be run on the memory and on the processor, the video handles journey
The step of method for processing video frequency is realized when sequence is executed by the processor.
To solve the above-mentioned problems, the invention also discloses a kind of computer readable storage mediums, which is characterized in that described
Video processing program is stored on computer readable storage medium, when the video processing program is executed by processor described in realization
Method for processing video frequency the step of.
Compared with prior art, the present invention has the following advantages:
Video processing schemes provided in an embodiment of the present invention, by thread pool, the video flow processing thread created in advance,
The expense that thread is now created when video flowing reaches to resource can be substantially reduced.In addition, video provided in an embodiment of the present invention
Processing scheme flows into each video using suspend mode thread when the video for receiving multiple client transmission simultaneously retrieves for examination request
Row processing, will treated each video stream to corresponding client, and be not limited to use the corresponding certain line of video flowing
Cheng Jinhang video streams.One-to-one model, the embodiment of the present invention is used to use the model pair of multi-to-multi compared with prior art
Video flowing is handled, and can be efficiently pushes customer video flowing when video uses peak period, and user can retrieve for examination clearly
Smooth video.
Description of the drawings
Fig. 1 is a kind of step flow chart of method for processing video frequency of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of method for processing video frequency of the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram of video process apparatus of the embodiment of the present invention three;
Fig. 4 is a kind of structure diagram of video process apparatus of the embodiment of the present invention four;
Fig. 5 is the structure diagram of a kind of electronic equipment of the embodiment of the present invention five.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig.1, a kind of step flow chart of method for processing video frequency of the embodiment of the present invention one is shown.
Method for processing video frequency provided in an embodiment of the present invention includes the following steps:
Step 101:A plurality of thread is created in thread pool.
Thread pool is a kind of multiple threads form, and task is added to queue in processing procedure, is then creating thread
Start these tasks automatically afterwards.The thread managed in thread pool is all background thread.Per thread is all using the storehouse of acquiescence
Size is run with the priority of acquiescence, and in multiple thread units.If some thread is idle in Managed Code (as just
Waiting for some event), then thread pool will be inserted into another worker thread to make all processors keep busy.If thread pool
In all threads all remain busy, but in queue comprising hang up work, then thread pool will create over time separately
The number of one worker thread but thread is more than never maximum value.Thread more than maximum value can be lined up, but they want
Until just starting after the completion of other threads.
In the embodiment of the present invention, a series of threads are created in server initiation, when pending video stream buffer area has
Video flowing reaches, and directly invokes the thread process video flowing being pre-created, and no longer needs to that time, resource is spent now to create line
Journey.
Step 102:When the video for receiving multiple client transmission simultaneously retrieves for examination request, obtains each video and retrieve for examination request
Corresponding video flowing.
Step 103:Suspend mode thread is searched from thread pool, and each video flowing is handled using suspend mode thread.
When the video for receiving user's transmission retrieves for examination request, first obtains each video and retrieves for examination the corresponding video flowing of request,
Suspend mode thread is searched from thread pool again.
Suspend mode thread is thread in a dormant state, is handled each video flowing using suspend mode thread, can regarding
It is efficiently pushes customer video flowing, while solving and being caused to video flow processing using existing model when frequency uses peak period
Congestion, packet loss, Hua Ping, interim card the problems such as.
The scheme of another feasibility is:When the video that user receives user's transmission retrieves for examination request, each regard is obtained
After frequency modulation sees the video flowing of request, unsaturated thread is searched from thread pool, such as:It is when a thread can handle quantity
When 5 video flowing, currently processed video flowing quantity is 3, then the thread is in unsaturated state, using unsaturated thread pair
Video flowing is handled, and when the video flowing is in saturation state, then uses the thread of suspend mode to continue to locate to video flowing again
Reason.
It should be noted that the embodiment of the present invention is not specifically limited to which kind of thread to carry out processing to video flowing using.
Step 104:Will treated each video stream to corresponding client.
Method for processing video frequency provided in an embodiment of the present invention, by thread pool, the video flow processing thread created in advance,
The expense that thread is now created when video flowing reaches to resource can be substantially reduced.In addition, video provided in an embodiment of the present invention
Processing scheme flows into each video using suspend mode thread when the video for receiving multiple client transmission simultaneously retrieves for examination request
Row processing, will treated each video stream to corresponding client, and be not limited to use the corresponding certain line of video flowing
Cheng Jinhang video streams.One-to-one model, the embodiment of the present invention is used to use the model pair of multi-to-multi compared with prior art
Video flowing is handled, and can be efficiently pushes customer video flowing when video uses peak period, and user can retrieve for examination clearly
Smooth video.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of method for processing video frequency of the embodiment of the present invention two is shown.
Method for processing video frequency provided in an embodiment of the present invention includes the following steps:
Step 201:A plurality of thread is created in thread pool.
In the embodiment of the present invention, a series of threads are created in thread pool in advance during server initiation, are created
Number of threads can be configured according to actual demand by those skilled in the art, this is not done in the embodiment of the present invention specific
Limitation.
The thread created has no fixed correspondence with video flowing, and the thread created is idle or unsaturated
Under state, arbitrary pending video flowing can be handled.
The video flow processing thread created in advance by thread pool, when pending video stream buffer area has video to flow to
It reaches, directly invokes the thread process video flowing being pre-created, no longer need to that time, resource is spent now to create thread.
Step 202:When the video for receiving multiple client transmission simultaneously retrieves for examination request, obtains each video and retrieve for examination request
Corresponding video flowing.
Each video retrieves for examination the corresponding video of request, and each video corresponds to a video flowing.
Step 203:Suspend mode thread is searched from thread pool, wakes up the first suspend mode thread.
Wherein, the first suspend mode thread can be any one in the suspend mode thread that is found.
Step 204:The video flowing of preset quantity is handled by the suspend mode thread being waken up.
When the video for receiving client transmission retrieves for examination request, obtains each video and retrieve for examination the corresponding video flowing of request, from
Suspend mode thread is searched in thread pool, and according to the quantity of pending video flowing, the upper limit value of each suspend mode thread process video flowing, is called out
Awake a certain number of suspend mode threads.When waking up a suspend mode thread, since the quantity of thread process video flowing has the upper limit,
Therefore the thread can only be handled the video flowing of preset quantity, it should be noted that those skilled in the art can root
Preset quantity is configured according to actual conditions, this is not specifically limited in the embodiment of the present invention.
In compared with prior art, since the processing mode that uses is 1 pair 1 of pattern, i.e., a certain thread can only handle one kind
The video flowing of type can only then handle the other kinds of video flowing got using other corresponding threads.This
For the processing mode that inventive embodiments use for the pattern of multi-to-multi, i.e., a certain thread can handle a plurality of types of video flowings, subtract
Lack when receiving the video flowing of a certain type, and the thread for handling the video flowing is in saturation state, needs to wait until place
Reason after the completion of again to other video flow processings the case where, save the time of waiting, can be efficiently user's pushing video stream.
Step 205:After the suspend mode thread saturation being waken up, the second suspend mode thread is waken up, and return to execution by being called out
Awake suspend mode thread handles the video flowing of preset quantity.
After the suspend mode thread saturation being waken up and pending video flowing is still remained, then continues to wake up the second suspend mode
Thread distributes pending video flowing for the second suspend mode thread.It repeats to wake up suspend mode thread, and is waited for for the thread distribution after waking up
The video flowing of processing, until all videos flow into assigned completion or whole suspend mode threads are waken up and are saturated.
It should be noted that when single thread is to the processing of single video flowing, for each v2v format videos stream, will regard
Frequency stream is converted to the video flowing of rpt formats by thread.
Step 206:Will treated each video stream to corresponding client.
Step 207:Judge whether pending video flowing.
When per thread completes video flow processing, pending video flowing is judged whether, if so, continuing as institute
Thread distribution video flowing is stated to be handled;If it is not, thening follow the steps 208.
Step 208:If it is not, then thread is set as suspend mode thread.
When there is no video flowing to need processing, the processing thread during destroying threads do not rush, but it is set to suspend mode
State, when thread process dormant state, can't occupy CPU, when the thread for having video flowing to pour into thread can be just waken up.
Video processing schemes provided in an embodiment of the present invention are deployed on networking management platform server, more
Thousands of client terminals are fictionalized in platform PC machine, the video for receiving transmission retrieves for examination request, to the client for sending request while simultaneously
Pushing video stream is sent out, and observes server CPU usage and memory usage, it can be seen that server CPU usage and memory
Utilization rate is all very low, and depending on networked video forwarding server, still very comfortable has no pressure.
Method for processing video frequency provided in an embodiment of the present invention, by thread pool, the video flow processing thread created in advance,
The expense that thread is now created when video flowing reaches to resource can be substantially reduced.In addition, video provided in an embodiment of the present invention
Processing scheme flows into each video using suspend mode thread when the video for receiving multiple client transmission simultaneously retrieves for examination request
Row processing, will treated each video stream to corresponding client, and be not limited to use the corresponding certain line of video flowing
Cheng Jinhang video streams.One-to-one model, the embodiment of the present invention is used to use the model pair of multi-to-multi compared with prior art
Video flowing is handled, and can be efficiently pushes customer video flowing when video uses peak period, and user can retrieve for examination clearly
Smooth video.
Embodiment three
With reference to Fig. 3, a kind of structure diagram of video process apparatus of the embodiment of the present invention three is shown.
Video process apparatus provided in an embodiment of the present invention includes:Thread creation module 301, for being created in thread pool
A plurality of thread;Acquisition module 302, for when the video for receiving multiple client transmission simultaneously retrieves for examination request, acquisition respectively to regard
Frequency modulation sees the corresponding video flowing of request;Searching module 303 is stopped for searching suspend mode thread from the thread pool using described
Dormancy thread handles each video flowing;Sending module 304, for will treated each video stream to corresponding visitor
Family end.
Video process apparatus provided in an embodiment of the present invention, by thread pool, the video flow processing thread created in advance,
The expense that thread is now created when video flowing reaches to resource can be substantially reduced.In addition, video provided in an embodiment of the present invention
Processing scheme flows into each video using suspend mode thread when the video for receiving multiple client transmission simultaneously retrieves for examination request
Row processing, will treated each video stream to corresponding client, and be not limited to use the corresponding certain line of video flowing
Cheng Jinhang video streams.One-to-one model, the embodiment of the present invention is used to use the model pair of multi-to-multi compared with prior art
Video flowing is handled, and can be efficiently pushes customer video flowing when video uses peak period, and user can retrieve for examination clearly
Smooth video.
Example IV
With reference to Fig. 4, a kind of structure diagram of video process apparatus of the embodiment of the present invention four is shown.
Video process apparatus provided in an embodiment of the present invention includes:Thread creation module 401, for being created in thread pool
A plurality of thread;Acquisition module 402, for when the video for receiving multiple client transmission simultaneously retrieves for examination request, acquisition respectively to regard
Frequency modulation sees the corresponding video flowing of request;Searching module 403 is stopped for searching suspend mode thread from the thread pool using described
Dormancy thread handles each video flowing;Sending module 404, for will treated each video stream to corresponding visitor
Family end.
Preferably, the searching module 403 includes:First wakes up submodule 4031, for waking up the first suspend mode thread, leads to
The suspend mode thread being waken up is crossed to handle the video flowing of preset quantity;Second wakes up submodule 4032, for working as the quilt
After the suspend mode thread saturation of wake-up, wake up the second suspend mode thread, and return execute it is described by the suspend mode thread that is waken up to pre-
If the step of video flowing of quantity is handled.
Preferably, carrying out processing to video flowing by thread includes:For each v2v format videos stream, by the video
Stream is converted to the video flowing of rpt formats by thread.
Preferably, described device further includes:Judgment module 405, for will treated each video in the sending module
Stream was sent to after the step of corresponding client, judged whether pending video flowing;Setup module 406, for working as
The judging result of the judgment module is no, then the thread is set as suspend mode thread.
Video process apparatus provided in an embodiment of the present invention, by thread pool, the video flow processing thread created in advance,
The expense that thread is now created when video flowing reaches to resource can be substantially reduced.In addition, video provided in an embodiment of the present invention
Processing scheme flows into each video using suspend mode thread when the video for receiving multiple client transmission simultaneously retrieves for examination request
Row processing, will treated each video stream to corresponding client, and be not limited to use the corresponding certain line of video flowing
Cheng Jinhang video streams.One-to-one model, the embodiment of the present invention is used to use the model pair of multi-to-multi compared with prior art
Video flowing is handled, and can be efficiently pushes customer video flowing when video uses peak period, and user can retrieve for examination clearly
Smooth video.
Embodiment five
With reference to Fig. 5, the structure diagram of a kind of electronic equipment of the embodiment of the present invention five is shown.
Fig. 5 is a kind of structure diagram of electronic equipment 600 for video processing shown according to an exemplary embodiment.
For example, electronic equipment 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console puts down
Panel device, Medical Devices, body-building equipment, personal digital assistant etc..In the embodiment of the present invention, electronic equipment, that is, computer.
With reference to Fig. 5, electronic equipment 600 may include following one or more components:Processing component 602, memory 604,
Power supply module 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614,
And communication component 616.
The integrated operation of 602 usual control electronics 600 of processing component, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing element 602 may include one or more processors 620 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more moulds
Block, convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, with
Facilitate the interaction between multimedia component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown
Example includes the instruction for any application program or method that are operated on electronic equipment 600, contact data, telephone directory number
According to, message, picture, video etc..Memory 604 can by any kind of volatibility or non-volatile memory device or they
Combination realize, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 606 provides electric power for the various assemblies of electronic equipment 600.Power supply module 606 may include power supply pipe
Reason system, one or more power supplys and other generated with for electronic equipment 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between the electronic equipment 600 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of action, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 608 includes a front camera and/or rear camera.When equipment 600 is in operation mode, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when electronic equipment 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or via logical
Believe that component 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, the state for providing various aspects for electronic equipment 600
Assessment.For example, sensor module 614 can detect the state that opens/closes of equipment 600, the relative positioning of component, such as institute
The display and keypad that component is electronic equipment 600 are stated, sensor module 614 can also detect electronic equipment 600 or electronics
The position change of 600 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 600,600 orientation of electronic equipment
Or the temperature change of acceleration/deceleration and electronic equipment 600.Sensor module 614 may include proximity sensor, be configured to
It detects the presence of nearby objects without any physical contact.Sensor module 614 can also include optical sensor, such as
CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with
Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between electronic equipment 600 and other equipment.
Electronic equipment 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.Show at one
In example property embodiment, communication component 616 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 600 can be computer, can also be special by one or more application
Integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device
(PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, are used
In the equipment for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of electronic equipment 600 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of computer readable storage medium, when the instruction in the storage medium is executed by the processor of electronic equipment
When so that electronic equipment is able to carry out method for processing video frequency shown in various embodiments of the present invention.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.For system embodiment
For, since it is basically similar to the method embodiment, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
It defends oneself bright.
Above to a kind of method for processing video frequency provided by the present invention and device, it is described in detail, it is used herein
Principle and implementation of the present invention are described for specific case, and the explanation of above example is only intended to help to understand
The method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, having
There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention
Limitation.
Claims (10)
1. a kind of method for processing video frequency, which is characterized in that the method includes:
A plurality of thread is created in thread pool;
When the video for receiving multiple client transmission simultaneously retrieves for examination request, obtains each video and retrieve for examination the corresponding video of request
Stream;
Suspend mode thread is searched from the thread pool, and each video flowing is handled using the suspend mode thread;
Will treated each video stream to corresponding client.
2. according to the method described in claim 1, it is characterized in that, described flow into each video using the suspend mode thread
Row processing the step of include:
The first suspend mode thread is waken up, the video flowing of preset quantity is handled by the suspend mode thread being waken up;
After the suspend mode thread saturation being waken up when described, wake up the second suspend mode thread, and return execute it is described by being waken up
The step of suspend mode thread handles the video flowing of preset quantity.
3. according to the method described in claim 2, it is characterized in that, the step of being handled video flowing by thread includes:
For each v2v format videos stream, the video flowing is converted to the video flowing of rpt formats by thread.
4. according to the method described in claim 1, it is characterized in that, it is described will treated each video stream to corresponding
After the step of client, the method further includes:
Judge whether pending video flowing;
If it is not, then the thread is set as suspend mode thread.
5. a kind of video process apparatus, which is characterized in that described device includes:
Thread creation module, for creating a plurality of thread in thread pool;
Acquisition module, for when the video for receiving multiple client transmission simultaneously retrieves for examination request, obtaining each video and retrieving for examination and ask
Seek corresponding video flowing;
Searching module flows into each video using the suspend mode thread for searching suspend mode thread from the thread pool
Row processing;
Sending module, for will treated each video stream to corresponding client.
6. device according to claim 5, which is characterized in that the searching module includes:
First wakes up submodule, for waking up the first suspend mode thread, by the suspend mode thread that is waken up to the video of preset quantity
Stream is handled;
Second wakes up submodule, after the suspend mode thread for being waken up described in is saturated, wakes up the second suspend mode thread, and return and hold
The step of video flowing of preset quantity is handled by the suspend mode thread being waken up described in row.
7. device according to claim 6, which is characterized in that carrying out processing to video flowing by thread includes:For every
The video flowing, is converted to the video flowing of rpt formats by a v2v format videos stream by thread.
8. device according to claim 5, which is characterized in that described device further includes:
Judgment module, for the sending module will treated each video stream to corresponding client the step of it
Afterwards, pending video flowing is judged whether;
Setup module is no for the judging result when the judgment module, then the thread is set as suspend mode thread.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:Memory, processor and it is stored in the storage
It is real when the video processing program is executed by the processor on device and the video processing program that can run on the processor
Now the step of method for processing video frequency according to any one of claims 1 to 4.
10. a kind of computer readable storage medium, which is characterized in that be stored at video on the computer readable storage medium
Program is managed, the video processing program realizes video processing according to any one of claims 1 to 4 when being executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710558145.7A CN108810557A (en) | 2017-07-10 | 2017-07-10 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710558145.7A CN108810557A (en) | 2017-07-10 | 2017-07-10 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108810557A true CN108810557A (en) | 2018-11-13 |
Family
ID=64094198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710558145.7A Pending CN108810557A (en) | 2017-07-10 | 2017-07-10 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810557A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113992687A (en) * | 2021-12-28 | 2022-01-28 | 浙江宇视科技有限公司 | Intelligent service cluster scheduling method and device, electronic equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040015566A1 (en) * | 2002-07-19 | 2004-01-22 | Matthew Anderson | Electronic item management and archival system and method of operating the same |
US7240069B2 (en) * | 2003-11-14 | 2007-07-03 | Microsoft Corporation | System and method for building a large index |
CN101122870A (en) * | 2007-09-30 | 2008-02-13 | 金蝶软件(中国)有限公司 | Thread wakening control systems and method |
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
CN103412786A (en) * | 2013-08-29 | 2013-11-27 | 苏州科达科技股份有限公司 | High performance server architecture system and data processing method thereof |
CN104111877A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Thread dynamic deployment system and method based on thread deployment engine |
CN104168446A (en) * | 2014-06-30 | 2014-11-26 | 国家电网公司 | Audio-video signal digital-analog switching system based on message scheduling and hard decoding |
CN106034261A (en) * | 2015-03-17 | 2016-10-19 | 北京视联动力国际信息技术有限公司 | Visual networking service processing method and apparatus thereof |
CN106648874A (en) * | 2016-12-30 | 2017-05-10 | 中国建设银行股份有限公司 | Processing method and device for batched task |
CN106648646A (en) * | 2016-12-13 | 2017-05-10 | 深圳市元征软件开发有限公司 | Method and device for managing threads |
CN106681832A (en) * | 2016-12-23 | 2017-05-17 | 昆明联诚科技股份有限公司 | Video stream distributing method |
-
2017
- 2017-07-10 CN CN201710558145.7A patent/CN108810557A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040015566A1 (en) * | 2002-07-19 | 2004-01-22 | Matthew Anderson | Electronic item management and archival system and method of operating the same |
US7240069B2 (en) * | 2003-11-14 | 2007-07-03 | Microsoft Corporation | System and method for building a large index |
CN101122870A (en) * | 2007-09-30 | 2008-02-13 | 金蝶软件(中国)有限公司 | Thread wakening control systems and method |
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
CN103412786A (en) * | 2013-08-29 | 2013-11-27 | 苏州科达科技股份有限公司 | High performance server architecture system and data processing method thereof |
CN104168446A (en) * | 2014-06-30 | 2014-11-26 | 国家电网公司 | Audio-video signal digital-analog switching system based on message scheduling and hard decoding |
CN104111877A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Thread dynamic deployment system and method based on thread deployment engine |
CN106034261A (en) * | 2015-03-17 | 2016-10-19 | 北京视联动力国际信息技术有限公司 | Visual networking service processing method and apparatus thereof |
CN106648646A (en) * | 2016-12-13 | 2017-05-10 | 深圳市元征软件开发有限公司 | Method and device for managing threads |
CN106681832A (en) * | 2016-12-23 | 2017-05-17 | 昆明联诚科技股份有限公司 | Video stream distributing method |
CN106648874A (en) * | 2016-12-30 | 2017-05-10 | 中国建设银行股份有限公司 | Processing method and device for batched task |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113992687A (en) * | 2021-12-28 | 2022-01-28 | 浙江宇视科技有限公司 | Intelligent service cluster scheduling method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10031575B2 (en) | Method and device for waking up MCU chip | |
CN107454416B (en) | Video stream sending method and device | |
US10462071B2 (en) | Method and device for removing a control relationship between a user account and a device | |
WO2019114724A1 (en) | Camera thumbnail image generating method, mobile terminal, and storage medium | |
CN109658927A (en) | Wake-up processing method, device and the management equipment of smart machine | |
CN105677460A (en) | Application processing method and apparatus | |
EP2330794A1 (en) | Status prompt method and system | |
US20170031640A1 (en) | Method, device and system for starting target function | |
CN105893129A (en) | Processing method and device for application programs in terminal | |
CN110008037A (en) | Message treatment method, device and storage medium | |
CN106714213A (en) | Report trigger method and device for buffer status report (BSR) as well as user terminal | |
CN103905442B (en) | Awakening method and device in a kind of data syn-chronization | |
CN103037195A (en) | Method and device used for setting video call parameters and transmission capacity parameters | |
CN103973542B (en) | A kind of voice information processing method and device | |
US20100291913A1 (en) | Remote control method between mobile phones | |
KR20190016671A (en) | Communication device, server and communication method thereof | |
CN107783790A (en) | terminal awakening method and device | |
TWI707237B (en) | Method for transmitting information, method for displaying information, terminal, server, system and storage medium | |
CA3102425C (en) | Video processing method, device, terminal and storage medium | |
WO2015078349A1 (en) | Microphone sound-reception status switching method and apparatus | |
US12061662B2 (en) | Methods, apparatuses and systems for displaying alarm file | |
CN105094966B (en) | Control the method and device of PC | |
CN108810557A (en) | A kind of method for processing video frequency, device, electronic equipment and storage medium | |
EP3280217A1 (en) | Method and device for establishing service connection | |
CN108984371A (en) | A kind of performance display methods, 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 | ||
CB02 | Change of applicant information |
Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building. Applicant after: Video Link Power Information Technology Co., Ltd. Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY CO., LTD. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |
|
RJ01 | Rejection of invention patent application after publication |