Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Bink Player (https://www.delphipraxis.net/162772-bink-player.html)

TrevorKidd 5. Sep 2011 10:15


Bink Player
 
Hallo,

ich möchte in einem kleinen Tool Bink Videos abspielen lassen. Ich habe im Internet auch ein Beispiel gefunden, doch leider scheint dies mit einer neueren Version von Delphi erstellt worden zu sein (ich benutze Delphi 7).

Leider ist es mir nicht gelungen das Ganze nach Delphi 7 zu portieren. Vermutlich stehe ich einfach nur zu sehr auf dem Schlauch. Könnte mir dabei bitte jemand helfen?

Grüße

Edit: Alternativ würde mir auch reichen, wenn mir jemand erklärt wie ich die BinkW32.pas, die auch in dem Archiv mit dem Beispiel enthalten ist, benutze um ein Video im Binkformat abzuspielen.

Für die Leute, die sich das Archiv nicht runterladen möchten, hier der Code aus der BinkW32.pas.
*snip*

lbccaleb 5. Sep 2011 17:37

AW: Bink Player
 
Hast du mal dezent den Einleitungstext von der *.pas gelöscht?

Der da währe:

Zitat:

{-------------------------------------------------------------------------------

BINK 1.0q LIBRARY HEADER FOR DELPHI
- By Lars Peter Christiansen.

http://home1.stofanet.dk/nitezhifter

PLEASE READ THIS :
"Bink" is a video library from RAD Tools. You have to be licensed in order
to use bink commercially.
Visit RADTools for legal info : www.smacker.com


This file is a hack !
Alot of record fields are still incomplete.
Not all functions exists!
I don't have the Bink SDK, and regardless of hours of search on the net, i
haven't found any info/extracts of the SDK. All i had to go on, was the tiny
info on RADTools website. Here is a list of approaches i used :
- Reading any written info of the Bink (sdk overview, changelogs)
- Reading any info of the Smacker (they might have things in common)
- Disassembling of the Binkw32.dll (names, parameters)
- Disassembling and debugging of games using the lib. ( Diablo2 )
- Creating various testing programs.(automating bitflags and stuff)


Binkw32.dll versions:
There are difference in function names and existence between the different
library versions. They are not always backwards-compatible!


DON'T RELEASE ANYTHING USING THIS FILE BEFORE YOU'VE READ AND UNDERSTOOD
THE LEGAL INFO AT www.smacker.com !


02-08-2000:
First version of the binkw32.pas.
We can open and display a binkfile. Can't get the audio to work though!

22-10-2001:
Did some research of the different versions of binkw32.dll. Seems that i've
been working on some beta version, which caused the switch of colors on
movies compiled at later dates. Movies play nicely now and works great with
a standard windows bitmap.

23-10-2001:
After some heavy analysis, the surfacetype constants fell into place. Still
not sure about 8bit. Is it supported at all?
After some _serious_ disassembling of Diablo2 and Red alert2 i finally solved
the great puzzle of the sound system. Those callbacks really bugged me.
Still can't create a custom sound system.

24-10-2001:
After a bit RedAlert2 debugging, support for playing off a stream
with offset has beed added.
Added a GetBinkVersion() function.


-------------------------------------------------------------------------------}
Intressant ist das:
Zitat:

"Bink" is a video library from RAD Tools. You have to be licensed in order
to use bink commercially.
Visit RADTools for legal info : www.smacker.com


This file is a hack !
Alot of record fields are still incomplete.
Not all functions exists!
I don't have the Bink SDK, and regardless of hours of search on the net, i
haven't found any info/extracts of the SDK.
Der Grund dafür, steht auf der Seite der Firma!

Zitat:

The best way to learn about Bink is to just try it! Download the RAD Video Tools to compress files into Bink format. Email us to get an evaluation SDK.
Sprich, das was du da gerade machst, ist illegal! Genauso, wie der hier gepostete Code :shock:

Daniel 5. Sep 2011 19:39

AW: Bink Player
 
Auf den ersten Blick scheint mir dies eine kommerzielle Unit zu sein (vielen Dank für den Hinweis!). Wenn dem tatsächlich so ist, dann darf der Code hier nicht veröffentlicht werden. Schon gar nicht ohne den Copyright-Hinweis.

Sollte es davon eine frei verfügbare Variante geben, dann benötige ich dafür eine belastbare Quelle und ich schalte alle Beiträge wieder frei.

omata 5. Sep 2011 21:34

AW: Bink Player
 
Es tut mir leid, ich habe einfach den ersten Link bei Google auf der Suche nach "binkw32.pas" verwendet (Jetzt ist es der zweite Link) und das Beispiel von dort verwendet. Da ist auch nichts herausgelöscht worden (außer nicht verwendeter Variablen und dem Befehl "Exit").

Naja, sorry.

igel457 6. Sep 2011 10:57

AW: Bink Player
 
Wenn du einfach nur Bink-Videos dekodieren möchtest, kannst du dafür Acinerella (http://acinerella.sf.net/) verwenden - den Code für die Wiedergabe (ohne solide Kenntnisse in Threading und Audio-Wiedergabe ist das leider nur schwer möglich) musst du aber selbst schreiben.


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz