Streaming Youtube Videos to Mplayer - Linux - BASH

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,650
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Link to this comment:

Share to:

Uploader Comments (metalx1000)

  • For those of you who are excited about a flash-less youtube browser and use Ubuntu, check out Totem Movie Player (2.30.2) it comes pre-installed with Ubuntu and has this capability built into the sidebar. Just pop out the sidebar and choose "Youtube" from the drop-down menu!

  • @cmommsen1: Yes, I've noticed that option before, but I've never seen it work. I'm running Totem version 2.23.0.

    I can search and it brings up the thumbnails for the videos, but I get an error when I try to play the videos:

    "The playlist 'Title Of Video' could not be parsed. It might be damaged."

    I just assumed that Youtube changes to much for the totem in the repose to keep up with. 

  • I had some problems with the script copied from your site. Quotes had been converted into other kinds of quotes for instance. Here is one that worked for me:

    mplayer -cookies -cookies-file /tmp/ytcookie.txt $(youtube-dl -gf 34 --cookies=/tmp/ytcookie.txt "youtubeurl")

  • @WASDsweden: Yup that's why your not suppose to code and past code :)

  • Great Stuff as usual !!!!! Thanx !!!

  • @johnnylifeson: No problem.

Top Comments

  • oh sir, please take my endless gratitude. this is awesome!

    (especially on this laptop: flash makes my cpu get to 95°C!)

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • More awesome idea! Building a custom interface for mplayer in python using the pymplayer modules :D pypi.python.org/pypi/PyMPlayer­/ Might have to try that...

  • This is very cool, works great (Flash sucks on my computer, even though it's a good comp). Is there any way to pipe that into a program like smplayer instead though so I can have controls? I can't figure out how to give smplayer or gnome-mplayer the cookies file. I checked the man pages but don't see anything useful.

    By the way, if you can't get youtube-dl to work recently, try phihag's fork, he fixed it (don't know when it will be fixed in the main version, hopefully soon). YT updates...

  • I'm gonna use this script with mplayer -novideo to listen to musicvideos :) Having youtube minimized just listening to a musicvideo that shows a static image takes 20% CPU on my laptop.

  • cheers from Denmark:))) Thanks

  • Oooh oooh! XD A YouTube player without the website would be /very/ cool, especially if you mixed it with Python and webkit. A new thing to try~

    You are so much creative than I, Kris. xD

  • Very awesome vid, thanks

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more