Video Converter

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
22 posts Page 1 of 3
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Video Converter
hungryhounduk
Hi All
Got another Tutorial for you on How to create your Own Video Converter.
You can convert loads of Different Formats with this 8-)
Image

On Your Form you will need

1 OpenFileDialog
1 Textbox
1 ComboBox
2 Buttons

In the ComboBox Collections Tab in the Properties is where you add your video Formats that you want to Convert too, and they should start with a "." like .avi, .mp3, .mov and so on.

*Note You will have to change your OpenFileDialog Name to "SelectVid" ( The name should be changed in the Properties and the OpenFileDialog on the Bottom of your Visual Studio Workspace should be renamed once you have done it ) If it does'nt change then you have renamed the wrong one in the Properties......

If everything goes according to plan then once you run it you click your Open Button click on the Video that you want to Convert and the Filename will appear in the Textbox then select your Video Format from the Combobox that you want to Convert it to and then press the Convert Button. It should say that you are going to Convert that file and click ok the Convert it.

Right then lets get Coding ;)

Button 1 (The open file button)
Code: Select all
Selectvid.showdialog()

Button2 (The convert button)
Code: Select all
Dim type As String = ComboBox1.Text
        If ComboBox1.Text = "" Then
            MsgBox("No file type selected")
        Else
        End If
        MsgBox(TextBox1.Text + " shall be converted into a " + type + " file.")
        Dim oldFile As String = Mid(TextBox1.Text, 1, Len(TextBox1.Text) - 4)
        FileCopy(TextBox1.Text, oldFile + type)


SelectVid(The openfiledialog)
Code: Select all
Dim file As String = SelectVid.FileName
        TextBox1.Text = file
Chris
Last edited by hungryhounduk on Fri Aug 28, 2009 3:50 pm, edited 1 time in total.
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Video Converter
CodenStuff
Hello,

Another one, is your VB on a production line hungryhounduk?

Very impressed yet again cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Video Converter
hungryhounduk
is your VB on a production line hungryhounduk?
Hi
No i was just having a look at a few bits that i had done in the past and wanted something to do as a Tutorial and came up with that :)

Chris
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Video Converter
CodenStuff
Hello,

Ive got one for you that would go great with your recent collection. Think you could make a realy good looking media/video player? :D

Go on Go on Go on lol ;)
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Video Converter
hungryhounduk
Hi

media/video player? Whats that :)

Give me some info and i will get busy ;)

Chris
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Video Converter
CodenStuff
Hello,

Just an application that lets you open and play video files. You will probably have to use the mediaplayer control though.

Then add one of your brilliant themes to it cooll;

You have the MP3 player, radio player and if you can add a video player you will have them all wahooo;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
CodemaN
VIP Access - Denied
VIP Access - Denied
Posts: 74
Joined: Fri Sep 18, 2009 3:18 pm

Re: Video Converter
CodemaN
fantastic program!!!!!!!!!!!!!!!1
User avatar
Harlem9191
Top Poster
Top Poster
Posts: 87
Joined: Mon Jan 18, 2010 8:45 pm

Re: Video Converter
Harlem9191
This doesn't convert the file types. You would need an encoder for the specific file type you want to convert into.
I suppose this could be helpful for text documents though.
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Video Converter
Agust1337
Wow I really like this, your design is so incredible :)
Top-notch casual Dating
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Video Converter
Axel
scapescummer wrote:
You know this is fake! just changes file exention
some things will work exactly the same when u convert them
like : mp3 to.wav
mp3 is made to fit on smaller drives but is still the same because .wav would be to large for a mp3 player so mp3 just cuts a piece of code ( what will decrease the quality a tiny little bit)

sorry for bumping i needed to say :D
http://vagex.com/?ref=25000
22 posts Page 1 of 3
Return to “Tutorials”