# Videos that open in Windows Media Player but not in VideoComponent

**URL:** <https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940>\
**Category:** General JUCE discussion\
**Created:** [April 8, 2022, 8:59pm UTC](https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940 "2022-04-08T20:59:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZioGuido](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zioguido/32/6975_2.png) [@ZioGuido](https://forum.juce.com/u/ZioGuido)\
**Post date:** [April 8, 2022, 8:59pm UTC](https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940/1 "2022-04-08T20:59:53Z")

</div>

I’m making an app that should play some videos, and I’m experiencing a strange issue. There are some videos that open in Windows Media Player but not in VideoComponent; I am trying on 3 different computers, all three running Windows 10 with pretty much the same software/hardware setup, only on one of these I can open all videos; on the other two PCs, the exact same video files will still open in WMP but not in my Juce app. Is there a reason for this? What am I missing?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [April 8, 2022, 10:16pm UTC](https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940/2 "2022-04-08T22:16:55Z")

</div>

There is a good answer here:

> [@Unsupported stream and h264](https://forum.juce.com/t/unsupported-stream-and-h264/50601/3):
>
> Hi Daniel, thanks for your in depth answer! The thing is: Windows Media Player can playback the files! So the codec is actually installed! So the problem must be somewhere else. I will try to sum up what we’ve found out: We know that JUCE wraps OS capabilities in order to play back video files I think Windows provides to approaches for media playback: the first is Direct Show (older/outdated) and the second is “Windows Media Foundation” (current). Unfortunatly JUCE uses Direct Show. Windows…

TL;DR: WMP uses a more modern framework “Windows Media Foundation”, but JUCE uses an old “Direct Show” widget.  
It is not known if and when JUCE updates to Media Foundation.

There is a feature request that @t0m linked, but it is not specified, if that would encompass video as well, since it says AudioFormatReader:

> [@AudioFormatReader - AAC - MP4 Reader For Windows](https://forum.juce.com/t/audioformatreader-aac-mp4-reader-for-windows/40468):
>
> I understand there are licensing issues with the AAC encoder, however the lack of native Windows support for reading AAC/MP4 files is a significant limitation. This has been at the TOP of my personal JUCE ‘Wish List’ for quite some time

---

<div class="post-metadata">

**Author:** ![ZioGuido](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zioguido/32/6975_2.png) [@ZioGuido](https://forum.juce.com/u/ZioGuido)\
**Post date:** [April 8, 2022, 10:52pm UTC](https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940/3 "2022-04-08T22:52:54Z")

</div>

Thanks for your answer Daniel. I saw that post but I am experiencing a different situation, whereas on 1 of my 3 PCs I can open the videos and I was trying to understand what was in this PC that’s missing in the others. Meanwhile, after some investigation, I found that the PC that can show the videos has a codec package installed called Haali Matroska Splitter, which I must have installed some 2 years ago and can’t just remember for what reason. Anyway, installing this package on the other PCs enables the playback of videos in my Juce App.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [April 9, 2022, 7:19am UTC](https://forum.juce.com/t/videos-that-open-in-windows-media-player-but-not-in-videocomponent/50940/4 "2022-04-09T07:19:59Z")

</div>

Glad you found it. I was also surprised that the Media Foundation and Direct Show use different encoder APIs, so one needs to check for wich API an encoder is installed. I should have mentioned that.
