Autor Beitrag
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Mo 19.05.08 06:41 
Hab mal so ne Frage, habe jetzt schon mehrere FLV Player entdeckt, wo nix auf eine SchokwavFlash Komponente oder ähnlich hindeutet!

Habt ihr vielleicht eine Ahnung wie das geht???

(Z.B.: Anhang | nFLVPlayer - www.zeraha.org/file.41.html)

Auch mit dem Vergrößern, den Buttons (Stopp und so ja noch okay, aber den Pause button???)
Einloggen, um Attachments anzusehen!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 19.05.08 08:12 
Dise Player (VLC z.B. auch) implementieren die Wiedergabe von den in der FLV-Datei eingebundenen Daten selber und versuchen nur, aus der FLV-File schlau zu werden ^^

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Mo 19.05.08 13:33 
Und das heißt für mich, kann ich so was in Delphi auch machen, oder geht das nicht?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 19.05.08 13:37 
Kann man mit Delphi machen ... Wird nur u.U. etwas Arbeit, das zu implementieren ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Mo 19.05.08 13:44 
Und wie fang ich da an, ginbts für sowas vielleicht ein Tutorial, wie man so was implementieren kann?
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Mo 19.05.08 15:06 
So, hab jetzt mal TFileStream und so benutzt:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    OpenDialog1: TOpenDialog;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  Meinstream: TFileStream;
  meinbyte: Byte;
  Buchstabe: String;
  Data: String;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
Data := OpenDialog1.FileName;
end;

procedure TForm1.Button2Click(Sender: TObject);
var
i: Integer;
begin

meinstream := TFileStream.Create(data, fmOpenRead); // Video reinladen

for i := 0 to 2 do // also 3 Mal (0, 1, 2)
begin
meinstream.Read(meinbyte, 1); // 1 Byte auslesen
buchstabe := buchstabe + Chr(meinbyte); // Byte in Buchstaben umwandeln mit Chr und string Buchstabe hinzufügen
end;
for i := 0 to 1000 do
begin
meinstream.Read(meinbyte, 1); // 1 Byte auslesen
buchstabe := buchstabe + IntToStr(meinbyte); // Byte in Buchstaben umwandeln mit Chr und string Buchstabe hinzufügen
end;
if i > 2 then 
meinstream.Read(meinbyte, 1); 
buchstabe := buchstabe + IntToStr(meinbyte); // Byte als Zahl lassen aber in string umwandeln und hinzufügen 


Showmessage(buchstabe);

meinstream.Free; // Wichtig: Wenn wir hier fertig sind Datei wieder freigeben!
end;

end.


Nur, wie soll ich jetzut weiter machen?

P.S.: Es erscheint übrigens "FLV1500068.........." eine ewig lange Zahlenkette!?
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Mo 19.05.08 18:22 
Also, die ganzen Zahlen sind der Film ;)
was das Problem an FLV ist, du weißt nicht (noch) in welchem FOrmat das Video vorliegt ... es gibt (nach Wikipedia) 3 Möglichkeiten für den VideoCodec, nämlich : Sorenson , VP6 und MPEG-4.
Dann musst du noch herausfinden wo der Sound anfängt (auch iwo bei den Zahlen^^ ;)) da gibts dann wieder 3 Möglichkeiten: MP3, Nellymoser Asao Codec und HE-AAC.
Du müsstest dir überlegen wie du herausfindest um welchen Codec es sich handelt und wie du ihn am geschicktesten implementierst! ...

Viel spaß ;)

MfG Fighter#1

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Mo 19.05.08 19:56 
Gibt aber nicht eine Komponente für sowas?

Oder hat jemand ne Idee?
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 22.05.08 04:22 
PUSH


:?: :?: :?: :?:
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Do 22.05.08 12:27 
Deine im ersten Post verlinkte Seite hat folgendes geschrieben:
It's built around macromedia flash ActiveX control


Demnach gibt's wohl was.
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 22.05.08 12:48 
Das es so eine Gibt weiß ich, nur spielt die kein FlashVideo sondern nur Flash ab, wonach ich wieder einen eigenen FlashVideoPlayer dazulegen muss und und und...

Deswegen versuche ich das Video zu implementieren und es dann direkt abspielen zu können...
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Do 22.05.08 12:55 
Na dann viel Spaß, hast dir ja was vorgenommen...
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 24.05.08 14:32 
user profile icondavid-kurz hat folgendes geschrieben:
Das es so eine Gibt weiß ich, nur spielt die kein FlashVideo sondern nur Flash ab, wonach ich wieder einen eigenen FlashVideoPlayer dazulegen muss und und und...

Deswegen versuche ich das Video zu implementieren und es dann direkt abspielen zu können...


Verstehe nur Bahnhof! WO IST DENN DEIN PROBLEM???
Einloggen, um Attachments anzusehen!
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Sa 24.05.08 15:31 
user profile iconhathor hat folgendes geschrieben:
user profile icondavid-kurz hat folgendes geschrieben:
Das es so eine Gibt weiß ich, nur spielt die kein FlashVideo sondern nur Flash ab, wonach ich wieder einen eigenen FlashVideoPlayer dazulegen muss und und und...

Deswegen versuche ich das Video zu implementieren und es dann direkt abspielen zu können...


Verstehe nur Bahnhof! WO IST DENN DEIN PROBLEM???


Das ich nicht weiß wie man das Implementiert...
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 24.05.08 16:04 
gispos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 94

WIN 7
XE10, D2007
BeitragVerfasst: Sa 24.05.08 16:23 
Vieleicht hilft's ja.
ffmpeg kann die meisten FLV Videos abspielen.
Es gibt auch eine DLL die sich über Delphi einbinden läßt. Aber… Ist nicht ganz einfach ein
Video mit Ton abzuspielen, musst dazu selber viel coden (Beispiele in C++ sind on board).
Entweder fertige DLL u. Delphi-Wrapper, oder Quellcode runterladen u. selber kompilieren Stichwort „MinGW“.

Einfach mal ffmpeg + Delphi in Google eingeben.
Gruß gispos
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 25.05.08 13:21 
www.torry.ru/vcl/mme...ControlForDelphi.zip


Damit kann man beides: FLV + SWF abspielen.

INFO:

www.f-in-box.com/delphi/
MDX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: So 25.05.08 21:38 
user profile iconhathor hat folgendes geschrieben:
www.torry.ru/vcl/mme...ControlForDelphi.zip


Damit kann man beides: FLV + SWF abspielen.

INFO:

www.f-in-box.com/delphi/


Bin am Testen...