From the documentation, "The location parameter, in conjunction with the locationRadius parameter, defines a circular geographic area and also restricts a search to videos that specify, in their metadata, a geographic location that falls within that area. The parameter value is a string that specifies latitude/longitude coordinates."
Looks like you can add a location to your video in the Advanced Settings panel in the video settings: http://i.imgur.com/AtnTu7F.png
As far as I can tell, location is not added by default (I tried uploading a video that has embedded location data and that location was not added to YouTube; I would have to add the location manually).
That something required a small amount of code or effort is valuable information. And actually, among hackers, usually positive.
Compare to "a wrapper".
So, how many videos are typically geotagged on Youtube? Most of them, or just those uploaded from phones and tablets with GPS?
I guess I should take a walk more often.
1. right-click -> "Copy Link Location"
2. middle click to paste the link into you shell
3. run "youtube-dl" on the URL(s)
4. watch the videos in whatever video player you want
You will have to update youtube-dl every time (see the "-U" option) Google decides to change the obfuscation. Also, you may want to try the --list-extractors and --extractor-descriptions options, to see the long list of sites that are supported, which includes support for things like youtube playlists searches.
These days I'll get to uploading it to GitHub, maybe even turn it into a Firefox extension/Android app. Though it's a little specific to my use case: I have a quality sound system attached to my desktop computer so it doesn't feel right to listen to stuff on my laptop/phone when there is such a great setup lying around. And setting up SBCL and Shelly just to run Common Lisp scripts is a little bit of an overkill.
Sorry for the off-topic, just felt like sharing this bit of my computer-aided laziness :)
youtube-dl -o - $SOME_URL > FIFO &
youtube-dl: error: using output template conflicts with using title, video ID or auto number
$ mkfifo FIFO
$ youtube-dl -f best -o - 6h9vr_xwTj4 > FIFO &
$ vlc - < FIFO
Though I assume you can also stream this at full speed by doing a `mktemp` and dumping the data into the file. In my experience, VLC handles files which are still being appended data just fine, but it'll freak out if it reaches EOF before the end of the stream. If your /tmp is tmpfs, which it is everywhere AFAIK, the only difference is that the video is being downloaded in full speed. Alternatively, if your downlink is fast (for instance, 4MiB/s) and you don't mind the slight delay, you can as well download the file wholly as mentioned in one of the ancestor comments.
It also happens that my /tmp is physically allocated.
And named pipes really and truly work differently (though there can still be buffering).
That said, no joy (though I tracked down the issue above -- configfile setting conflicting with commandline parameters, somewhat annoyingly).
Depending on what you're watching, youtube-dl can suck up a lot of space.
Mind the -F and -f options -- these list and select video quality. I find '43' for YouTube (640x360) is usually sufficient for instructional materials (lectures/presentations).
Jokes aside, the sad thing is that YouTube would most likely have locations set by IP. So I'm certain the distances are off. At best this thing can tell me videos from my city. Still a neat hack.
A few comments:
- It could use a couple of smaller radius settings though (1km and 100m). Nothing that Chrome Console can't fix but not everyone is a developer.
- The intro page is a bit confusing, at first glance it might seem like an Android application, "Google Play" button being most prominent.
- The search bar is a bit short, if you just type the number and street name it's likely you'll end up in a different country or state.
> Specify keyword and radius to get a result near what your want.
Nearly all real-estate walk-throughs, but found a couple of neat things after wading through those.