 |
|
|
 |
|
 |
Hello when i debug this software I get this exception:
On Program: Application.Run(new MAIN_Form(Argument));
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
|
|
|
|
 |
|
 |
I have the same error. (Windows 7 and Microsoft DirectX SDK (June 2010))
The form appears for a second and then the crash occurs.
Any help will be greatly appreciated to resolve that problem.
|
|
|
|
 |
|
 |
i had this problem until i changed the settings to debug in x86 mode rather than any cpu. It doesnt seem to like running in 64 bit mode, which is a shame.
|
|
|
|
 |
|
 |
Send your complaints to Microsoft.
Patrice Terrier
www.zapsolution.com
|
|
|
|
 |
|
 |
I need to auto-close the player when the movie ends. What's the best (easiest) way to do this?
Thanks!
|
|
|
|
 |
|
 |
It's easy, you think the video timer length (Videotime) and a timer event, which will mark the time that is in play(Currentime) ...
inside the tick of the timer as you compose the label Videotime at the end you of method have an if...
if (CURRENTTIME == Videotime) Butonstop (null, null);
Replace it with
if (CURRENTTIME == Videotime) Application.Exit ();
Although this in pseudo code I think you understand the concept ...
|
|
|
|
 |
|
|
 |
|
 |
The un-managed MovieBox (flat API version of C# Movie Player) has been updated to version 2.61.
Here is a screen shot of a 1920 x 800 MKV HD movie being played in DWM crystal composited mode on Windows Seven.
MovieBox HD screen shot[^]
Patrice Terrier
www.zapsolution.com
|
|
|
|
 |
|
 |
great job. thanks very much.
just a question, how to capture a image on any time frame?
thanks
|
|
|
|
 |
|
 |
The code below (written in PowerBASIC), shows you how i take a snapshot in "MovieBox" that is the successor of my "C# Movie Player".
If you want you can download "MovieBox" from this link:
http://www.zapsolution.com/DW/US/moviebox.html[^]
SUB TakeSnapShot(szFileName AS ASCIIZ)
LOCAL nBufSize, imgData, nWidth, nHeight, Img, NewImg, nHeaderSize AS LONG
pIBasicVideo.GetVideoSize(nWidth, nHeight)
nHeaderSize = SIZEOF(BITMAPINFOHEADER) '// 40-bytes
nBufSize = nWidth * nHeight * 4 + nHeaderSize
IF nBufSize > nHeaderSize THEN
REDIM PixelArray(nBufSize - 1) AS BYTE
imgData = VARPTR(PixelArray(0))
pIBasicVideo.GetCurrentImage(BYVAL VARPTR(nBufSize), BYVAL imgData)
IF GdipCreateBitmapFromScan0(nWidth, nHeight, nWidth * 4, %PixelFormat32bppARGB, BYVAL VARPTR(PixelArray(nHeaderSize)), Img) = 0 THEN
IF Img THEN
CALL GdipImageRotateFlip(img, 6) ' // Flip verticaly
CALL SaveImageToFile(szFileName, Img, 0)
CALL GdipDisposeImage(Img)
END IF
END IF
ERASE PixelArray()
END IF
END SUB
Regards
Patrice Terrier
www.zapsolution.com
|
|
|
|
 |
|
 |
Hi,
Do you have a version of this code in C#?
Not sure where to start, because GetCurrentImage() doesn't exist in the Microsoft.DirectX.AudioVideoPlayback.Video
class.
Thanks for your help.
|
|
|
|
 |
|
 |
Is AudioVideoPlayback.dll redistributable ?
It was part of the DirectX SDK, but my recollection is that it was missing from the last DirectX Redistibutable package I had downloaded.
Will MS sue my ash if I try to redistribute it together with my apps ?
On the other hand, what's the point in building a DirectX wrapper to be used by developers and not allow them to redistribute it ? I really don't get it !
Ohhh, legal stuff...
kostas KEL
modified on Tuesday, September 29, 2009 3:08 PM
|
|
|
|
 |
|
|
 |
|
 |
It's very nice , thank you very much
|
|
|
|
 |
|
 |
Thanks for sharing your project. it's very interesting.
Have a 5.
Dr.Luiji
Trust and you'll be trusted.
Try iPhone UI [ ^] a new fresh face for your Windows Mobile, here on Code Project.
|
|
|
|
 |
|
 |
Ciao,
i downloaded your code in codeproject..
with c# 2.0 is OK ?? or just only 1.1 ??
thanks
Nicola
|
|
|
|
 |
|
 |
I can't find the Microsoft.DirectX.AudioVideoPlayback Dll.Can you please tell me from where do i add it as a reference.I am on XP SP2 n DirectX 9.0c.
Please help.I need it urgently.
|
|
|
|
 |
|
 |
Hello,
any idea how can i draw some text on video layer?
Any tips ?
Best regards
|
|
|
|
 |
|
 |
Yep, on VISTA, use the good old flat API and a child popup with the WS_EX_LAYERED + WS_EX_TRANSPARENT extended style, then display the text using UpdateLayeredWindow.
Better to do this in plain Win32, like in the MovieBox project that has supersede the managed version, see it there.[^]
Patrice Terrier
www.zapsolution.com
|
|
|
|
 |
|
|
 |
|
 |
I have written a Win32 unmanaged version supporting both the matroska MKV format and CCCP codec, very often used to embed 1080p HD movies.
MovieBox is not written in C# but in PowerBASIC, you can find the full project there[^]
Patrice Terrier
www.zapsolution.com
|
|
|
|
 |
|
 |
Wonderful tool (5 from me.) Could you please tell me what tools you used to desing the png files?
|
|
|
|
 |
|
|
 |
|
 |
Thank you for the reply, and very nice links indeed. I wonder if I might bother you on a few pesky details, especially pesky since this article is about the Movie Player, and not graphics resource files. I looked at the location in the SkinEngine.cs file where it extracts out a portion of a PNG file it needs to draw onto a Skin Button. I was looking in particular at the Play button, which uses BTN_Play.png. It uses the UseImage to poke into BTN_Play.png to extract the bitmap.
Questions:
[1] The BTN_Play.png in particular does not look equally divided, so it appears you could pull a bitmap slice out of the PNG file that was not exactly centered on the rectangular region you really desire. Is this true?
[2] When you made BTN_Play.png, did you make the first button image and then copy the rest? Any other details you might wish to share I would be grateful.
Again, thanks for a wonderful tool. I am looking hard at using all or parts of it.
|
|
|
|
 |