how to have stream video from my ipcam to matlab

this function it's for stream image. please I would like to have for video stream function. Thank you, best regard
url = 'http://192.168.0.3:8080/shot.jpg';
ss=imread(url);
fh = imshow(ss, 'Parent', handles.axes1);
while(1)
ss=imread(url);
set(fh,'CData',ss);
drawnow;
end

Respuestas (3)

Walter Roberson
Walter Roberson el 24 de Sept. de 2015

1 voto

Note: not all cameras support the streaming frame mode needed for ipcam . You need a different URL than what you show in order to get it to work when the device supports it at all. When devices only support taking jpeg snapshots then ipcam() is not appropriate.

14 comentarios

hi, please, when i run this code
cam = ipcam('http://192.168.1.106:8080/video.mjpeg', '', '', 'Timeout', 20)
i have this error:
Error in ==> newtest at 1
cam = ipcam('http://192.168.1.106:8080/video.mjpeg', '', '', 'Timeout',
20)
please help me . thank you
Try
cam = ipcam('http://192.168.1.3:8080/video.mjpeg', '', '', 'Timeout', 20)
Tiwa Romuald
Tiwa Romuald el 1 de Oct. de 2015
please what is the difference between my code and your on?
The IP address. You used 192.168.1.3 when you were successful in getting single snapshots, but you changed to 192.168.1.106 when you were failing to get a video stream.
Tiwa Romuald
Tiwa Romuald el 3 de Oct. de 2015
hi, this code don't help me. Please I want code whose have the same structure for this but for the stream video. please
What manufacturer and model of IP camera do you have?
Tiwa Romuald
Tiwa Romuald el 6 de Oct. de 2015
I use my smartphone as an ip camera. my ip address change, it's DHCP dependng of the network
You will need to change the IP address in the string every time your phone gets a new address. Unless, that is, you use a program with your phone that automatically notices that its IP address has changes and registers the new address against a DNS host name, and then you could use the hostname in the string instead of the IP address. For example you could use the Dyndns Client.
my smarphone don't have this opton. to give static Ip address to configure Dyndns. but i see this function in matlab webside
cam = ipcam('http://172.28.17.193/video.mjpeg')
please do you know how it's working? when i run it, i have this message:
Error in ==> newtest at 1
cam = ipcam('http://192.186.1.102:8080/video.mjpeg')
please help, it's my projet. how to stream video from ipcamera into matlab
Tiwa Romuald
Tiwa Romuald el 6 de Oct. de 2015
Editada: Tiwa Romuald el 6 de Oct. de 2015
my ip adress is: 192.186.1.102 and port is 8080
https://code.google.com/p/idyndns/ if you are using iPhone
https://play.google.com/store/apps/details?id=com.dyndns if you have Android
Please indicate what kind of smartphone you are using.
Tiwa Romuald
Tiwa Romuald el 8 de Oct. de 2015
I have Samsung Android Smarphone
Walter Roberson
Walter Roberson el 8 de Oct. de 2015
Editada: Walter Roberson el 8 de Oct. de 2015
Then you can use the dyndns application I linked to above, and you can use the ip webcam program listed in previous discussions.
Tiwa Romuald
Tiwa Romuald el 8 de Oct. de 2015
i alredy installed Dyndns. please can you explain or give me an example of full function? because i don't know i process now. thank you. sorry Walter

Iniciar sesión para comentar.

Image Analyst
Image Analyst el 7 de Oct. de 2015

0 votos

Perhaps install the IP camera hardware support package first from the Add-Ons drop down button in the Environment section of the "Home" tab/ribbon. See the instructions here: http://www.mathworks.com/videos/webcam-support-101624.html. Make sure you select ipcam on the listbox that appears:

1 comentario

Tiwa Romuald
Tiwa Romuald el 8 de Oct. de 2015
Hi, please i'm use the android smarphone, i installed the ipcam app inside

Iniciar sesión para comentar.

Jun ady
Jun ady el 14 de Oct. de 2019

0 votos

how to realtime ip camera get snapshot/

Categorías

Más información sobre MATLAB Mobile en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 24 de Sept. de 2015

Respondida:

el 14 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by