You are not logged in.
yturl is a simple YouTube media URL grabber. I became annoyed with bloated tools to get YouTube videos, so decided to write my own.
AUR: https://aur.archlinux.org/packages.php?ID=59216
GitHub: https://github.com/cdown/yturl
As an example of its use, you can use it with mplayer like so:
mplayer -cache 8192 "$(yturl 'gWJIQm9qH-w')"
You can even use it with the full URL to the video -- any of the following will work:
yturl 'http://www.youtube.com/watch?v=gWJIQm9qH-w&list=FLHlOsDJ_cK_ujbNLPOyZtRQ&index=1&feature=plpp_video'
yturl 'http://www.youtube.com/v/gWJIQm9qH-w'
yturl 'youtu.be/gWJIQm9qH-w'
...or any other valid YouTube video URL. It doesn't support RTMP streams (used for television shows and movies), and I don't intend to add it in future due to the needless complexity.
Feedback appreciated!
Last edited by neurolysis (2012-05-30 10:35:34)
Offline
Good idea, thanks for this.
I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!
Offline
Thanks; this replaced youtube-dl for me. Will be using this for all my
YouTube watching.
Registed Linux User 483618
Offline
Let's get rid of the "Bear in mind..." part in the man page, alright? Man pages are meant to be crisp
A link to the details of what the "itag" magic means would be helpful, and it seems to me numbers don't really make much sense here.
I've always found the `-t' option to youtube-dl helpful, but youtube-dl does seem bloated in several ways. I'm thinking of some simple format strings like `%u' for URL and `%t' for title, etc., if that makes sense to you.
This silver ladybug at line 28...
Offline
Will clear up and have information on itag specifics in the man page for next release. Thanks for the feedback!
Offline
It would be incredibly awesome if your tool somehow managed to deal with playlists as well
Offline
Thanks. This is a nice script! I did something similar back in the days but it stopped to work at some point because YouTube changed its API. Hopefully you're prepared to maintain this script...
+1 for playlist support and clarification about the itag business.
Last edited by aurinkolasit (2012-01-14 11:36:47)
Offline
Thanks for the feedback. Itag stuff is now more clearly documented on Git. I'm not sure how I should best deal with playlists, however. Perhaps I could create a local playlist with the URIs and then tell yturl to output that, however I'm not sure how I feel about that...
Offline
v1.02 now out, massive code quality rewrite. I also now only support using the yturl-git package.
Playlists are possible, I am planning to make a separate tool to do this soon. :-)
Last edited by neurolysis (2012-05-11 22:16:45)
Offline
Very nice, thanks! This works great in a script using ffmpeg to convert from the flash.
Offline
pkgrel bumped for v1.03
Offline
pkgrel bumped for v1.04
Offline
Will bump to 1.05 tomorrow, fixes 403 issue (YouTube silently introduced required signature CGI param). For now you can just repull from git.
Last edited by neurolysis (2012-10-06 00:12:57)
Offline
Hi, this is neurolysis (I now use cdown everywhere).
v1.13.0 is out. This release adds the `-q` option to allow specifying that you want high/medium/low quality -- no more need to manually specify itags. Some syntax has changed, please see README.md.
Please let me know if you have any suggestions.
Offline
Thank you for this!
Offline
Doesn't mplayer needs cookies to play some youtube videos?
I'm asking because with youtube-dl sometime that is necessary.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Doesn't mplayer needs cookies to play some youtube videos?
I'm asking because with youtube-dl sometime that is necessary.
I haven't experienced this. Perhaps this is for RTMP.
Offline
Dependency on Python 2 removed -- we now support Python 3. :-)
Python 2 support also remains, yturl works natively on both Python 2 and 3. The PKGBUILD automatically detects whether to use python3 or python2 as the dependency, if you have both, it will use python3.
Last edited by cdown (2013-04-12 13:47:06)
Offline