# Embedding video

**URL:** <https://forum.codewithmosh.com/t/embedding-video/13974>\
**Category:** HTML/CSS\
**Created:** [July 27, 2022, 9:25pm UTC](https://forum.codewithmosh.com/t/embedding-video/13974 "2022-07-27T21:25:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EYMangblin](https://avatars.discourse-cdn.com/v4/letter/e/9de053/32.png) [@EYMangblin](https://forum.codewithmosh.com/u/EYMangblin)\
**Post date:** [July 27, 2022, 9:25pm UTC](https://forum.codewithmosh.com/t/embedding-video/13974/1 "2022-07-27T21:25:24Z")

</div>

Hello, everyone. Following the instructions in my ultimate HTML 5 and CSS course, I tried embedding an HD video in web site that’s locally hosted on my PC. Each time I uploaded the video, I got a message that says, “The file is not displayed in the editor because it is either binary or uses an unsupported text encoding.” Please how can I resolve the issue and continue with my learning? I’m a beginner in the course, and coding in general. Thanks.

---

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [July 29, 2022, 12:50pm UTC](https://forum.codewithmosh.com/t/embedding-video/13974/2 "2022-07-29T12:50:36Z")

</div>

Hi,

Welcome in here.

I am hardly ever working with video but I just gave it a try and I love how our times makes such thing possible in a simple fashion.

Here is my code and the result:

```nohighlight
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <video src="vid/BL Prod.mp4" width="50%" controls></video>
</body>

</html>

```

It works.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/70cd70e88948372dab095f438cf63ca4e9a3dbda.jpeg)

Can you share your code and give more details ?

- Where do you put files ?
- What video container are you trying to use (mkv, mp4, avi, …)?
- What is the video codec (avi, h264, h265, xvid, av1, …) ?

Your video player may provide you with the info.  
here for the video I used.

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/70c3af0b8dd11fb4c20be45dd5e33a757298e1bc.png)

Regards.
