[Reprinted] Thunder looks at xv File Converter (source code)

Source: Internet
Author: User

Based on the research on xv format, I wrote this applet to extract video files in various formats. The speed is very fast. It should be 5-10 MB per second. What I want to talk about is that the format of the obtained file depends entirely on the settings of thunder when creating the xv file. This program has no real conversion function. -- But I'm glad to use it, right :)

As of the release of this article, the tested versions are Thunder Lookup (Xmp) 3.8.5.520 and 4.5.3.623. If later versions are not available, Thunder will try its best to protect their xv files. If the program detects that the file cannot be converted, an error report file is generated, which contains the first 3 MB of the xv file without any personal information. Please send it to me (which can be compressed under =). I can refer to it to solve the problem. My mailbox is. In addition, we recommend that you do not update the version to ensure continuous conversion unless necessary.

Currently, the formats that can be recognized are rm, rmvb, wmv, flv, mp4, mpg, avi, and mkv.

XVE general edition Update 4

Run xve.exe after uninstalling the package, select the video file and press "start". Then, the video type is automatically recognized. If yes, relevant information is displayed. At this time, the disclaimer will be prompted again. The program can continue only after you agree to, enter y, and press Enter. The converted video is stored in the same directory of the original file, and the corresponding extension is added after the file name. Bulk conversion: Copy all files in the compressed package to the folder containing xv files, and double-click to open "convert all. bat ".

Network Disk download:

XVE For Vista/Win 7 Update 5 Test 1

This is a version rewritten for Windows Vista and Windows 7. Now the two program files are merged into one, which can reduce many permission issues, speed is even faster than the original = but it is said that there may be occasional progress does not go strange phenomenon, so please use the general version. You can select files in batches. This version is Based on. NET Framework 2.0. Windows XP can be used only when the. NET Framework is installed separately.

Oh, seeing that the program is so simple, many people will be disappointed.

