Showing posts with label Youtube. Show all posts
Showing posts with label Youtube. Show all posts

Saturday, March 29, 2014

Do you know how to extract subtitles (Captions) from a YouTube video?

The word "subtitle" is the prefix "sub-" (below) followed by "title". In a YouTube video a "caption" is only available on video where the owner has added them, and on certain video where YouTube automatically provides them. Subtitles exist in two forms: open subtitles are 'open to all' and cannot be turned off by the viewer; closed subtitles are designed for a certain group of viewers, and can usually be turned on/off or selected by the viewer.

Note: The terms captioning and subtitling may be confusing to some readers. Both terms relate to the addition of onscreen text that renders dialogue.  (Sorry! I am not going to list the differences between them, rather i will focus on how to extract them from a YouTube video.)

Subtitles can be used in a lot of ways! You can watch the video in slow mode to learn English, if it is not your mother tongue. You can use video tutorials step by step instructions to learn technique while keeping note. if Subtitles supported by most video players. You can also save the document key value for all videos.

Here are some of the ways you can extract the captions or subtitles from a YouTube video:

Method 1: By Using 4K Video Downloader 
4K Video Downloader allows to download video, audio and subtitles from YouTube in high-quality and as fast as your computer and connection will allow. Please, follow few simple steps to download the video with subtitles from YouTube.

Step 1: Download and install the 4K Video Downloader
Download and install the 4K Video Downloader application from the download page. It's available for Mac OS X, Windows and Linux.

Step 2: Copy the YouTube video link from your address bar in the browser

Step 3: Press "Paste Url" button in 4K Video Downloader application.
Step 4: Choose the quality of video and specify that you want to download subtitles and select a language. After that, click "Download".

Method 2: Extracting the XML file of the video
  • Open the video page in Chrome browser (or any other browser that provides HTTP debugging/Developer Tools) and pause the video
  • Right click anywhere on the page, and click on Inspect Element OR hit the F12 function key.
  • Click on Network tab
  • Under the Network tab look for an item called timedtext. 
  • Right click on it and open that file in a new tab.
  • An xml file containing subtitles with their timestamps (the stuff inside of < >) opens up.

To get rid of the timestamps and just have the plain transcript, here is what you have to do:
  • Open up Microsoft Excel
  • Copy paste the subtitles inside one cell
  • Press Ctrl+H
  • In the replace tab type <*> in the Find What textbox and leave the Replace With  textbox  blank, and click Replace All. The search expression will remove all tags within the original text.
Update: The original URL pattern (struck through) appears to have changed. The subtitles can be fetched only if captions are manually transcribed i.e. not automatically generated

Reading text in a XML file is for machines. To view just the text in a XML (or HTML file), Just paste the XML content in EditPlus and use the Ctrl + Shift + P keyboard shortcut to convert. With other editors (You can try this in Notepad++ & Visual Studio) that support regular expressions, you can paste the XML content into it and use the expression <(.|\n)*?> with the Find and Replace option to get just plain text.


Method 3: By Using Google2SRT
Google2SRT is a tool that can download "not embedded" subtitles (Closed Captions - CC) from YouTube/Google Video videos (if those are present) and convert them to a standard format (SubRip - SRT) supported by most video players. 

On this window you can load a subtitles file from YouTube/Google Video by writing video URL, and choose which subtitles want to convert and where you want to save them.



Now you can enjoy watching your favorite subscribed videos by downloading them with subtitles!

Sources: https://support.google.com/youtube 
             google2srt.sourceforge.net
             http://www.4kdownload.com/

Hey! My friends, If you like my post you can save it using "Save Page as PDF" button below and you can even share them to your friends with social networking buttons provided below this post.

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo

Monday, January 27, 2014

Have Some Fun With Google, Gmail and YouTube

Many of us are aware of search engine giant "Google", email service "Gmail", and video-sharing website "YouTube". Today I am going to write about some of the fun we can do with Google, Gmail and YouTube. As there are lots of fun things we have done with Google and tried with various searches with google but here are some more funny things you probably haven't given a try once. Just try share it with your friends.

