笔记
rtmp rtsp
rtmp://live.hkstv.hk.lxdns.com/live/hks
rtsp://${username}:${password}@${ip}:554/Streaming/channels/1001
rtsp://admin:123@192.168.0.23:554/Streaming/channels/1001
转换推流
ffmpeg -re -i rtsp://admin:123@192.168.1.130:554/Streaming/channels/1001 -vcodec copy -acodec copy -f flv rtmp://192.168.1.66:1936/live/zb
ffmpeg -re -i rtsp://admin:123@192.168.1.71:554 -vcodec copy -acodec copy -f flv rtmp://192.168.1.66:1936/live/zb2
播放文件
/usr/local/ffmpeg -re -i media/class_1.mp4 -acodec copy -vcodec copy -f flv rtmp://192.168.1.66:1936/live/zb2
循环播放文件
/usr/local/ffmpeg -re -stream_loop -1 -i media/1.mp4 -acodec copy -vcodec copy -f flv rtmp://192.168.1.66:1936/live/zb2
转码
/usr/local/ffmpeg -i 1.mp4 -vcodec libx264 -vprofile baseline -r 30 -acodec copy -f mp4 out.mp4
/usr/local/ffmpeg -y -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i 2.TS -c:a copy -c:v h264_nvenc output.mp4
srs启动
/opt/app/srs/srs.oschina/trunk$ ./objs/srs -c conf/srs.conf
编译完后试一个人脸检测的程序:
./facedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --scale=1.5 lena.jpg
./facedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --scale=1.5 lena.jpg
./facedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --scale=1.5 lena.jpg
./vfacedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --scale=1.5 rtsp://admin:123456@192.168.1.127:554
./vfacedetect --cascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --scale=1.5 video_1.mp4
./vfacedetect --cascade="../conf/haarcascade_frontalface_alt.xml" --scale=1.5 ../data/video_1.mp4
./vfacedetect --cascade="../conf/cascade.xml" --scale=1.2 ../data/video_1.mp4
gpu负载
# nvidia-smi
# watch -n 1 nvidia-smi
网络检测
# sudo netstat -apn
# nload
apt-get 安装卸载
apt-get install xxxx 安装
apt-get remove xxxx 卸载但不删除配置
apt-get purge xxxx 卸载并且删除相关配置
Ubuntu16.04远程桌面连接图像界面
1、安装xrdp
sudo apt-get install xrdp
2、安装vnc4server
sudo apt-get install vnc4server
3、安装xubuntu-desktop
sudo apt-get install xubuntu-desktop
4、向xsession中写入xfce4-session
echo “xfce4-session” >~/.xsession
5、开启xrdp服务
sudo service xrdp restart
6、查看IP
ifconfig
7、Windows下远程桌面连接
安装TightVNC
a 、重起桌面
# sudo service lightdm restart
数字图像处理(勒冈萨斯版)