当前位置:网站首页>The FFmpeg library is configured and used on win10 (libx264 is not configured)
The FFmpeg library is configured and used on win10 (libx264 is not configured)
2022-08-09 13:03:00 【A 12 knowledge】
Directory
Background
Audio and video development is inseparable from encoding and decoding. Through encoding and decoding, delay-free video transmission and playback can be realized.
The most widely used protocols in audio and video codec are MPEG-4 and h264, and h264 is actually a part of MPEG-4.
Codecs are generally divided into soft solutions and hard solutions. Soft solutions are algorithm implementations that can be used across platforms, such as libx264 and FFmpeg. Hard solutions refer to the hardware codecs that the hardware platform itself has.
1. What is FFmpeg?
FFmpeg is an open source multimedia video processing tool. FFmpeg has very powerful functions including video capture function, video format conversion, video capture, adding watermark to video, etc., and supports multiple platforms.
Second, Windows configuration steps
1. Download FFmpeg
Usually go to the official website (http://www.ffmpeg.org/) to download the source code or exe file, but to develop on it, you need .dll, .lib, and .h files.
This is the FFmpeg library (-dev and -shred) required for win10 development, I am looking for it~
Link: https://pan.baidu.com/s/1bA5aag8tlSluXmBYLLEf-g
Extraction code: c8f0
2.Configuration vs
1. Right-click on the project name -> Properties -> Configuration Properties -> c/c++ -> Additional include directories: Add dev\include directories
2. Right-click the project name->Properties->Configuration Properties->Linker->General->Additional library directory:Add dev\lib directory
3. Right click on the project name -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies: Add swscale.lib;avcodec.lib;avutil.lib;avformat.lib;
4. Copy all dlls under shared\bin to the project directory (the next level of .sln)
3. Test
#include extern "C" {#include "libavcodec/avcodec.h"#include "libavformat/avformat.h"}int main(int argc, char* argv[]) {printf("%s\n", avcodec_configuration());return 0;}
If an error is reported: d:\ffmpeg-4.3.1-win64-dev\include\libavutil\rational.h : warning C4819: The file contains cannot be included in the current code page (936)character represented in .Please save the file in Unicode format to prevent data loss, refer to the blog https://blog.csdn.net/qq_36226393/article/details/77725493
边栏推荐
猜你喜欢
字节秋招二面把我干懵了,问我SYN报文什么情况下会被丢弃?
报告:想学AI的学生数量已涨200%,老师都不够用了
你没见过的《老友记》镜头,AI给补出来了|ECCV 2022
太卷了... 腾讯一面被问到内存满了,会发生什么?
AQS同步组件-FutureTask解析和用例
WPF implements a MessageBox message prompt box with a mask
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
JS封装防抖(代码持续优化)
Shell之常用小工具(sort、uniq、tr、cut)
Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
随机推荐
electron 应用开发优秀实践
西湖大学教授怎么看AI制药革命?|量子位智库圆桌实录
Experiment record: the process of building a network
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
阿里云新增三大高性能计算解决方案,助力生命科学行业快速发展
Ways to prevent data fraud
放下手机吧:实验表明花20分钟思考和上网冲浪同样快乐
win10右键文件,一直转圈
报告:想学AI的学生数量已涨200%,老师都不够用了
无需精子卵子子宫体外培育胚胎,Cell论文作者这番话让网友们炸了
Simple understanding of ThreadLocal
proto3-2 syntax
鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
ThreadLocal的简单理解
MySQL中的锁
微服务架构的核心关键点
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
We really need DApp?Really can't meet our fantasy App?
一甲子,正青春,CCF创建六十周年庆典在苏州举行