grabbing videos from youtube
Posted 12-09-2011 at 09:20 PM by sumeet inani
Updated 12-09-2011 at 09:34 PM by sumeet inani (explanation)
Updated 12-09-2011 at 09:34 PM by sumeet inani (explanation)
There are lots of full length movies (http://www.youtube.com/movies) on youtube . You cannot grab that video as it is drm encrypted . So I decided to use ffmpeg
I took a screenshot of web browser (opera) then opened jpg file in kolourpaint to find out top left & bottom right of video frame in browser . They were found out to be
24,129 & 669,524
which indicated 645x395 video dimension
So , I ran
& switched to browser where video is being streamed.
Voila , I have replica of video on youtube .
File size is big though , 22 seconds of 4.6MB .
I will rip it using http://www.linuxquestions.org/questi...y-dvdrip-3654/
Only drawback is
If your internet speed is slow then there will be moments of still video being buffered which you have to clip while transcoding .
If you have proper connection speed then play video in browser for desired duration & relax.
Tell me if you find this useful .
I am awed by ffmpeg's x11grab functionality because of its lossless encoding (forget file size).
I think , this is bypassing DRM method a.k.a http://en.wikipedia.org/wiki/Analog_hole .
Thank You.
I took a screenshot of web browser (opera) then opened jpg file in kolourpaint to find out top left & bottom right of video frame in browser . They were found out to be
24,129 & 669,524
which indicated 645x395 video dimension
So , I ran
Code:
ffmpeg -f x11grab -s 646x396 -r 30 -i :0.0+24,129 -sameq out.mpg comment : Actually ffmpeg said 'Frame size must be a multiple of 2'
Voila , I have replica of video on youtube .
File size is big though , 22 seconds of 4.6MB .
I will rip it using http://www.linuxquestions.org/questi...y-dvdrip-3654/
Only drawback is
If your internet speed is slow then there will be moments of still video being buffered which you have to clip while transcoding .
If you have proper connection speed then play video in browser for desired duration & relax.
Tell me if you find this useful .
I am awed by ffmpeg's x11grab functionality because of its lossless encoding (forget file size).
I think , this is bypassing DRM method a.k.a http://en.wikipedia.org/wiki/Analog_hole .
Thank You.
Total Comments 1
Comments
-
Well, yes, such method sure is funny and simple
Posted 12-11-2011 at 02:31 AM by Web31337