mp32ogg convertor


I am adding a script which will convert the mp3 from a folder to ogg. mpg123 and oggenc are prerequisite for this scirpt. It can be download from https://mayankjohri.files.wordpress.com/2007/08/mp32ogg.pdf
The PreReq’s are mpg123, vorbis-tools, python-id3

Advertisements

2 thoughts on “mp32ogg convertor

  1. Hi Mayank,

    I tried executing ur code..but my control is not getting inside any of the ‘for loops’..is that my programming error..or do I need to install any dependencies..

    and I tried running the convertcommand directly..in that time am getting such an error..

    convrtCommand=”mpg123 -q -s \””+fileName+”\” | oggenc –raw -o \””+fName +”.ogg\” -t'”+id3info[‘TITLE’] +”‘ -a ‘”+id3info[‘ARTIST’] +”‘ -l ‘”+id3info[‘ALBUM’] + “‘ -G ‘” + id3info[‘GENRE’] + “‘ – ”
    File “/var/lib/python-support/python2.4/ID3.py”, line 383, in __getitem__
    return self.d[k]
    KeyError: ‘TITLE’

    Can u please guide me what’s the problem..and what am missing..?By the way am running BOSS a GNU/Linux distribution..I installed vorbis-tools,mpg123,python-id3 also..

    Cheers,
    Prem

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s