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 want to play this song but I don't want to see the video.

Is there a music player that can do that and please tell me how to do it?

the youtube link is just an example, don't put too much interest in it.

share|improve this question
add comment

5 Answers 5

I havent found any player so far. But a script like the following works if you know the address of the actual video (and see zetahs answer on that topic):

#!/usr/bin/env python

import sys
import gobject
import pygst
import gst

mainloop = gobject.MainLoop()
player = gst.element_factory_make("playbin2", "player")
fakesink = gst.element_factory_make("fakesink", "fakesink")
player.set_property("video-sink", fakesink)
player.set_property("uri", sys.argv[1])

With the example video you have given, this would be launched like this (when saved as playme.py):

python playme.py "http://o-o.preferred.hansenet-dus1.v24.lscache2.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Cratebypass%2Ccp&fexp=902906%2C903805%2C910010%2C913601&itag=22&ip="
share|improve this answer
add comment

Musictube Install Musictube is a YouTube music player.

enter image description here

  • With it you can listen to millions of songs on YouTube in a convenient way, much like using a traditional player.
  • Musictube plays album tracks in their original order and integrates album covers, artist pictures and lyrics.

It's available in the Software Centre (only on Ubuntu +11.10, AFAIK), it costs 8.99€ (11.99 $), but it's worth it. Nevertheless, you can try it before buying it. For more info, go to the developer's website.

share|improve this answer
Worth noting from the link that this appears to be available in the Ubuntu Software Center, and it is also cross-platform. –  WarriorIng64 Nov 13 '11 at 2:13
Oh, I didn't realise of that, thanks for the info. –  Alfredo Hernández Nov 13 '11 at 10:52
I can't find it in the software center. And the links aren't valid. –  Alvar Nov 13 '11 at 11:05
I think it's not available in the Natty USC. However you can buy it from the developer's web. –  Alfredo Hernández Nov 13 '11 at 11:18
You can test it from the developer's web and also buy it. What you can't do is buying it within Ubuntu Natty. –  Alfredo Hernández Nov 13 '11 at 15:14
show 1 more comment

I don't think there is audio player that will try to resolve direct YouTube links. Streaming URL is inside that web page and if scraped with some script it will last for 6 hour (currently).

If no one gives you valid answer, and if you would like script on which you pass that link as argument and get back streaming url, just drop a comment

share|improve this answer
add comment

If you use Firefox as your web browser, there is a Greasemonkey script called KeepTube that will let you download mp3 files from YouTube videos. Install the Greasemonkey Firefox extension from here and then install the KeepTube userscript from here and then close and reopen your YouTube tab. Maybe this will help you, and hopefully I'm posting my suggestion correctly :)

share|improve this answer
I don't use firefox, it's too slow. I use Google Chrome. –  Alvar Feb 26 '12 at 10:37
add comment
youtube-dl http://www.youtube.com/watch?v=KABUQxllGbk
mplayer -vo none KABUQxllGbk.webm

The programs youtube-dl and mplayer can do what you want, from the command line. You can install them both from the repositories. Then, when you want to listen to a video, you can download it using youtube-dl, and play it using mplayer. The "-vo none" command line output on mplayer will suppress the video (by forcing mplayer to not load a video driver), so it will just play the audio from the file.

Optionally, you can specify a filename and output directory for the file you download using the -o flag, so your files aren't labeled so cryptically.

share|improve this answer
I notice you are using a specific YouTube URL in your answer, which is just two lines of terminal commands with no description of how it works. Can you please elaborate on what exactly your answer does? –  WarriorIng64 Nov 13 '11 at 3:30
If I may, I think what Serge means is this: the first command downloads the video from YouTube, and the second command plays the song. –  Shawn Nov 13 '11 at 16:20
Thanksk Ovangle for the clarification. –  Serge Hallyn Nov 28 '11 at 18:37
add comment

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.