Firefox 16, a treat for developers http://t.co/cnd27CzT
bash script to download and run youtube movies
i was looking in google and found a wondefull script to download movies from youtube and run it in your terminal Linux script is downloading the IF of the movies and will name it downfile and run it with VLC player (orginal script was working with totem media player)
edit empty file and put in :
{codecitation}
#!/bin/bash
#
# Source Author: Finnbarr P. Murphy.
# Date: september 17th, 2010
#
#
echo -n “Enter the YouTube ID to copy: “
read ID
[[ -z $ID ]] && exit 1
TMP=/var/tmp/yt.$$
#QUIET=”-q”
QUIET=”–progress=bar”
WGET=/usr/bin/wget
SED=/bin/sed
TR=/usr/bin/tr
$WGET ${QUIET} -O ${TMP} “http://www.youtube.com/watch?v=${ID}”
[[ $? > 0 ]] && exit 2
VIDEOFILE=$($SED -n “/fmt_url_map/{s/['"|]/n/g;p}” ${TMP} |
$SED -n ‘/^fmt_url_map/,/videoplayback/p’ |
$SED -e :a -e ‘$q;N;5,$D;ba’ | $TR -d ‘n’ |
$SED -e ‘s/(.*),(.){1,3}/1/’)
rm -f $TMP
echo -n “Downloading video ….”
# download video to file named “downfile”. Change as necessary
$WGET ${QUIET} -O downfile “${VIDEOFILE}”
[[ $? > 0 ]] && {
echo “ERROR: Download failed”
exit 3
}
echo ” Done”
# play the video using VLC mediaplayer. Change as necessary
vlc downfile
exit 0{/codecitation}
save and exit
do chmod +x the file
run the file with ./file and put the id of the youtube movie like xmXUD86DlhA
the script with start to download and watch the movie from http://www.youtube.com/watch?v=xmXUD86DlhA


enjoy
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...1 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Howto- Resolve nosound problem on Ubuntu 13.04 Raring Ringtail,12.10 and Older : Updated 05/04/2013 : One of the common issues facing Ubuntu users after installing or upgrading Ubun...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Connect Your Android Galaxy Tablet to Ubuntu via USB : "I am having problems in connecting the Galaxy Tab to Ubuntu via USB cable."; This is a common quest...0 comment(s) |
Recent Posts
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
- A Secure Password
- Linux Kernel 3.10. It’s BIG!
- Monitoring Users Activity Using psacct or acct Tools in Linux
- Run Your Own Social Network Using elgg on RHEL / CentOS and Scientific Linux
- Getting Debian 7.0 ‘Wheezy’ Up and Running
Recent Comments



















SK
| #
Yes i will. Keep visiting. Subscribe us to get daily updates. Thanks for the comment
Rakesh Vijayan
| #
Hi SK
I am Rakesh vijayan thanks for your great work ,by your work I start to learn what is ldap , my request is will you make tutorial for ldap and samba pdc for us on ubuntu 12.04
Guest
| #
It was a typo. Now its corrected. Thanks for pointing out.
Michael T
| #
You shouldn’t be so stupid, in the first time.
PrestaShop
| #
Hi! Thank you for this nice article. We’ve 130,000+ active stores, you forgot the “1″ ;-)