-
Notifications
You must be signed in to change notification settings - Fork 1
/
frmMain.frm
1803 lines (1266 loc) · 51.3 KB
/
frmMain.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "ieframe.dll"
Begin VB.Form frmMain
BorderStyle = 1 'Fixed Single
Caption = "3GP 转换精灵 Beta 1.0 "
ClientHeight = 7545
ClientLeft = 45
ClientTop = 330
ClientWidth = 10515
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7545
ScaleWidth = 10515
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer_Refresh
Interval = 100
Left = 6660
Top = 45
End
Begin VB.CommandButton cmdAD
Caption = "个性定制"
Height = 900
Left = 9405
Picture = "frmMain.frx":08CA
Style = 1 'Graphical
TabIndex = 8
ToolTipText = "想让这个软件显示你的个性内容吗?快快点我吧!"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdViewBrowser
Caption = "迷你首页"
Height = 900
Left = 8370
Picture = "frmMain.frx":0D88
Style = 1 'Graphical
TabIndex = 0
ToolTipText = "显示迷你首页"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdAbout
Caption = "关于软件"
Height = 900
Left = 7335
Picture = "frmMain.frx":13B9
Style = 1 'Graphical
TabIndex = 1
ToolTipText = "关于软件的简单介绍"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdRefresh
Caption = "显示列表"
Height = 900
Left = 5220
Picture = "frmMain.frx":1684
Style = 1 'Graphical
TabIndex = 10
ToolTipText = "点击此处显示待转换的文件列表"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdEnd
Caption = "退出程序"
Height = 900
Left = 4185
Picture = "frmMain.frx":337E
Style = 1 'Graphical
TabIndex = 7
ToolTipText = "退出程序"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdSetting
Caption = "提示设置"
Height = 900
Left = 3150
Picture = "frmMain.frx":41C0
Style = 1 'Graphical
TabIndex = 9
ToolTipText = "点击此处设置转换完成后的声音提醒功能"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdDel
Caption = "移除文件"
Height = 900
Left = 2115
Picture = "frmMain.frx":5EBA
Style = 1 'Graphical
TabIndex = 6
ToolTipText = "点击此处从文件列表中移出待转换的文件"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdAddFile
Caption = "添加文件"
Height = 900
Left = 45
Picture = "frmMain.frx":6CFC
Style = 1 'Graphical
TabIndex = 4
ToolTipText = "点击此处选择待转换的视频文件"
Top = 0
Width = 1050
End
Begin VB.CommandButton cmdAddFolder
Caption = "添加文件夹"
Height = 900
Left = 1080
Picture = "frmMain.frx":89F6
Style = 1 'Graphical
TabIndex = 5
ToolTipText = "点击此处选择待转换的视频文件夹"
Top = 0
Width = 1050
End
Begin VB.Timer timer_Url
Interval = 8000
Left = 6795
Top = 360
End
Begin VB.Frame Frame_Output
Height = 6315
Left = 6300
TabIndex = 15
Top = 900
Width = 4155
Begin VB.CommandButton cmdOpenDir
Appearance = 0 'Flat
Height = 450
Left = 1080
Picture = "frmMain.frx":9838
Style = 1 'Graphical
TabIndex = 42
ToolTipText = "用资源管理器打开输出的文本夹"
Top = 4230
Width = 555
End
Begin VB.CheckBox chkShutdown
Caption = "视频转换完成后关闭计算机"
Height = 285
Left = 135
TabIndex = 40
Top = 5175
Width = 3885
End
Begin VB.TextBox txtEndTime
Height = 330
Left = 2160
TabIndex = 38
Text = "0"
ToolTipText = "零表示不启用"
Top = 3870
Width = 1905
End
Begin VB.TextBox txtBeginTime
Height = 330
Left = 135
TabIndex = 37
Text = "0"
Top = 3870
Width = 1905
End
Begin VB.CommandButton cmdSelectLoc
Caption = "浏览"
Height = 360
Left = 3195
TabIndex = 25
ToolTipText = "选择视频文件转换后的存放路径"
Top = 4725
Width = 825
End
Begin VB.ComboBox cmbOutFormat
Height = 300
ItemData = "frmMain.frx":9B42
Left = 135
List = "frmMain.frx":9B5B
Style = 2 'Dropdown List
TabIndex = 23
Top = 540
Width = 3930
End
Begin VB.ComboBox cmbSoundSD
Height = 300
ItemData = "frmMain.frx":9BE5
Left = 2160
List = "frmMain.frx":9BEF
Style = 2 'Dropdown List
TabIndex = 22
Top = 3060
Width = 1905
End
Begin VB.ComboBox cmbSoundBT
Height = 300
ItemData = "frmMain.frx":9C03
Left = 135
List = "frmMain.frx":9C31
TabIndex = 21
Top = 3060
Width = 1905
End
Begin VB.ComboBox cmbSoundBL
Height = 300
ItemData = "frmMain.frx":9C77
Left = 2160
List = "frmMain.frx":9C93
TabIndex = 20
Top = 2250
Width = 1905
End
Begin VB.ComboBox cmbVideoSize
Height = 300
ItemData = "frmMain.frx":9CCE
Left = 135
List = "frmMain.frx":9CF9
TabIndex = 19
Top = 2250
Width = 1905
End
Begin VB.ComboBox cmbVideoZL
Height = 300
ItemData = "frmMain.frx":9D72
Left = 2160
List = "frmMain.frx":9D7F
TabIndex = 18
Top = 1350
Width = 1905
End
Begin VB.ComboBox cmbVideoBT
Height = 300
ItemData = "frmMain.frx":9D8F
Left = 135
List = "frmMain.frx":9DBD
TabIndex = 17
Top = 1350
Width = 1905
End
Begin VB.TextBox txtLoc
Height = 330
Left = 135
TabIndex = 16
Top = 4725
Width = 2985
End
Begin VB.CommandButton cmdConvert
Caption = "点此此处立刻开始转换"
Height = 435
Left = 135
TabIndex = 24
ToolTipText = "我要开始转换喽"
Top = 5490
Width = 3900
End
Begin VB.Label lblInfo
Caption = "状态显示:系统准备中,请选择待转换的视频"
ForeColor = &H00008000&
Height = 240
Left = 135
TabIndex = 41
Top = 5985
Width = 3795
End
Begin VB.Label Label10
Caption = "视频结束时间(秒):"
Height = 240
Left = 2160
TabIndex = 36
Top = 3600
Width = 1815
End
Begin VB.Label Label4
Caption = "视频开始时间(秒):"
Height = 240
Left = 135
TabIndex = 35
Top = 3600
Width = 1725
End
Begin VB.Label Label1
Caption = "输出格式:"
Height = 285
Left = 135
TabIndex = 33
Top = 225
Width = 1095
End
Begin VB.Label Label2
Caption = "视频比特率:"
Height = 240
Left = 135
TabIndex = 32
Top = 1080
Width = 1095
End
Begin VB.Label Label3
Caption = "帧率:"
Height = 240
Left = 2160
TabIndex = 31
Top = 1080
Width = 1095
End
Begin VB.Label Label5
Caption = "输出路径:"
Height = 240
Left = 135
TabIndex = 30
Top = 4410
Width = 1095
End
Begin VB.Label Label6
Caption = "声道:"
Height = 240
Left = 2160
TabIndex = 29
Top = 2790
Width = 1095
End
Begin VB.Label Label7
Caption = "声音比特率:"
Height = 240
Left = 135
TabIndex = 28
Top = 2790
Width = 1095
End
Begin VB.Label Label8
Caption = "声音频率:"
Height = 240
Left = 2160
TabIndex = 27
Top = 1935
Width = 1095
End
Begin VB.Label Label9
Caption = "视频尺寸:"
Height = 240
Left = 135
TabIndex = 26
Top = 1935
Width = 1095
End
End
Begin VB.Frame Frame1
Height = 6330
Left = 45
TabIndex = 3
Top = 900
Width = 6330
Begin VB.TextBox txtAboutMe
BeginProperty Font
Name = "楷体_GB2312"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 5775
Left = 135
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 14
Top = 495
Width = 6015
End
Begin VB.ListBox lstFiles
Height = 5640
Left = 135
TabIndex = 13
Top = 495
Width = 6015
End
Begin SHDocVwCtl.WebBrowser WebBrowser
Height = 5775
Left = 135
TabIndex = 12
Top = 495
Width = 6015
ExtentX = 10610
ExtentY = 10186
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
NoWebView = 0 'False
HideFileNames = 0 'False
SingleClick = 0 'False
SingleSelection = 0 'False
NoFolders = 0 'False
Transparent = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = "http:///"
End
Begin VB.Label lblUnlikeURL
Caption = "我要举报"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 240
Left = 5445
MouseIcon = "frmMain.frx":9E07
MousePointer = 99 'Custom
TabIndex = 39
Tag = "http://www.mama520.cn/IdontLoveYou.php"
ToolTipText = "如果您觉得以下内容是非法信息,请点击此处,告诉我们!"
Top = 225
Width = 780
End
Begin VB.Label lblTitle3
Caption = "文件列表:"
ForeColor = &H00C00000&
Height = 285
Left = 135
TabIndex = 11
Top = 180
Width = 5145
End
End
Begin VB.PictureBox Picture3
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 15
Left = 180
ScaleHeight = 15
ScaleWidth = 4860
TabIndex = 2
Top = 2295
Width = 4860
End
Begin VB.Label lblLink
Caption = "官方网站"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 240
Left = 180
MouseIcon = "frmMain.frx":A111
MousePointer = 99 'Custom
TabIndex = 34
Tag = "http://www.mama520.cn"
Top = 7290
Width = 10230
End
Begin VB.Menu myMenu
Caption = "右键菜单"
Visible = 0 'False
Begin VB.Menu Menu1
Caption = "菜单一"
End
Begin VB.Menu Menu2
Caption = "菜单一"
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private sAppPath As String
Private sADs As String '广告链接
Private sRejectLinks As String '被拒绝的网址
Private sRejectSRC As String '被拒绝自动跑掉的网址
Private sRegUser As String '注册用户名或者URL地址
Private sRegCode As String '注册码或者授权码
Private sNickName As String '呢称或者个性名称
Public iSoundOpen As Integer '是否开启声音
Private sSeleFileName '当前所选择的文件
Private sOutPutPath '当前所选择的输出路径
Private iFrmHeight As Integer
Private iFrmHeight_Min As Integer
Private WithEvents webdoc As Mshtml.HTMLDocument
Attribute webdoc.VB_VarHelpID = -1
Private textbody As HTMLBody
Private Rng As IHTMLTxtRange
Private iADCount As Integer
Private iADIndex As Integer
Private clsMD5 As New clsMD5
Private clsInI As New clsInI
Private IeGetOfflineMode As Boolean
Private WithEvents pThread As MThreadVB.Thread
Attribute pThread.VB_VarHelpID = -1
Private IsRegisterUser As Boolean
Private NeedToChange As Boolean
Private Sub EndThread_Click()
pThread.TerminateWin32Thread
End Sub
Private Sub EnableControl(ByVal bEnable As Boolean)
Frame_Output.Enabled = bEnable
cmdAddFile.Enabled = bEnable
cmdAddFolder.Enabled = bEnable
cmdDel.Enabled = bEnable
cmdSetting.Enabled = bEnable
cmdEnd.Enabled = bEnable
cmdRefresh.Enabled = bEnable
cmdAbout.Enabled = bEnable
cmdViewBrowser.Enabled = bEnable
cmdAD.Enabled = bEnable
lblLink.Enabled = bEnable
lblUnlikeURL.Enabled = bEnable
End Sub
Private Sub cmdOpenDir_Click()
Shell "Explorer.exe " & txtLoc.Text, vbNormalFocus
End Sub
Private Sub pThread_OnThreadCreateFailure()
' ELog.Text = ELog.Text & Chr$(13) & Chr$(10) & "Thread could not be Created"
End Sub
Private Sub pThread_OnThreadCreateSuccess(ByVal ThreadHandle As Long, ByVal ThreadID As Long)
' ELog.Text = ELog.Text & Chr$(13) & Chr$(10) & "Thread Created (Calculations started)"
' StartThread.Enabled = False
' EndThread.Enabled = True
NeedToChange = False
cmdConvert.Enabled = False
EnableControl False
Loading
SetStatus "正在转换视频……"
End Sub
Private Sub pThread_OnThreadFinish(ByVal ThreadHandle As Long, ByVal ThreadID As Long)
' ELog.Text = ELog.Text & Chr$(13) & Chr$(10) & "Thread has finished running(Calculations Ended)"
' PText.Text = ""
' PText.Text = Primes
' Primes = ""
' StartThread.Enabled = True
' EndThread.Enabled = False
Dim sTmp As String
NeedToChange = True
cmdConvert.Enabled = True
EnableControl True
'StartIndexPage
'BlankPage
SetStatus "视频转换成功!哥们,要继续转换吗? ^_^"
If iSoundOpen = 1 Then
PlaySound sAppPath & "Sound.wav"
End If
If chkShutdown.Value = 1 Then
ShutDownWin
End If
Dim i As Integer
Dim sOutput As String
Dim bOk As Boolean
i = InStr(cmbOutFormat.Text, "(")
sTmp = left(cmbOutFormat.Text, i - 1)
For i = 0 To lstFiles.ListCount - 1
sOutput = txtLoc.Text & Filename(Trim(lstFiles.List(i))) & "." & sTmp
DeleteFile sOutput & ".TMP.MP4"
Next
'MsgBox "转换完成!", vbInformation, sInfo_TiTle_Msg
End Sub
Private Sub pThread_OnThreadPriorityChange(ByVal ThreadHandle As Long, ThreadID As Long, ByVal OldPriority As MThreadVB.ThreadPriorityConsts, ByVal NewPriority As MThreadVB.ThreadPriorityConsts)
' ELog.Text = ELog.Text & Chr$(13) & Chr$(10) & "Thread priority set or changed"
End Sub
Private Sub pThread_OnThreadTerminate(ByVal ThreadHandle As Long, ByVal ThreadID As Long, ByVal ExitCode As Long)
' ELog.Text = ELog.Text & Chr$(13) & Chr$(10) & "Thread has been forcefully terminated"
' StartThread.Enabled = True
' EndThread.Enabled = False
End Sub
'Private Function CheckRegister(ByVal RegUser As String, ByVal RegCode As String) As Boolean
'
'Dim sTrueCode As String
'
'sTrueCode = UCase(clsMD5.CalculateMD5(clsMD5.CalculateMD5(clsMD5.CalculateMD5("Love3GP" & RegUser & "520"))))
'
'If UCase(RegCode) = sTrueCode Then
' CheckRegister = True
'
'Else
' CheckRegister = False
'
'End If
'
'
'
'
'End Function
Private Function CheckConvert() As Boolean
CheckConvert = False
If lstFiles.ListCount = 0 Then
MsgBox sInfo_MustSele, vbInformation, sInfo_TiTle_Msg
Exit Function
End If
If txtLoc.Text = "" Then
MsgBox sInfo_OutLoc, vbInformation, sInfo_TiTle_Msg
txtLoc.SetFocus
Exit Function
End If
If cmbOutFormat.ListIndex < 0 Then
MsgBox "请选择输出的格式", vbInformation, sInfo_TiTle_Msg
cmbOutFormat.SetFocus
Exit Function
End If
If Not IsNumeric(cmbVideoBT.Text) Then
MsgBox "视频比特率必须为数字!", vbInformation, sInfo_TiTle_Msg
cmbVideoBT.SetFocus
Exit Function
End If
If Not IsNumeric(cmbVideoZL.Text) Then
MsgBox "帧率必须为数字!", vbInformation, sInfo_TiTle_Msg
cmbVideoZL.SetFocus
Exit Function
End If
If cmbVideoSize.Text = "" Then
MsgBox "请必须选择或者输入视频尺寸", vbInformation, sInfo_TiTle_Msg
cmbVideoSize.SetFocus
Exit Function
End If
If Not IsNumeric(cmbSoundBL.Text) Then
MsgBox "声道频率必须为数字!", vbInformation, sInfo_TiTle_Msg
cmbSoundBL.SetFocus
Exit Function
End If
If cmbSoundBT.Text = "" Then
MsgBox "请必须选择或者输入声音比特率", vbInformation, sInfo_TiTle_Msg
cmbSoundBT.SetFocus
Exit Function
End If
If cmbSoundSD.Text = "" Then
MsgBox "请必须选择或者输入声道", vbInformation, sInfo_TiTle_Msg
cmbSoundSD.SetFocus
Exit Function
End If
CheckConvert = True
End Function
Private Sub SetStatus(ByVal Info As String)
lblInfo.Caption = Info
End Sub
Private Sub cmbOutFormat_Change()
' Dim i As Integer
' Dim sTmp As String
'
' i = InStr(cmbOutFormat.Text, "(")
' sTmp = left(cmbOutFormat.Text, i - 1)
'
'
' Select Case sTmp
' Case "3GP"
'
' Case "RMVB", "RM"
'
' Case "MPG"
' Case Else
' End Select
End Sub
Private Sub SetCMBValue(cmbVideoBTValue As String, cmbVideoZLValue As String, cmbVideoSizeValue As String, cmbSoundBLValue As String, cmbSoundBTValue As String, cmbSoundSDValue As String)
cmbVideoBT.Text = cmbVideoBTValue
cmbVideoZL.Text = cmbVideoZLValue
cmbVideoSize.Text = cmbVideoSizeValue
cmbSoundBL.Text = cmbSoundBLValue
cmbSoundBT.Text = cmbSoundBTValue
cmbSoundSD.Text = cmbSoundSDValue
End Sub
Private Sub cmbOutFormat_Click()
Dim i As Integer
Dim sTmp As String
i = InStr(cmbOutFormat.Text, "(")
sTmp = left(cmbOutFormat.Text, i - 1)
'3GP (手机3GP格式)
'MP4 (手机MP4格式)
'RMVB (RealPlayerRMVB)
'RM (RealPlayerRM)
'MPG (MPEG2)
'AVI(Windows Media Player格式)
'MP4 (高清MPEG4格式)
'MOV(Quick Time格式)
'MP3 (纯音频格式)
Select Case cmbOutFormat.ListIndex
Case 0
' MsgBox ("3GP")
'Before PAnsiChar lpCommandLine: C:\3GP格式转换器\data\conv.exe "E:\Film\Net\韩国最美的美女裸体.rmvb" -ss 0 -endpos 30 -oac mp3lame -lameopts preset=320 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200 -of avi -o c:\tmp\tmp.mp4
'After PAnsiChar lpCommandLine: C:\3GP格式转换器\data\conv.exe "E:\Film\Net\韩国最美的美女裸体.rmvb" -ss 0 -endpos 30 -oac mp3lame -lameopts preset=320 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200 -of avi -o c:\tmp\tmp.mp4
'Before PAnsiChar lpCommandLine: C:\3GP格式转换器\data\coder2.exe -i c:\tmp\tmp.mp4 -y -s 640x480 -vcodec mpeg4 -acodec amr_nb -ac 1 -ar 8000 -ab 12.2k "c:\output\韩国最美的美女裸体-233755.3gp"
'After PAnsiChar lpCommandLine: C:\3GP格式转换器\data\coder2.exe -i c:\tmp\tmp.mp4 -y -s 640x480 -vcodec mpeg4 -acodec amr_nb -ac 1 -ar 8000 -ab 12.2k "c:\output\韩国最美的美女裸体-233755.3gp"
'Before PAnsiChar lpCommandLine: C:\3GP格式转换器\data\conv.exe "E:\Media\玉蒲团之玉女心经.rmvb" -ss 0 -endpos 30 -oac lavc -lavcopts acodec=mp2:abitrate=64 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=600:vpass=1 -ofps 24 -of lavf -lavfopts format=yuv4mpeg -o "c:\output\玉蒲团之玉女心经-23339.avi"
'After PAnsiChar lpCommandLine: C:\3GP格式转换器\data\conv.exe "E:\Media\玉蒲团之玉女心经.rmvb" -ss 0 -endpos 30 -oac lavc -lavcopts acodec=mp2:abitrate=64 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=600:vpass=1 -ofps 24 -of lavf -lavfopts format=yuv4mpeg -o "c:\output\玉蒲团之玉女心经-23339.avi"
SetCMBValue "128", "29", "320x240", "8000", "12.2", "单声道"
Case 1
' MsgBox ("MP4")
SetCMBValue "128", "29", "320x240", "8000", "12.2", "单声道"
Case 2
' MsgBox ("RMVB")
SetCMBValue "1200", "29", "原始大小", "44100", "320", "双声道"
Case 3
' MsgBox ("RM")
SetCMBValue "1200", "29", "原始大小", "44100", "320", "双声道"
' Case 4
'' MsgBox ("MPG")
' SetCMBValue "600", "24", "原始大小", "28000", "64", "双声道"
Case 5 - 1
' MsgBox ("AVI")
SetCMBValue "600", "24", "原始大小", "28000", "64", "双声道"
Case 6 - 1
' MsgBox ("MP4")
SetCMBValue "1200", "29", "原始大小", "48000", "320", "双声道"
Case 7 - 1
' MsgBox ("MOV")
SetCMBValue "256", "29", "原始大小", "48000", "64", "双声道"
Case 8 - 1
' MsgBox ("MP3")
SetCMBValue "256", "29", "原始大小", "48000", "320", "双声道"
End Select
End Sub
Private Sub cmdAD_Click()
frmAD.Show 1
End Sub
Private Sub cmdAddFolder_Click()
Dim sLoc As String
Dim sFiles() As String
Dim i As Long
Dim j As Long
ViewControl (1)
sLoc = BrowseForFolderByPath(Me.hWnd, "请选择待转换视频的文件夹", sAppPath)
If sLoc <> "" Then
i = FileList(sLoc, sFiles)
End If
For j = 0 To i - 1
If InStr(sFiles(j), ".") > 0 Then
lstFiles.AddItem (IIf(right(sLoc, 1) <> "\", sLoc & "\", sLoc) & sFiles(j))
End If
Next
If lstFiles.ListCount > 0 Then
SetStatus "待转换的视频文件已添加至待转换列表!"
End If
' lstFiles.ForeColor = &HFF&
'
' lstFiles.List(0) = lstFiles.List(0) & " <转换成功>"
End Sub
Private Sub cmdConvert_Click()
Dim i As Integer
Dim sTmp As String
Dim sOutput As String
On Error GoTo errCmdConvert
If Not CheckConvert() Then Exit Sub
Dim iStyle As Integer
If right(txtLoc.Text, 1) <> "\" Then
txtLoc.Text = txtLoc.Text + "\"
End If
i = InStr(cmbOutFormat.Text, "(")
sTmp = left(cmbOutFormat.Text, i - 1)
If Not PathExists(txtLoc.Text) Then
CreateDirectory (txtLoc.Text)
End If
'Dim bOK As Boolean
'
'
'
'Loading
'
'cmdConvert.Enabled = False
'ConvertNow 0
'Set pThread = New MThreadVB.Thread
pThread.CreateWin32Thread Me, "ConvertNow", 0
pThread.ThreadPriority = THREAD_PRIORITY_HIGHEST
Exit Sub
errCmdConvert:
MsgBox " 错误号: " & Err.Number & vbCrLf & _
" 错误内容:" & Err.Description & vbCrLf & _
" 错误位置:errCmdConvert", vbExclamation + vbOKOnly
'Select Case Pr.List(Pr.ListIndex)
' Case "Lowest"
' pThread.ThreadPriority = THREAD_PRIORITY_LOWEST
' Case "Below normal"
' pThread.ThreadPriority = THREAD_PRIORITY_BELOW_NORMAL
' Case "Normal"
'pThread.ThreadPriority = THREAD_PRIORITY_NORMAL
' Case "Above Normal"
' pThread.ThreadPriority = THREAD_PRIORITY_ABOVE_NORMAL
' Case "Highest"
' pThread.ThreadPriority = THREAD_PRIORITY_HIGHEST
'End Select
'DoEvents
'If 1 = 1 Then
'
' bOK = StartPDFtoText(txtPDFFile.Text, txtLoc.Text & sSeleFileName + ".txt", iStyle, True, 0, 0, txtOwnerPWD.Text, txtUserPWD.Text)
'Else
' bOK = StartPDFtoText(txtPDFFile.Text, txtLoc.Text & sSeleFileName + ".txt", iStyle, False, txtPrePage.Text, txtLastPage.Text, txtOwnerPWD.Text, txtUserPWD.Text)
'
'