LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Capturing video from you tube (http://www.linuxquestions.org/questions/linux-general-1/capturing-video-from-you-tube-689687/)

davholla 12-10-2008 06:14 PM

Capturing video from you tube
 
I tried to do using the instructions here :-

http://www.paganini.net/index.cgi/li...uring_flv.html

However there is no file in the cache even though I watched something all the way through.

I used this code

Code:

ffmpeg -i "$(find ~/.mozilla -regex '.*Cache.*' -a -not -regex \
  '.*_CACHE_.*' -printf '%T+ %p\n' | \
  sort -n | awk '{ print $2 }' | xargs file | \
  grep -i "Video" | tail -1 | awk -F : '{ print $1 }')" \
  -vcodec msmpeg4v2 -b 200 -ab 64 -ar 22050 -s 320x240 \
  /tmp/video.avi


kenneho 12-11-2008 02:23 AM

Hi.

I don't recall the details, but I remember reading that it should be possible simply to go to http://<something>.youtube.com or something to download the videos.


kenneho

htnakirs 12-11-2008 02:28 AM

You don't need to "capture" a youtube video.
Offhand I don't recall the path of the firefox cache, find it first. Probably it is a hidden folder under the home directory of the user.
This is what I do ( I use Opera under wine):
First empty the existing cache in the browser.
Then allocate sufficient space in the browser for the cache - a 100 MB is a bare minimum considering the average size of flv videos.
Then keep the cache folder open in Konqueror.
Then visit the youtube site and the video you want to view.
Monitor the cache folder as soon as a particular video has been completely downloaded. Sorting the cache folder on size will ease the process. Usually the largest file is the flv file. In Opera since the cache files do not retain their original extension, I use a script to rename the files - after copying them to another folder.

For best results, avoid browsing other sites while doing this.

Unless you have a good reason to convert to avi, the VLC Media player will play flv videos well.

kenneho 12-11-2008 02:34 AM

Or do like this: http://www.youtube.com/watch?v=tLrv0i1Vyj8 :)

Junior Hacker 12-11-2008 05:52 AM

I usually view the YouTube video in Windows, then I go to C:\Documents and Settings\Your user name\Local Settings\Temporary Internet Files (after enabling "show hidden and system files" in "folder options/view"), and click on "Size" to see the largest file size where the video is usually at. It is usually called "getvideo" or similar. I copy it to my data storage partition.
I rename it to "getvideo.mov" adding the Quick time video extension .mov. Because I install k-lite codecs in Windows, I can then view my personal copy of the YouTube video clip with Media Player classic.

The same applies if you can retrieve the file through your current browser's temporary internet files cache.

Junior Hacker 12-11-2008 05:56 AM

I don't know what the YouTube video clip link posted in the post before mine says, I'm on dial up and don't do YouTube at this particular location, I only do YouTube when stealing wireless access off the street or when I'm at my second residence which has "high speed" high speed internet.

i92guboj 12-11-2008 06:04 AM

Once you have viewed the video it remains in /tmp/Flash<whatever>

Or, just use youtube-dl: http://www.arrakis.es/~rggi3/youtube-dl/

Or, install the gnash or swfdec plugins, then right click the video to save it.

ErV 12-11-2008 06:13 AM

Have anyone tried to search?

Read this:
http://www.linuxquestions.org/questi...rabber-688927/

Also, there are a lot of sites that allow to save video from youtube.
One of them is tubeleecher.com. But I bet there at least dozen of other similar sites - just search for them.

Junior Hacker 12-11-2008 06:21 AM

Quote:

Originally Posted by i92guboj (Post 3371516)
Once you have viewed the video it remains in /tmp/Flash<whatever>

Or, just use youtube-dl: http://www.arrakis.es/~rggi3/youtube-dl/

Or, install the gnash or swfdec plugins, then right click the video to save it.

Quote:

youtube-dl is a small command-line program to download videos from YouTube.com. It requires the Python interpreter, version 2.4 or later, and it's not platform specific.
This requires you to install more useless software that will inevitably bogg down your system.
Why install more software with possible malicious add-ons when the damn video is already downloaded onto your hard drive when you watched it once???????

Junior Hacker 12-11-2008 06:27 AM

And whatever is on "your" hard drive, is YOURS. No need to worry about licence infringment bullshit.
This is the method I use to get an mp3 of a song that can only be found at the artist's web site.

i92guboj 12-11-2008 06:28 AM

Quote:

Originally Posted by Junior Hacker (Post 3371525)
This requires you to install more useless software that will inevitably bogg down your system.

You imply that my advise is useless because youtube-dl has dependencies. But 90% of the distros I know will install python for one or another thing, so... Sorry, your point doesn't make any sense. Plus I said another couple of solution you can use if you don't like the first one, including the one you repeated.

Quote:

Why install more software with possible malicious add-ons when the damn video is already downloaded onto your hard drive when you watched it once???????
Well, youtube-dl is open source. I don't know what are you talking about. Another non-valid point. If you look at the source, it's simple enough for you to be able to review it. What "malicious" software are you talking about?!?

You also don't seem to understand that not everyone likes to view videos online in youtube. And if you don't view it online, guess what: the video is not downloaded in /tmp/. That's what youtube-dl is all about, like it or not, it's as valid option as any other.

Junior Hacker 12-11-2008 06:33 AM

Quote:

Originally Posted by i92guboj (Post 3371532)
You imply that my advise is useless because youtube-dl has dependencies. But 90% of the distros I know will install python for one or another thing, so... Sorry, your point doesn't make any sense. Plus I said another couple of solution you can use if you don't like the first one, including the one you repeated.



Well, youtube-dl is open source. I don't know what are you talking about. Another non-valid point. If you look at the source, it's simple enough for you to be able to review it. What "malicious" software are you talking about?!?

You also don't seem to understand that not everyone likes to view videos online in youtube. And if you don't view it online, guess what: the video is not downloaded in /tmp/. That's what youtube-dl is all about, like it or not, it's as valid option as any other.

ONE WAY OR ANOTHER:
You have to download it to have it. Why go through all the extra steps and bogg down your system when all you have to do is watch the video and it's yours?

Junior Hacker 12-11-2008 06:37 AM

If you desire to have a YouTube video, chances are you aquired the need to have the video because you seen it. If you seen it, you already have it.
Braindead wannabe!

i92guboj 12-11-2008 06:38 AM

Quote:

Originally Posted by Junior Hacker (Post 3371537)
ONE WAY OR ANOTHER:
You have to download it to have it. Why go through all the extra steps and bogg down your system when all you have to do is watch the video and it's yours?

Because not everyone has the netscape plugin installed?
Because not every browser supports it?
Because linux does not only run on x86 and x86_64, the only two supported arches by adobe?
Because you simply don't like propietary and buggy binary blobs?

There are more reasons. But I don't think we need to extend this conversation anymore. It's offtopic. The OP wanted to know how to get flash videos and we are telling alternatives, in plural. Yours is valid. Mine are as well.

By the way, you don't have to bogg down your system. In fact, I feel that netscape-flash bogs it way more down than having a simple script that has less than 1k lines in python, which is what youtube-dl is. A plain text file.

Junior Hacker 12-11-2008 06:46 AM

Quote:

Originally Posted by i92guboj (Post 3371541)
Because not everyone has the netscape plugin installed?
Because not every browser supports it?
Because you simply don't like propietary and buggy binary blobs?

There are more reasons. But I don't think we need to extend this conversation anymore. It's offtopic. The OP wanted to know how to get flash videos and we are telling alternatives, in plural. Yours is valid. Mine are as well.

By the way, you don't have to bogg down your system. In fact, I feel that netscape-flash bogs it way more down than having a simple script that has less than 1k lines in python, which is what youtube-dl is. A plain text file.

I hope you realize you're challenging a genius, do you actually think you have the best solution?


All times are GMT -5. The time now is 03:53 AM.