Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: How about an a2mp3 frontend?

  1. #11
    Join Date
    Oct 2006
    Location
    Armenia, Colombia
    Beans
    204
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How about an a2mp3 frontend?

    Quite indeed but I have proved unworthy of doing it since my programming skills are not seeming to get better which is a shame. Plus due to real life events (like me entering a new semester in my career) I am left with no time for learning to code. It is a shame, yet I wouldn't like the idea to perish so I am making an invitation so someone takes the idea and turns it into something solid. Given the case that someone wants to take it, then just contact me via this thread and we will discuss the details

    Thanks in advance

  2. #12
    Join Date
    Oct 2006
    Beans
    144

    Re: How about an a2mp3 frontend?

    This is just a quick look at the ui. It is done in python and wxWidgets. Or we could do it in C and Gtk+.
    What do you think?
    Attached Images Attached Images

  3. #13
    Join Date
    Oct 2006
    Beans
    144

    Re: How about an a2mp3 frontend?

    ok forget the first ui. I changed it. I ended up writing it in python. I need your help on one issue. a2mp3 can use the -d flag to output to a different directory(default=/home/user/mp3temp)I put a button for the user to select either just a directory(which then populates a listbox with all the files in directory, which the user then selects the desired files) or the button opens a files select dialog that lets the user select only the files they like, then that selection populates the the listbox. However the method to used to get the list of files to convert and normalize, the user then must select all the files in the listbox and then push a button on the tool bar to convert then place files in default directory or the directory the user chooses. So which method do you like? Files selection or Folder selection?
    p.s. the modified ui.
    Brad
    Attached Images Attached Images

  4. #14
    Join Date
    Oct 2006
    Location
    Armenia, Colombia
    Beans
    204
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How about an a2mp3 frontend?

    Files selection is way more practical

    Thanks man! I cannot wait to try it!

  5. #15
    Join Date
    Oct 2006
    Beans
    144

    Re: How about an a2mp3 frontend?

    Ok this is just a beta version. Download, untar folder. from the command line type(from within folder)
    Code:
    ./a2mp33.py
    Now that the ui is up, first you must select a directory to search for mp3 or oggs(a2mp3 only supports these 2 formats)by pressing the red folder. When the file selection dialog pops up, use shif key or ctrl key to select one or multiple audio files and click open. Now you can then pick the directory where the files will be outputted by clicking the output button.(the default is /home/user/mp3tmp) The selected files will now show up in the listbox area. You must select all the files you wish to convert.(you can use the shift and ctrl keys) Then push the speaker to convert the selected songs to output directory.
    When this occurs, the application appears to be frozen. This is ok, I was having trouble forking the process and being able to tell when a2mp3 was done. I will figure this out later( I hope), but for now we need to know when the process is finished. As soon as the conversion is done the application becomes responsive again. Also if you minimize it while it is converting the ui will become unreadable. As soon as the process is finished it will redraw itself. Right know the application spawns a different a2mp3 process for each file selected to convert, this should speed up a huge file selection. This may cause problems on slower machines, dont know yet.
    Ok now what I think we should add or not add:
    • play selected song for test
    • search folders for music
    • feedback from stdout pipe for process info
    • Progressbar?

    All of these need your input, I want to add some features but not over due it.
    p.s. The screwdriver icon selects all files in listbox.
    Let me know what you think so far.
    Brad
    Attached Files Attached Files
    Last edited by bradleyd; July 20th, 2007 at 10:01 PM. Reason: added select all

  6. #16
    Join Date
    Oct 2006
    Location
    Armenia, Colombia
    Beans
    204
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How about an a2mp3 frontend?

    Quote Originally Posted by bradleyd View Post
    Ok this is just a beta version. Download, untar folder. from the command line type(from within folder)
    Code:
    ./a2mp33.py
    Now that the ui is up, first you must select a directory to search for mp3 or oggs(a2mp3 only supports these 2 formats)by pressing the red folder. When the file selection dialog pops up, use shif key or ctrl key to select one or multiple audio files and click open. Now you can then pick the directory where the files will be outputted by clicking the output button.(the default is /home/user/mp3tmp) The selected files will now show up in the listbox area. You must select all the files you wish to convert.(you can use the shift and ctrl keys) Then push the speaker to convert the selected songs to output directory.
    When this occurs, the application appears to be frozen. This is ok, I was having trouble forking the process and being able to tell when a2mp3 was done. I will figure this out later( I hope), but for now we need to know when the process is finished. As soon as the conversion is done the application becomes responsive again. Also if you minimize it while it is converting the ui will become unreadable. As soon as the process is finished it will redraw itself. Right know the application spawns a different a2mp3 process for each file selected to convert, this should speed up a huge file selection. This may cause problems on slower machines, dont know yet.
    Ok now what I think we should add or not add:
    • play selected song for test
    • search folders for music
    • feedback from stdout pipe for process info
    • Progressbar?

    All of these need your input, I want to add some features but not over due it.
    p.s. The screwdriver icon selects all files in listbox.
    Let me know what you think so far.
    Brad
    I love it.... yet there are some problems

    Code:
    Traceback (most recent call last):
      File "/home/takmadeus/Paquetes/a2mp3/a2mp33.py", line 111, in OnAdvanced
        self.list_box_1.SelectAll()       
    AttributeError: 'ListBox' object has no attribute 'SelectAll':guitar:
    it appears when I choose de "!" icon

    else is just fine.... I hope there was any means to add a progress bar but I guesss it is inherent to the program



    Another problem is as folllows:

    when you choose a file that has spaces, it interprets it as for example

    /media/hda5/My_Music/Guilty gear XX/Feel a fear.mp3

    while the appropiate is:

    "/media/hda5/My_Music/Guilty gear XX/Feel a fear.mp3" (with commas)

    that is meant so a2mp3 interprets it as a file with spaces else it will pop this error for example:


    Code:
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    WARN: file has no extension, skipping
    Error opening MP3: Fear.mp3: No such file or directory
    Could not find "Fear.mp3".
    WARN: Problems encoding file "Fear.mp3" with lame
    18060
    I hope you understand,other than that you captured the idea in the frontend thanks!

  7. #17
    Join Date
    Oct 2006
    Beans
    144

    Re: How about an a2mp3 frontend?

    Forgot to mention about the spaces. Going to have figure out a way to strip out spaces, then pass it to a2mp3. The problem is with that, if you do not own the file we will run into permission problems. I had fixed the select all button(!, not the perm icon))but uploaded you the older version, sorry. It works now. I have included the fixed version. I am working on a progress bar, the problem I am running into is calculating the song size and predicting the length of time to convert track. I guess I could do a while loop incrementing until the pid is destroyed. It is a lot trickier than it sounds(at least for me) I am still playing with a way to subprocess or thread the a2mp3 call so the gui does not freeze, and still give feedback to the user. It is still a work in progress. What else do you think we need? Also if you have a better idea on the spaces in the songs, I would love the help I am thinking of just stripping out all spaces and replacing them with underscores?Also maybe a popup dialog when the song finishes?
    Brad
    Attached Files Attached Files

  8. #18
    Join Date
    Oct 2006
    Location
    Armenia, Colombia
    Beans
    204
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How about an a2mp3 frontend?

    tried it once more.... still the probelm with the spaces.... yet everything else works just fine great job!.... I wish I could help you to solve the spaces thingy

  9. #19
    Join Date
    Oct 2006
    Beans
    144

    Re: How about an a2mp3 frontend?

    I guess I should have posted better. I have still not fixed the space problem.(I got busy with work) I am going to work on subprocess problem and space's problem this weekend, hopefully.
    Brad

  10. #20
    Join Date
    Oct 2006
    Location
    Armenia, Colombia
    Beans
    204
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How about an a2mp3 frontend?

    Don't worry man, you are doing great!

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

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