视频处理
视频转图片
ffmpeg -i lane.mp4 frame-%04d.jpg
图片转视频
ffmpeg -pattern_type glob -i "frame-*.jpg" video.mp4
优化 stream 视频
ffmpeg -i input.mp4 -movflags faststart -acodec copy -vcodec copy output.mp4
合并两个视频
ffmpeg -i /tmp/old_video.avi -i /tmp/new_video.avi -filter_complex "[0:v:0]pad=iw*2:ih[bg]; [bg][1:v:0]overlay=w" /tmp/output.mp4
nfs
server 建设
sudo apt-get install nfs-common
sudo apt install nfs-kernel-server
sudo echo "/share *(rw,sync,no_root_squash)" > /etc/exports
sudo service nfs-service start
client 连接
show mount -e xxx # 查看主机分享
mount -t nfs hostname(orIP):/directory /mount/point