Re: MediaKit – Update
Sounds great ! I'm keeping an eye on this project. Keep up the good work ! Regards, Dan
By Daniel on
9/21/2008 6:16 AM
|
Re: MediaKit – Update
Hi Dan,
Do you need anything specific that uses this library? A feature or something? Feel free to email me (and anyone else) at jeremiah.morrill [at] gmail.com
-Jer
By Jeremiah Morrill on
9/21/2008 6:27 AM
|
Re: MediaKit – Update
Hi Jeremiah,
I've been evaluating the last release of the kit and seems that SpeedRatio does not work properly. I tested it with wmv, mpeg2 and 4 and DivX files with the same negative results.
Can you confirm the feature is working OK, and how must it be used?
Great job!
Thanks in advance,
Jordi
By Jordi on
9/21/2008 12:10 PM
|
Re: MediaKit – Update
Nice release, all major issues addressed. I noticed some performance issues on my home machine. It can play HD videos at ~95% CPU usage with windowed VMR9, it is really at its limit but it does work. With MediaKit i get 100% CPU and the video lags heavily. I can't say how much the difference really is, might be only few percent that make the videos lag...
By Lukas on
9/22/2008 12:57 AM
|
Re: MediaKit – Update
Thanks Lukas,
There surely is some overhead rendering with WPF vs just a windowed VMR9. I'm sure the extra % CPU put your HD video over the edge. You can test to see how much % CPU is used with D3DImage simply by disabling the InvalidateVideoImage method in the D3DRenderer.cs. In my tests, I haven't seen a big disparity between the VMR9 and MediaKit. I do think Vista will probably yield better performance and I think different GPUs will show different results.
-Jer
By Jeremiah Morrill on
9/22/2008 1:33 AM
|
Re: MediaKit – Update
Great mediakit Jeremiah! I look forward to playing around with it. I have one question though. I have a macbook pro that is running vista 64-bit and my iSight camera is found in the mediakit, but it throws an exception when it tries to build the graph in SetupGraph() in VideoCapturePlayer.cs. Here is some of the exception info:
COMException: Unspecified error error code: -2147467259 target site: {Void ThrowExceptionForHR(Int32)} stack trace: at DirectShowLib.DsError.ThrowExceptionForHR(Int32 hr) at WPFMediaKit.DirectShow.MediaPlayers.VideoCapturePlayer.SetVideoCaptureParameters(ICaptureGraphBuilder2 capGraph, IBaseFilter captureFilter) in C:\WPF\WPF Examples\WPFMediaKit\WPFMediaKit\DirectShow\MediaPlayers\VideoCapturePlayer.cs:line 279 at WPFMediaKit.DirectShow.MediaPlayers.VideoCapturePlayer.SetupGraph() in C:\WPF\WPF Examples\WPFMediaKit\WPFMediaKit\DirectShow\MediaPlayers\VideoCapturePlayer.cs:line 186
Do you have any insight into why this is happening, thanks for any help!
By aquaseal on
9/22/2008 4:33 AM
|
Re: MediaKit – Update
Since it's crashing on SetVideoCaptureParameters, on the last line where I throw an error because the setting of the media format (hr = videoStreamConfig.SetFormat(media);) failed.
This is most likely because your iSight does not support the Width/Height/FPS I set to it. See what happens if you disable the last "DsError.ThrowExceptionForHR(hr);" in the SetVideoCaptureParameters and let me know what it does.
-Jer
By Jeremiah Morrill on
9/22/2008 6:00 AM
|
Re: MediaKit – Update
I manged to get the iSight working just by using 640x480 for this capture size.
By Michael Malinak on
9/23/2008 9:57 AM
|
Re: MediaKit – Update
Hello,
My MediaKit test failed (Visual C# 2008 Express crash), if I try open Window1.xaml in your SampleApplication. I try change settings (Source, LoadedBehaviour, UnloadedBehavior etc.) and mix them, but nothing don't make a difference. Always result is Visual Studio crash. I try MediaKit with Windows Vista Home Premium 32bit and .Net Framework version 3.5.
-Jokkeri
By Jokkeri on
9/29/2008 12:18 AM
|
Re: MediaKit – Update
Hello,
My MediaKit test failed (Visual C# 2008 Express crash), if I try open Window1.xaml in your SampleApplication. I try change settings (Source, LoadedBehaviour, UnloadedBehavior etc.) and mix them, but nothing don't make a difference. Always result is Visual Studio crash. I try MediaKit with Windows Vista Home Premium 32bit and .Net Framework version 3.5.
-Jokkeri
By Jokkeri on
9/29/2008 12:54 AM
|
Re: MediaKit – Update
Great work Jeremiah!
I just finished contributing to a fully tested .NET WMF SDK translation. Thought you might be interested to prevent work duplication. It is located at http://windowsmedianet.sf.net
By Bryce Kahle on
9/29/2008 11:37 AM
|
Re: MediaKit – Update
Hello,
I test a little bit more yours excellent MediaKit. I found bug from MediaUriPlayer.cs line 269 (Dispatcher.Run();). Exception is TargetInvocationException. Tested videos was wmv-files. In your test Application videos works fine. Suggestions?
-Jokkeri
By Jokkeri on
10/1/2008 1:18 AM
|
Re: MediaKit – Update
Hello,
Thanks for this new version. I am pretty pleased with it and I have decided to integrate it in my project. All things considered, it works well, despite the performance issues I mentioned in a previous post. I also have two issues to submit: - I get a NullReferenceException when I close my application without ever setting a source to my MediaUriElement. It happens in BaseClasses.cs, line 211-212 (Application.Current is null). I have reproduced in a very basic project. - When I start playing a file, whatever the value of Volume is, it sounds like it equals 1. When I adjust it, it works fine... until I update the source...
Damien
By Damien on
10/3/2008 10:14 AM
|
Re: MediaKit – Update
Great work Jeremiah, I've been following the different iterations of this for a while. I see you are now using the VMR9 to render the files. Is there a way to add a second video into the MediaUriPlayer to allow simultaneous playback?
By Duane on
10/3/2008 10:41 AM
|
Re: MediaKit – Update
It should be possible with some changes. The VMR9 should support it, but I'm not sure how that works with the custom allocator. Do you need two videos playing in one VMR? Couldn't you create two MediaUriPlayers?
By Jeremiah Morrill on
10/3/2008 10:46 AM
|
Re: MediaKit – Update
Hi Jeremiah
I'm putting together a video editing suite in WPF based around the Splicer library but am a bit of a Direct X novice (so please be gentle!). What I need to do is preview (start, stop, pause, scrub) my DES Timeline in real time as can be done in windows movie maker. Is this functionality your controls do/could support? Great work btw!
By Stewart on
10/9/2008 7:30 AM
|
Re: MediaKit – Update
The WPF MediaKit sounds perfect for you. I have an example in there called the "MediaUriElement" that would be a good place to start. The MediaSeekingElement that it inherits from supports seeking in Frames, Time, Samples, etc just as long as the DShow filters support it.
-Jer
By Jeremiah Morrill on
10/9/2008 8:37 AM
|
Re: MediaKit – Update
Hi Jeremiah
Thanks for getting back to me so quickly. I am a *total* DirectShow noob so please bear with me! How would I go about building a filter graph from a DES timeline? Would the code look similar to that in the MediaUriPlayer's OpenSource() method?
Cheers
Stewart
By Stewart on
10/9/2008 3:18 PM
|
Re: MediaKit – Update
Jeremiah,
I have a situation where I may have a single container (mp4) with multiple video streams that I want to play back together.. Even if I have the streams in separate files I need to be able to keep them synced with fast-forward, etc. This has not worked so well with two MediaElements no matter how I have tried. I have made modifications to the MediaKit which allow me to use more streams on the VMR9 and it looks like it will fit the bill.
One question, I've been using a timeline on my origial mediaelements clock to keep several other pieces of information in sync on screen through animations (works awesome) my question is can this been done with the MediaKit? Being able to make it part of a timeline is the last thing that is providing any kind of holdup on being able to use the mediakit.
Thanks, Duane
By Duane on
10/10/2008 1:44 PM
|
Re: MediaKit – Update
I posted this on Codeplex, but I will try it here.
The control works GREAT, but I do get a crash when I try to view the XAML in Visual Studio 2008 SP1.
My workaround is to have a regular mediaelement in there until I need to show the page.
Any help would be appreciated.
By Dewey on
10/17/2008 3:52 PM
|
Re: MediaKit – Update
Dewey,
The Visual Studio XAML Designer (Cider) is pretty bad. It has crashed on me with just trivial XAML. This case may be different though because the control hooks into the WndProc and probably can't find it.
Try using this snippet in the WPF control (ie MediaUriElement) before the media source is changed:
if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { return; } /* else set the media source and create the graph in the player */
By Jeremiah Morrill on
10/20/2008 11:56 AM
|
Re: MediaKit – Update
Hi Jer,
I downloaded the code. but not able to compile and run it, not even able to open the project file. When i open the project file, the message is: Unable to read the project file 'WPFMediaKit.csproj.'. C:\WPFMediaKit\WPFMediakit\WPFMediaKit.csproj(118,11): the imported project "C:\Microsoft.CSharp.targets" was not found. confirm that the path in the declaration is correct, and that file exists on disk.
I have visual studio 2005 pro edition.
Could you please help. Thanks.
By Maverickcoder on
10/21/2008 6:51 AM
|
Re: MediaKit – Update
Hi Jer,
I downloaded the code. but not able to compile and run it, not even able to open the project file. When i open the project file, the message is: Unable to read the project file 'WPFMediaKit.csproj.'. C:\WPFMediaKit\WPFMediakit\WPFMediaKit.csproj(118,11): the imported project "C:\Microsoft.CSharp.targets" was not found. confirm that the path in the declaration is correct, and that file exists on disk.
I have visual studio 2005 pro edition.
Could you please help. Thanks.
By Maverickcoder on
10/21/2008 7:12 AM
|
Re: MediaKit – Update
Maverickcoder,
This project requires VS 2008 and .NET 3.5 SP1
-Jer
By Jeremiah Morrill on
10/21/2008 11:58 AM
|
Re: MediaKit – Update
Hello,
How I can set start position to media. I try set milliseconds to MediaPosition property (player.MediaPosition = 10000; //10 sec), but i don't see any effect? I found some strange behaviour in volume property. If I set volume to zero and then I try change MediaPosition, the volume goes back to full.
Can I play audio-cd via WPFMediaKIT? In my test program I get message to console: "A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in DirectShowLib-2005.dll"
-Jokkeri
By Jokkeri on
10/30/2008 5:44 AM
|
Re: MediaKit – Update
Hello Jer,
I've been a long time follower of your great work here. Thanks for providing a great technical resource. I've run into a snag on your original media bridge work.
I am using the stream buffer sink to capture live tv. this part is working perfectly. On the player side with the stream buffer source, when i run without wpf, it works perfectly. Building the player side graph (stream buffer source ) with the mediabridge call back works perfectly.
The problem comes when i go to access the stream buffer source filter outside of the mediabridge call back (when the user presses fast forward or reverse as an example)
I get the following HR error 0x80070725 "Incompatible version of the RPC stub. "
here's the code that works when i am running outside of WPF and Mediabridge, but falls over when i run it under wpf and mediabridge
int hr = 0;
long lOneSecond = 10000000;
long lCurrentPosition = 0, lStopPosition = 0;
hr = (sbeSource as DirectShowLib.SBE.IStreamBufferMediaSeeking2).GetPositions(out lCurrentPosition, out lStopPosition); System.Diagnostics.Debug.WriteLine("GetPositions hr=" + hr.ToString());
lCurrentPosition -= lOneSecond * 10;
hr = (sbeSource as DirectShowLib.SBE.IStreamBufferMediaSeeking2).SetPositions(lCurrentPosition, DirectShowLib.AMSeekingSeekingFlags.SeekToKeyFrame | DirectShowLib.AMSeekingSeekingFlags.AbsolutePositioning, null, DirectShowLib.AMSeekingSeekingFlags.NoPositioning); System.Diagnostics.Debug.WriteLine("SetPositions hr=" + hr.ToString());
The GetPositions and SetPositions both fail with "Incompatible version of the RPC stub. "
Got any pointers on how to get this puppy working?
Thanks in advance Anton
By Anton on
10/30/2008 9:10 PM
|
Re: MediaKit – Update
> Anton
I hade simulare problems adding a filter that I needed to control from WPF. I added the filter and functions in "BaseClasses.cs" ex. "MyFunction(int value)"
If I call this from WPF it crashes, but if I added a function in "MediaUriElements.cs" that do this call:
MediaPlayerBase.Dispatcher.BeginInvoke((Action)delegate { MediaPlayerBase.MyFunction(123); });
Then I call that fundtion from WPF and it works great!
Try it.
/Ken
By Ken on
11/2/2008 1:21 PM
|
Re: MediaKit – Update
Thanks Ken,
that did the trick.
By Anton on
11/5/2008 11:53 PM
|
Re: MediaKit – Update
Hi,Jeremiah
I have downloaded the latest version and tested it. When i run the SampleApplication, there seem to be a problem with it:
when i open a WMV file to play, and press the PAUSE button,then wait for a moment ,say 30 second,then press PLAY button ,I found the audio is running ,but the video is not (I mean the video image is still).
Besides,when I set the volume to 1,I feel the volume is lower than that when i play with other mediaplayer(e.g. Windows media player), is there some problem with the VOLUME property of MediaUriElement?
By Don on
11/8/2008 7:06 AM
|
Re: MediaKit – Update
see here http://www.cnblogs.com/gussing/archive/2007/05/10/742061.html
By etherny on
11/19/2008 9:03 AM
|
Re: MediaKit – Update
this is something i have been very interested in lately. thanks.
By Burberry handbags Replica on
1/5/2010 10:57 PM
|
|
<a href="http://www.edhardyclub.com/ed-hardy-hoodies.html"><strong>ED Hardy Hoodies</strong></a> ED Hardy Hoodies <a href="http://www.edhardyclub.com/ed-hardy-swimwears.html"><strong>Ed Hardy Swimwea
ED Hardy Hoodies ED Hardy Hoodies Ed Hardy Swimwear Ed Hardy Swimwear ed hardy tops ed hardy tops ed hardy shoes ed hardy shoes ed hardy t shirt ed hardy t shirt ed hardy shirts ed hardy shirts christian audigier christian audigier ed hardy kids ed hardy kids Ed Hardy Sunglasses Ed Hardy Sunglasses ED Hardy belts ED Hardy belts ed hardy Bags ed hardy Bags ed hardy purse ed hardy purse ed hardy mens ed hardy mens ed hardy womens d hardy womens ed hardy mens shirts ed hardy mens shirts ed hardy mens tops ed hardy mens tops ed hardy mens hoodies d hardy mens hoodies ed hardy mens swim trunks ed hardy mens swim trunks ed hardy mens shoes ed hardy mens shoes ed hardy womens swimwear ed hardy womens swimwear ed hardy womens t shirt ed hardy womens t shirt ed hardy womens tops ed hardy womens tops ed hardy womens pants ed hardy womens pants ed hardy womens hoodies ed hardy womens hoodies ed hardy womens shoes ed hardy womens shoes ed hardy womens clothing ed hardy womens clothing
By ed hardy on
3/15/2010 9:18 PM
|
cheap nike shox
There are wide variety of Nike Shox for both men and women's selection.The Nike Shox Sale are best selling nowadays.Get your own Cheap Nike Shox now.It's definitely time for you to buy womens nike shox and wens nike shox, Wearing them will keep you in a perfect condition.
By nike shox on
3/16/2010 7:47 PM
|
|