Linux – Save Youtube, Myspace Videos To Desktop. No Software Needed

I’m using Ubuntu, but this method should work on every Linux distribution.

Copy Youtube, Myspace, Metacafe, DailyMotion, Megafile, MegaVideo Videos to Your Desktop
When you watch a video on Youtube and other popular video file sharing sites, Adobe’s Flash Player is temporarily storing the file in your /tmp directory. Once you leave the page or close the tab on your browser, the file is erased and is irretrievable.

Steps to copy file to your desktop
1. Let the video load on your web browser. You can do this for multiple videos on separate tabs at the same time. The progress bar shows you when the file is completely buffered (e.g. saved to your hard drive).
2. Do not close the browser or leave the pages where the videos are buffered!
3. Find the temporary file
From a terminal window, change to your /tmp directory

cd /tmp

3. List all the files in order of last updated.

ls -tlh

The Flash file(s) that you currently have open in your browser will be listed. They usually start with FLA****
Look for the biggest filesize(s) and you’ll clearly see the video file(s) you are looking for.
4. Copy the the files to your desktop (or anywhere else on your drive). Remember to give them a .flv extension for easier playback of the files.

cp tempfilename ~/Desktop/MyFavoriteTVShow1.flv

Use our other Linux tips to then copy these FLV files to your iPod, Sansa, Creative and other portable mp4 players. Linux is the best, enjoy!

Please share your methods and experiences here.

Free Linux Tools – Convert Media Files to Your Sansa Disk

Sansa Media Player
You bought the Sansa Player and you use Linux. Sansa doesn’t come with Linux support. Have no fear. It’s really easy to convert and copy your favorite media files to your portable Sansa Player.

ffmpeg
ffmpeg is a great tool for converting files from one format to another.  The flexibility and capability of this is seemingly endless.  Unfortunately, the manual has about 200 pages at last count, and the trial and error of getting a file into another format requires a lot of patience.

if you don’t already have ffmpeg installed, then use your Linux distro’s package manager and install it with all recommended dependencies.
In Ubuntu and Kubuntu to install ffmpeg type this into your Terminal command prompt

sudo apt-get install ffmpeg

Convert to Sansa Disk Player Format
I’ve used this method to copy countless FLV & AVI files to my daughter’s Sansa Player.

From a Linux command prompt copy in the following code.  Replace INPUT and OUTPUT with the filename you are converting and the name of the output file

ffmpeg -i INPUT -r 29  -ab 96k -qmax 51 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -ar 44100 -g 300 -s 320×240 -aspect 4:3 -ac 2 -f mp4 -y OUTPUT

You’ll see a progress bar working in your Terminal window. Once it’s completed, simply copy the file over to the Sansa Disk directory. (Assuming you’ve connected it to your computer, it should probably be in /media/disk)

Let us know if this tip helped and/or if you have a better method.