DirectX.AudioVideoPlayback Gives Incorrect Frame Size?

May 25, 2010

I have a menu which reads file info, but for some reason, when I open a video that I KNOW is 1280x720, the width and height come up as 1292x758.

Edit:

When I open a video which is 640x480, it says it's 656x518

That, and an extra preview box pops up due to:

labFR.Text = "Frame rate: " & Strings.FormatNumber((1 / AudioVideoPlayback.Video.FromFile(labinput.text, True).AverageTimePerFrame), 3)

This needs to be playing so I can get the frame rate, but how to I close it once I have the frame rate?

Working in VB.NET Framework 4.0. (VS2010)

View 1 Replies


ADVERTISEMENT

Can't Add Reference Microsoft.DirectX.AudioVideoPlayback.dll

Oct 9, 2010

I'm trying to play a music file. When I went to add reference and clicked on Microsoft.DirectX.AudioVideoPlayback.dll, it won't load. How do I resolve this problem?

Is this the preferred method for playing audio files?

View 8 Replies

Event Handling Of DirectX.AudioVideoPlayback?

May 22, 2011

I'm developing an application, where I want to show a video and afterwards resume working. However, It seems that the event handler isn't working proberly. The video starts to play, the way I have it expected, however after finishing no message box shows.

Private WithEvents AudioDatei As Audio
Private WithEvents VideoDatei As Video
Private Sub play_video()

[Code].....

View 1 Replies

DirectX AudioVideoPlayback And Selecting A Device And/or Panning?

Jul 20, 2011

Currently using VS2010, DirectX 9, Winforms, .Net 3.5, VB.I'm creating an application that will play MP3 files through the left and right channels of a sound card. It will also need to play another MP3 file through the centre/rear channel when triggered.I'm currently using DirectX Audio class to play the MP3 files which works fine, but I can't see a way of selecting the device or channel that each sound stream is sent to.I've looked at a few libs such as OpenTK and BASS.Net. BASS.Net seems promising, but I need to try to avoid the license fee if possible.

View 1 Replies

Find "Microsoft.DirectX.AudioVideoPlayback" Library In VB 2010 .NET References?

Dec 23, 2009

Why can't i find "Microsoft.DirectX.AudioVideoPlayback" library in VB 2010 .NET References ? Is it because its BETA program?

View 1 Replies

Directx.AudioVideoPlayback "Error In Application" And Anathore Error?

Jul 26, 2009

I'm using audiovideoplayback to play songs. I can only play some songs in my computer, and might maby be only 50% of them all (they are all .mp3, the working and the non-working ones), the one who I can't play I get a message saying "Error in application" this is my play code;

View 3 Replies

Change Frame Size On Shockwave?

Oct 12, 2009

how to change the aspect ratio of the frame size on shockwave. I have tried to use the property but it's not there. In which methods of the properties that I can control the frame size on flash?

View 4 Replies

Microsoft Fax - Printing Incorrect Paper Size

Nov 18, 2011

I have written a program in VB that sends faxes to my customers. When I test it, the fax machine prints the output on legal paper and I have no idea why. I have checked everything that I can find and I don't see anything in the API to set the paper size. I am setting the body to a PDF file. When I print the PDF file locally, it prints just fine. I have tried other files, output from other programs (i.e. word) and the end result is always the same.

View 2 Replies

Access A Specific Frame And Put The Frame Into A Bitmap

May 20, 2012

[Code]...

I can access a specific frame and put the frame into a bitmap so that I can process the bitmap.

View 4 Replies

AudioVideoPlayback - Show A View Streaming From A Video Camera Over The Network

Sep 22, 2011

AudioVideoPlayback works really .FromFile with jpg or mpg files. But I am trying to show a viewo stream from a video camera over the network. The camera feed is something like ... IP-ADDRESS/mjpg/video.cgi. AudioVideoPlayback .FromUrl seems to access the camera ( the camera then prompts for log on credentials) but it will not display the feed. My question is can AudioVideoPlayback display cgi files? My all is written in Visual Basic 2008, running on Win 7/64 and x86 based platforms as well.

View 1 Replies

Make A Program With First Form To Enter The Serial If Correct Just Continue To Form2 If Incorrect Just A Popup Say Like "Serial Incorrect"?

