<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5359649852056880763</id><updated>2011-11-30T04:22:37.073-08:00</updated><title type='text'>code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nomasteryoda-code.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5359649852056880763/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nomasteryoda-code.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nomasteryoda</name><uri>http://www.blogger.com/profile/02947542348669263985</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://4.bp.blogspot.com/_fqEVoqQa9zs/SNqTvs7pOXI/AAAAAAAAAiM/4ualJrn-4Ic/S220/TuxSmooth.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5359649852056880763.post-4031103959903842329</id><published>2008-11-15T13:08:00.000-08:00</published><updated>2008-11-15T13:09:06.148-08:00</updated><title type='text'>youtube converter</title><content type='html'>#!/bin/sh&lt;br /&gt;# This script downloads YouTube videos and converts them&lt;br /&gt;# You will end up with an MPG video and MP3 audio of each YouTube movie&lt;br /&gt;# You need to install the following two programs:&lt;br /&gt;# youtube_dl and ffmpg&lt;br /&gt;&lt;br /&gt;# Use this script at your own risk!&lt;br /&gt;# Make sure that you understand how it works before you use it!&lt;br /&gt;&lt;br /&gt;# USAGE:&lt;br /&gt;# Make a file called videos.txt with the URL of 1 YouTube video on each line.&lt;br /&gt;# Don't leave any blank lines in the file&lt;br /&gt;# Put the videos.txt file in an empty folder along with this script&lt;br /&gt;# run this script with the following commands:&lt;br /&gt;# $ ./youtube_downloader.sh&lt;br /&gt;# It will take a long time to run, depending on how many videos you have in your videos.txt file.&lt;br /&gt;&lt;br /&gt;# while read inputline&lt;br /&gt;#do&lt;br /&gt;#  youtube_url="$(echo $inputline)"&lt;br /&gt;#    youtube-dl $youtube_url&lt;br /&gt;#    done &lt; videos.txt&lt;br /&gt;&lt;br /&gt;# Convert the flv files to mpg and mp3 files&lt;br /&gt;for i in *.flv&lt;br /&gt;do&lt;br /&gt;#  ffmpeg -i $i $i.mpg&lt;br /&gt;    # ffmpeg -i $i -ab 128 -ar 44100 $i.mp3&lt;br /&gt;      mplayer -dumpaudio $i -dumpfile $i.mp3&lt;br /&gt; # rm $i&lt;br /&gt; done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5359649852056880763-4031103959903842329?l=nomasteryoda-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nomasteryoda-code.blogspot.com/feeds/4031103959903842329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5359649852056880763&amp;postID=4031103959903842329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5359649852056880763/posts/default/4031103959903842329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5359649852056880763/posts/default/4031103959903842329'/><link rel='alternate' type='text/html' href='http://nomasteryoda-code.blogspot.com/2008/11/youtube-converter.html' title='youtube converter'/><author><name>nomasteryoda</name><uri>http://www.blogger.com/profile/02947542348669263985</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://4.bp.blogspot.com/_fqEVoqQa9zs/SNqTvs7pOXI/AAAAAAAAAiM/4ualJrn-4Ic/S220/TuxSmooth.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5359649852056880763.post-6484694317629743824</id><published>2008-11-15T11:45:00.000-08:00</published><updated>2008-11-15T11:49:29.937-08:00</updated><title type='text'>Convert pictures to 640x480 with bash</title><content type='html'>Just put this into your /usr/local/bin&lt;br /&gt;&lt;br /&gt;sudo touch /usr/local/bin/cv640.sh&lt;br /&gt;gedit /usr/local/bin/cv640.sh&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;for img in `ls *.jpg`&lt;br /&gt;#the img r-$img makes the filename have a r- at the front of the name&lt;br /&gt;  do convert -resize 640x480 $img r-$img&lt;br /&gt; # do convert -sample 50%x50% $img resized-$img&lt;br /&gt;#converts your file from whatever it is to 640x480&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;echo done converting&lt;br /&gt;cv640.sh (END)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5359649852056880763-6484694317629743824?l=nomasteryoda-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nomasteryoda-code.blogspot.com/feeds/6484694317629743824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5359649852056880763&amp;postID=6484694317629743824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5359649852056880763/posts/default/6484694317629743824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5359649852056880763/posts/default/6484694317629743824'/><link rel='alternate' type='text/html' href='http://nomasteryoda-code.blogspot.com/2008/11/convert-pictures-to-640x480-with-bash.html' title='Convert pictures to 640x480 with bash'/><author><name>nomasteryoda</name><uri>http://www.blogger.com/profile/02947542348669263985</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://4.bp.blogspot.com/_fqEVoqQa9zs/SNqTvs7pOXI/AAAAAAAAAiM/4ualJrn-4Ic/S220/TuxSmooth.png'/></author><thr:total>0</thr:total></entry></feed>
