Streaming Youtube Videos to Mplayer - Linux - BASH
Uploader Comments (metalx1000)
Top Comments
-
oh sir, please take my endless gratitude. this is awesome!
(especially on this laptop: flash makes my cpu get to 95°C!)
All Comments (20)
-
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
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 3 months ago
@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.
metalx1000 3 months ago
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 7 months ago
@WASDsweden: Yup that's why your not suppose to code and past code :)
metalx1000 7 months ago
Great Stuff as usual !!!!! Thanx !!!
johnnylifeson 7 months ago
@johnnylifeson: No problem.
metalx1000 7 months ago