Aug 13, 2010

i just want to make a program with first form to enter the serial if correct just continue to form2 if incorrect just a popup say like "Serial Incorrect" how i can make it ?

View 2 Replies

Copy Frame Function - How Does It Copy The Frame?

Oct 30, 2009

how does this function works. How does it copy the frame? HDC BiBlt???

ublic Function copyFrame(ByVal src As PictureBox, ByVal rect As RectangleF) As Bitmap
If isRunning Then
Dim srcPic As Graphics = src.CreateGraphics[code].....

the above function is called from the below command which is in a timer event. mycam is a class including the copy frame function.

bm2 = myCam.copyFrame(PictureBox1, New RectangleF(0, 0, PictureBox1.Width, PictureBox1.Height))

View 1 Replies

Structures - Fixed Size (Overall Size And Item Size)

Jun 8, 2011

Now all went well about from using the structure correctly. The working of the structure was perfect. How ever i missed Two important issues. The structure needed a fixed size of 10 items (9 in programming terms starting from 0) And also out of the 5 items allowed to be chosen as one of the member types for the structure a limit of 5 items of that particular type.

[Code]...

View 9 Replies

IDE :: Add The Directx In VB6?

Mar 9, 2009

i am using windows vista and i have installed visual basic 6 and Microsoft directx SDK 2008 in my computer.I want to use directx in VB6 but i am not able to add it from the reference.There is no reference to directx available there.

View 1 Replies

Set DirectX SDK Up With VB?

May 9, 2009

i am beginning to be better and better to VB express edition 2008, and really really like this language, my goal is to program 3D games.And since i didn't came anywhere in C++ or C#, i believe it's possible to make great 3D in Visual Basic. how to set DirectX SDK up with Visual Basic? and show me some tutorials or books?

View 10 Replies

Using DirectX With VB?

Jul 21, 2009

I have a quick question that needs answering. How can I use DirectX in my VB 2008 application? Most sites I've seen says to write Imports Microsoft.DirectX but it's apparently not there. I have downloaded the DirectX SDK (MArch 2009) but there are only C++ files in there. Can anyone provide insight as to how I could solve this?

View 5 Replies

3D Grid Using DirectX?

Aug 16, 2010

I am using Microsoft's Visual Studio 2005 (VB.Net) to make a basic directx program, which shows the coordinate visually. The idea is to draw the x-y and x-z grid using the line class of the direct3D. The line class has a function to draw line in 3d

Public Sub DrawTransform(ByVal vertexList() As Microsoft.DirectX.Vector3, ByVal transform As Microsoft.DirectX.Matrix, ByVal color As System.Drawing.Color)

View 4 Replies

Hooking DirectX 9

Sep 9, 2009

I'm working on a tool that requires overlays ala X-Fire. I'm hoping to do it in C# or VB.NET rather than resorting to C++, but the only solutions i've found for .NET cause a large performance hit (~20FPS in games). Take a look here: [URL]

View 1 Replies

IDE :: Font Dynamically Change Size To Be As Large As Possible Without Overflowing The Fixed Label Size

May 3, 2009

I have a label which appears full screen on a projector (VGA 2). In this label I will be sending strings. Some one liner's, some wrapped paragraphs. Some multi-line with carrage returns. My goal is to have the font dynamically change size to be as large as possible without overflowing the fixed label size.

View 10 Replies

Font Size / Type And Size In Paper RDLC + ReportViewver + VB2005

Apr 15, 2009

Whats the font size real meaning? since when i use Arial font size 10 in the report its gonna take different space than the textbox im using (Both using exactly same font type/size/unit) its kinda if i set 10 milimiters to the font size why would the i and M for example have so diferent size.

i wish it was like in the Notepad where all the letters take the same space. what i need its to give a certain texbox(in the report) with auto grow to have always the same lines of height but its not posible to calculate it from vb b4 being inputed to the report.

View 1 Replies

Make The Form Size Automatic Setting The Size Equals To The Screen?

Jun 9, 2011

How to make the form size automatic setting the size equals to the screen. or Maximize the whole form including the form components.

View 3 Replies

VS 2008 Resize A Picturebox Dynamically Using .size.height And .size.width

Nov 20, 2009

