Ondrej Peterka
Ondrej Peterka

Reputation: 3427

How to install codecs for H.264 in .NET?

We need to play some H.264/AAC videos in Winforms project written in C#. This should run on Windows XP SP2 and Linux (using Mono). In order to be able to do that, the computer has to have appropriate codecs installed I guess. Does anybody know if there is a way of installing the codecs as a part of installation of our project using msi installer. Is there some free or paid component, which we can use? Ideally in a form of some dll which, we could just register to the system somehow. Or is there some better way?

UPDATE: We have found this: http://vlcdotnet.codeplex.com/ It is not ideal so far, but we will try to investigate more.

Upvotes: 4

Views: 4120

Answers (2)

Ondrej Peterka
Ondrej Peterka

Reputation: 3427

In the end we used this library: http://libvlcnet.codeplex.com/, which proofs to be exactly what we need. We can play videos and auidos encoded in H.264/AAC codecs on every system (Win7, Win8, XP and various distribution of Linux), with very quite small effort now.

Upvotes: 0

Roman Ryltsov
Roman Ryltsov

Reputation: 69734

The MPEG-4 codecs are not free (MPEG LA licensing terms apply) in first place, so the first thing is to find what exactly codecs you are going to redistribute, and check this SDK/with this vendor how to correctly install and redistribute their software.

You will find some codec implementations listed here on Wikipedia:

Upvotes: 3

Related Questions