当前位置:网站首页>Ffmpeg recording screen and screenshot
Ffmpeg recording screen and screenshot
2022-07-03 03:34:00 【Water W】
This article is about ffmpeg Under the premise of downloading and installing , Yes, then the last one ffmpeg Download the installation tutorial and introduction _ water w The blog of -CSDN Blog
Catalog
4、 Two videos play at the same time , Both up and down
6、 Recording screen Specify the desktop area
7、 Recording screen designated area Clip existing videos
1、 Record soundless video
(1) open cmd, Enter the command ,
ffmpeg -f gdigrab -i desktop -pix_fmt yuv420p .\out.mp4
(2) After the command is run , We found the video by following the path , Open the generated video ,
Be careful : The default save path of the generated video is in the folder where the command is located ,
eg: I was in C:\user\ water \ Executed under cmd command , Therefore, after the video is generated, it will be saved in this path .
2、 Two videos are played successively : Splice the two video files back and forth into one video file
(1) Open Notepad , Create a new one “videolist.txt” file , The video to be spliced should be written inside ,
At this time, the structure of the folder is :
(2) Open under folder cmd, Enter the command ,
ffmpeg.exe -f concat -i video/videolist.txt joinoutput.mp4
Be careful : I was in D:\ffmpeg-5.0.1-essentials_build Under the folder ( The video to be spliced is in this path video Folder ), open cmd, Enter the command ,
(3) After the command is run , We found the video by following the path , Open the generated video ,
3、 Two videos play at the same time , Both left and right display , And the separation in the middle is a red background
(1) open cmd, Enter the command ,
ffmpeg -i video\out.mp4 -i video\out1.mp4 -filter_complex "pad=4000:1080:color=red[x0];[0:v]scale=w=1920:h=1080[inn0];[x0][inn0]overlay=0:0[x1];[1:v]scale=w=1920:h=1080[inn1];[x1][inn1]overlay=2000:0" out14.mp4
(2) After the command is run , We found the video by following the path , Open the generated video ,
4、 Two videos play at the same time , Both up and down
(1) open cmd, Enter the command ,
ffmpeg -i video\out.mp4 -i video\out1.mp4 -filter_complex "pad=1920:2160:color=green[x0];[0:v]scale=w=1920:h=1080[inn0];[x0][inn0]overlay=0:0[x1];[1:v]scale=w=1920:h=1080[inn1];[x1][inn1]overlay=0:1080" out15.mp4
(2) After the command is run , We found the video by following the path , Open the generated video ,
5、 Screenshot designated area
(1) open cmd, Enter the command ,
ffmpeg -f gdigrab -s 500x500 -offset_x 100 -offset_y 100 -i desktop -frames:v 1 test.png
(2) After the command is run , We found the screenshot according to the path , Open the generated screenshot ,
6、 Recording screen Specify the desktop area
(1) open cmd, Enter the command ,
ffmpeg.exe -r 1 -f gdigrab -s 500x500 -offset_x 100 -offset_y 100 -i desktop -vcodec libx264 a.mp4
(2) After the command is run , We can find the generated video by following the path ,
7、 Recording screen designated area Clip existing videos
Ideas : Capture the existing video file in the specified area
(1) open cmd, Enter the command ,
ffmpeg -i 0614.mp4 -vf crop=200:200:0:0 0614-1.mp4
(2) After the command is run , We can find the generated video by following the path ,
边栏推荐
- Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
- 【DRM】DRM bridge驱动调用流程简单分析
- Captura下载安装及在Captura配置FFmpeg
- PHP generates PDF tcpdf
- [algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
- 将时间戳转为指定格式的时间
- Summary of electromagnetic spectrum
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- VS 2019 配置tensorRT生成engine
- [embedded module] OLED display module
猜你喜欢
递归:快速排序,归并排序和堆排序
The series of hyperbolic function in daily problem
Pytorch配置
Ffmpeg one / more pictures synthetic video
Nce detail of softmax approximation
为什么线程崩溃不会导致 JVM 崩溃
Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
Hi3536c v100r001c02spc040 cross compiler installation
随机推荐
[set theory] partial order relation (partial order relation definition | partial order set definition | greater than or equal to relation | less than or equal to relation | integer division relation |
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
MongoDB复制集【主从复制】
C语言HashTable/HashSet库汇总
C # webrequest post mode, based on "basic auth" password authentication mode, uploads files and submits other data using multipart / form data mode
Limit of one question per day
Why does thread crash not cause JVM crash
FileZilla Client下载安装
Applet (continuous update)
Idea format code idea set shortcut key format code
Converts a timestamp to a time in the specified format
Mongodb master profile
简易版 微信小程序开发之for指令、上传图片及展示效果优化
监听对象中值变化及访问
@Accessors annotation function specifies that the prefix follows the hump naming
UMI route interception (simple and rough)
[pyg] understand the messagepassing process, GCN demo details
Stepping on pits and solutions when using inputfilter to limit EditText
Limit of one question per day