CN101668206B - Multichannel video decoding display method and system based on H.264 - Google Patents
Multichannel video decoding display method and system based on H.264 Download PDFInfo
- Publication number
- CN101668206B CN101668206B CN 200910063986 CN200910063986A CN101668206B CN 101668206 B CN101668206 B CN 101668206B CN 200910063986 CN200910063986 CN 200910063986 CN 200910063986 A CN200910063986 A CN 200910063986A CN 101668206 B CN101668206 B CN 101668206B
- Authority
- CN
- China
- Prior art keywords
- video
- window
- playing
- piece
- carry out
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention relates to the technical field of video decoding, in particular to multichannel video decoding display method and system based on H.264. The multichannel video decoding display method comprises the following steps: selecting a playing window, selecting a video file to be played, judging whether the video playing state of the current window is stopped or not, if so, executing the next step, if not, stopping playing video in the window, then executing the next step, obtaining a path and a name of a selected video file, displaying the path and the name on appointed positions of a screen, creating a corresponding playing process used for displaying and playing the video file at the selected window position according to a selected window number, judging whether a new video file to be played exists or not, if so, executing the first step, if not, executing the next step, and executing a playing process function. The invention realizes synchronous playing and respective control of the multichannel video, can realize synchronous playing and displaying and respective control of multichannel video code streams, is convenient to look up and compare the video file and achieves the motion detection alarm function.
Description
Technical field
The present invention relates to the video code and decode technical field, relate in particular to a kind of multichannel video decoding display method and system based on H.264.
Background technology
In recent years, along with digital encoding and decoding technique and development of internet technology, people are more and more to the demand of multi-media signal, and the quality of requirement is also more and more higher.Multimedia application video encoding standard as a new generation, technically, H.264 adopt as infra-frame prediction, unified VLC symbolic coding, high accuracy, multimodal estimation, integer transform coding, layered encoded grammer or the like technology, H.264 this makes is all obtaining success aspect code efficiency, picture quality, network-adaptive and the anti-error code.These advantages must make it be widely used in popular domains such as digital broadcasting and TV, video mobile communication, digital video monitoring and Streaming Medias simultaneously.
At present the 264 format video players that exist all can only be play one road video, if also need repeat playing when needing the difference of two video pictures of contrast, perhaps show simultaneously with a plurality of displays.It is extremely inconvenient to operate like this, if can be implemented in multichannel broadcast simultaneously and control on the broadcast interface, has just solved the problems referred to above, and both handled easily was more directly perceived simultaneously.
Summary of the invention
The purpose of this invention is to provide a kind of multichannel video decoding display method and system based on H.264, play and control to be implemented on the broadcast interface simultaneously multi-channel video.
For achieving the above object, the present invention adopts following technical scheme:
A kind of multichannel video decoding display method based on H.264 may further comprise the steps:
1. select broadcast window,, be defaulted as the 1st broadcast window if there are a plurality of broadcast windows selective;
2. the video file of selecting desire to play;
3. whether the video broadcasting condition of judging current window if then carry out next step, otherwise stops the in progress video of this window earlier for stopping, and carries out next step then;
4. obtain the path and the title of selected video file, be shown in assigned address on the screen;
5. create the corresponding thread of playing according to the window slogan of selecting, be used for playing the display video file at selected the window's position;
6. judge whether and have new video file to play, be then to carry out step 1., otherwise carry out next step;
7. carry out and play thread function.
7. step also can be implemented in the function of in the process of video playback the piece of appointment being carried out motion detection, further comprises following substep:
(a) whole image is divided into 11 * 9 pieces, video image is that the CIF form then is set at 32 * 32 pixels with the size of each piece, then the size of each piece is set at 64 * 64 pixels when video image is the D1 form;
(b) select the piece that to detect, the input threshold value;
(c) selected piece is detected, import a new two field picture as the current frame image data, if first two field picture then is stored as the former frame view data simultaneously, the Y value of all pixels in the piece that the desire of current frame image and former frame image is detected is poor, and the summation that takes absolute value, obtain the absolute difference that adds up;
(d) this is added up absolute difference and preset threshold relatively, absolute difference does not surpass threshold value if add up, then carry out next step, thereby then be 200 corresponding piece to be reddened to reach the purpose of alarm the V component assignment of all pixels in the corresponding blocks if the absolute difference that adds up has surpassed threshold value;
(e) whether selected to stop to detect, be then to change step (g), otherwise carry out step (f).
(f) the storage present image carries out step (c) as the former frame view data.
(g) finish these pieces are detected.
A kind of multichannel video decoding display system based on H.264 comprises:
Decoding submodule (1) receives 264 bit stream datas of importing (5), is used for finding the beginning of frame sequence after reading the data of video file, and calls the decoding storehouse and decode, and export yuv data (6) and give conversion submodule (2) behind the two field picture of having decoded;
Conversion submodule (2) receives the described yuv data (6) from described decoding submodule (1) output, and is converted into RGB data (7), exports described RGB data (7) then and gives buffer management submodule (3);
Buffer management submodule (3), store the described RGB data (7) of described conversion submodule (2) output into video data buffer, then time-out is read file decoding when this buffering area is full, continue to read file decoding after data are removed in buffering area again;
Video display module (4) is used for every certain time interval the RGB data (8) of buffering area being taken out demonstration.
The present invention has the following advantages and good effect:
1) can realize that the multi-channel video code stream is play simultaneously shows and control respectively that the contrast video file facilitates consultation;
Motion detection alarm function when 2) having realized video playback.
Description of drawings
Fig. 1 is the flow chart of the multichannel video decoding display method based on H.264 provided by the invention.
Fig. 2 is the flow chart of the motion detection of the multichannel video decoding based on H.264 provided by the invention.
Fig. 3 is the structured flowchart of the multichannel video decoding display system based on H.264 provided by the invention.
Embodiment
The invention will be further described in conjunction with the accompanying drawings with specific embodiment below:
Multichannel video decoding display method based on H.264 provided by the invention specifically adopts following technical scheme, referring to Fig. 1, may further comprise the steps:
1. select broadcast window,, be defaulted as the 1st broadcast window if there are a plurality of broadcast windows selective;
2. the video playback file of selecting desire to play;
3. whether the video broadcasting condition of judging current window if then carry out next step, otherwise stops the in progress video of this window earlier for stopping, and carries out next step then;
4. obtain the path and the title of selected video file, be shown in assigned address on the screen;
5. create the corresponding thread of playing according to the window slogan of selecting, be used for playing the display video file at selected the window's position;
6. judge whether and have new video file to play, be then to carry out step 1., otherwise carry out next step;
7. carry out and play thread function.
Multichannel video decoding display method based on H.264 provided by the invention, can be implemented in the function of in the process of video playback the piece of appointment being carried out motion detection, and can be in picture the piece of appointment have under the situation of motion and provide warning information, referring to shown in Figure 2, specifically comprise the steps:
(a) whole image is divided into 11 * 9 pieces, video image is that the CIF form then is set at 32 * 32 pixels with the size of each piece, then the size of each piece is set at 64 * 64 pixels when video image is D1 form (pal mode is 720 * 576);
(b) select the piece that to detect, the input threshold value;
(c) selected piece is detected, import a new two field picture as the current frame image data, (if first two field picture then is stored as the former frame view data simultaneously), the Y value of all pixels in the piece that the desire of current frame image and former frame image is detected is poor, and the summation that takes absolute value, absolute difference (SAD) obtains adding up;
(d) this is added up absolute difference (SAD) and preset threshold relatively, if SAD does not surpass threshold value, then carry out next step, thereby then be 200 corresponding piece to be reddened to reach the purpose of alarm the V component assignment of all pixels in the corresponding blocks if SAD has surpassed threshold value;
(e) whether selected to stop to detect, be then to change step (g), otherwise carry out step (f).
(f) the storage present image carries out step (c) as the former frame view data.
(g) finish these pieces are detected.
The present invention provides a kind of multichannel video decoding display system based on H.264 simultaneously, referring to shown in Figure 3, comprise as lower module: decoding submodule 1, conversion submodule 2, buffer management submodule 3, video display module 4, decoding submodule 1 receives 264 bit stream datas 5 of input, be used for after reading the data of video file, find the beginning of frame sequence, and call the decoding storehouse and decode, and output yuv data 6 is given conversion submodule 2 behind the two field picture of having decoded, conversion submodule 2 receives the yuv data 6 of self-demarking code submodule 1 output, and be converted into RGB data 7, export RGB data 7 then and give buffer management submodule 3, the RGB data 7 that buffer management submodule 3 will be changed submodule 2 outputs store video data buffer into, then time-out is read file decoding when this buffering area is full, continue to read file decoding after data are removed in buffering area again, video display module 4 takes out the RGB data in the buffering area 8 every certain time interval and shows.
Multichannel video decoding display system based on H.264 provided by the invention, interface operation is easy, can realize that the multi-channel video code stream is play simultaneously to show and control respectively.Multichannel is play simultaneously and is made things convenient for the user to contrast video pictures, and the interpolation of motion detection function makes that system can provide the effect that information reaches alarm when the piece of appointment has motion in video pictures, under the background that H.264 obtains extensive use, the market application foreground of the multichannel video decoding display method based on H.264 provided by the invention is also very wide.
Claims (1)
1. one kind based on H.264 multichannel video decoding display method, it is characterized in that, may further comprise the steps:
1. select broadcast window;
2. the video file of selecting desire to play;
3. whether the video broadcasting condition of judging current window if then carry out next step, otherwise stops the in progress video of this window earlier for stopping, and carries out next step then;
4. obtain the path and the title of selected video file, be shown in assigned address on the screen;
5. create the corresponding thread of playing according to the window slogan of selecting, be used for playing the display video file at selected the window's position
6. judge whether and have new video file to play, be then to carry out step 1., otherwise carry out next step;
7. carry out and play thread function;
7. step further comprises following substep:
(a) whole image is divided into 11 * 9 pieces, video image is that the CIF form then is set at 32 * 3 pixels with the size of each piece, then the size of each piece is set at 64 * 64 pixels when video image is the D1 form;
(b) select the piece that to detect, the input threshold value;
(c) selected piece is detected, import a new two field picture as the current frame image data, if first two field picture then directly is stored as simultaneously the former frame view data, the Y value of all pixels in the piece that the desire of current frame image and former frame image is detected is poor, and the summation that takes absolute value, obtain the absolute difference that adds up;
(d) this is added up absolute difference and preset threshold relatively, absolute difference does not surpass threshold value if add up, then carry out next step, thereby then be 200 corresponding piece to be reddened to reach the purpose of alarm the V component assignment of all pixels in the corresponding blocks if the absolute difference that adds up has surpassed threshold value;
(e) whether selected to stop to detect, be then to change step (g), otherwise carry out step (f);
(f) the storage present image carries out step (c) as the former frame view data;
(g) finish these pieces are detected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910063986 CN101668206B (en) | 2009-09-15 | 2009-09-15 | Multichannel video decoding display method and system based on H.264 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910063986 CN101668206B (en) | 2009-09-15 | 2009-09-15 | Multichannel video decoding display method and system based on H.264 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101668206A CN101668206A (en) | 2010-03-10 |
CN101668206B true CN101668206B (en) | 2011-12-14 |
Family
ID=41804607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910063986 Expired - Fee Related CN101668206B (en) | 2009-09-15 | 2009-09-15 | Multichannel video decoding display method and system based on H.264 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101668206B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102221871A (en) * | 2010-04-19 | 2011-10-19 | 英业达股份有限公司 | Portable electronic device and power saving method thereof |
CN102006498B (en) * | 2010-12-10 | 2012-05-30 | 北京中科大洋科技发展股份有限公司 | Safe broadcast monitoring method based on video and audio comparison |
CN103680551A (en) * | 2012-09-21 | 2014-03-26 | 深圳市快播科技有限公司 | Player and method thereof for simultaneously playing multiple videos |
CN103237185A (en) * | 2013-05-15 | 2013-08-07 | 无锡北斗星通信息科技有限公司 | System for carrying out broadcasting control on ATSC (Advanced Television System Committee) signal at television station end |
CN110381322B (en) * | 2019-07-15 | 2023-03-14 | 腾讯科技(深圳)有限公司 | Video stream decoding method and device, terminal equipment and storage medium |
CN114979795A (en) * | 2022-06-01 | 2022-08-30 | 南京甄视智能科技有限公司 | Multi-channel video stream display system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557724A (en) * | 1993-10-12 | 1996-09-17 | Intel Corporation | User interface, method, and apparatus selecting and playing channels having video, audio, and/or text streams |
CN1889686A (en) * | 2006-07-14 | 2007-01-03 | 北京时越网络技术有限公司 | Method for simultaneous displaying multi-channel video information |
CN1997160A (en) * | 2006-01-06 | 2007-07-11 | 腾讯科技(深圳)有限公司 | A multi-channel program receiving and displaying system and method |
-
2009
- 2009-09-15 CN CN 200910063986 patent/CN101668206B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557724A (en) * | 1993-10-12 | 1996-09-17 | Intel Corporation | User interface, method, and apparatus selecting and playing channels having video, audio, and/or text streams |
CN1997160A (en) * | 2006-01-06 | 2007-07-11 | 腾讯科技(深圳)有限公司 | A multi-channel program receiving and displaying system and method |
CN1889686A (en) * | 2006-07-14 | 2007-01-03 | 北京时越网络技术有限公司 | Method for simultaneous displaying multi-channel video information |
Also Published As
Publication number | Publication date |
---|---|
CN101668206A (en) | 2010-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112822537B (en) | Method, apparatus and medium for adapting video content to display characteristics | |
US9124858B2 (en) | Content processing apparatus for processing high resolution content and content processing method thereof | |
CN101668206B (en) | Multichannel video decoding display method and system based on H.264 | |
JP6562992B2 (en) | Trick playback in digital video streaming | |
CN101682793B (en) | Creating three dimensional graphics data | |
US7953315B2 (en) | Adaptive video processing circuitry and player using sub-frame metadata | |
CN102598657B (en) | Video playback device and control method for a video playback device | |
EP1871098A2 (en) | Processing of removable media that stores full frame video & sub-frame metadata | |
CN101431690B (en) | Image processing apparatus, image processing method | |
US20100329640A1 (en) | Recording/Reproducing Apparatus | |
CN101771853A (en) | Method and device for playing conference content | |
CN102598684A (en) | Video signal processing device and video signal processing method | |
CN102510537B (en) | Playing system and playing method | |
CN101778287B (en) | Digital television navigation method, system and device | |
CN201887875U (en) | Hybrid high-definition network hard disk type video recorder | |
CN102647613B (en) | Internet protocol video coding box | |
CN201919104U (en) | Network hard disk video tape recorder with embedded NVR (Network Video Recorder) | |
CN201813499U (en) | Digital set top box with multimedia movie playing function | |
CN1956493A (en) | Multi-channel broadcast Tv signal receiving device | |
CN102547176A (en) | Image display device, multimedia image stream display device and method | |
CN117135406A (en) | Method for seamlessly and continuously playing multiple videos | |
JP3202555U (en) | Broadcast signal generator | |
Saxena et al. | Analysis of implementation strategies for video communication on some parameters | |
CN203537521U (en) | Set-top box with timed reminding function | |
KR100703002B1 (en) | Signal process apparatus capable of selective encoding and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111214 Termination date: 20140915 |
|
EXPY | Termination of patent right or utility model |