Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Playing video on windows with visual studio and of 0.9.3

$
0
0

@davidemania wrote:

Hi,
this post is going to be a long one, so I make it short first: is there a way to play a video file on windows, oF 0.9.3, visual studio 2015? Details follow.

After trying for almost the whole day to play a video file I'm giving up and asking for help. It should be simple (on OSX I could do it very easily) but for some reason I really can't get it to work on windows.

There is no need to supply a code sample because the standard videoPlayerExample is enough to reproduce the problem. With different video formats the player does not display anything at all, or only shows the first frame then it freezes.

The forum already gave hints about the origin of the problem (basically the new directShow based player that comes with oF 0.9.0) and possible solutions. I tried, following what is reported here and in this thread, to install the k-lite codecs but they did not work. They have a huge list of options, so huge that hoping to find the right combination (if any) is worse than finding a needle in a haystack.

Besides, having users to install a codecs pack to run my application does not look like a good idea. It would be good enough to find a video format that renders well with the standard player, but none of the many I tried seemed to work.Even wmv files (that should be at home with directshow) refuse to play. And, last, the ofxWMFVideoplayer addon did not work too, complaining that my video card does not support WGL_NV_DX_interop.

Of course being able to play almost everything out of the box (like the Mac version) would be the best option, but even finding a video format that works would be fine. The video will be the background of the app, with things being drawn over it.

Any help will be greatly appreciated, thank you
Davide

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles