CN101075342A - Method and device for cutting fluid-medium video image - Google Patents

Method and device for cutting fluid-medium video image Download PDF

Info

Publication number
CN101075342A
CN101075342A CN 200610127075 CN200610127075A CN101075342A CN 101075342 A CN101075342 A CN 101075342A CN 200610127075 CN200610127075 CN 200610127075 CN 200610127075 A CN200610127075 A CN 200610127075A CN 101075342 A CN101075342 A CN 101075342A
Authority
CN
China
Prior art keywords
video image
data
medium
cutting fluid
image file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610127075
Other languages
Chinese (zh)
Inventor
张志东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 200610127075 priority Critical patent/CN101075342A/en
Publication of CN101075342A publication Critical patent/CN101075342A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A method for intercepting video image of stream media includes decoding data of stream media to obtain one or multiple frame of original video image data, structuring data head of corresponding image file according to each frame of original video image data and generating the corresponding image file.

Description

Cutting fluid-medium video image method and device
Technical field
The present invention relates to the stream media technology field, particularly cutting fluid-medium video image method and device.
Background technology
Along with popularizing of fast development of computer technology and form (Windows) operating system, the application of Windows stream media technology in the Internet more and more widely.On the basis of stream media technology, produce and developed the Web TV technology.In the use of Web TV, there are many scenes need obtain the realtime graphic of Web TV streaming media video, such as advertisement promotion, previewing programs, monitoring in real time etc., because windows media player (Windows Media Player, WMP) itself does not provide this class interface, so existing technology adopts directly by grabbing the screen instrument or grabbing the realtime graphic that the screen program obtains streaming media video.
As shown in Figure 1, existing technology implementation procedure is as follows: (WMS) obtains stream medium data from streaming media server, decode all stream medium datas and play of Windows Media Player, use is grabbed the screen instrument or is grabbed the screen program and directly intercepts piece image from progress Windows Media Player interface, thereby obtains the realtime graphic of streaming media video.
But, above-mentioned prior art must depend on Windows Media Player and play this Streaming Media, the more system resources because Windows Media Player itself need use a computer, therefore this method is very big to the consumption of system resource, has taken many non-essential system resources.And this method is wanted earlier the decoded stream media data, plays again, intercepts piece image, the process more complicated then from the image of playing.In addition, because Windows Media Player itself does not support multi-process yet, intercept fluid-medium video image simultaneously so can't carry out multichannel.
Summary of the invention
In view of this, the present invention proposes a kind of cutting fluid-medium video image method, in order to reduce the shared system resource of intercepting fluid-medium video image.Another object of the present invention is to propose a kind of cutting fluid-medium video image device.
According to above-mentioned purpose, the invention provides a kind of cutting fluid-medium video image method, this method comprises:
A. stream medium data is decoded, obtain one or the raw video image data of multiframe;
B. according to the data head of the image file of every frame raw video image data configuration correspondence, and generate corresponding image file.
Further comprise from the step of streaming media server receiving stream media data before the steps A.
This method further comprises: the form that sets in advance image file.In step B, construct the data head of described form, and generate the image file of described form.
Further comprise the step of preserving and/or showing described image file after the step B.
This method further comprises: stop stream medium data being decoded.
The present invention also provides a kind of cutting fluid-medium video image device, and this cutting fluid-medium video image device comprises:
The Streaming Media demoder, being used for stream medium data decoded obtains one or the raw video image data of multiframe;
Image data processing module is used for the data head according to the image file of every frame raw video image data configuration correspondence, and generates corresponding image file.
This cutting fluid-medium video image device further comprises: display module is used to show described image file; And/or the Streaming Media client is used for from streaming media server receiving stream media data.
Described image data processing module comprises the formatting module, is used to be provided with the form of described image file; Image data processing module is further used for constructing the data head of the image file of described form, and generates the image file of described form.
This cutting fluid-medium video image device further comprises Streaming Media demoder control module, is used to start, stop the decoding of described Streaming Media demoder to stream medium data.
From such scheme as can be seen, because the present invention decodes to stream medium data, obtain one or the raw video image data of multiframe, then directly according to the data head of the image file of every frame raw video image data configuration correspondence, and the corresponding image file of generation, therefore the present invention has avoided broadcast, from processes such as broadcast interface cut-away view pictures, and these processes take the ample resources of system usually, thereby the present invention greatly reduces shared system resource in intercepting fluid-medium video image process, and has reduced the flow process of intercepting fluid-medium video image to a great extent.And the present invention can decode multiframe raw video image data, and correspondingly obtains the multiple image file, so the present invention can intercept multiple image simultaneously.In addition, the present invention further provides control to decode procedure, can do not need cut-away view as the time stop the decoding, thereby further reduced taking to system resource.
Description of drawings
Fig. 1 is the schematic flow sheet of prior art;
Fig. 2 is the system architecture synoptic diagram of the embodiment of the invention;
Fig. 3 is the schematic flow sheet of the inventive method.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail by the following examples.
Core concept of the present invention is, stream medium data is directly decoded, obtain a frame or the multiframe raw video image data of reduction by decoding, an and data of the structure image file corresponding with every frame raw video image data, then with a data of image file and raw video image data composing images file together, so just obtained the video image that needs, and do not need to decode all stream medium datas and broadcast, system resource saved greatly.
Fig. 2 is the system architecture synoptic diagram of the embodiment of the invention.
With reference to Fig. 2, this system comprises streaming media server 100, is in the cutting fluid-medium video image device 200 of client.Wherein streaming media server 100 is preserved stream medium data, and can provide stream medium data to client according to the request of client, also can initiatively provide stream medium data to client.
After cutting fluid-medium video image device 200 receives stream medium data, stream medium data decoded obtain one or the raw video image data of multiframe, then according to the data head of the image file of every frame raw video image data configuration correspondence, and the generation image file, can also further the generation image file be shown.
Continuation is with reference to Fig. 2, and described video image capture device 200 comprises Streaming Media demoder 20, image data processing module 30, can further include Streaming Media client modules 10, display module 40.
In Fig. 2, the stream medium data that Streaming Media client modules 10 receives from streaming media server 100 then these stream medium datas are sent to Streaming Media demoder 20, and Streaming Media client modules 10 can also be preserved these stream medium datas.
20 pairs of above-mentioned stream medium datas of Streaming Media demoder are decoded, decode to stream medium data in the decoding storehouse of for example using windows media format software kit (Windows Media Format SDK) to be provided, decoding obtains the raw video image data of a frame or multiframe, sends these raw video image data to image data processing module 30 then.In general, frame raw video image data just can obtain piece image.
In cutting fluid-medium video image device 200, can further include Streaming Media demoder control device 25, be used to control Streaming Media demoder 20, for example control decode time at interval, the needs cut-away view as the time start Streaming Media demoder 20, do not need cut-away view as the time, stop Streaming Media demoder 20, thereby can further save system resource.
Image data processing module 30 goes out the data head of predefined image file format according to every frame raw video image data configuration, generates the image file of this form then according to the data head of being constructed and raw video image data.
Be the course of work of example explanation image data processing module 30 below with common bitmap (BMP) form.The BMP formatted file can be divided into four parts: bitmap file head, message bit pattern head, autochromatic plate, array of image data.Wherein, bitmap file head, message bit pattern head and autochromatic plate are equivalent to the said data head in front, and array of image data is equivalent to the said raw video image data in front.In data head, comprise presentation format be BMP format information, file size, from file begin to array of image data side-play amount, be plane number, color table of the bitmap width of unit and height, bitmap or the like with the pixel, wherein some data is fixed, plane number of format information, bitmap etc. for example, some draws according to the raw video image data, and for example bitmap width, height can obtain from the raw video image data.After obtaining data head, data head and raw video image data are combined the image file that has just obtained complete BMP form.
Certainly, image data processing module 30 can also adopt other form, for example joint photographic experts group (JPEG) form, GIF(Graphic Interchange format) (GIF), tagged image file format (TIFF) or the like.
In image data processing module 30, can comprise formatting module 35, be used for being provided with the form of the image file that will generate, for example BMP form, jpeg format etc.Image data processing module 30 is constructed the data head of this form according to image file format set in the formatting module 35, and generates the image file of this form.
Can further include display module 40 in the video image capture device, this display module 40 is shown to the image file that image data processing module 30 is generated on the display of client, so that the user checks.
Fig. 3 is the schematic flow sheet of the embodiment of the invention.With reference to Fig. 3, the method for the embodiment of the invention may further comprise the steps:
Step 101, the stream medium data that Streaming Media client modules 10 receives from streaming media server 100 sends these stream medium datas to Streaming Media demoder 20 then, and can preserve these stream medium datas.
Step 102,20 pairs of above-mentioned stream medium datas of Streaming Media demoder are decoded, and obtain the raw video image data of a frame or multiframe, send these raw video image data to image data processing module 30 then.
Step 103, image data processing module 30 goes out the data head of corresponding predefined image file format according to every frame raw video image data configuration, BMP form for example generates the image file of BMP form then according to the data head of being constructed and raw video image data.
Before step 103, can further include the step that the form of the image file that will generate is set by formatting module 35.So, in step 103, image data processing module 30 is constructed the data head of this form according to image file format set in the formatting module 35, and generates the image file of this form.
Step 104, display module 40 reads the image file that is generated, and then this image file is shown on the display of client, thereby makes the client can see the fluid-medium video image that is intercepted.
In above-mentioned flow process, can further include the control procedure of Streaming Media demoder control module 23 convection current media decoder 20, that is: when needs intercepting fluid-medium video image, Streaming Media demoder control module 25 starts this Streaming Media demoder 20, then 20 pairs of Streaming Medias of Streaming Media demoder are decoded, and image data processing module 30 generates corresponding image file then; When not needing to intercept fluid-medium video image, Streaming Media demoder control module 25 stops described Streaming Media demoder 20, and then Streaming Media demoder 20 stops the decoding to Streaming Media, and follow-up image data processing module 30 does not just generate image file yet.When needs intercepting fluid-medium video image, cutting fluid-medium video image device 200 just can not handled by occupying system resources, thereby can further save the resource of system like this.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of cutting fluid-medium video image method is characterized in that, this method comprises:
A. stream medium data is decoded, obtain one or the raw video image data of multiframe;
B. according to the data head of the image file of every frame raw video image data configuration correspondence, and generate corresponding image file.
2, cutting fluid-medium video image method according to claim 1 is characterized in that, further comprises from the step of streaming media server receiving stream media data before the steps A.
3, cutting fluid-medium video image method according to claim 1 is characterized in that, this method further comprises: the form that sets in advance image file;
In step B, construct the data head of described form, and generate the image file of described form.
4, cutting fluid-medium video image method according to claim 1 is characterized in that, further comprises the step of preserving and/or showing described image file after the step B.
5, cutting fluid-medium video image method according to claim 1 is characterized in that, this method further comprises: stop stream medium data being decoded.
6, a kind of cutting fluid-medium video image device is characterized in that, this cutting fluid-medium video image device comprises:
The Streaming Media demoder, being used for stream medium data decoded obtains one or the raw video image data of multiframe;
Image data processing module is used for the data head according to the image file of every frame raw video image data configuration correspondence, and generates corresponding image file.
7, cutting fluid-medium video image device according to claim 6 is characterized in that, this cutting fluid-medium video image device further comprises:
Display module is used to show described image file; And/or,
The Streaming Media client is used for from streaming media server receiving stream media data.
8, cutting fluid-medium video image device according to claim 6 is characterized in that, described image data processing module comprises the formatting module, is used to be provided with the form of described image file;
Image data processing module is further used for constructing the data head of the image file of described form, and generates the image file of described form.
9, cutting fluid-medium video image device according to claim 6, it is characterized in that, this cutting fluid-medium video image device further comprises Streaming Media demoder control module, is used to start, stop the decoding of described Streaming Media demoder to stream medium data.
CN 200610127075 2006-09-26 2006-09-26 Method and device for cutting fluid-medium video image Pending CN101075342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610127075 CN101075342A (en) 2006-09-26 2006-09-26 Method and device for cutting fluid-medium video image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610127075 CN101075342A (en) 2006-09-26 2006-09-26 Method and device for cutting fluid-medium video image

