Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd October 2009, 11:06 PM
ac3raven Offline
Registered User
 
Join Date: Mar 2009
Posts: 19
linuxmozilla
mplayer m4a to mp3 conversion

or any conversion I suppose. My question is simple: How do I use this command:

mplayer -ao pcm *.m4a -ao pcm:file="*.mp3"

to convert whole directories and place the converted tracks into another directory. The way it's listed above it will convert all songs with a .mp4 extension into a single file with a .mp3 extension. Which of course, is not what I want, but I know of no other way to use this command.
Reply With Quote
  #2  
Old 24th October 2009, 12:04 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
linuxopera
Maybe a for loop? Some like for i in *.m4a;do

song=${i%.m4a}
mplayer -ao pcm $song.m4a -ao pcm:file=$song.mp3

(Done in a hurry and untested, DON'T TRY THIS WITHOUT TESTING IT.!!!)

Even if the syntax is off there, the idea is Ok, I think, go through the m4a files, make a variable that removes the suffix, run the mplayer commands on $VARIABLE.m4a to output to an mp3 file.

Hopefully, a more skilled scripter will give you something better.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
Reply

Tags
mp3

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jgp to pdf conversion nissan.bakish Using Fedora 3 24th November 2008 07:09 PM
m4p to mp3 conversion? poblano Using Fedora 1 29th August 2008 03:48 AM
WMA to MP3 conversion leigh123linux Using Fedora 0 19th November 2006 01:31 AM
VHS to VCD conversion iamroot Wibble 10 4th May 2006 08:26 AM
WMA --> MP3 Conversion Under FC#\3 avebelial Using Fedora 6 11th May 2005 10:58 AM


Current GMT-time: 06:10 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat