# Video File Won't Load in WSL2

**URL:** <https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196>\
**Category:** Questions\
**Created:** [July 8, 2021, 4:17pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196 "2021-07-08T16:17:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkomix](https://avatars.discourse-cdn.com/v4/letter/g/e99b99/32.png) [@gkomix](https://forum.aotu.ai/u/gkomix)\
**Post date:** [July 8, 2021, 4:17pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/1 "2021-07-08T16:17:35Z")

</div>

Hi Alex,  
Great work!

I installed the brainframe server using Ubuntu 20 WSL2 on windows with docker desktop. The installation was successful. Then I run the brainfraom client (windows), the connection via localhost to brainfraim was successful.

However, when I try to add stream with my webcam, it failed. Also, I try to load the Mp4 file it also failed.

Can you assist on this matter?

Thanks.

---

<div class="post-metadata">

**Author:** ![alex.thiel](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.aotu.ai/alex.thiel/32/48_2.png) [@alex.thiel](https://forum.aotu.ai/u/alex.thiel)\
**Post date:** [July 8, 2021, 5:00pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/2 "2021-07-08T17:00:20Z")

</div>

Hi gkomix,

Thank you for reaching out, and for trying out BrainFrame! It’s great to hear from our users.

> I installed the brainframe server using Ubuntu 20 WSL2 on windows with docker desktop. The installation was successful. Then I run the brainfraom client (windows), the connection via localhost to brainfraim was successful.

Unfortunately, WSL/WSL2 is not officially supported by Aotu, so there may be more bugs or issues that Aotu doesn’t know about, or know how to solve. The easiest thing to do is to install an Ubutu 20.04 VM, or dual-boot Ubuntu 20.04, and run BrainFrame natively on the OS. This is the most supported path, and will lead to good results.

With that said, I’ll try my best to help!

> However, when I try to add stream with my webcam, it failed.

This is expected. I don’t believe that WSL2 has access to hardware devices on the host machine such as webcams. Hence, the Server won’t be able to connect to the device.

> Also, I try to load the Mp4 file it also failed.

Okay, that’s a bit odd! Could you send me the logs? Just run this command, and send me the `logs_for_alex.txt` file.

```auto
brainframe compose logs > logs_for_alex.txt

```

Cheers!

---

<div class="post-metadata">

**Author:** ![gkomix](https://avatars.discourse-cdn.com/v4/letter/g/e99b99/32.png) [@gkomix](https://forum.aotu.ai/u/gkomix)\
**Post date:** [July 9, 2021, 4:52pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/3 "2021-07-09T16:52:20Z")

</div>

Hi,

I installed the brainframe server in Ubuntu 20 using VMware version 16. The server is able to run. I also installed the client. However, when I upload the license key, it shows that the brainframe server is unable to access the internet. Attached below is the screenshot. You can see the browser is able to browse the website. But the brainframe server cannot access the internet.

 ![brainframe-mo-internet-access](https://us1.discourse-cdn.com/flex019/uploads/aotu/original/1X/bcd16021c4d1ee08c9ee3f3414b2e59ece999326.jpeg)

Could you assist on this matter? Thanks.

BTW, my OS had problem with the docker desktop and my previous setup on WSL 2 cannot run anymore. Thus, I am unable to retrieve the log file info.

---

<div class="post-metadata">

**Author:** ![alex.thiel](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.aotu.ai/alex.thiel/32/48_2.png) [@alex.thiel](https://forum.aotu.ai/u/alex.thiel)\
**Post date:** [July 9, 2021, 5:12pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/4 "2021-07-09T17:12:54Z")

</div>

> However, when I upload the license key, it shows that the brainframe server is unable to access the internet.

That’s interesting… The server only checks once to validate a license. Could you try restarting the server and applying the license again? If it fails again, please send me the logs.

**Restarting the server**

```auto
brainframe compose down && brainframe compose up -d

```

**Sending Logs**

```auto
brainframe compose logs > logs-for-forum.txt

```

Thank you!

* * *

I’ve copy-pasted my answer from the [OpenVisionCaspules github issue you created](https://github.com/opencv/open_vision_capsules/issues/37) here:

> 1. I will try using Virtual Box VM run Ubuntu OS on Windows. Just to confirm, the brainframe does not required GPU rite? Because VM the VirtualBox VM does not has access to GPU hardware.

BrainFrame does not require GPU. **However, if you load capsules that require GPU, they will run very slowly without GPU!**

Look at the **Hardware** section of the [Capsules Downloads Page](https://aotu.ai/docs/downloads/#capsules), and look for capsules that **don’t** list GPU. Those will work fine in a CPU only enviornment 😊

 ![image](https://us1.discourse-cdn.com/flex019/uploads/aotu/original/1X/3f4ce75ce49ede14938b139961cf389974ede53b.png)

> 1. The docker desktop on my PC stop running. Thus, I cannot retrieve the brainframe log file. Is there other way to retrieve the log file without running brainframe?

There’s no need for BrainFrame to be runnning, the logs are handled by docker/docker-compose. Running `brainframe compose logs > logs.txt` will work as long as `docker` and `docker-compose` are installed.

* * *

I tested the forum, it appears it works fine? Let’s continue the conversation there! 😊

---

<div class="post-metadata">

**Author:** ![gkomix](https://avatars.discourse-cdn.com/v4/letter/g/e99b99/32.png) [@gkomix](https://forum.aotu.ai/u/gkomix)\
**Post date:** [July 10, 2021, 5:17am UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/5 "2021-07-10T05:17:28Z")

</div>

Hi,  
The brainframe-client can run already after solving the networking issue with vmware.

Webcam Test:  
I connected a webcam to the computer and access via VMware. The VM Ubuntu OS detected the webcam and shown /dev/Video0 and /dev/Video1. I tested with cheese webcam software and it can display the webcam view. However, when I try to add the webcam stream using brainframe-client, it failed. The following is the screenshot. Is the client can work with webcam connect thru VM?

 ![p2](https://us1.discourse-cdn.com/flex019/uploads/aotu/original/1X/7583ff06c5da7898ca0e64dc59f5e7f5061cd227.png)

Video File Test  
I added two video files (vehicles passing on the road) streams using brainframe-client and it can be loaded and play the videos. I tried to add capsules (CPU only) such as

1. Tracker Vehicle Iou
2. Classifier Vehicle Color Openvino
3. Calculator Object Speed  
However, there are no detection and tracking shown. I also tried to add a line but nothing happened. Refer the picture below. Could you recommend the settings to make it work? Thanks.  
 ![p1](https://us1.discourse-cdn.com/flex019/uploads/aotu/original/1X/151961078a7a9222408b1831a389cb4fdb9d29e3.jpeg)

---

<div class="post-metadata">

**Author:** ![alex.thiel](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.aotu.ai/alex.thiel/32/48_2.png) [@alex.thiel](https://forum.aotu.ai/u/alex.thiel)\
**Post date:** [July 12, 2021, 7:17pm UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/6 "2021-07-12T19:17:49Z")

</div>

Hi @gkomix,

* * *

I’m glad to hear you got the video file working.

> The VM Ubuntu OS detected the webcam and shown /dev/Video0 and /dev/Video1. I tested with cheese webcam software and it can display the webcam view. However, when I try to add the webcam stream using brainframe-client, it failed. The following is the screenshot. Is the client can work with webcam connect thru VM?

That’s interesting! One thing about BrainFrame is that it checks available webcams on startup only (or rather, docker does…). Could you do the following to debug this issue?

1. Stop BrainFrame via `brainframe compose down`
2. plug in your webcams
3. check with cheese that they are working
4. Start BrainFrame via `brainframe compose up`
5. Try adding the webcams again via the client

* * *

> I added two video files (vehicles passing on the road) streams using brainframe-client and it can be loaded and play the videos. I tried to add capsules (CPU only) such as
> 
> 1. Tracker Vehicle Iou
> 2. Classifier Vehicle Color Openvino
> 3. Calculator Object Speed  
> However, there are no detection and tracking shown. I also tried to add a line but nothing happened. Refer the picture below. Could you recommend the settings to make it work? Thanks.

This is an issue of capsule configuration. For more information read [this post for more information](https://forum.aotu.ai/t/how-to-run-the-official-website-capsule-on-the-client/50/7).

To fix this issue, you need to load capsules that are capable of detecting vehicles. The `Tracker Vehicle` can only track vehicles, not detect them. The `Classifier Vehicle Color` can only classify the color of a vehicle, not detect vehicles.

Here’s a capsule configuration that will work:

- Tracker Vehicle Iou
- Classifier Vehicle Color Openvino
- Calculator Object Speed
- [Detector Person Vehicle Bike Openvino](https://aotu.ai/releases/brainframe/v0.28.0/detector_person_vehicle_bike_openvino.cap) ← This will enable BrainFrame to find Vehicle bounding boxes 😁

---

<div class="post-metadata">

**Author:** ![gkomix](https://avatars.discourse-cdn.com/v4/letter/g/e99b99/32.png) [@gkomix](https://forum.aotu.ai/u/gkomix)\
**Post date:** [July 13, 2021, 4:57am UTC](https://forum.aotu.ai/t/video-file-wont-load-in-wsl2/196/7 "2021-07-13T04:57:11Z")

</div>

Hi Alex,  
Thanks, I manage to get the webcam running and the bounding boxes are shown.
