Make Audio / Video Player Using DirectX
Sep 16, 2009i need Help to make Audio or Video Player With Using DirectX. how many Different b/w DirectX and Windows Media Player???
View 8 Repliesi need Help to make Audio or Video Player With Using DirectX. how many Different b/w DirectX and Windows Media Player???
View 8 RepliesI'm trying to make a small video-player in Vb.net with WPF.
Got everything working beside 2 things:
Mkv-files and subtitles,.
I've installed FFDShow.
I've read that if you install it to WMP, then it will automatically work to MediaElement. It did work first, but then i had DivX installed, when i uninstall'd DivX, it stopped working.
I am trying to make a telnet application to communicate with a special video player I have, I have gotten the telnet session to connect to the video player (server) but it won't respond back....I think the problem might be with the coding...the strData string below is supposed to be the replies I get back from the server, but it won't show any strings on the screen.
[Code]...
I just want to ask or I need some idea on how to convert wav files to mp3 and compressed the file to make the size smaller. I've search on the internet and find vorbis.dll as a reference object and lame.exe for converter. With regards to the audio compression, i downloaded monkey's audio software but doesnt have an idea on how to incorporate it.
View 2 RepliesI creat audio video chat and when calling receivng video and client video is together...I want that client move his or her webcam video where want...as I know it name DROP&DRAP but I`m not know how to do it...
View 5 Repliesi want to buffer a video file on client side when it request.. what syantax i use to buffer the video the video in client's media player
View 1 RepliesSo I have a wav playing using DirectX in VB6. If i switch to another window, it stops playing. If I click back on the VB6 window it resumes play. How do I make it continue playing when I change windows? Another problem I cannot load wav files larger than 50 megabyte. It says Out Of Memory. How can I increase that?
View 1 RepliesI've been fighting for weeks now to make a simple music playback program. It would function much like Windows Media Player without the visualisations and playlists. I'm writing this on a Win7 box, but it needs to work on XP and newer.
I say fighting because I'm severely annoyed at how MS has worked some items and it's taken many days to go through everything only to find that it doesn't work.
I started by using WMP in VB Express 2010 and having it play my music. Simple, but not portable. I copied my .exe to a WinXP machine and it blew up. I copied it to a different Win7 machine and it doesn't run (I can double-slick all day, nothing happens,
no log entries, nothing....)
Then I find that there is an issue with the GUID of media player on different computers, and it'll most likely fail to run when you try to use it on other machines than the one the program was built on.
So I gave up on that.
I then figured I'd use DirectX. It's on XP and newer already, and is supposed to be backwards compatibile so if I build my app on Win7 it should still run on XP and such. I did that, and it works fine on the machine I built it with (again). My shuffle works,loop/repeat works, got my own version of a playlist and it all works. I copy that to another Win7 box and it doesn't run at all. It's setup as .NET 3 so I can be sure of compatibilty with WinXP.
For grins, I gutted all the code in my VB app involving calls to Directx and built that. It runs fine on other computers, including my XP test box. So I know the problem revolves around DirectX somehow.[code]...
I'm playing an audio file like so:
VB.NET Dim audio As New Audio(Application.StartupPath & "est.wav", True) audio.Balance = 10000 audio.Play()
Which works great. But if I need to change that file, I get an UnauthorizedException because the I haven't disposed of it. But, if I add a dispose after .Play, it won't play.
I have a WPF 4/VB.net project, and I'm trying to play video in it. I've been using a mediaelement, much to the chagrin of the program's overall performance. Thus, I'm looking into the only other viable alternative that I can find for my project...directx.
Which brings me to my question. Is it possible to play video (either Theora [.ogv] or Flash Video [.flv]) in DirectX?
I have scoured just about every code sample on the web, and am still having trouble. Basically my code follows the following structure:
I installed the DirectX SDK, and imported AudioVideoPlayback Imports Microsoft.Directx.AudioVideoPlayback '''
Then I create my VideoPlayer Public WithEvents VideoPlayer as Video So far so good, I have event handlers and a video object
Then:
[CODE]...........
I execute the above subroutine and the video plays flawlessly
[CODE]............
The above code works perfectly as well
Then I try to execute the PlayVideo sub to play another file and I get a generic "Object reference not set to an instance of an object" error, that does not point to any particular line of code. It took me forever to find out exactly what line of code was causing this. So I came up with a workaround:
In the PlayVideo sub I changed the code to this
[CODE]..............
And there it is, the second video played without error. but then I noticed something, after the second video ended the .Ending event handler did not fire, actually all the event handlers basically died. So someone told me to use a timer to monitor when the video ends, and I basically laughed it off since we know that's an amateur move. After being frustrated for a while, I caved in and used the timer to do my dirty work, which I really don't like.
Now there's another problem, after I play a video in my project, DirectX is not screwed up for other programs until I restart my computer. Particularly I have a visualization plugin for Windows Media Player called Gforce. After I play a video, Gforce will not work, it gives me an "Error=18" which means that my computer does not have sufficient hardware to use it. The only way to be able to clear it up is to restart my computer.
Here are my specs:
Intel 3.0ghz Dual Core processor
Nvidia Geforce 9800GT with 1GB ram
4 GM Ram
Windows 7 64-bit version (build 7100)
Programming in Visual Studio 2008 Professional (using Visual Basic code)
I originally attempted to use the AxWindowsMediaPlayer control, but I am unable to. According to Microsoft there is a bug that prevents me from using it. When I pull up the choose items dialog box it does not show up, if I browse to wmp.dll to manually add it, I get an error ("self-registration for c:windowssystem32wmp.dll failed"). I also read that you should try to add the wmp.ocx instead of wmp.dll, but I am at a loss on this since I am pretty sure that file does not exist. I am trying to put together a new media player program for my theater pc and this video thing is putting me to a standstill. I am a highly experienced vb programmer (over 20 years), but I am not very experienced in DirectX. I have read a lot of code samples on video playback but they all give me tons of problems, so I hate to say it but i think that most of these samples were written by people who don't know what they are doing.
I am having problems locating any documentation or examples for rendering video on a form using DirectX. I need to use DirectX because I will be putting overlay's on the video loaded dynamically. I will also want to perform transitions between 2 video instances.
I can not find any documentation on Google or Microsoft's site, Such as render the video on a 3d object as a texture, maybe... IDK?
This is for Visual Studio 2010, .net framework 4.0, using vb.net.
I'm looking for a free audio player control that has ability to display waveform of the audio being played.
View 1 Repliesmake a VU meter for Audio to monitor audio input devices volume level such as microphone and etc?
View 7 RepliesI'm trying to use the MSVidCtl to utilize a TV tuner on VS2008, but so far only got Audio but no Video. I've seen some other discussions and some other people having the same issue, probably related to "no encoder found" from the feature list of the tuner? How to make MSVidCtl work?
View 1 RepliesI am planning to create a proprietary Windows application that will let the user capture video and audio from any other Windows application and stream it onto another computer via Internet. Capturing video is easy, I could simply let the user browse all open windows (or applications) and have the user click the prefered one. But what about audio? Is it possible in Windows to capture the audio from any application?
View 4 RepliesHow can I know type of file, music video or something else, in VB 2005 without looking extension.
View 1 RepliesHow do I play audio/video files in VB.NET?
remember to mark the replies as answers.
Is possible extract audio from video and save into file wave?
View 1 RepliesI have a requirement to combine 2 audio files with a video file is this possible with vb.net.What the user basicly wants to do is select 3 files one video, 2 audio, then click a go button and the files be combined to produce a single file, where do I start?
Am wondering if media encoder can do this or do I need to look in other areas?
I want to know if there is a way to trim and audio.For example, I load in a song that is 3mins in length. I only want 1min 10s part to 2min 30s portion of the song and then save it as, let's say a WAV file.
Is there any API that I could look into to do this?
I'm making a quiz and I've got a set of questions and answers being loading into two different arrays, the idea is to answer a question with a choice of 4 buttons, so on a button click the answers checks to see if it is correct and moves along to the next question (while doing this the questions and answers change)However, my problem is that i've set up an audio player as the questions are for example "what is the sound?" and there is a preview button which uses the audio player to play the sound for the user.
Now everything moves with the array however, the sound still remains the same on every question after the quesiotn has been answered. So my set of answers move (when debugging, the sound array does move but the player doesn't seem to want to) with the array and i need the player to change to the specific array position which it is in as well.
Audio Player:
Dim answer = CorAnsList(qNum).sound
Dim answerPrev As String = My.Computer.FileSystem.CurrentDirectory & "sounds" & answer & ".wav"
Private Sub btnPrev_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPre.Click
[code]....
I have created a small media player calling COM component of Windows media player. Now i want to cut and save the audio files played in media player? is it possible with windows media player or i would have to use some other media player object? I can have the files info which i am using in window media player to play..but cant able to get the details which we can finds with our OS( windows) like compression format, bit-rate etc.
View 1 Repliesactually i have problem to develop tool for recover audio/video fil
View 1 RepliesI'am on Visual Studio 2008, language :VB
I want to integrate to my application a process to capture the audio and video from a specific area of the screen and save it in a .wmv or .avi file.
I already have Microsoft.Expression.Encoder on my computer but I dont know how to integrate the tool to my project.
I am developing an application where in I need to stream audio and video in the local area network. There is calling option from my application where users can call each other(audio call or video call) in the LAN.
View 3 Replieshow to play video or audio in a vb.net application but have come up with not a lot.
I want to create a program that accessing a web server (no problem on that) and will pick up audio and video that is stored on that server.
Or, maybe do a live broadcast where I can play my guitar and sing a song. (Promise if I get this done through here I will give you a live performance) on that note I am sure you will all hold back.
This is a little open and wide, but what I would like to know via a webserver is this possible
1.Video
2.Audio
3.Live broadcast
We have an occasional board meeting that is broadcast live via the Internet. We are on a 3000+PC LAN and our office is out in the boonies on a T1 line. In order for us to listen to the meeting we need to go to a website and play the live stream. If more than a few PCs listen in the line is saturated and no one can listen.
[Code]...
how to start a video on vlc player embedded in a form?I add the VideoLAN VLC ActiveX Plugin v1 and v2 to toolbox, and place both to my form.What is the code to start a video playing on VLC embedded to forms?
View 2 Repliesam programming a media player in VB.Net using the Microsoft.DirectX.AudioVideoPlayback namespace. I would like to be able to play video files which have multiple audio streams (eg. several languages or commentary) and select which audio stream to play. As far as I can tell the Video and Audio classes don't provide this functionality.
View 1 Replies