필터 지우기
필터 지우기

Playing/processing video stream

조회 수: 4 (최근 30일)
Olle Axelsson
Olle Axelsson 2015년 7월 7일
답변: Florian Enner 2016년 5월 14일
Hi!
I'm using mplayer to receive and play a h264 video stream on my windows 7 computer. My question is how to get this video stream into matlab/simulink (R2013b) for video processing? I'm using the following command to receive and play the stream in mplayer:
mplayer.exe -fps 200 -demuxer h264es ffmpeg://tcp://10.71.99.212:2278*
Thanks in advance
Regards Olle

답변 (2개)

Dinesh Iyer
Dinesh Iyer 2015년 7월 7일
Hi Olle,
It is currently not possible to read a H.264 stream into MATLAB. However, it is possible to read MMS streams using the From Multimedia File Block or the vision.VideoFileReader system object. Here is the link to the documentation that might help: From Multimedia File Block
Hope this helps.
Dinesh

Florian Enner
Florian Enner 2016년 5월 14일
I've uploaded a submission that supports streaming h264 (among other formats) from ip cameras. It supports R2013b and does not require any toolboxes. It currently only supports MATLAB code, not Simulink.
% Connect to stream
cam = HebiCam('<address>');
% Continously display latest image
figure();
fig = imshow(getsnapshot(cam));
while true
set(fig, 'CData', getsnapshot(cam));
drawnow;
end
You can get it from FileExchange or Github

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by