Sponsored Content
Full Discussion: How to use YouTube tags
The Lounge What is on Your Mind? How to use YouTube tags Post 302157906 by Perderabo on Sunday 13th of January 2008 02:52:23 PM
Old 01-13-2008
How to use YouTube tags

We have tags to allow embedding a YouTube video in a thread. Here is how they work.... First I need to find the url of a YouTube video that I want to use. Here is one: http://www.youtube.com/watch?v=Do5vj3D-OD4

That "Do5vj3D-OD4" is the key. So I can do this:
[size=+1][b]Rakim by Dead Can Dance[/b][/size]
[youtube]Do5vj3D-OD4[/youtube]
to get this:

Rakim by Dead Can Dance


Sometimes I find a YouTube url that looks like this: http://uk.youtube.com/watch?v=QQ8Fzd3eH0c
I can always change the "uk" (or whatever) in the url to "www" and get the same video. So I can just use the "QQ8Fzd3eH0c" with the youtube tags and it should work. If this doesn't work at first, you might try waiting a little while if the video was recently uploaded. But just in case you really need to use an alternate youtube server, there is syntax for that too. To get this video from the uk server, I can use:
[size=+1][b]Ever Dream by Nightwish[/b][/size]
[youtube=uk]QQ8Fzd3eH0c[/youtube]
to get this:

Ever Dream by Nightwish
[youtube=uk]QQ8Fzd3eH0c[/youtube]

But use this alternate syntax only if you can't get the first syntax to work.

Please note that most videos will involve subject matter that is only appropriate in the forums in the Unix Lounge where rule 3 is not in force.
 

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Nice YouTube Videos

What are they doing? :D kyJHeIqYoLQ ---------- Post updated 11-14-09 at 10:24 AM ---------- Previous update was 11-13-09 at 04:53 PM ---------- Heard of them? Who's them? :b: Totally Hidden Extreme Magic (1/6) mSLMOUOtaQQ Totally Hidden Extreme Magic (2/6) 2bwp2GUrNNc Totally... (3 Replies)
Discussion started by: sparcguy
3 Replies

2. War Stories

Any change on youtube for good?

I could not find the proper forum for this, though reading the headlines, but there is one struggle for normal downloads. I need a hint for the former normal download. About two weeks it may be that the well known youtube platform makes it quite dificult to download some files. So I tried wget,... (2 Replies)
Discussion started by: 1in10
2 Replies

3. UNIX for Beginners Questions & Answers

Problems to install youtube-dl

Hello, I have been experimenting several difficulties to install youtube-dl. On its website, it suggests four different ways of installing it, using curl, wget, pip or brew. I tried the first one following the command that they gave: which resulted in: The second suggestions that tells... (3 Replies)
Discussion started by: colt
3 Replies

4. What is on Your Mind?

YouTube: How to Use Code Tags and Format Posts @UNIX.com

By special request, and long overdue, I have updated our "code tags" video and so now we have: How to Use Code Tags and Format Posts @UNIX.com in 4K https://youtu.be/4BuPvWJV__k (3 Replies)
Discussion started by: Neo
3 Replies
GCAP.1(1p)						User Contributed Perl Documentation						GCAP.1(1p)

NAME
gcap - Youtube closed caption downloader SYNOPSIS
gcap [-i] [-t] [-r <regexp>] [--proxy=<addr> | --no-proxy] [--help] <url> | <video_id> DESCRIPTION
gcap is a command line tool for downloading Youtube closed captions. The downloaded closed captions are saved in SubRip (srt) file format. The srt files are saved as "$videoid_$langid.srt" by default. OPTIONS
--help Print help and exit. --version Print version and exit. -q, --quiet Be quiet. -i, --interactive Open the interactive prompt which can be used to select the items. gcap selects all items by default. See also "INTERACTIVE PROMPT". -t, --title Parse video title and use it in the output filename(s) instead of video ID. The default is no. -r, --regexp=arg Cleanup video title using the specified arg regular expression. The default is "/(w|s)/g". --proxy arg Use arg for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy environment setting. --no-proxy Disable use of HTTP proxy. Overrides both "--proxy" and http_proxy environment settings. INTERACTIVE PROMPT
Use the "--interactive" switch to open the prompt. Note that gcap uses (as of 0.1.0) the Umph::Prompt module for this. Once the prompt opens, type "help" to get a list of commands available to the prompt. EXAMPLES
gcap 0QRO3gKj3qw gcap "http://www.youtube.com/watch?v=0QRO3gKj3qw" Both yield the same results. gcap -ti 0QRO3gKj3qw Same as above two but use video title in the filename and choose which of the closed captions should be downloaded. EXIT STATUS
Exits 0 on success, otherwise 1. FILES
$HOME/.gcaprc, for example: echo "--interactive" >> ~/.gcaprc NOTES
Availability The following error message produced by gcap (or the XML::DOM module) typically indicates that the video does not have any closed captions available for it (URL omitted for brewity): Couldn't parsefile [...] with LWP: no element found at line 1, column 0, byte -1 at [...]/XML/Parser.pm [...] http_proxy gcap depends on XML::DOM which uses LWP::UserAgent to download the data. Note that LWP::UserAgent reads http_proxy environment setting. e.g.: env http_proxy=http://foo:1234 gcap video_id WWW
<http://gcap.googlecode.com/> <http://repo.or.cz/w/gcap.git> AUTHOR
Toni Gundogdu <legatvs at sign cpan org> perl v5.12.4 2011-11-15 GCAP.1(1p)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy