LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-11-2003, 06:32 PM   #1
zerodot
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
mp3 batch convert, remote from command line


I'm starting a resource site that will allow people to upload wavs or mp3's. the problem is that the streaming method I am using requires mp3 format.

I tried to find a class or something to convert wavs to mp3's using PHP, but no luck. So I decided to just pile all of the wavs into a directory, then have a script batch convert all the wavs into mp3's, and then move the mp3's to a folder. Automated or not, it doesn't really matter.

I'm administering a RAQ3, remotely.

Any suggestions?

I'm not a newbie but definatly not an expert, so any details you could give would be greatly appreciated.
 
Old 02-12-2003, 05:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,407

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well you can easily use lame to encode the wavs to mp3. i can't remember the syntax off hand, but check the manpage and it should be quite straight forward. as for automation... the easiest way would be to set a daily or maybe hourly cron job to process all files in directory A, to mp3s in directory B and then delete all files in A. normally the simplest was to do this is to write a small script file and put it in /etc/cron.daily/ asnd leave it at that, however if you do not have that system set up you'll need a proper cron job, so you'll need to check the cron manpage too
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to convert .wav file into mp3 files in batch mode sparsh Linux - Software 6 11-20-2007 10:53 AM
command line utility to convert between formats like .doc, .sxw, .rtf and others? bigtpumped Linux - Software 1 09-12-2005 09:54 PM
Command line MP3 player? Kanon Linux - Newbie 8 01-19-2005 10:34 AM
command line mp3 xviddivxoggmp3 Slackware 3 02-26-2004 09:58 AM
command line way of playing .mp3? purpleburple Linux - General 4 10-14-2002 12:27 PM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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