Publications (1)

Publication Number Publication Date
CN101075342A true CN101075342A (en) 2007-11-21

Family

ID=38976378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610127075 Pending CN101075342A (en) 2006-09-26 2006-09-26 Method and device for cutting fluid-medium video image

Country Status (1)

Country Link
CN (1) CN101075342A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082709A (en) * 2011-01-24 2011-06-01 中国人民解放军国防科学技术大学 Monitoring system for internal network video files based on message interception
CN102685359A (en) * 2012-05-14 2012-09-19 大道计算机技术(上海)有限公司 Method for realizing hardware-acceleration-based video picture on remote desktop
WO2014183566A1 (en) * 2013-11-20 2014-11-20 中兴通讯股份有限公司 Picture playback method and apparatus, computer storage medium, and set top box
CN104936021A (en) * 2015-06-02 2015-09-23 无锡天脉聚源传媒科技有限公司 Video play monitoring method and apparatus
CN111405306A (en) * 2020-03-20 2020-07-10 深圳宇翊技术股份有限公司 PIS streaming media service method based on capturing and secondary encoding after playing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082709A (en) * 2011-01-24 2011-06-01 中国人民解放军国防科学技术大学 Monitoring system for internal network video files based on message interception
CN102685359A (en) * 2012-05-14 2012-09-19 大道计算机技术(上海)有限公司 Method for realizing hardware-acceleration-based video picture on remote desktop
WO2014183566A1 (en) * 2013-11-20 2014-11-20 中兴通讯股份有限公司 Picture playback method and apparatus, computer storage medium, and set top box
CN104661059A (en) * 2013-11-20 2015-05-27 中兴通讯股份有限公司 Picture playing method and device as well as set-top box
CN104936021A (en) * 2015-06-02 2015-09-23 无锡天脉聚源传媒科技有限公司 Video play monitoring method and apparatus
CN111405306A (en) * 2020-03-20 2020-07-10 深圳宇翊技术股份有限公司 PIS streaming media service method based on capturing and secondary encoding after playing

