FFmpeg + nginx-rtmp 推流
ffmpeg -f gdigrab -framerate 25 -i desktop -vcodec libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv420p -f flv rtmp://localhost/live/test
ffplay -fflags nobuffer -flags low_delay -strict experimental rtmp://localhost/live/test
nginx.conf:
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8181;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
}
}
使用 FFmpeg 推送桌面畫面到本地 nginx-rtmp
遠(yuǎn)程/虛擬機(jī)通過 RTMP 播放了直播畫面



浙公網(wǎng)安備 33010602011771號(hào)