Presentation is loading. Please wait.

Presentation is loading. Please wait.

视频处理相关技术. Basic Concept Image Sequence (图像序列) FPS ( Frames Per Second ) Resolution 1080p , 720i , DVD , VCD , HD Compression Codec H.264 、 MPEG Quick.

Similar presentations


Presentation on theme: "视频处理相关技术. Basic Concept Image Sequence (图像序列) FPS ( Frames Per Second ) Resolution 1080p , 720i , DVD , VCD , HD Compression Codec H.264 、 MPEG Quick."— Presentation transcript:

1 视频处理相关技术

2 Basic Concept Image Sequence (图像序列) FPS ( Frames Per Second ) Resolution 1080p , 720i , DVD , VCD , HD Compression Codec H.264 、 MPEG Quick Time 、 Real Video 、 WMV Real-time Captured / Video files Live stream media

3 Frames Single Picture/Still Shot, which is shown as part of a large video or movie Frames are run in succession to produce film or video Pixel Color: 8bits, 10bits, 24bits, … FPS 10-16 、 24 、 30 、 70-80 、 120

4 VCD 352x240(NTSC) 352x288 (PAL) DVD 720x480(NTSC) 720x576(PAL) HDTV 720p, 1080p, 1080i, 60fps/50fps

5 Progressive vs Interlaced 逐行扫描 隔行扫描

6 Video Compression 640x480, 8 bit YUV, 24fps 7.37M bytes/second 26.5G bytes/hour MPEG-1 187K bytes/second

7 720p HDTV, 60fps, progressive 1.3Gbits/second HDTV: 20Mb/s bandwidth Compression by a factor of 70

8 Compression Lossless/Lossy 5 4 2 -> compression -> decompression -> 3 2 0, high error 4.9 4.1 1.9, low error 5 4 2, lossless

9 Codecs H.261, H.263, H.264 (视频编码专家组) MPEG-1,2,..,4 (活动图像编码专家组) DivX, XviD,… Real Video QuickTime

10 Special Requirement Real-time compression -> Real-time decompression Video Meeting Chatting Real-time decompression with High compression rate/ High Quality Movie Film

11 Fields Theory Decoder/Encoder Development DirectShow / Mplayer / FFMpeg, etc Application using OpenCV

12 DirectShow A Simple Movie Player A Simple Camera Player

13 DirectShow Part of DirectX before Direct3D, DirectShow, DirectInput, DirectSound, … Removed to Windows Platform SDK in 2005 COM based Interface based

14 Framework

15 DirectShow Filters The basic building block, which can Read files Get video from a video capture device Code/decode streams Pass data to another filter Pass data to the graphics or sound card Input/Output Pins

16 Filter Graph

17 Program // Create the filter graph hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **) & g_pGraph); // Create the capture graph builder hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC_SERVER, IID_ICaptureGraphBuilder2, (void **) & g_pCapture); hr = g_pGraph->AddFilter(pSrcFilter, L"Video Capture"); hr = g_pCapture->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, pSrcFilter, pGrabber, pNullRender);

18 Tools GraphEditPlus Generate Source Code in C++/C# on GraphEdit DirectShow.net C# development

19 OpenCV Video Files FFMpeg based Cameras DirectShow based

20 Input Source VideoCapture video(0); VideoCapture video(1); VideoCapture video(“hello.avi”);

21 Read Frame cv::Mat frame; video.read(frame);

22 Process Frame Just Like Image Sample Face Detector


Download ppt "视频处理相关技术. Basic Concept Image Sequence (图像序列) FPS ( Frames Per Second ) Resolution 1080p , 720i , DVD , VCD , HD Compression Codec H.264 、 MPEG Quick."

Similar presentations


Ads by Google