Similar Documents

Publication Publication Date Title
US7817180B2 (en) Video processing in a multi-participant video conference
CN1254952C (en) Efficient transmission and playback of digital information
US8726325B2 (en) Method and apparatus for scheduling delivery of video and graphics
CN101075342A (en) Method and device for cutting fluid-medium video image
US7626637B2 (en) Method and apparatus for capturing full-screen frames
CN1434386A (en) Division distributed storage method of program source based on cluster video server
JP2004533736A5 (en)
CN101076089A (en) Method for displaying captions
CN1859565A (en) Method for broadcastin stream media caption and its stream media player
CN110996160B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN1455372A (en) Screen sharing and synchronous recording method based on IP network
CN1859567A (en) Digital TV decoding method and system
CN1968395A (en) Viewing window switching control method and system for video image
CN1917571A (en) Digital broadcast television system, set top box, and method of displaying image of starting up TV
CN1131637C (en) Method of generating data stream index file and using said file accessing frame and shearing lens
CN111343475B (en) Data processing method and device, live broadcast server and storage medium
CN1992880A (en) Methods and systems for content preview of streaming media
CN1570906A (en) Projection playing system and playing method thereof
CN1889663A (en) Method for transcribing opening picture
CN111683286A (en) Novel video redirection method
WO2020051495A1 (en) Multi-panel display
CN1264348C (en) Method for organizing and interpreting data broadcast content in digital television system
CN101656851B (en) Method and device for displaying program information
CN111147928A (en) Video processing method, server, terminal and system
CN1890744A (en) Data storage medium storing multiple video data with different formats and apparatus for reproducing data from data storage medium

Legal Events

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

Application publication date: 20071121