I am trying to do an application that needs to load and work with AVI format movie files. The docs for PB 4.0 seem to say that just isn't supported. Is there a work around for this or will it be coming soon?
Thanks,
John
Loading and playing AVIs under Linuxs
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
Loading and playing AVIs under Linuxs
John R. Duchek
St. Louis,MO
St. Louis,MO
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
A snippit, please
Hey walker,
You say it is working...do you have a snippet to show me how to do it?
It would be greatly appreciated!
Also, I am trying to find if it is possible to use a python module under purebasic? There is one out called pyephem that does astronomical calcuations that I could really use.
John
You say it is working...do you have a snippet to show me how to do it?
It would be greatly appreciated!
Also, I am trying to find if it is possible to use a python module under purebasic? There is one out called pyephem that does astronomical calcuations that I could really use.
John
John R. Duchek
St. Louis,MO
St. Louis,MO
didn't know what doyou expect now... simply use the movie.pb example (from the windows version) and load an avi-file....
If it doesn't work, install the package w32codecs
Code: Select all
;
; ------------------------------------------------------------
;
; PureBasic - Movie example file
;
; (c) 2001 - Fantaisie Software
;
; ------------------------------------------------------------
;
If InitMovie() = 0
MessageRequester("Error", "Can't initialize movie playback !", 0)
End
EndIf
MovieName$ = OpenFileRequester("Choose the movie to play", "/media/sda1/aufnahmen/", "Movie/Audio files|*.avi;*.mpg;*.asf;*.mp3;*.wav;*.wmf|All Files|*.*", 0)
If MovieName$
If LoadMovie(0, MovieName$)
; Delay(1000)
OpenWindow(0, 100, 150, MovieWidth(0), MovieHeight(0), "PureBasic - Movie",#PB_Window_SystemMenu)
; ResizeMovie(0, 0,0, MovieWidth(0), MovieHeight(0))
PlayMovie(0, WindowID(0))
Repeat
Until WaitWindowEvent(10) = #PB_Event_CloseWindow
Else
MessageRequester("Error", "Can't load the movie...", 0)
EndIf
EndIf
-
John Duchek
- User

- Posts: 83
- Joined: Mon May 16, 2005 4:19 pm
- Location: St. Louis, MO
Thank you.
That snippet basically works. It loads my files and displays. I appreciate it.
Sometimes a little push is what I need. Thanks again.
John
Sometimes a little push is what I need. Thanks again.
John
John R. Duchek
St. Louis,MO
St. Louis,MO