Im trying to resize a picturebox dynamically using .size.height and .size.width Its not working. This is the error message: "Expression is a value and therefore cannot be the target of an assignment." Never used height and width before. Been trying to find the answer, but it seems beyond me. Im sure its easy. Anyone know whats wrong with this?

[Code]...

View 3 Replies

Can Auto-size Font Size Follow By Length Of String

Jul 4, 2010

I had set a print format to print some word in a Text box, when I input the text in text box is an normal size from system,but I want it print out to printer follow the Rectangle size that is was set to print out on paper.actuary i want it can auto size the font size follow by the length of string.

View 1 Replies

Changing Font Size & Bold - Get Property 'Size' Is Read Only?

Feb 27, 2009

I'm new to VB in Visual Studio 2008 and am just trying out some simple test.I just want to change the Font & Boldness of some text but get the following errorProperty 'Size' is Read onlyI have been browsing the forums and it seems that changing the font size etc isn't as simple as

TextBox.Font.Size = 12
TextBox.Font.Bold = True

Is this true, and if so what do I need to do

View 5 Replies

Increased Size Of Image In Picture Box / Want To Take It Back To Its Original Size

Jun 15, 2011

I am working with vb.net and want to increase the size of image when the cursor is over that image, but the image should come back to its original size when the cursor leaves that image area.I've used the following code to increase the size of image:[code]I've used the default size class but, it gives some different dimensions.by the code that brings the image into its original size that I've been declared into the picture box properties.

View 2 Replies

Set The List Size Back To Normal Once Have Doubled Its Size (arrays)?

Jul 16, 2009

when I click the Open button a file is opened and its items are sorted alphabetically. to do this I have doubled the size of my list. However, when I click the button again to reopen the same file, the items will ADD ON to the previous open-file event even though I have this piece of lstListboxTwo.Items.Clear()(the correct thing is to clear the previous items and add the new ones)So I think this has to do with the new size of my list..I think that I have to set the list size back to its normal size when re-clicking on the button.

Public Class frmForm
Dim List() As String = {""}
Dim count As Integer

[code]....

View 4 Replies

VB 2008 Express/ Webpage To Fit The Size Of The Webbrowser1 Control Size?

Jul 13, 2010

I have wondered the solution to this question for many years! I doubt if anyone else knows much about it because the internet is absolutely zero help in this!

I have made a form1 with a webbrowser control on it. When the program is run it brings up the homepage (which is Google). However the homepage doesn't seem to fit inside the webbrowser control.

So I am hoping that someone could tell me how to make the (...I dunno how to ask this retarded question...) webpage fit completely (100%) inside the size of the webbrowser control. Meaning...I would like to see the entire webpage from the internet in the
size of the webbrowser control. To fill the entire size (whatever size I want).

Etc... if my webbrowser ontrol is seh, set to 600px by 400px, how can I program this so when it brings up the homepage (or any other page), it fills the entire size of the webbrowser control? Without any scrollbars. How to make the contents from the web
(or local) fill the size of the webbrowser - almost like a mini browser if you will.

View 4 Replies

How To Capture A Frame From A DVD

Aug 1, 2010

I have a personal project to complete and one of the smaller aspects is to capture about 10-20 seconds of video or a screenshot (bitmap,jpg, etc)from a DVD. This is made even more complicated by the fact that the video files may be .VOB, .AVI or .MPG and using numerous codecs (DivX, Xvid, etc).

I have searched on google and the tutorials here, but nothing seems to fit.

Does anyone have some "simple" references, URL's, blogs, code examples that would help with my quest? (My policy is not the KISS principal, but the KISFSP ... "Keep It Simple For Stupid People")

View 4 Replies

Move A Frame Into Another .net?

May 14, 2010

How can I Move a frame into another using vb.net?e.g.I have these two files

Frame.vb
NewFrame.vb

within Frame.vb on the load code i want to move NewFrame in to Frame.also if i put a button in Frame.vb on that clicks button event i also want to move NewFrame.vb in to Frame.

View 6 Replies

2008 And DirectX - Display ?

Dec 3, 2009

I'm using Visual Studio 2008 on Windows 7 64-bit and latest DirectX SDK (August 2009). When I run program, window looks like this . The code is from site . Windows Vista 64-bit has the same problem. My graphic cart is Gigabyte GeForce 9400 GT

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved