@AdSpiers wrote:
Hi All,
I've been working on some video player software with OF and am currently porting from my dev PC to a user PC. I'm working with large GoPro (12min = 4GB, 2704x1538 Res) .mp4 videos that work fine on my PC but are very laggy / jumpy on the user PC (pausing on one frame for some time, then jumping ahead several frames during playback). This may be due to the user machine having a 1GB Graphics card while the dev PC has a 4GB card. I've tried downsampling the videos in Windows Movie Maker to 864x482 .mp4, but then OF fails to play them. I get this error:
Error occured while playing or pausing or opening the file
[ error ] ofDirectShowPlayer: Cannot load video of this file type. Make sure you have codecs installed on your system. OF recommends the free K-lite Codec pack.I already have the K-lite pack installed.
My video loading code is very simple:
ofVideoPlayer loadedMovie; loadedMovie.setUseTexture(false); // I've also tried true loadedMovie.load(moviePath);
A strange thing is that the original large video files are also laggy / jumpy on the user PC when played with VLC player, but fine if played with the 'MPC-HC' video player that was installed with the k-lite codec pack. I also tried downsampling to a .wmv, but then got a different error and the video still does not load:
ERROR: SampleCB() - buffer sizes do not match 1230720 1229760
Both machines are running the same visual studio and OF versions.
Any suggestions are very welcome, I've been stuck on this for some time.
Posts: 5
Participants: 3