安卓手机公网监控摄像头推流

Android phone public network surveillance camera streaming

Security issue: Currently, unauthorized streaming is prevented only by using a random Stream Key.

Using an Android phone as a camera, stream the video to remoooo.com via RTMP, and view it via https://remoooo.com/webcam with a password.

Android phones stream to the Public Server via RTMP.

The server connects to MediaMTX and converts it to an HLS listening address on the local machine.
localhost is reverse proxyed to nginx, using HTTPS + Basic Auth, and finally viewed in Browser Viewer.

Viewing link: rtmp://example.com:1935/

In simple terms, the server uses MediaMTX as a media gateway. MediaMTX is responsible for receiving RTMP streams from mobile devices and converting them into HLS streams that can be played in a browser.

RTMP App:

Protocol: RTMP
Server URL: rtmp://example.com:1935
Stream Key: <stream-key>
Video Codec: H.264
Audio Codec: AAC
Resolution: 1280x720
FPS: 30
Video Bitrate: 2000-3000 kbps
Audio Bitrate: 96-128 kbps
Keyframe Interval: 2s
Bash

Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.