ffmpeg-screen – 业余语言练习

ffmpeg-screen

#更换新显示器时,获取屏幕尺寸
#根据显示器的尺寸截取全屏
ffmpeg -f x11grab -video_size 1360:768 -i :0.0+0,0 -frames:v 1 -f image2 202505031611.jpg -y &&
#ffplay -window_title monitor -f x11grab -video_size 400:400 -i :0.0+0,0 -vf "drawbox=x=150:y=150:w=200:h=200:color=ff0000:t=3,scale=300x300" -left 760 -top 1
#查看全屏图片需要录制的桌面像素位置
#ffplay -i screen.jpg -vf 'crop=1340:850:310:200'
#ffmpeg -i screen.jpg -vf 'crop=1340:850:310:200'
#ffplay -window_title monitor -f x11grab -video_size 800:300 -i :0.0+200,400 -vf scale=300x300 -vf "drawbox=color=black":t=1.5 -t 00:00:30 -left 1160 -top 1  &&
exit
#ffmpeg -f x11grab -video_size 1670:920 -i :0.0+5,160 -frames:v 1 -vf "drawbox=color=black":t=1.5 -t 00:00:01 -f image2 dqf.jpg -y  &&
#eog dqf.jpg
#ffplay -i rdesktop-0.jpg -vf "crop=250:100:160:230,drawbox=color=black":t=1.5
#ffplay -window_title monitor -f x11grab -video_size 860:618 -i :0.0+300,150 -vf scale=150x150 -vf "drawbox=color=black":t=1.5 -t 00:00:30 -left 1160 -top 1  &&
#ffmpeg -f x11grab -video_size 860:618 -i :0.0+300,150 -frames:v 1 -vf "drawbox=color=black":t=1.5 -t 00:00:01 -f image2 PCI-PCI-E-1.jpg -y  &&
#eog PCI-PCI-E-1.jpg
Published
Categorized as ffmpeg

Leave a comment

Your email address will not be published. Required fields are marked *