Multimedia File Conversion
Posted
#1
(In Topic #309)
Expert

<LIST>
- <LI>Google webp to standard png</LI>
<LIST>
- <LI>Google webm to standard mp4</LI>
<LIST>
- <LI>mp4 to mp3 (Very useful for downloaded music videos to playable mp3s )</LI>
Instructions:
Unzip the project to your projects folder and run.
The initial folder is set to User.Home { this can be changed manually in the code}
Select the conversion option required.
Select a folder containing the media format you wish to convert.
The list box will populate with any found files meeting this criteria in the selected folder.
Select the files that you wish to convert.
The list box is 'multi-select' so you can hold the Ctl key down to manually select files.
You can also (bulk) Select all, Invert selection or Select none with the appropriate buttons.
You can select to delete the source file once the conversion has taken place if desired.
Conversions of images files is quite quick. ( I did around 20 in a few seconds )
Caveat: Most of the image files in my test set were fairly small - Avg 450K.
Conversions of video files can take a while depending on the size of original ( up to a few minutes each )
Any bugs - let me know.
Cheers - Quin.
I code therefore I am
I code therefore I am
Posted
Guru

I found a bug at, aprox, line 107. The converted file is added to the ListBox, then a few lines later the ListBox is cleared.
I have included the changes in the attached file. I hope it helps.
Posted
Expert

This is what happens when you do final testing and then start making 'cosmetic changes'
I had completely forgotten about resizing - I'll get that fixed and re-post.
Cheers - Quin.
I code therefore I am
I code therefore I am
Posted
Expert

Bug Fixes:
<LIST>
- <LI>Form will now resize with all controls located appropriately</LI>
<LIST>
- <LI>List of converted files does not clear when conversions are complete</LI>
<LIST>
- <LI>As files are converted, they now show up in the message display in the correct order.</LI>
Enhancements:
<LIST>
- <LI>Added option to view files of the requested conversion type in the Converted listbox</LI>
General:
Discovered a few things along the way and will post these in 'General' for discussion.
Edit: Attachment modified as there was yet another minor bug (There always is) now fixed.
Cheers - Quin.
I code therefore I am
I code therefore I am
Posted
Guru

Posted
Expert

I did have a look this morning and as I thought, you used the 'H' controls and I don't use those at all.
I like to see the form as the user will see it and the 'H' controls make that difficult if not impossible.
Not saying that they are a bad thing but it's just not my programming style.
I also have a lot of 'Tool-Box' classes that I have developed over the years which amend control position and other assorted parameters so they ( H controls and my Tool-Boxes) would be incompatible.
Not used in the Multimedia Conversion project however, so may post something in General to show the concept.
Cheers - Quin.
I code therefore I am
I code therefore I am
Posted
Regular

Please, look at the code of <COLOR color="#0000BF">DirLister.</COLOR> You can use the mechanism I used there, to make this more user friendly.Quincunxian said
[…]
The initial folder is set to User.Home { this can be changed manually in the code}
The "Preferences" tab, has a setting that does exactly what you said: sets up a User's Data Directory.
While that might be done in code, for someone who is interested only in using the app, that is the best approach.
Cheers!
“The only thing necessary for the triumph of evil is for good men to do nothing.”― Edmund Burke;
It's easy to die for an idea. It is way harder to LIVE for your idea! (Me)
It's easy to die for an idea. It is way harder to LIVE for your idea! (Me)
1 guest and 0 members have just viewed this.

