Script fixed for hardy/8.04 and the latest YouTube setup.
Requirements
First do this:
Code:
$ sudo apt-get update
$ sudo apt-get install xulrunner ffmpeg lame mpg123 ecasound youtube-dl
Then restart the system to make sure ecasound starts correctly.
Script
Code:
#!/bin/bash
#
# Bash script to convert YouTube Video to Simulated Stereo MP3
#
# Public Domain
# Contributors: Supermike, Crouse, Kai Vehmanen, Chriss.Hi, John-Michael Mulesa
#
mkdir -p ~/mp3;cd ~/mp3
read -p "YouTube URL: " ur
read -p "Filename: " nv
echo;echo;
youtube-dl "${ur}" -o /tmp/y.flv
ffmpeg -i /tmp/y.flv -f mp3 -vn -acodec copy "/tmp/${nv}.mp3"
ecasound -i "/tmp/${nv}.mp3" -etf:8 -o "${nv}.mp3"
echo;echo;
rm -f "/tmp/${nv}.mp3"
echo "File is saved in your home directory in the 'mp3' folder."
read
Bookmarks