LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices

Rate this Entry

convert asf to mp3

Posted 08-15-2012 at 01:46 PM by ted_chou12

this script converts asf to mp3:
Code:
# constant variables:
tmp="/tmp/tmp.wav"

if [ "$1" == "-help" ] || [ "$1" == "-h" ] || [ "$1" == "help" ] ; then
	echo "Usage: asf2mp3 <input file> [output file]
-help           		-h	help for this help file
-version			-V	check the version of Asf2Mp3
-required			-r	check for required installs
-verbose			-v	output details (verbose) feature not yet activated
-quiet				-q	quiet mode feature not yet activated";
elif [ "$1" == "-V" ] || [ "$1" == "-version" ] ; then
	echo "Asf2Mp3 version 1.3.1 All Rights with Ted"
elif [ "$1" == "-r" ] || [ "$1" == "-required" ] ; then
	echo "Required installs are mplayer and lame"
else
	# this script converts asf to mp3 file formats, script requires mplayer and lame to be working simultaneously:
	mplayer "$1" -novideo -vc dummy -ao "pcm:file=$tmp"
	lame "$tmp" "$2"
	rm -f "$tmp"
fi
place it in your /usr/bin directory. remember to chomd it to 755 though.
Ted
Posted in Uncategorized
Views 709 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration