Autor Beitrag
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 24.02.08 10:36 
Hallo,

wie kann ich in einem AVI-Video auf einzelne Video-Frames zugreifen? Also diese in einem Image anzeigen? Ich bin jetzt auf TAnimate gestoßen, aber da kann man ja diese nicht in einem Image anzeigen (oder doch?). Ich bräuchte auch eine Funktion, um einen Video-Frame aus einem Image zu laden. Das soll am Ende ein Video-Schnittprogramm werden, nur leider habe ich bisher nur Videos abgespielt.
Vll gibt's da ja auch eine Zusatzkompo? Sollte nach Möglichkeit kostenlos sein.

Danke im Voraus!
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: So 24.02.08 22:17 
user profile iconJakob_Ullmann hat folgendes geschrieben:
wie kann ich in einem AVI-Video auf einzelne Video-Frames zugreifen?
...
Das soll am Ende ein Video-Schnittprogramm werden, nur leider habe ich bisher nur Videos abgespielt.
Vll gibt's da ja auch eine Zusatzkompo? Sollte nach Möglichkeit kostenlos sein.


Schau Dir mal DSPack an.

www.progdigy.com/modules.php?name=DSPack

twm
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 01.03.08 13:05 
Hmm... gibt's da azch was ohne DirectX? Z. B. mit OpenGL oder GLScene? Achso, und gut wäre auch noch MPEG.
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: Sa 01.03.08 19:47 
Siehe nehe.gamedev.net/dat...lesson.asp?lesson=35

Dort wird das ganze für OpenGL beschrieben, die VfW-API (Video for Windows) kann man aber auch ohne OpenGL nutzen. Einfach das HBITMAP an ein TBitmap zuweisen.

_________________
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.
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 02.03.08 13:46 
Danke!
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mi 05.03.08 16:54 
Sry, hab noch mal durchprobiert. Wie kann ich dann die einzelnen Frames wieder zusammenfügen und als AVI speichern? Also wenn ich dort auf den Canvas gemalt habe?
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: Fr 07.03.08 21:58 
Dafür gibt es in der VfW.pas, die der Portierung der Demo beiliegt entsprechende Funktionen. Für den vollständigen Ablauf gibt es bei Torry.net aber auch OpenSource-Komponenten, die Dir diese Aufgabe nahezu vollständig abnehmen.

_________________
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.