Fun with Google
Google has added some Easter eggs to its products and services. Check these out!
  1. Search "Do a barrel roll" or "z or r twice" on only Google and the screen will do a 360 spin.
  2. Searching for "askew" or "tilt" using Google will cause the search results to be displayed at a slight angle.
  3. Searching for "zerg rush" causes a bunch of Google "o"s to attack the result page and eventually destroy it but the user can fight back by clicking them. After destroying the results the "o"s then arrange themselves into two capital 'G's.
  4. Searching for "kerning" will increase the spacing between every letter in the word kerning by 1 pixel whenever it shows up in the search results page. Conversely, searching for "keming" (a common example of unfortunate kerning) will decrease the spacing between letters of the word when it shows up in the search results page.
  5. Type any actor's name followed by "bacon number" to get the Six Degrees of Kevin Bacon value.
  6. Searching for "Recursion" will result in Google asking if the user meant "Recursion."
  7. Doing a Google Image search for "Atari Breakout" will launch a playable version of Breakout using the image results.
  8. Searching for "Binary", "Octal", or "Hexadecimal" converts the number of results to binary, octal, or hexadecimal, respectively.
  9. Searching for "Conway's Game of Life" produces the Life simulation described by Conway.
  10. Searching for "How much wood could a woodchuck chuck if a woodchuck could chuck wood" produces a vocal response of another tongue twister "A woodchuck would chuck as much wood as a woodchuck could chuck if a woodchuck could chuck wood"
  11. Searching for "Christmas" returns a blue, Christmas background.
  12. Searching for "Kwanzaa" returns a green, Kwanzaa background.
  13. Searching for "Festivus" places a Festivus pole in the left side of the window.
  14. Searching for "Santa Claus" or "Christmas decorations" places an animation of a snowy landscape with Santa Claus and his reindeer riding across the top of the search results. On Christmas Eve, a map will appear where Santa is currently located.
  15. Searching for "anagram" results in the search engine asking "Did you mean: nag a ram" ("nag a ram" is an anagram of the word "anagram")
  16. Searching for "Google in 1998" results in a 1998 Google search screen appearing in place of the current Google search screen. Clicking on the first result will bring the user to the Wayback Machine's version of Google from 1998. However, clicking I'm Feeling Lucky will go to a Mashable article about the easter egg.
  17. Searching for "Google Pacman" has a playable version of the game appear on the screen.
  18. Selecting the "I'm Feeling Lucky" without typing anything in, it will display past Google logos.
  19. In Chrome, Google's Web browser, entering "about:internets" into the address bar brings up a copy of the Windows Screen Saver 3D Pipes, with the title "Don't Clog the Tubes". In the event that this does not occur due to the fact that the screensaver file does not exist in the system, the browser will instead display a gray screen with the title "The Tubes are Clogged!" This has been removed as of the 2.0.169.1 release.


Fun with Gmail
  1. On Gmail, if the background is set to "Ninja" press SHIFT+CTRL+F1 and the ninja will send an automatic email saying 'Hello' to everyone in the user's contacts.
  2. You may already know this (I just found out myself) but Gmail supports plus-addressing. In other words, you can send an email to yourusername+anystring@gmail.com and it'll be delivered to yourusername@gmail.com. As it turns out, gmail also ignores any periods in the username so your.username@gmail.com will go to yourusername@gmail.com as will y.ou.ruserna.me@gmail.com.

Fun with YouTube
  1. Holding down the left and up arrow while pausing or watching a video caused a game of Snake to launch. This could also be done by pressing the right arrow instead of the left one. This was actually a result of two steps; pressing the up arrow while a video is loading launches the game, while pressing the left arrow forces the video to rewind and load momentarily, thus allowing the game to launch. Since the 2013 update, this no longer works, and now only works by pressing down while buffering instead.
  2. As of November 2013, searching for "doge meme" on YouTube, changes the font on the search result page to pastel color Comic Sans.
  3. If a user right clicks on a YouTube video it gives one of the options in the Context menu is "stats for nerds".
  4. If you click to the side of a video and type in "1980" and press enter, a game of missile command will begin. If too many meteoroids hit the bottom, the video will "break" and stop playing.
  5. Putting in the search box "do the harlem shake" will cause the page to do the Harlem Shake. It can be muted and paused.
Source: Wikipedia.org

Hey! My friends, If you like my post you can save it using "Save Page as PDF" button below and you can even share them to your friends with social networking buttons provided below this post.

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo