parvez
parvez

Reputation: 356

How to play H.264 video in a win32 window?

I came across a H.264 video which i would like to play in my c++ application. Could anyone suggest what could be the easiest way of doing it? Or What library can be used for the purpose.

Thanks in advance..

Upvotes: 2

Views: 3900

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69672

Windows API are DirectShow and Media Foundation (mind availability across Windows verions). You need a codec installed in Windows to be able to play the file, stock codec is only provided with Windows 7 editions. A choice of third party codecs is available.

Another option is to use a different framework such as ffmpeg which includes support for container formats and decoders.

Upvotes: 2

Related Questions