A kind of net cast stream based on B/S frameworks compiles acceptance system and implementation method soon
Technical field
The present invention relates to Streaming Media field, more particularly to a kind of net cast stream based on B/S frameworks compiles acceptance system soon
And implementation method.
Background technology
With merging for the network media and traditional media, simple editing is carried out to conventional video and included, and is published to interconnection
The demand more and more higher of net.As the requirement to video quality is improved constantly, it is desirable to can be accurate to frame to the editor of video.
Industry widespread practice is:Encoder gathers primary signal, is compressed into video flowing;Fast coder decompressing video stream, is supplied
Operating personnel's preview, in place cuts video flowing, removes advertisement, retains the part needed.Preview mode is exactly profit
Constantly advanced with player, retreat to navigate to the frame of needs, it is impossible to show the overall picture of video, operating wastes time and energy.And
And player needs customized development, to ensure that frame is accurate.
B/S frameworks, are exactly browser/server(Browser/server)Framework, is the rise with Internet technology,
To the improved structure of C/S frameworks.User interface is realized using browser and few service logic, realized using server main
Service logic.
If video editing can use B/S frameworks, the operation and management of video are all concentrating on server end, can subtracted significantly
Few management cost and lower deployment cost.But the efficient operation mode of video overall picture can be showed and B/S framework video editings are used
Software there is presently no.
The content of the invention
The technical problem to be solved in the present invention be exactly the need for solving in conventional video editing process repeatedly locating frame lack
Fall into, propose that a kind of net cast stream based on B/S frameworks compiles acceptance system and implementation method soon, saved development cost and client
Lower deployment cost.
In order to solve the above problems, the present invention provides a kind of net cast stream based on B/S frameworks and compiles acceptance system soon, wraps
Acquisition subsystem, code-subsystem, fast volume subsystem and storage subsystem are included, wherein,
The code-subsystem is connected with acquisition subsystem and storage subsystem respectively, the storage subsystem respectively with volume
Decoding subsystem is connected with fast subsystem of compiling;
The acquisition subsystem is used to gather audio-video signal, exports unpressed audio, video data to code-subsystem;
The audio, video data that the code-subsystem is used to export using the acquisition subsystem generates the first live TV stream, the
The index information of two live TV streams, second figure and the first live TV stream and the second live TV stream, and store to the storage subsystem;Its
In, first live TV stream is the live video stream of the normal size for the audio, video data compression that acquisition subsystem is exported,
Second live TV stream is the wide high live video stream for being less than the first live TV stream, and the second figure is the per second of second live TV stream
The thumbnail of one;
The fast subsystem of compiling is used for that corresponding minute scheme by the video time that is sent according to browser, the second schemes and utilizes the
The frame figure of two live TV streams generation is sent to browser, and the editing parameter and index information returned according to browser is to storage subsystem
In the first live TV stream enter edlin and to include;Wherein, the minute figure is the video thumbnail of each minute;
The storage subsystem is used to store first live TV stream, the second live TV stream, second figure and index information.
Preferably, said system also has the characteristics that:
The code-subsystem includes:Coding module and the screen capture module and indices modulo being connected with the coding module
Block, wherein,
The coding module is used to generate the first live TV stream and the second live TV stream, and first live TV stream and second is straight
Broadcast stream to store to the storage subsystem, the timestamp of the frame of video of two live TV streams is corresponded to completely;
The index module is used for the index information for generating first live TV stream and the second live TV stream;
The screen capture module is used to generate second figure.
Preferably, said system also has the characteristics that:
The fast volume subsystem includes:WEB server and the decoder module being connected with the WEB server and fast volume mould
Block, wherein,
The WEB server is used for the video time for receiving browser transmission, sends minute figure, second figure to browser;Connect
The frame figure that decoder module is sent is received, frame figure is sent to browser;And, the editing parameter that browser is sent is received, is sent extremely
It is fast to compile module;
The decoder module is used for according to the frame figure in video time interception second live TV stream in 1 second, and remembers
Timestamp of the record per frame, frame figure is sent to WEB server;
The fast volume module is used for straight to described first in storage subsystem according to the editing parameter and index information
Broadcast and flow into edlin and include.
Preferably, said system also has the characteristics that:
The fast timestamp compiled in the editing parameter that module is returned according to the WEB server is to first live TV stream
Enter edlin and include, wherein, to GOP where the timestamp(Group figure between key frame)Encoding and decoding again are carried out, to two
GOP between individual timestamp is directly replicated.
Preferably, said system also has the characteristics that:
The index information includes:The byte location of each key frame and time in first live TV stream and the second live TV stream
Stamp, and each timestamp of second figure.
In order to solve the above problems, the present invention provides a kind of code-subsystem, including coding module and with the coding
Module connected screen capture module and index module, wherein,
Audio, video data the first live TV stream of generation and second that the coding module is used to export using acquisition subsystem are straight
Stream is broadcast, the timestamp of the frame of video of two live TV streams is corresponded to completely;
The index module is used for the index information for generating first live TV stream and the second live TV stream;
The screen capture module is used to generate second figure according to second live TV stream;
Wherein, first live TV stream is the straight of the normal size for the audio, video data compression that acquisition subsystem is exported
Video flowing is broadcast, second live TV stream is the wide high live video stream for being less than the first live TV stream, and the second figure is described second straight
Broadcast the thumbnail of one per second of stream.
In order to solve the above problems, the present invention provides a kind of fast volume subsystem, including:WEB server and with the WEB
The connected decoder module of server and fast volume module, wherein,
The WEB server is used for the video time for receiving browser transmission, sends minute figure, second figure to browser;Connect
The frame figure that decoder module is sent is received, frame figure is sent to browser;And, the editing parameter that browser is sent is received, is sent extremely
It is fast to compile module;
The decoder module is used for according to the frame figure in video time interception second live TV stream in 1 second, and remembers
Timestamp of the record per frame, frame figure is sent to WEB server;
The fast volume module is used for straight to described first in storage subsystem according to the editing parameter and index information
Broadcast and flow into edlin and include.
In order to solve the above problems, the present invention provides a kind of net cast stream of the multistage preview based on B/S frameworks and compiled soon
The implementation method of acceptance system, including:
Acquisition subsystem gathers audio-video signal, exports unpressed audio, video data to code-subsystem;
The audio, video data that code-subsystem is exported using the acquisition subsystem generates the first live TV stream, second live
The index information of stream, second figure and the first live TV stream and the second live TV stream, and store to the storage subsystem;Wherein, it is described
First live TV stream is the live video stream of the normal size for the audio, video data compression that acquisition subsystem is exported, described second
Live TV stream is the wide high live video stream for being less than the first live TV stream, and the second figure is the contracting of one per second of second live TV stream
Sketch map;
The video time that fast volume subsystem is sent according to browser schemes corresponding minute, second figure and the second live TV stream are generated
Frame figure send to browser, the editing parameter and index information returned according to browser enters edlin and receipts to the first live TV stream
Record;Wherein, the minute figure is the video thumbnail of each minute.
Preferably, the above method also has the characteristics that:
The fast volume subsystem includes:WEB server, decoder module and module is compiled soon;
The video time that the fast volume subsystem is sent according to browser schemes corresponding minute, the second schemes and the second live TV stream
The frame figure of generation is sent to browser, and the editing parameter and index information returned according to browser enters edlin to the first live TV stream
Include with the step of including:
The WEB server receives browser and sends video time, sends to decoder module;
The decoder module was intercepted in second live TV stream in storage subsystem according to the video time in 1 second
Frame figure, and the timestamp per frame is recorded, frame figure is sent to WEB server;
The WEB server sends frame figure and figure of corresponding minute and second figure to browser;
The WEB server receives the editing parameter that browser is sent, and sends to fast and compiles module;
The fast volume module is according to the editing parameter and index information, to first live TV stream in storage subsystem
Enter edlin and include.
Preferably, the above method also has the characteristics that:
Edlin and receipts are entered to first live TV stream according to the editing parameter and index information in the fast volume module
In the step of record,
The fast timestamp compiled in the editing parameter that module is returned according to the WEB server is to first live TV stream
Enter edlin and include, wherein, encoding and decoding again are carried out to the GOP where the timestamp, to the GOP between two timestamps
Directly replicate.
By the invention it is possible to realize it is a kind of schemed based on minute, second figure, the video tour mode of the multistage picture of frame figure, it is non-
Chang Kuaijie, the problem of locating frame repeatedly the need for solving in conventional video editing process.In addition the mode of multistage picture is taken,
B/S frameworks can be utilized, all operations are all carried out on the server, have saved development cost and the lower deployment cost of client.Pass through
The present invention, realizes coding module while exporting normal live TV stream, low bit- rate live TV stream and its thumbnail, index information, saves
To the encoding-decoding process again of normal live TV stream.Because low bit- rate live TV stream and its thumbnail, index information are to compile
Directly obtained during code, if calculate these data from normal live TV stream, must have one to whole live TV stream again
Encoding-decoding process, this can stand in program request file, but can greatly increase in live TV stream complexity.Additionally by this hair
Bright, the thumbnail of generation can be used for Content Management System, eliminate again the process of sectional drawing.
Brief description of the drawings
Fig. 1 compiles acceptance system signal soon for the net cast stream of the multistage preview based on B/S frameworks of the embodiment of the present invention
Figure;
Fig. 2 is the schematic diagram of the code-subsystem of the embodiment of the present invention;
Fig. 3 is the flow chart of the coding of the embodiment of the present invention;
Fig. 4 is the fast volume subsystem schematic diagram of the embodiment of the present invention;
Fig. 5 is the UI of the fast volume subsystem of the embodiment of the present invention(User interface)Schematic diagram;
Fig. 6 enters the schematic diagram of edlin for the fast volume module of the embodiment of the present invention.
Embodiment
Embodiments of the invention are described in detail below in conjunction with accompanying drawing.It should be noted that not conflicting
In the case of, the feature in embodiment and embodiment in the application can mutual reasonable combination.
As shown in figure 1, the net cast stream based on B/S frameworks of the embodiment of the present invention compiles acceptance system, including collection soon
Subsystem, code-subsystem, fast volume subsystem and storage subsystem, wherein,
The code-subsystem is connected with acquisition subsystem and storage subsystem respectively, the storage subsystem respectively with volume
Decoding subsystem is connected with fast subsystem of compiling;
The acquisition subsystem is used to gather audio-video signal, exports unpressed audio, video data to code-subsystem;
The audio, video data that the code-subsystem is used to export using the acquisition subsystem generates the first live TV stream, the
The index information of two live TV streams, second figure and the first live TV stream and the second live TV stream, and store to the storage subsystem;Its
In, first live TV stream is the live video stream of the normal size for the audio, video data compression that acquisition subsystem is exported,
Second live TV stream is the wide high live video stream for being less than the first live TV stream, and the second figure is the per second of second live TV stream
The thumbnail of one;
The fast subsystem of compiling is used for that corresponding minute scheme by the video time that is sent according to browser, the second schemes and utilizes the
The frame figure of two live TV streams generation is sent to browser, and the editing parameter and index information returned according to browser is to storage subsystem
In the first live TV stream enter edlin and to include;Wherein, the minute figure is the video thumbnail of each minute;
The storage subsystem is used to store first live TV stream, the second live TV stream, second figure and index information.
Subsystems are described in detail separately below.
First, acquisition subsystem
Acquisition subsystem can be video frequency collection card or video decoding card.
When the input of acquisition subsystem is unpressed audio-video signal, acquisition subsystem is video frequency collection card;When adopting
When the input of subsystem is the audio-video signal of compression, acquisition subsystem is that video decodes card.
2nd, code-subsystem
As illustrated in fig. 1 and 2, code-subsystem includes
The code-subsystem includes:Coding module and the screen capture module and indices modulo being connected with the coding module
Block.
The coding module is used to generate the first live TV stream and the second live TV stream, and first live TV stream and second is straight
Broadcast stream to store to the storage subsystem, the timestamp of the frame of video of two live TV streams is corresponded to completely;
The index module is used for the index information for generating first live TV stream and the second live TV stream;
The screen capture module is used to generate second figure.
Index information includes but is not limited to:The byte location of each key frame in first live TV stream and the second live TV stream and
Timestamp, and each timestamp of second figure.
Specifically, index information can include:
1st, every second schemes corresponding precise time stamp.
2nd, the timestamp and byte location of each key frame of low bit- rate stream, when being used to frame figure, real-time decoding is used.
3rd, in normal live TV stream each key frame timestamp and byte location, for live TV stream editor.
//5th~ten of wide high usually the first live TV stream of second live TV stream, is the live of low bit- rate
Stream.
As shown in figure 3, the process that code-subsystem is encoded may include following steps:
Step 101, coding module judges whether a certain frame needs coding, if it is, performing step 102 and 103;
Step 102, the frame data are incorporated into normal live TV stream(First live TV stream), and store to sub-module stored, perform
Step 106;
Step 103, the frame is reduced, performs step 104 and 105;
Step 104, the frame of diminution is incorporated into low bit- rate live TV stream(Second live TV stream), and store to sub-module stored, hold
Row step 106;
Step 105, index module judges whether the frame is the first frame of second, if so, then performing step 109;
Step 106, the stream information of the first live TV stream of parsing and the second live TV stream;
Step 107, whether be key frame, if so, then performing next step if judging the frame;
Step 108, the timestamp and byte location of the frame are recorded(That is index information), storage subsystem is stored in, is returned
Perform step 101;
Step 109, screen capture module is schemed the frame of diminution as the second, stores to storage subsystem.
Wherein, above-mentioned steps 102 and 103 are carried out parallel, step 104 and 105 parallel progress.
In the present embodiment, second figure is the first frame per second, in other embodiments, and second figure can also be appointed as per second its
His frame.
3rd, storage subsystem
Storage subsystem is storage device, for storing first live TV stream, the second live TV stream, second figure and index letter
Cease, usually hard disk or NAS storage system or other storage devices.
4th, subsystem is compiled soon
As shown in figure 4, compiling subsystem soon includes:WEB server(The webserver)And be connected with the WEB server
Decoder module and it is fast compile module, wherein,
The WEB server is used for the video time for receiving browser transmission, sends minute figure, second figure to browser;Connect
The frame figure that decoder module is sent is received, frame figure is sent to browser;And, the editing parameter that browser is sent is received, is sent extremely
It is fast to compile module;
The decoder module is used for according to the frame figure in video time interception second live TV stream in 1 second, and remembers
Timestamp of the record per frame, frame figure is sent to WEB server;
The fast volume module is used for straight to described first in storage subsystem according to the editing parameter and index information
Broadcast and flow into edlin and include.
Wherein, minute figure can be obtained using second figure, i.e., selection one is schemed as minute from second figure.
The execution of the subsystem may include following steps:
Step 201, WEB server receives browser and sends video time, sends to decoder module;
Step 202, decoder module is intercepted in second live TV stream in storage subsystem 1 second according to the video time
Interior frame figure, and the timestamp per frame is recorded, frame figure is sent to WEB server;
Step 203, frame figure and figure of corresponding minute and second are schemed and sent to browser by WEB server;
Step 205, WEB server receives the editing parameter that browser is sent, and sends to fast and compiles module;
Step 206, fast module of compiling is straight to described first in storage subsystem according to the editing parameter and index information
Broadcast and flow into edlin and include.
Here it is necessary to explain, operating personnel only cut in video a little can just browse frame figure, the frame figure browsed is only
Account for the very small part of all frames of video;In order to improve storage efficiency, so with a low bit- rate live TV stream(Second live TV stream)
Carry out real-time delta frame figure, pre-save like that rather than second figure.
As shown in figure 5, be UI interface schematic diagrams, wherein, concrete operations flow is:
1st, user's option date, hour, browser shows this hour all minute figure, schemes within all seconds first minute, the
One second all frame figure.
2nd, user's selection minute, browser shows this minute all second figure, shows first second all frame figure.
4 users select the second, and browser shows all frame figures of this second
5th, user's selection frame figure, records the in-edit." editor's point diagram " adds the frame figure.It is then back to 1 or 2.
6th, user clicks on " including ", and fast module of compiling carries out including preservation to the live TV stream between in-edit.
By above-mentioned flow, quickly positioning video it can cut a little, wherein, utilize figure preview large span period minute
Stream, minute figure can be with a frame of interior first second per minute, but not limited to this;Utilize the stream within second figure preview one minute, second figure
Can be the first frame in per second, but not limited to this;Utilize the stream in frame figure preview one second.Cut a little when user chooses(One
Frame)Afterwards, WEB server returns to the corresponding precise time stamp of the frame.
The fast timestamp compiled in the editing parameter that module is returned according to WEB server enters edlin and receipts to the first live TV stream
Record, as shown in fig. 6, to the GOP where the timestamp(Group of Pictures, are one group of figures between two key frames
Picture, each GOP beginnings are a key frames)Encoding and decoding again are carried out, the GOP between two timestamps is directly replicated.So,
Only carry out encoding and decoding again to the GOP for cutting a place, other parts only need to replicate just can be with.
In summary, the low bit- rate stream of the invention produced by code-subsystem for producing frame figure, the contracting of one per second
Sketch map, and video index information is produced, the quick positioning to frame of video can be realized, the burden of operating personnel is reduced;Utilize
B/S frameworks, reduce management and lower deployment cost;
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.