What is the point to create an int64 variable if you already know that you will need an int32 value?
Have you tried:
Dim xx As Integer = 20
myEncoderParameter = New EncoderParameter(myEncoder, xx)
If you really want to define an int64 in the first place, you should know that VB.NET does not use suffixes, as you can do in C#.
This would give somehing like:
Dim xx as Int64 = 20
This seems that you are trying to convert a code from C# to VB.NET without having a clear understanding of both languages and their differences; that's not a good idea :)
Kindly.