# How to set up MJPEG?

**URL:** <https://discuss.appium.io/t/how-to-set-up-mjpeg/42914>\
**Category:** Tutorials/Documentation\
**Created:** [June 27, 2024, 10:29am UTC](https://discuss.appium.io/t/how-to-set-up-mjpeg/42914 "2024-06-27T10:29:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![veno](https://discuss.appium.io/user_avatar/discuss.appium.io/veno/32/12972_2.png) [@veno](https://discuss.appium.io/u/veno)\
**Post date:** [June 27, 2024, 10:29am UTC](https://discuss.appium.io/t/how-to-set-up-mjpeg/42914/1 "2024-06-27T10:29:03Z")

</div>

I would like to stream screenshots from iPhone to an MJPEG URL.

I found “appium:mjpegServerPort” but it is not clear to me how to use it. Is this the port on iPhone and I need to forward it to PC? Is it a port on my PC?

Any guides, detailed tutorials would be very helpful.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [June 27, 2024, 10:42am UTC](https://discuss.appium.io/t/how-to-set-up-mjpeg/42914/2 "2024-06-27T10:42:29Z")

</div>

This is port on machine where runs Appium server.

```auto
The port number on which WDA broadcasts screenshots stream encoded into MJPEG format from the device under test.

```

You can use `ffmpeg` utility to capture it and do whatever like.

---

<div class="post-metadata">

**Author:** ![veno](https://discuss.appium.io/user_avatar/discuss.appium.io/veno/32/12972_2.png) [@veno](https://discuss.appium.io/u/veno)\
**Post date:** [June 27, 2024, 10:50am UTC](https://discuss.appium.io/t/how-to-set-up-mjpeg/42914/3 "2024-06-27T10:50:52Z")

</div>

could you share how to use it please. i tried putting a port in and then going to [http://localhost](http://localhost):{port} but it didn’t do nothing. what am i missing. I am running appium server inside docker container, should i forward port from it to main PC?

---

<div class="post-metadata">

**Author:** ![veno](https://discuss.appium.io/user_avatar/discuss.appium.io/veno/32/12972_2.png) [@veno](https://discuss.appium.io/u/veno)\
**Post date:** [August 4, 2024, 11:44am UTC](https://discuss.appium.io/t/how-to-set-up-mjpeg/42914/4 "2024-08-04T11:44:44Z")

</div>

Could you maybe link more detailed instructions please? Also is this faster than manually making screenshots?
