Playing/processing video stream

1 次查看(过去 30 天)
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