視頻處理
視頻轉(zhuǎn)圖片
ffmpeg -i lane.mp4 frame-%04d.jpg
圖片轉(zhuǎn)視頻
ffmpeg -pattern_type glob -i "frame-*.jpg" video.mp4
優(yōu)化 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 建設(shè)
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