Click here to Skip to main content
15,902,939 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Transparent layer/control.. Pin
Tom Deketelaere13-Aug-07 2:34
professionalTom Deketelaere13-Aug-07 2:34 
AnswerRe: Transparent layer/control.. Pin
Dave Kreskowiak13-Aug-07 4:20
mveDave Kreskowiak13-Aug-07 4:20 
QuestionHelp required regarding the Network down/Database down issue in VB6 Pin
nsurendran13-Aug-07 1:04
nsurendran13-Aug-07 1:04 
QuestionRTF files manipulation without using builtin controls Pin
misaw7513-Aug-07 0:25
misaw7513-Aug-07 0:25 
QuestionHow to make certain Columns in a datagrid Read only in vb.net Pin
Vimalsoft(Pty) Ltd12-Aug-07 23:54
professionalVimalsoft(Pty) Ltd12-Aug-07 23:54 
AnswerRe: How to make certain Columns in a datagrid Read only in vb.net Pin
i gr813-Aug-07 7:54
i gr813-Aug-07 7:54 
GeneralRe: How to make certain Columns in a datagrid Read only in vb.net Pin
Vimalsoft(Pty) Ltd14-Aug-07 22:59
professionalVimalsoft(Pty) Ltd14-Aug-07 22:59 
QuestionReduce size of avi file Pin
Rupesh Kumar Swami12-Aug-07 22:42
Rupesh Kumar Swami12-Aug-07 22:42 
hi all,
i want to add some text to AVI file . everything is complete except one. when we exract frames( as bitmap) from avi file then size of file is too much .Presently for 1.29 MB file there are 257 frames and total size of all BMP images is 15 MB. after that i write some text to BMP & once again merge them to create modify AVI files. now this modify avi file size is approximately 15 Mb while original size is 1.29 MB.how can reduce this AVI file ?
i create some class on the basis of following article. i convert it in vb.net and use only three class avi.cs(in my application avi.vb),aviReader.cs(aviReader.vb), aviWriter.cs(aviWriter.vb)

http://www.codeproject.com/csharp/steganodotnet4.asp

following is the code that i use for extract from and mege BMP to AVI files

 Dim a As New PictureKey.AviReader<br />
        Dim b As New PictureKey.AviWriter<br />
        Dim DestPath As String = TextBox1.Text & "\MyAVI.avi"<br />
        Dim TempPath As String = TextBox2.Text & "\"<br />
<br />
<br />
        Dim dir_info As New DirectoryInfo(TextBox2.Text)<br />
        Dim file_infos() As FileInfo<br />
        file_infos = dir_info.GetFiles<br />
        For Each file_info As FileInfo In file_infos<br />
            file_info.Delete()<br />
        Next file_info<br />
<br />
<br />
        a.Open(txtAviFile.Text)<br />
        b.Open(DestPath, 10)<br />
<br />
        Dim i As Integer<br />
        ProgressBar1.Minimum = 0<br />
        ProgressBar1.Value = 0<br />
        ProgressBar1.Maximum = a.CountFrames<br />
        For i = a.FirstFramesNo To a.CountFrames - 1<br />
            a.ExportBitmap(i, "C:\AVI\" & i & ".bmp")<br />
            AddTextToBMP.ExtractMetaData("Rupesh", Nothing, 50, 50, "C:\AVI\" & i & ".bmp", TempPath & i & ".bmp")<br />
            Dim aa As Bitmap = Image.FromFile(TempPath & i & ".bmp")<br />
            b.AddFrame(aa)<br />
            ProgressBar1.Value = ProgressBar1.Value + 1<br />
            Application.DoEvents()<br />
        Next<br />
        a.Close()<br />
        b.Close()


can anybody guide me that how can i reduce the size of avi files ?

Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

AnswerRe: Reduce size of avi file Pin
Christian Graus12-Aug-07 23:57
protectorChristian Graus12-Aug-07 23:57 
QuestionHELP - SIMPLE MATH PROBLEM Pin
cyndy_northrup12-Aug-07 22:05
cyndy_northrup12-Aug-07 22:05 
AnswerRe: HELP - SIMPLE MATH PROBLEM Pin
Christian Graus12-Aug-07 23:56
protectorChristian Graus12-Aug-07 23:56 
AnswerRe: HELP - SIMPLE MATH PROBLEM Pin
Luc Pattyn13-Aug-07 0:50
sitebuilderLuc Pattyn13-Aug-07 0:50 
Questioncrystal reports Pin
Sonia Gupta12-Aug-07 19:05
Sonia Gupta12-Aug-07 19:05 
AnswerRe: crystal reports [modified] Pin
i gr812-Aug-07 22:50
i gr812-Aug-07 22:50 
QuestionPlease I need Help Pin
Agbe12-Aug-07 12:52
Agbe12-Aug-07 12:52 
AnswerRe: Please I need Help Pin
Guffa12-Aug-07 13:53
Guffa12-Aug-07 13:53 
QuestionShow "My Computer on the desktop" Pin
dave/chicago/dc12-Aug-07 12:30
dave/chicago/dc12-Aug-07 12:30 
AnswerRe: Show "My Computer on the desktop" Pin
Dave Kreskowiak12-Aug-07 15:42
mveDave Kreskowiak12-Aug-07 15:42 
GeneralRe: Show "My Computer on the desktop" Pin
dave/chicago/dc18-Aug-07 3:52
dave/chicago/dc18-Aug-07 3:52 
QuestionMail Message Pin
md_refay12-Aug-07 6:44
md_refay12-Aug-07 6:44 
AnswerRe: Mail Message Pin
Luc Pattyn12-Aug-07 6:53
sitebuilderLuc Pattyn12-Aug-07 6:53 
Questioncalling a computer on lan using microphone? Pin
crispin_code12-Aug-07 6:22
crispin_code12-Aug-07 6:22 
AnswerRe: calling a computer on lan using microphone? Pin
Dave Kreskowiak12-Aug-07 7:49
mveDave Kreskowiak12-Aug-07 7:49 
Questioncalling a computer on lan using microphone Pin
crispin_code12-Aug-07 6:21
crispin_code12-Aug-07 6:21 
AnswerRe: calling a computer on lan using microphone Pin
DanB198315-Aug-07 11:15
DanB198315-Aug-07 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.