Watch YouTube and other Flash videos via mplayer (or whatever)

mplayer $(ls -t /tmp/Flash*|head -1)
Many sites with Flash video players will download video files to /tmp on Linux, with temporary filenames like "FlashbGTHm4". These will often play in mplayer, totem, or other movie playing software. You must first navigate to a video page, let it start loading, and then pause playback.

By: mulad
2009-02-19 04:38:40

What Others Think

sigh.. mplayer /tmp/Flash*
khabi · 667 weeks and 4 days ago
There's often more than one "Flash*" file in /tmp from other open browser windows or from stale files left over from crashes
mulad · 665 weeks and 6 days ago
if you are using some compositing window manager you should (probably) add -vo sdl or -vo xv to have it properly displayed on the screen: mplayer $(ls -t /tmp/Flash*|head -1) -vo xv
nadavkav · 661 weeks ago
seofox · 2 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: