当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【Untitled】
【小程序】低代码+小游戏=小游戏可视化开发
ARP协议原理
win10编译x264库(也有生成好的lib文件)
研发需求的验收标准应该怎么写? | 敏捷实践
JS封装防抖(代码持续优化)
我们真的需要DApp吗?App真的不能满足我们的幻想吗?
虚拟机安装出现的问题汇总
Recommend a free 50-hour AI computing platform
Modify the VOT2018.json file and remove the color in the image path
We really need DApp?Really can't meet our fantasy App?
智驾科技完成C1轮融资,此前2轮已融4.5亿元
WeChat payment development process
00后写个暑假作业,被监控成这笔样
Blazor Server (9) from scratch -- modify Layout
[Microservice ~ Remote Call] Integrate RestTemplate, WebClient, Feign
Shell之常用小工具(sort、uniq、tr、cut)
Web console control edit box
The redis library cannot be imported
goalng-sync/atomic原子操作