How to set up MJPEG?

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.

This is port on machine where runs Appium server.

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.

could you share how to use it please. i tried putting a port in and then going to 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?