Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to loop this video from YouTube, it's OK if it reloads every time although it would be nicer (and perhaps illegal ) to cache the video.

are there any suggestions on software that can do this?

share|improve this question
up vote 5 down vote accepted

You could create an HTML document and then just open it when you want this. Open your favorite editor and paste these contents into it. Save it anywhere, and then double-click the saved file to open in a Web browser.


Or just paste this in a browser and make a bookmark.
share|improve this answer
could you clarify the command for looping a video? (there are no commercials as well! woho! :)) – Alvar Dec 8 '11 at 21:54
@Alvar Google has a great page on it: – user8290 Dec 9 '11 at 1:51

Do you need it to actually be in the browser while it's playing?

If not, one thing you can do is:

  • Install youtube-dl
  • Open a terminal (ctrl-alt-t), and use youtube-dl to download the video you want to loop. Something like:

WARNING: paste the Youtube URL for the video you need, don't use this example.

  • Play the downloaded .flv file with any video player capable of looping a video. I know vlc can do this (go to the playlist view for looping controls) but others might also work. Note that other video players may need you to install some additional codecs in order to be able to play .flv files.
share|improve this answer

you can play any youtube video with vlc. vlc <url of the video>

if you go into vlc preferences, all preferences, and then playlist, tick the box repeat current item

then it will loop any video you play.

after you do that go to the terminal, and play your specific video:


it will keep looping. :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.