I have a program which plays videos using v6.20. They do not play using v6.21. I am using Windows 10 pro. The video files I use are mostly .mp4. I have version 19.0.1 of KLight installed and version 12 of Direct X.
Using the example program that comes with PB (movie.pb) slightly modified so I can debug:
H = MovieHeight(0)
W = MovieWidth(0)
OpenWindow(0, 100, 150, W, H, "PureBasic - Movie")
and putting a breakpoint on the OpenWindow statement:
with 6.20 both H and W get good values, with 6.21 they both come back with -1.
Please help.
Videos with Version 6.21
Re: Videos with Version 6.21
Try open a windows' "cmd/terminal/console" and DROP ffmpeg and your video file on it, to get something like this:
(note the spaces, -i and copy.mp4)
If it works, should be the fastest way to fix it…
Code: Select all
ffmpeg.exe -i yourVideo.mp4 yourVideoCOPY.mp4
If it works, should be the fastest way to fix it…
Re: Videos with Version 6.21
Hello Piero,
That worked. Thank you.
However, why should I have to do that since 6.20 worked with any video? Is there something else that needs to be done inside PB to make it work like 6.20?
How can I "install" ffmpeg so that Windows knows where to find it and its libraries?
That worked. Thank you.
However, why should I have to do that since 6.20 worked with any video? Is there something else that needs to be done inside PB to make it work like 6.20?
How can I "install" ffmpeg so that Windows knows where to find it and its libraries?
Re: Videos with Version 6.21
6.21 use MediaFundation instead of the deprecated DirectShow API, so it's probably a codec issue. I don't think we can act on this
Re: Videos with Version 6.21
My PC is currently running Windows 10 Pro. I have Klite CODEC Pack 19.0.1 Standard installed. When I attempt to install MediaFoundation on my W10 Pro machine I get an error message that the update is not applicable.
Re: Videos with Version 6.21
Media foundation is built-in in win10, so I don't think you can install something more