VideoCapture a YouTube Video

asked 2014-11-21 06:54:44 -0500

HyK gravatar image

Hi All,

How do I get the stream url for a youtube video so that it can be captured using VideoCapture in opencv java.

I tried the following way.

VideoCapture vCap = new VideoCapture("rtsp://");

But I get the following error.

[rtsp @ 0x7fe1ea060600] method SETUP failed: 461 Unsupported Transport

[IMGUTILS @ 0x107d665e8] Picture size 0x0 is invalid

[IMGUTILS @ 0x107d66600] Picture size 0x0 is invalid

Is there a way to capture youtube videos ?

edit retag flag offensive close merge delete