Find the answer to your Linux question:
Results 1 to 4 of 4
I would like have a script that can monitor my flac folder and everytime I rip a new cd to flac I would like the script to make a new ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    93

    Script to convert FLAC to mp3?

    I would like have a script that can monitor my flac folder and everytime I rip a new cd to flac I would like the script to make a new folder with mp3 files @320 bit and place the newly created folder with mp3's into a folder named mp3.

    This is my very first script but after reading up on linuxcommand.org I discovered the power of scripts. Maybe there allready excist such a script for all I know? Where would be a good place to search/look for templates that I can tailor to meet my needs?

    Also I would like to hear good suggestions for other repetative tasks people solve with the use of scripts, that way I can easier see what else I can dig into.

    Can scripts also be used to manipulate databases? For instance to every day search for top 50 of certain met criteria, or whatever else output one is looking for?

  2. #2
    Just Joined!
    Join Date
    Jan 2011
    Posts
    93
    Turns out such a script excist. In fact there are tons of them.
    Well that is great. So no need to reinvent the wheel here.
    Many of the scripts are so complex I can not even satrt to figure out what they are doing, but his little one in a good start if anyone would like to have a peak.

    Flac to mp3 script suitable for us that are new to scripting.

    On the opposite end of scale, a more advanced script.


    If you know of good script resources pls share with me.


    Edit:
    No need to share resources. I came across so many script resources pages that I will be an expert by the time I have looked at it all. But a cool thing is boring repeatative tasks could be of yesterday. Cause people are also sharing their works and let you dig right into it all.
    Last edited by piergen; 02-09-2011 at 11:53 PM.

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    79
    I don't know much about multimedia, but would probably start like this:
    Code:
    abcde -o flac,mp3
    And then follow the manpage and add this line to my abcde.conf:
    Code:
    OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}._${TRACKFILE}'
    with ${OUTPUT} meaning to put each filetype (flac, mp3, ogg, wav) in its own directory

    man abcde, section OUTPUTTYPE:
    For each value in OUTPUTTYPE, abcde expands a different process
    for encoding, tagging and moving, so you can use the format
    placeholder, OUTPUT, to create different subdirectories to hold
    the different types. The variable OUTPUT will be 'vorbis',
    'mp3', 'flac', 'spx', 'mpc', 'm4a' and/or 'wav', depending on
    the OUTPUTTYPE you define. For example
    OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ALBUMFILE}/${TRACK‐
    NUM}._${TRACKFILE}'
    To put it different: i would not rip the CD and then convert it, but convert it like i want the result to be. With abcde or any other ripper which does this.

    It does not seem to be perfect. But, like said, i don't know much about multimedia and could figure it out in a few minutes. A bit of research and you should get your result.

  4. #4
    Just Joined!
    Join Date
    Jan 2011
    Posts
    93
    Tks I will look into it this weekend.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...