Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.09.01;
Скачать: CL | DM;

Вниз

Берем видео сигнал   Найти похожие ветки 

 
pasha676   (2003-05-06 10:22) [0]

Где бы почитать (посмотреть примеры) на тему воспроизведения и капчунга видео через "чистый" DirectShow (без компонент). Созрел для отхода от компонентов. Хотелось бы изучить предмет самомому.


 
Владимир Васильев ©   (2003-05-06 10:43) [1]

С DirectShow всё как обычно, - будь то воспроизведение видео, аудио, videocapture и т.д. - нужно построить нужный граф.
Как построить граф руками см. : http://www.flipcode.com/tutorials/tut_dshow03.shtml


 
pasha676   (2003-05-06 11:44) [2]

Как всегда меня выручаешь. Большое спасибо!!!

ЗЫ Что граф надо построить я понимаю. Не понимаю как и как организовать вывод видео в нужную область экрана (окно, панель, канвас и т.д.). Пошел читать.


 
Владимир Васильев ©   (2003-05-06 12:18) [3]

> вывод видео в нужную область :

GraphBuilder : IGraphBuilder ;
MediaControl : IMediaControl ;
BasicAudio : IBasicAudio ;
BasicVideo : IBasicVideo ;

MediaSeeking : IMediaSeeking ;
VideoWindow : IVideoWindow ;
MediaEventEx : IMediaEventEx ;

GraphState : TGraphState;

L,T,W,H : Integer;
DstHandle : HWnd;

.........

if FAILED(GraphBuilder.QueryInterface(IID_IVideoWindow, VideoWindow)) then Exit;

if FAILED(GraphBuilder.QueryInterface(IID_IBasicVideo, BasicVideo)) then Exit;

BasicVideo.get_VideoWidth(W);
BasicVideo.get_VideoHeight(H);

VideoWindow.put_Owner(DstHandle);
VideoWindow.put_WindowStyle(WS_CHILD or WS_CLIPSIBLINGS);
VideoWindow.SetWindowPosition(L,T,W,H);

//specifies a window to receive mouse and keyboard messages from the video window.
( DstHandle) > вывод видео в нужную область :

GraphBuilder : IGraphBuilder ;
MediaControl : IMediaControl ;
BasicAudio : IBasicAudio ;
BasicVideo : IBasicVideo ;

MediaSeeking : IMediaSeeking ;
VideoWindow : IVideoWindow ;
MediaEventEx : IMediaEventEx ;

GraphState : TGraphState;

L,T,W,H : Integer;
DstHandle : HWnd;

.........

if FAILED(GraphBuilder.QueryInterface(IID_IVideoWindow, VideoWindow)) then Exit;

if FAILED(GraphBuilder.QueryInterface(IID_IBasicVideo, BasicVideo)) then Exit;

BasicVideo.get_VideoWidth(W);
BasicVideo.get_VideoHeight(H);

VideoWindow.put_Owner(DstHandle);
VideoWindow.put_WindowStyle(WS_CHILD or WS_CLIPSIBLINGS);
VideoWindow.SetWindowPosition(L,T,W,H);

//specifies a window to receive mouse and keyboard messages from the video window.
VideoWindow.put_MessageDrain(DstHandle);



Страницы: 1 вся ветка

Текущий архив: 2003.09.01;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.015 c
1-1432
opoloXAI
2003-08-18 10:10
2003.09.01
RichEdit.Lines.Count > 460


14-1560
Всеволод Соловьёв
2003-08-12 11:23
2003.09.01
Глюкобаги форума


4-1722
AlexRush
2003-06-21 18:47
2003.09.01
NtQuerySystemInformation - Как получить PID ?


4-1720
RIMMER
2003-06-28 00:27
2003.09.01
Горизонтальная прокрутка в ListBox


1-1456
Jacob
2003-08-18 12:24
2003.09.01
Сортировка TListView