# Unsupported streams in VideoComponent

**URL:** <https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870>\
**Category:** General JUCE discussion\
**Created:** [September 19, 2021, 9:49pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870 "2021-09-19T21:49:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 19, 2021, 9:49pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/1 "2021-09-19T21:49:13Z")

</div>

Hi,

MP4 and FLV video is “Unsupported stream”. How to solve this problem?

![Unsupported stream](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/6/66c8fa4341fabdb9a1138aba63ffa0ec6f548679.png)

---

<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:** [September 20, 2021, 9:44am UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/2 "2021-09-20T09:44:08Z")

</div>

The VideoComponent uses a widget of the OS, IIRC in the case of windows it is ActiveX (or maybe there is a newer technology now). If the streams are not readable, you need to install the decoders on the OS. This cannot be fixed in juce.

If you encounter this writing your own software, you need either to choose a video format that is always supported or you bundle an installer for the missing codecs with your own installer.

For additional tips we would need to know which OS you are targeting and if you have control over the videos, or if it is a general purpose player, in which case you might need to educate the users how to get and install additional codecs.

---

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 20, 2021, 1:47pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/3 "2021-09-20T13:47:59Z")

</div>

OK, thanks! I want to make a video player with special functions for Raspberry Pi on Linux.

---

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 20, 2021, 2:57pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/4 "2021-09-20T14:57:13Z")

</div>

Does VideoComponent work on Linux? When assembling on a PC Linux, I got similar errors:  
undefined reference to “juce::VideoComponent::load()”  
undefined reference to “juce::VideoComponent::play()”

And on Windows everything built and worked.

---

<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:** [September 20, 2021, 4:03pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/5 "2021-09-20T16:03:18Z")

</div>

I don’t know what backend is used on linux, but maybe installing ffmpeg helps?  
I could imagine that v4l is used, but that is guessing.

---

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 20, 2021, 4:29pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/6 "2021-09-20T16:29:14Z")

</div>

The Juce demo does not have video support for Linux.

```auto
// VideoDemo
#if JUCE_MAC || JUCE_WINDOWS
...
#elif JUCE_IOS || JUCE_ANDROID
...
#elif JUCE_LINUX
 #error "This demo is not supported on Linux!"
#endif

```

---

<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:** [September 20, 2021, 4:32pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/7 "2021-09-20T16:32:33Z")

</div>

Ah sorry, my bad.  
Maybe my video engine [foleys\_video\_engine](https://github.com/ffAudio/foleys_video_engine) is an alternative. It uses ffmpeg. I haven’t compiled it in a while especially on Linux though…

---

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 20, 2021, 7:04pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/8 "2021-09-20T19:04:53Z")

</div>

Thanks! I will try this code.

---

<div class="post-metadata">

**Author:** ![Lex248](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lex248](https://forum.juce.com/u/Lex248)\
**Post date:** [September 20, 2021, 10:02pm UTC](https://forum.juce.com/t/unsupported-streams-in-videocomponent/47870/9 "2021-09-20T22:02:14Z")

</div>

All clear. The macro in juce\_VideoComponent.cpp file disables the code when building on Linux.

```auto
#if ! (JUCE_LINUX || JUCE_PROJUCER_LIVE_BUILD)

#if JUCE_MAC || JUCE_IOS
 #include "../native/juce_mac_Video.h"
#elif JUCE_WINDOWS
 #include "../native/juce_win32_Video.h"
#elif JUCE_ANDROID
 #include "../native/juce_android_Video.h"
#endif
...
#endif

```
