局域网设备连接
修改ip为同一网段
#查看ip
ifconfig
#修改指定网卡ip
sudo ifconfig eth1 192.168.12.100 netmask 255.255.255.0
#本地ping设备
sudo ping 192.168.12.100
#同样设备ping 本地
#网卡卸载/重装
sudo ifconfig eth1 down
sudo ifconfig eth1 up
#ubuntu连接网线,添加ip 与设备同段
Settings-->Network-->"小齿轮“-->Ipv4-->Addresses添加ip和netmask
RTSP推流
- EasyDarWin安装配置, 参考官方Git指导.
- 开启EasyDarwin_Service.service
- ffmpeg -re -i /home/path/to/video/0_720P_25.264 -vcodec libx264 -acodec libx264 -rtsp_transport tcp -f rtsp rtsp://192.168.12.101/test.264
- 使用VLC拉流测试
ARM:使用RTSP-SIMPLE-SERVER
RTMP推流
- SRS安装配置, https://github.com/ossrs/srs
- 开启SRS服务
- ffmpeg -re -i /home/path/to/your/video/0_720P_25.264 -vcodec libx264 -acodec libx264 -f flv rtmp://192.168.12.101:1935/live/livestream