Ask Your Question
1

How to play UDP multicast transport stream (not RTP!)

asked Jul 7 '14

shlem gravatar image

Hi. How to play a live network transport stream by opencv in Windows7?

VideoCapture cap;

cap.open("rtp://234.1.2.3:1234); //works nice

but

cap.open("udp://234.1.2.3:1234); //does not work

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Jul 8 '14

abelis gravatar image

I've gotten UDP to work before for me(openCV 2.4.9). check your quotes there, looks like you are missing one. Then make sure that you are not opening the stream up elsewhere (like vlc on the side).

Preview: (hide)
0

answered Jul 8 '14

There is nu UDP support inside OpenCV, but there do exist interesting additional libraries like this one that could easily solve your problem and can operate besides OpenCV.

Preview: (hide)

Comments

This is nice, but my TS contains not jpeg frames, but H264 video

shlem gravatar imageshlem (Jul 8 '14)edit

Hmm no way of converting to frames first?

StevenPuttemans gravatar imageStevenPuttemans (Jul 8 '14)edit

Question Tools

Stats

Asked: Jul 7 '14

Seen: 3,284 times

Last updated: Jul 08 '14