Re: CD to acc



Why you are not haapy about posting in top? It is only another marked checkbox in mail program preferences. If it is not very well, please explain and I will change it.

Ron Johnson wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/28/07 11:51, Pantor wrote:
That sounds like high mathematics for me.

I'm not surprised at anything a top-poster writes.

Shamail Tayyab wrote:
Pantor wrote:
Hi lads,

would you be able to advice what to use for converting audio CD to
acc files please?

Thank's.


Depends on how much tools you can use...
For command like geeks...

Install mplayer and faac from debian-multimedia.org repo.

$ mplayer -ao pcm:file=audiodump.wav <file>
// decodes the stream to raw wave file
$ faac audiodump.wav -o $HOME/track.aac
// encodes it to aac file.

I m learning python, so thought i should write small py script to
automatically convert all the music in a folder to acc into a
specified folder...

#! /usr/bin/env python

import os
import sys

if len ( sys.argv ) < 2:
print "Usage:", sys.argv[0], "/target/dir"
sys.exit ()

files = os.listdir ( "." )
dir = sys.argv[1]

for i in files:
print "Decoding", i, "..."
cmd = "mplayer -ao pcm:file=/tmp/swav.sona \"" + i + "\" 2> /dev/null
/dev/null"
outfile = dir + "/" + i[0:len(i) - 4]
os.system ( cmd )
print "Encoding to ", outfile, "... @ 192 kbps..."
cmd = "faac /tmp/swav.sona -o \"" + outfile + ".aac\""
os.system ( cmd )

print "Conversion finished!!!"

Run this script, while you are in the mounted CD ROM dir... as
$ /path/to/this/script/toaac.py $HOME/MyNewAudioCD

Hoping this to prove helpful to you...




- --
Ron Johnson, Jr.
Jefferson LA USA

%SYSTEM-F-FISH, my hovercraft is full of eels
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHTcaiS9HxQb37XmcRAokVAJ9l8j73Ol54Pzy8Rxv++Z4SYsZ7oACfYR3t
fImuvhoMtOQJFl6l5zmRLsY=
=M1hW
-----END PGP SIGNATURE-----




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: forwarding logs
    ... Same with another script. ... >> You should not need to cange anything in the log script itself. ... >> Reuben D. Budiardja ...
    (RedHat)
  • RE: forwarding logs
    ... Same with another script. ... >> You should not need to cange anything in the log script itself. ... >> Reuben D. Budiardja ...
    (RedHat)
  • Re: How can I kill a stuck cmd.exe remotely?
    ... sample script code... ... Microsoft MVP - Windows Server Management Infrastructure ... > the cmd would stuck for some reasons I did not know. ... > something in order to run the WMI thing? ...
    (microsoft.public.windowsxp.wmi)
  • brute force ssh login attempts and how to Disrupt them
    ... My head ... and I heard a rhythmic tick-tock coming from ... back, the idiot was gone so apparently, the script gives up ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Seeding Randomization on CMD (WinXP Pro)
    ... However since my script takes exactly the ... > change the execution time so that the number pulled from the pool ... > real random number on CMD? ... Returns an exit code of a pseudo-random number based on ...
    (microsoft.public.win2000.cmdprompt.admin)