视频手势画图python
During a recent episode of the Script and Style podcast, I had noticed that the video recording had showed a bit of our internal chat that wasn't necessary for our viewers to see. While there's nothing wrong with giving viewers a peek into the show preparation, presenting the best possible video is our priority. So how can we crop a video via command line?
在最近的剧本和样式播客中,我注意到录像带显示了我们内部的一些聊天内容,对于观众来说并不是必需的。 让观众一窥表演准备并没有错,但呈现最佳视频是我们的首要任务。 那么我们如何通过命令行裁剪视频呢?
The amazing ffmpeg utility allows engineers to crop videos with one easy to use filter:
令人惊叹的ffmpeg实用程序使工程师可以使用一个易于使用的过滤器来裁剪视频:
# Crop an image to 500x500 starting at 0x0
ffmpeg -i sns-episode.webm -filter:v "crop=500:500:0:0" sns-episode-cropped.mp4
The crop filter format is easy to follow: {desired_width}:{desired_height}:{start_x}:{start_y}.
裁剪过滤器格式易于遵循:{desired_width}:{desired_height}:{start_x}:{start_y}。
I've written dozens of posts about ffmpeg and how it has the power to manipulate videos in amazing ways. Now you know how to crop videos quickly from command line!
我写了几十篇关于ffmpeg的文章,以及它如何以惊人的方式操纵视频 。 现在您知道如何从命令行快速裁剪视频了!
视频手势画图python