April 11, 2009

Downloading Videos From Youtube

Downloading videos from Youtube becomes necessary at times. There are a number of ways of doing this.

Using UTube Ripper

Please check it out yourselves : Shainky's Blog: UTube Ripper.

Click here to see how to use UTube Ripper.

When I tried using it, the download did take place, but the file was not being saved where it was supposed to be. After downloading, clicking Open Directory button, copying the file from there to some other location, say /home (if necessary) and then converting it into a .flv file by browsing for the file and clicking Convert would have been enough.

I faced many problems:

1. Utube Ripper got hanged for sometime.

2. The downloaded video was not to be found under Open Directory.

If you still want to try, then click this link.

Using DownThemAll

This is actually an addon for Firefox. All you have to do is install it, and right click the URL of the video you want to download, and select one of the two options- Save form target with DownThemAll! and Start saving form target with dTa OneClick! I installed it, to see whether it works or not. I tried both, but in either case, the entire webpage was getting saved on my computer.

Using Keepvid

So, after this, I tried Keepvid. But this did not yield any result. No download!

Using Youtube-dl

Then I came to know about youtube-dl. Thanks to Roshan Singh. I installed it using the sudo apt-get command. Then, for downloading any video,

youtube-dl URL of the video on youtube

For example, for downloading the video from this URL, all you have to do is, open the command prompt, and type:

varsha@varsha-laptop:~$ youtube-dl http://www.youtube.com/watch?v=kkNxbyp6thM&eurl
=http%3A%2F%2Fwww.orkut.co.in%2FFavoriteVideos.aspx%3Frl%3Dls%26uid%3D154613
2647030
6794496&feature=player_embedded

[1] 20403
[2] 20404
varsha@varsha-laptop:~$ Retrieving video webpage... done.
Extracting URL "t" parameter... done.
Requesting video file... done.
Video data found at http://v22.lscache5.googlevideo.com/videoplayback?id=9243716
f2a7ab613&itag=5&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&ip=210.212.5.88&signature=9A354F0808BF814CA32A32020703F2254E82B27F.1FDDB2AFCB91C57
DA42628018E11002DEF723C5C&sver=3&expire=1239546926&key=yt1&ipbits=0

Retrieving video data: 100.0% ( 2.20M of 2.20M) at 23.95k/s ETA 00:00 done.
Video data saved to kkNxbyp6thM.flv
varsha@varsha-laptop:~$


This really works! It'll take a few minutes, and there you are!


video


Copy-Paste From Directory /tmp

I got yet another solution, which requires just a simple copy-paste. Click the following link, and enlarge the picture, to have a closer look.
http://blogs.sun.com/abhishekgupta/entry/download_youtube_or_similar_using

But make sure you buffer the video first.



Conversion Between OpenOffice.org Document Formats

We sometimes need to convert one format of OpenOffice.org to
another. This isn't a very tedious
job, when you have a proper
convertor. One such useful tool is
Unoconv. You can install it from
System-> Administration-> Synaptic Manager
. I tried
downloading the package from:


http://packages.debian.org/lenny/all/unoconv/download

This package can also be installed from Synaptic Package Manager.
After you have installed, you
can start converting between different
file formats, using the command given below:


varsha@varsha-laptop:~$ unoconv -f pdf some-document.odt


You can replace the given formats with the formats you want to
convert.


For more information on how to use this conversion tool, refer the
following URLs.


1. http://dag.wieers.com/home-made/unoconv/

2. http://svn.rpmforge.net/svn/trunk/tools/unoconv/docs/unoconv.1.txt



Conversion From One Audio Format To Another Using Mencoder

There are certain problems while playing certain audio file formats. Or, in other words many of us, including me, prefer mp3 file format generally. Otherwise it is ok, as long as the file plays well.

Well, now coming to conversion from one format to another, there is a convertor, so to say, named Mencoder. In Ubuntu, you can install this package using the sudo apt-get command.

After installing, conversion from, for example, .mp3 to .mp4 can be done as:

mencoder input_file.mp3 -ovc frameno -oac mp3lame -of rawaudio -lameopts cbr:br=128 -o output_file.mp4

Replace your input_file and output_file by the name of the file you are going to convert and the name for the new file.

Here, basically I needed to do this conversion for playing a .rm video file, the video of which wasn't supported in any of the players I have- VLC, MPlayer, Movie Player, etc.. (although, even after conversion, the video did not work, and I have to find a solution for it).

I used the same command, replacing the extensions (.mp3 and .mp4 as given above) of the input and output filenames with .rm and mp3 respectively.

varsha@varsha-laptop:~$ mencoder mit-6.002-lec-mit-10250-09sep2003-0000-220k.rm -ovc frameno -oac mp3lame
-of rawaudio -lameopts cbr:br=128 -o mit-6.002-lec-mit-10250-09sep2003-0000-220k.mp3


Now, I have the same file in three different formats, .rm, .mp3 and .mp4.



Looking Up IPs

We sometimes face the problem of not knowing the IP of a certain hub, for may be, using DC++. I always face this problem. There is a command for this. Just type it in the terminal, and you will get the required IP. I got the following result when I typed in the command:

varsha@varsha-laptop:~$ nmblookup rc983
querying rc983 on 10.0.255.255
10.0.5.226 rc983<00>

Here, 10.0.5.226 is the IP of the hub rc983, and 10.0.255.255 is the Broadcast Address.

You can also use nmblookup -b rc983. In this case, the query is sent to the given broadcast address, although the output is the same.

varsha@varsha-laptop:~$ nmblookup -b rc983
querying rc983 on 10.0.255.255
10.0.5.226 rc983<00>