[Solved] mp4 movie files
[Solved] mp4 movie files
Can PB show mp4 files? If so, how. I tried using the example in the Movie section of the on-line manual and it failed.
I am using PB 6.11 and Windows 10.
Thank you all for your responses. I use the VLC program to view my MP4 files. How do I install LibVLC for Pure Basic?
I found these files ( do not remember where??? ): example.pb, libvlc.pb and vlc.pb. Running example.pb works fine without the debugger. However, it crashes when I compile with the debugger. Any ideas? Also, is there any documentation for this library?
I am using PB 6.11 and Windows 10.
Thank you all for your responses. I use the VLC program to view my MP4 files. How do I install LibVLC for Pure Basic?
I found these files ( do not remember where??? ): example.pb, libvlc.pb and vlc.pb. Running example.pb works fine without the debugger. However, it crashes when I compile with the debugger. Any ideas? Also, is there any documentation for this library?
Last edited by k3pto on Sat Aug 10, 2024 1:02 am, edited 3 times in total.
Re: mp4 movie files
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: mp4 movie files
I have seen that PB Linux already uses libVLC.
@Fred: would this also be a useful improvement for Windows?
@Fred: would this also be a useful improvement for Windows?
"Daddy, I'll run faster, then it is not so far..."
Re: mp4 movie files
On windows and mac libvlc is not natively available.
Re: mp4 movie files
Yes, if the codec for MP4s is installed on the PC. I can view MP4s just fine inside a PureBasic window.
Re: mp4 movie files
Hi BarryG,
Would you happen to have some instructions and/or example for how to do it?
Would you happen to have some instructions and/or example for how to do it?
Re: mp4 movie files
I originally installed my video codecs from the "K-Lite Mega Codec Pack" -> https://www.codecguide.com/download_k-l ... k_mega.htm
Once installed, this example plays MP4s for me:
Once installed, this example plays MP4s for me:
Code: Select all
InitMovie()
If LoadMovie(0, "C:\Path\To\Movie.mp4")
OpenWindow(0, 200, 200, MovieWidth(0), MovieHeight(0), "MP4 Playback")
PlayMovie(0, WindowID(0))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Re: mp4 movie files
You probably refer to this which includes a documentation link.k3pto wrote: Fri Jul 12, 2024 12:06 am I found these files ( do not remember where??? ): example.pb, libvlc.pb and vlc.pb. Running example.pb works fine without the debugger. However, it crashes when I compile with the debugger. Any ideas? Also, is there any documentation for this library?
Re: mp4 movie files
Hi BarryG and Bitblazer,
Thanks for the info. Using BarryG's suggestion, I installed the standard K-Lite codecs and it seems to work just fine using the Movie library within PB. Although I did get the VLC library working, I believe using the standard PB library will probably be a better long term solution.
Thanks again for all your help!
Thanks for the info. Using BarryG's suggestion, I installed the standard K-Lite codecs and it seems to work just fine using the Movie library within PB. Although I did get the VLC library working, I believe using the standard PB library will probably be a better long term solution.
Thanks again for all your help!
Re: mp4 movie files
That's not how PureBasic's Movie library works. It doesn't support any video playback itself; it just uses whatever video codecs are installed. There's no codecs included in PureBasic itself.k3pto wrote: Mon Jul 15, 2024 10:28 pmI believe using the standard PB library will probably be a better long term solution.