Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

3 Answers 3

up vote 4 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.

<html>
<head>
    <title>Music</title>
</head>
<body>
    <embed
        src="http://www.youtube.com/v/pmfHHLfbjNQ?autoplay=1&loop=1"
        type="application/x-shockwave-flash"
        wmode="transparent"
        width="425"
        height="350">
    </embed>
</body>
</html>

Or just paste this in a browser and make a bookmark.

http://www.youtube.com/v/pmfHHLfbjNQ?autoplay=1&loop=1
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: code.google.com/apis/youtube/player_parameters.html –  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:
youtube-dl http://www.youtube.com/watch?v=QH2-TGUlwu4

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:

vlc http://www.youtube.com/watch?v=pmfHHLfbjNQ

it will keep looping. :)

share|improve this answer

Your Answer

 
discard

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.