XVE & FxxkXVX
Copyright (C) 2011 pseudo-redologist
This program is free software and you can modify and re-release it in accordance with the GNU General Public License Terms published by the Free Software Foundation. Or use the third edition of the license, or any updated version (depending on your choice.
The purpose of releasing this program is to make it useful, but there is no guarantee. There is even no implicit guarantee suitable for a specific purpose. For more details, see the GNU General Public License.
You should have received a copy of the GNU General Public License with the program. If not,
Write:
The Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
MA02139, USA

English version: Note: This is a [cracking] switch from other websites
Copyright (C) 2011 pseudo-redologist
This program is free software: you can redistribute it and/or modify
It under the terms of the GNU General Public License as published
The Free Software Foundation, either version 3 of the License, or
(At your option) any later version.
This program is distributed in the hope that it will be useful,
But without any warranty; without even the implied warranty
MERCHANTABILITY or fitness for a particle PURPOSE. See
GNU General Public License for more details.
You shoshould have your ed a copy of the GNU General Public License
Along with this program.

///// XVE For Vista/Win7 Update 5 Beta 1 //////

//// Visual Studio 2008 + VB. NET +. NET Framework 2.0 //////

Private Sub Button2_Click (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles Button2.Click
Dim fb (& H200010), peek (4) As Byte
Dim mn, type, l, rl, c, fail As Integer
Dim ts As String
Dim fin, fout As System. IO. FileStream
If MsgBox ("Please note that this program is for learning only, please delete the generated file immediately. "+ VbCrLf +" the user shall be liable for any consequences arising from the use of this program! Decline across provinces. "+ VbCrLf +" click [Yes], which means you agree to take all responsibilities on your own! ", MsgBoxStyle. YesNo) <> MsgBoxResult. Yes Then Exit Sub
Button2.Enabled = False
For I = 0 To ListView1.Items. Count-1
C = 0
ListView1.Items (I). SubItems (0). Text = "Start conversion"
Application. DoEvents ()
Fin = New System. IO. FileStream (ListView1.Items (I). SubItems (1). Text, IO. FileMode. OpenOrCreate)
L = fin. Length
Fin. Read (fb, 0, & H200000)
Fin. Read (peek, 0, 4)
Mn = (Asc ("R")-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = Asc ("M") And (peek (3) + mn) And & HFF) = Asc ("F") Then
Type = 1
GoTo OK
End If
Mn = (& H26-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = & HB2 And (peek (3) + mn) And & HFF) = & H75) Then
Type = 2
GoTo OK
End If
Mn = (Asc ("L")-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = Asc ("V") Then
Type = 3
GoTo OK
End If
Mn = (Asc ("I")-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = Asc ("F") And (peek (3) + mn) And & HFF) = Asc ("F") Then
Type = 4
GoTo OK
End If
Mn = (-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = 0) Then
Type = 5
GoTo OK
End If
Mn = (-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = 1 And (peek (3) + mn) And & HFF) = & HBA) Then
Type = 6
GoTo OK
End If
Mn = (& H45-peek (1) + & H100) And & HFF
If (peek (2) + mn) And & HFF) = & HDF And (peek (3) + mn) And & HFF) = & HA3) Then
Type = 7
GoTo OK
End If
Fout = New System. IO. FileStream (ListView1.Items (I). SubItems (1). Text + "1", IO. FileMode. OpenOrCreate)
Fout. Write (fb, 0, & H200000)
Fout. Write (fb, 0, 4)
Fin. Read (fb, 0, & H100000)
Fout. Write (fb, 0, & H100000)
ListView1.Items (I). SubItems (0). Text = "failed"
Application. DoEvents ()
Fail + = 1
GoTo nxt
OK:
Ts = Split ("rmvb wmv flv avi mp4 mpg mkv") (type-1)
Fout = New System. IO. FileStream (ListView1.Items (I). SubItems (1). Text + "." + ts, IO. FileMode. OpenOrCreate)
Peek (0) = CByte (Val (Split ("46 48 70 82 0 0 26") (type-1 )))
For j = 1 To 3
Peek (j) = CByte (CInt (peek (j) + mn) And & HFF)
Next
Fout. Write (peek, 0, 4)
Fin. Read (fb, 0, & H3FC)
For j = 1 To & H3FC
Fb (j-1) = CByte (CInt (fb (j-1) + mn) And & HFF)
Next
Fout. Write (fb, 0, & H3FC)
While fin. Position <= l
Rl = fin. Read (fb, 0, & H40000)
If rl = 0 Then Exit While
Fout. Write (fb, 0, rl)
C = c + 1
If c = 10 Then
ListView1.Items (I ). subItems (0 ). text = "Conversion" + Trim (Str (Format (fout. position/(l-& H200000) * 100, "0") + "%"
Application. DoEvents ()
ProgressBar1.Value = Int (Math. Round (fout. Position/(l-& H200000) * 100 ))
C = 0
End If
End While
ListView1.Items (I). SubItems (0). Text = "complete conversion"
Application. DoEvents ()
Nxt:
Fin. Close ()
Fout. Close ()
Next
MsgBox ("End of conversion" + vbCrLf + Trim (Str (ListView1.Items. count-fail) + "success," + Trim (Str (fail) + "failure" + IIf (fail <> 0, "Please send the error message file % s generated in the target file to the author to solve the problem in time. "+ VbCrLf +" NOTE: This file is the first 3 MB of the xv file and does not contain any information related to your privacy. "+ VbCrLf +" author's email: bmpj.net@gmail.com ",""))
ProgressBar1.Value = 0
Button2.Enabled = True
End Sub

///// FxxkXVX For Vista/Win7 Update 4 Beta 1 //////

//// Visual Studio 2008 + VB. NET +. NET Framework 2.0 //////

Private Sub Button2_Click (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles Button2.Click
Dim fin, fout, f1 As System. IO. FileStream
Dim rl, c As Integer
Dim tb (& H100010), t1 (1024) As Byte
If MsgBox ("Please note that this program is for learning only, please delete the generated file immediately. "+ VbCrLf +" the user shall be liable for any consequences arising from the use of this program! Decline across provinces. "+ VbCrLf +" click [Yes], which means you agree to take all responsibilities on your own! ", MsgBoxStyle. YesNo) <> MsgBoxResult. Yes Then Exit Sub
Button2.Enabled = False
For I = 0 To ListView1.Items. Count-1
C = 0
Fin = New System. IO. FileStream (ListView1.Items (I). SubItems (1). Text, IO. FileMode. OpenOrCreate)
Fout = New System. IO. FileStream (ListView1.Items (I). SubItems (1). Text + ". flv", IO. FileMode. OpenOrCreate)
F1 = New System. IO. FileStream (pth, IO. FileMode. OpenOrCreate)
Fout. WriteByte (CByte (Asc ("F ")))
Fout. WriteByte (CByte (Asc ("L ")))
Fout. WriteByte (CByte (Asc ("V ")))
Fin. Read (tb, 0, 3)
F1.Read (tb, 0, 3)
Fin. Read (tb, 0, 1024)
F1 read (t1, 0, 1024)
For j = 0-1023
Tb (j) = tb (j) Xor t1 (j)
Next
Fout. Write (tb, 0, 1024)
While fin. Position <= fin. Length
Rl = fin. Read (tb, 0, & H40000)
If rl = 0 Then Exit While
Fout. Write (tb, 0, rl)
C = c + 1
If c = 10 Then
ListView1.Items (I ). subItems (0 ). text = "Conversion" + Trim (Str (Format (fout. position/fin. length * 100, "0") + "%"
Application. DoEvents ()
ProgressBar1.Value = Int (Math. Round (fout. Position/(fin. Length) * 100 ))
C = 0
End If
End While
ListView1.Items (I). SubItems (0). Text = "complete conversion"
Application. DoEvents ()
Fin. Close ()
Fout. Close ()
F1.Close ()
Next
MsgBox ("End of conversion ")
ProgressBar1.Value = 0
Button2.Enabled = True
End Sub

Private Sub Form1_Load (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles MyBase. Load
Pth = Application. StartupPath
If Not pth. EndsWith ("\") Then pth = pth + "\"
If System. IO. File. Exists (pth + "1.xvx") Then
Pth = pth + "1.xvx"
ElseIf System. IO. File. Exists ("1.xvx") Then
Pth = "1.xvx"
Else
MsgBox ("You need to first download the 1.xvx file from the network disk with thunder and put it in the same directory! "+ VbCrLf +" For more information, see my blog. ")
Button2.Enabled = False
Exit Sub
End If
Dim fin As New System. IO. FileStream (pth, IO. FileMode. OpenOrCreate)
Dim tb (3) As Byte
Fin. Read (tb, 0, 3)
If tb (0) <> Asc ("X") Or tb (1) <> Asc ("V") Or tb (2) <> Asc ("X") Then
MsgBox ("the 1. xvx provided does not meet the requirements. This may be due to incomplete research. "+ VbCrLf +" You can try [online playback] to generate xv format files for easy conversion. "+ VbCrLf +" See my blog ")
Button2.Enabled = False
End If
Fin. Close ()
End Sub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.