LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices


Rate this Entry

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)

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
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'
& 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.
Posted in Uncategorized
Views 10252 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    Well, yes, such method sure is funny and simple
    Posted 12-11-2011 at 02:31 AM by Web31337 Web31337 is offline
 

  



All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration