当前位置:网站首页>Record the ideas and precautions for QT to output a small number of pictures to mp4
Record the ideas and precautions for QT to output a small number of pictures to mp4
2022-06-25 23:36:00 【The struggle history of polar bear】
1. First use the library to save all the pictures as gif chart , Store locally . Preservation of liudianwu great God used in the library gif Gallery . The sample program can be downloaded from the following address . The sample program .
2. Download the latest ffmpeg Run the program , No development library required , Put it in the project directory .ffmpeg website :Download FFmpeg
3. Use QProess start-up ffmpeg.exe process , And attach parameters :-f gif -i Source file .gif -pix_fmt yuv420p The goal is .mp4
Can be gif Turn the picture into mp4.
Be careful : preservation gif In the picture , Need to set up : The width must be 32 Multiple , The height must be 2 Multiple , Otherwise, an error will be reported :width / height not divisible by 2.
Use save as gif, And then to MP4 The reason is that the storage speed is fast , Efficient , No further research is needed ffmpeg The second development method of library .
The disadvantage is that you can't keep a large amount of video , Do not carry accompanying audio .
边栏推荐
- Analysis and comprehensive summary of full type equivalent judgment in go
- C language (I)
- C. Fibonacci Words-April Fools Day Contest 2021
- YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
- My vscode
- Idea FAQ collection
- Classic image segmentation network: UNET supports libtorch deployment reasoning [with code]
- Style setting when there is a separator in the qcombobox drop-down menu
- Hibernate entity class curd, transaction operation summary
- 对卡巴斯基发现的一个将shellcode写入evenlog的植入物的复现
猜你喜欢

【无标题】打开一个项目连接,无法正常显示时,ping一下ip

Leaky API interface practical development series (13): gooseneck cloud service php-api two-dimensional array parameter transfer solution

Multithreaded learning 2- call control

QComboBox下拉菜单中有分隔符Separator时的样式设置

How to use drawing comparison function in CAD

UE4 learning records create a role and control its movement

提取系统apk

Ble Low Power Bluetooth networking process and Bluetooth role introduction

Once beego failed to find bee after passing the go get command Exe's pit

konva系列教程2:绘制图形
随机推荐
Ad20 learning notes II
How to download the software package of CDH version
[Axi] interpretation of Axi protocol atomic access
character string
Konva series tutorial 2: drawing graphics
Ad20 learning notes I
[opencv450 samples] create image list yaml
Once beego failed to find bee after passing the go get command Exe's pit
UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
Visual studio code create minimal web API (asp.net core)
Windows redis installation and simple use
Qt自定义实现的日历控件
[Axi] interpretation of Axi protocol disorder mechanism
How to add cartoon characters to the blog park?
Use of xinchida ble 5.0 Low Power Bluetooth module (at command serial port transparent transmission) rsbrs02abr
Day4 branch and loop summary and operation
库项目和App项目中清单文件的包名不要相同
golang Make a list of intervals with sequential numbers
Informatics Orsay all in one 1353: expression bracket matching | Luogu p1739 expression bracket matching
经典图像分割网络:Unet 支持libtorch部署推理【附代码】