VideoCapture a YouTube Video [closed]

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

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.

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 ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-13 10:50:27.207249