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


Rate this Entry

grabbing videos from youtube

Posted 12-09-2011 at 10:20 PM by sumeet inani
Updated 12-09-2011 at 10:34 PM by sumeet inani (explanation)

There are lots of full length 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
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

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 .

Thank You.
Posted in Uncategorized
Views 4404 Comments 1
« Prev     Main     Next »
Total Comments 1


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


All times are GMT -5. The time now is 09:24 PM.

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