On a whim, the mobile screen needs to be broadcast live when the app is demonstrated.
It can be achieved through livescreen, the browser can access the mobile phone,
The source file has the following content: <img id="screen" src=" screen.mjpeg " alt="Loading..." />
pass through:
ffmpeg -i http://192.168.173.108:8080/screen.mjpeg -an out.mp4
Live stream can be recorded.
About mjpeg:
The format of MJPEG is a sequence of pictures stored in JPEG format, and there is no time information of the video, so there is no information of the frame rate.
http://www.tuicool.com/articles/eeaia2R
http://blog.csdn.net/peterli_xue/article/details/7653971/
Use ffmpeg to import the screen.mjpeg of the mobile phone to the ffserver on the computer, and then connect the terminal to the ffserver, which can accommodate more terminal connections.
http://blog.chinaunix.net/uid-9688646-id-3399113.html
http://blog.csdn.net/cherayliu/article/details/7803574
http://www.cnblogs.com/wyqfighting/archive/2013/03/03/2941976.html