Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture a YouTube Video

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.

http://blog.mmone.de/2013/12/howto-get-the-rtsp-streaming-url-of-a-youtube-video/

VideoCapture vCap = new VideoCapture("rtsp://r2---sn-a5m7zu7d.c.youtube.com/CiILENy73wIaGQmQKAHy11zSfRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp");

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 ?